.custom-product-gallery{width:100%;position:relative}
.custom-product-gallery__viewport{position:relative;width:100%;overflow:hidden;background:#f7f7f7;border-radius:10px}
.custom-product-gallery__slides{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.custom-product-gallery__slides::-webkit-scrollbar{display:none}
.custom-product-gallery__slide{flex:0 0 100%;width:100%;margin:0;aspect-ratio:1/1;scroll-snap-align:start;background:#f7f7f7}
.custom-product-gallery__slide img{display:block;width:100%;height:100%;object-fit:contain}
.custom-product-gallery__arrow{position:absolute;top:50%;z-index:3;width:42px;height:42px;border:1px solid rgba(17,24,39,.12);border-radius:50%;background:rgba(255,255,255,.94);color:#111827;cursor:pointer;transform:translateY(-50%);box-shadow:0 4px 14px rgba(0,0,0,.10)}
.custom-product-gallery__arrow[hidden]{display:none}
.custom-product-gallery__arrow--prev{left:14px}.custom-product-gallery__arrow--next{right:14px}
.custom-product-gallery__arrow:hover{background:#fff}
.custom-product-gallery__counter{position:absolute;right:14px;bottom:14px;z-index:3;padding:5px 10px;border-radius:999px;background:rgba(0,0,0,.58);color:#fff;font-size:12px;font-weight:600}
.custom-product-gallery__counter[hidden]{display:none}
.custom-product-gallery__thumbnails{display:flex;gap:8px;margin-top:12px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.custom-product-gallery__thumbnail{flex:0 0 72px;width:72px;height:72px;padding:0;border:2px solid transparent;border-radius:6px;background:#f7f7f7;overflow:hidden;cursor:pointer}
.custom-product-gallery__thumbnail:focus-visible{outline:3px solid rgba(43,73,112,.25);outline-offset:2px}
.custom-product-gallery__thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:749px){.custom-product-gallery__arrow{display:none}.custom-product-gallery__thumbnail{flex-basis:58px;width:58px;height:58px}}
@media(prefers-reduced-motion:reduce){.custom-product-gallery__slides{scroll-behavior:auto}}
