/* Browse card image slider: native swipe (scroll-snap) + arrows on desktop hover + dots.
   docs/product-images/product-images.md */
.card-gallery { position: relative; overflow: hidden; }
.card-gallery__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.card-gallery__track::-webkit-scrollbar { display: none; }
.card-gallery__img { flex: 0 0 100%; width: 100%; min-width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; scroll-snap-align: start; scroll-snap-stop: always; }

.card-gallery__arrow { position: absolute; top: 50%; z-index: 2; display: none; align-items: center; justify-content: center; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1e2022; font-size: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: pointer; }
.card-gallery__arrow--prev { left: 6px; }
.card-gallery__arrow--next { right: 6px; }
.card-gallery__arrow[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
    .card-gallery:hover .card-gallery__arrow { display: flex; }
}

.card-gallery__dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.card-gallery__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(30, 32, 34, .25); transition: background .15s, transform .15s; }
.card-gallery__dot.is-active { background: #377dff; transform: scale(1.2); }
