/* V2.2: local PREPROD gallery; no media transformation. */
.product-detail { align-items: start; }
.product-gallery { align-self: start; min-width: 0; height: auto; }
.product-gallery__main {
  width: 100%; height: clamp(320px, 40vw, 550px); min-height: 0;
  box-sizing: border-box; padding: 12px;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumbs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px; overflow: visible; padding: 12px 0 0;
  scroll-snap-type: none;
}
.product-gallery__thumbs .gallery-thumb {
  width: 100%; height: auto; min-width: 0; aspect-ratio: 1;
  box-sizing: border-box; padding: 4px; flex: none;
}
.product-gallery__thumbs .gallery-thumb img {
  width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain;
}
.product-gallery__thumbs .gallery-thumb.is-active { box-shadow: inset 0 0 0 1px var(--gold); }
@media (max-width: 1200px) and (min-width: 901px) {
  .product-gallery__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .product-gallery__main { height: clamp(300px, 75vw, 460px); }
  .product-gallery__thumbs { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .product-gallery__thumbs .gallery-thumb { max-height: 110px; }
}
@media (max-width: 480px) {
  .product-gallery__main { height: clamp(290px, 90vw, 390px); }
  .product-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}
