/* Smooth scrolling and offset for fixed header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px; /* This accounts for the fixed header height */
}

/* Ensure target elements have proper spacing */
[id] {
  scroll-margin-top: 115px;
}

/* Lazy loading optimization */
.lazy-img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-img.loaded {
  opacity: 1;
}

/* Preloader optimization */
#loading {
  z-index: 9999;
}

/* Performance: Reduce repaints and reflows */
.bd-banner-wrapper,
.bd-category-wrapper,
.bd-footer-widget {
  contain: layout style;
}

/* Font optimization - Add font-display: swap to existing fonts */
* {
  font-display: swap;
}
