.product-gallery { width: 100%; min-width: 0; margin-bottom: 32px; }
.product-gallery__stage { position: relative; overflow: hidden; border: 0; border-radius: 0; background: transparent; }
.product-gallery__image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 0; box-sizing: border-box; }
.product-gallery__arrow { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 10px; transform: translateY(-50%); border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #161616; cursor: pointer; box-shadow: 0 2px 8px #0000000d; }
.product-gallery__arrow--previous { left: 14px; }
.product-gallery__arrow--next { right: 14px; }
.product-gallery__arrow svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.product-gallery__arrow:hover { background: #161616; border-color: #161616; color: #fff; }
.product-gallery__counter { position: absolute; right: 16px; bottom: 14px; padding: 5px 10px; border-radius: 20px; background: #ffffffeb; color: #444; font: 12px/1.5 sans-serif; }
.product-gallery__thumbnails { display: flex; gap: 10px; overflow-x: auto; max-width: 100%; padding: 12px 2px 6px; scrollbar-width: thin; }
.product-gallery__thumbnail { flex: 0 0 76px; width: 76px; height: 76px; padding: 4px; overflow: hidden; border: 1px solid #ddd; border-radius: 10px; background: #f7f7f5; cursor: pointer; }
.product-gallery__thumbnail[aria-pressed="true"] { border: 2px solid #161616; padding: 3px; }
.product-gallery__thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery button:focus-visible { outline: 2px solid #161616; outline-offset: 3px; }
@media (max-width: 575px) {
  .product-gallery__thumbnail { flex-basis: 64px; width: 64px; height: 64px; }
  .product-gallery__arrow--previous { left: 10px; }
  .product-gallery__arrow--next { right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .product-gallery__thumbnails { scroll-behavior: auto; } }
