/* Stable product gallery before and after Swiper initialization. */
#content .product-slider-wrap .main-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
}
#content .product-slider-wrap .main-img > .swiper-wrapper {
    height: 100%;
    align-items: stretch;
}
#content .product-slider-wrap .main-img > .swiper-wrapper > .swiper-slide {
    height: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#content .product-slider-wrap .main-img img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}
#content .product-slider > .swiper-wrapper > .swiper-slide {
    width: calc((100% - 40px) / 3);
    aspect-ratio: 1 / 1;
}
#content .product-slider .preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Match the installed Swiper version's minimum-width breakpoints. */
#content .product-slider > .swiper-wrapper > .swiper-slide { margin-right:20px; }
@media (min-width: 765px) {
    #content .product-slider > .swiper-wrapper > .swiper-slide { width:calc((100% - 50px)/3); margin-right:25px; }
}
@media (min-width: 980px) {
    #content .product-slider > .swiper-wrapper > .swiper-slide { width:calc((100% - 30px)/3); margin-right:15px; }
}
@media (min-width: 1200px) {
    #content .product-slider > .swiper-wrapper > .swiper-slide { width:calc((100% - 50px)/3); margin-right:25px; }
}
/* Decorative gradient must not participate in layout-shift calculations. */
#content .box-viewport.shade-bottom {
 background-image:linear-gradient(to top,#e4ecef 0,rgba(228,236,239,0) 100%);
 background-position:left bottom;background-repeat:no-repeat;background-size:100% 350px;
}
#content .box-viewport.shade-bottom::after { content:none; }
@media (max-width:1200px) { #content .box-viewport.shade-bottom { background-size:100% 265px; } }
