/* Homepage Builder V1; opt-in per storefront tenant. */
.hbv1-product-carousel{position:relative;max-width:100%;overflow:hidden}
.hbv1-product-carousel .product-grid{display:flex!important;flex-wrap:nowrap!important;gap:16px!important;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:thin;padding:4px 2px 14px}
.hbv1-product-carousel .product-grid>*{flex:0 0 calc((100% - 48px)/4);min-width:0;scroll-snap-align:start}
.hbv1-nav{display:flex;gap:8px;justify-content:flex-end;margin:4px 0 10px}
.hbv1-nav button{border:1px solid #ccd2db;background:#fff;color:#252b36;border-radius:30px;min-width:38px;min-height:38px;cursor:pointer}
.hbv1-nav button:focus-visible{outline:2px solid #1e62c5;outline-offset:2px}
@media(max-width:960px){.hbv1-product-carousel .product-grid>*{flex-basis:calc((100% - 16px)/2)}}
@media(max-width:560px){.hbv1-product-carousel .product-grid>*{flex-basis:78%}}

/* Compact homepage slider cards, scoped and visual only. */
:is(#homepage-products-0,section[id^="homepage-products-"]) .hbv1-product-carousel .product-grid>*{max-width:210px!important}
@media(max-width:560px){:is(#homepage-products-0,section[id^="homepage-products-"]) .hbv1-product-carousel .product-grid>*{max-width:78vw!important}}
