/* FAIRSP migration recovery. Minimal scoped layout rules; existing theme retained. */
/* Keep category/content title below navigation even if legacy banner path is missing. */
.midarea > .banners.fairsp-page-banner {
  position: relative; display: block; min-height: 190px; overflow: hidden;
  background: #eaeef1;
}
.midarea > .banners.fairsp-page-banner > img {
  width: 100%; max-width: 100%; min-height: 190px; max-height: 400px;
  height: auto; object-fit: cover; display: block;
}
.midarea > .banners.fairsp-page-banner > .heading_catname {
  z-index: 1; bottom: 0; left: 0; right: 0; margin: 0;
}
/* A safe grid fallback if old Owl JS has failed to initialise. */
.featuredcont .owl-demo.owl-carousel:not(.owl-loaded) {
  display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px; opacity: 1; width: 100%;
}
.featuredcont .owl-demo.owl-carousel:not(.owl-loaded) > .item {min-width:0; width:auto;}
.featuredcont .owl-demo.owl-carousel .products_box { width:100%; }
.featuredcont .owl-demo .prodimg, .productscont .prodimg {
  height: 245px; min-height: 245px; display:flex; align-items:center;
  justify-content:center; overflow:hidden; box-sizing:border-box;
}
.featuredcont .owl-demo .prodimg a, .productscont .prodimg a {
  display:flex; width:100%; height:100%; justify-content:center; align-items:center;
}
.featuredcont .owl-demo .prodimg img, .productscont .prodimg img {
  width:auto; height:auto; max-height:215px; max-width:100%; object-fit:contain;
}
.featuredcont .owl-demo.owl-carousel.owl-loaded {display:block;}
@media(max-width:991px) {
 .featuredcont .owl-demo.owl-carousel:not(.owl-loaded) {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:540px) {
 .featuredcont .owl-demo.owl-carousel:not(.owl-loaded) {grid-template-columns:repeat(1,minmax(0,1fr));}
 .midarea > .banners.fairsp-page-banner {min-height:110px;}
 .midarea > .banners.fairsp-page-banner > img {min-height:110px;}
 .midarea > .banners.fairsp-page-banner > .heading_catname {font-size:16px; line-height:35px;}
}
