/* Reserve carousel content before JavaScript initializes it. */
.home .he-slider:not(.owl-loaded) { display:block; overflow:hidden; }
.home .he-slider:not(.owl-loaded) > :not(:first-child) { display:none; }
.home .homecat:not(.owl-loaded) { display:flex; overflow:hidden; gap:30px; align-items:flex-start; }
.home .homecat:not(.owl-loaded) > * { flex:0 0 calc((100% - 60px) / 3); }
.home .allinsp:not(.owl-loaded) { display:flex; overflow:hidden; gap:30px; align-items:flex-start; }
.home .allinsp:not(.owl-loaded) > * { flex:0 0 calc((100% - 60px) / 3); }
.mobsec .mobli:not(.owl-loaded) { display:flex; overflow:hidden; }
.mobsec .mobli:not(.owl-loaded) > * { flex:0 0 50%; }
.home [data-vc-full-width="true"]:not([data-vc-full-width-init="true"]) {
  position:relative; left:calc(50% - 50vw); box-sizing:border-box; width:100vw;
}
@media (max-width:1000px) and (min-width:768px) {
  .home .homecat:not(.owl-loaded) > * { flex-basis:calc((100% - 30px) / 2); }
  .home .allinsp:not(.owl-loaded) > * { flex-basis:calc((100% - 30px) / 2); }
}
@media (max-width:767px) {
  .home .homecat:not(.owl-loaded) > * { flex-basis:100%; }
  .home .allinsp:not(.owl-loaded) > * { flex-basis:100%; }
  .mobsec .mobli:not(.owl-loaded) > * { flex-basis:100%; }
  .home [data-vc-full-width="true"]:not([data-vc-full-width-init="true"]):not(.vc_row-no-padding) { padding-left:20px; padding-right:20px; }
}
@media (min-width:1001px) and (max-width:1200px) {
  .launch-perf-luxos.home .homecat:not(.owl-loaded) > * { flex-basis:calc((100% - 90px) / 4); }
}
@media (min-width:1201px) {
  .launch-perf-luxos.home .homecat:not(.owl-loaded) { gap:60px; }
  .launch-perf-luxos.home .homecat:not(.owl-loaded) > * { flex-basis:calc((100% - 240px) / 5); }
}

/* Show the first product image before FlexSlider starts, without stacking its other slides. */
.woocommerce-product-gallery { opacity:1 !important; }
/* FlexSlider expands its track 100ms before setting slide widths; keep that interval contained. */
.woocommerce-product-gallery__wrapper:not(:has(> .woocommerce-product-gallery__image[style*="float:"])) { max-width:100%; }
.woocommerce-product-gallery__wrapper:not(:has(> .woocommerce-product-gallery__image[style*="float:"])) > .woocommerce-product-gallery__image ~ .woocommerce-product-gallery__image { display:none !important; }
.woocommerce-product-gallery .flex-control-thumbs img { aspect-ratio:1; object-fit:contain; }
.launch-gallery-one-thumb-row:not(:has(.flex-viewport))::after { content:""; display:block; }
.launch-perf-luxos .launch-gallery-one-thumb-row:not(:has(.flex-viewport))::after { height:calc(107px + 2em); }
.launch-perf-spl .launch-gallery-one-thumb-row:not(:has(.flex-viewport))::after { height:calc(137px + 2em); }
@media (max-width:767px) {
  .launch-perf-luxos .launch-gallery-one-thumb-row:not(:has(.flex-viewport))::after { height:0; padding-top:calc(25% + 1.25em); }
  .launch-perf-spl .launch-gallery-one-thumb-row:not(:has(.flex-viewport))::after { height:calc(80px + 2em); }
}
/* The Handles filter builds its controls after load. Reserve its existing mobile footprint. */
@media (max-width:757px) {
  .launch-perf-spl.term-handles .avalon23-filter-list:empty { min-height:676px; }
}
