/* Anahata v2 — PDP gallery. Figma 1473:915: hero 402x401 + thumbnail strip (1502:3302), strip moved below the photo (designer review 2026-09-28). */

.pdp-gallery__hero {
  position: relative;
  aspect-ratio: 402 / 401;
  background: var(--a-photo-ground);
  border-bottom: 1px solid var(--a-rose);
  overflow: hidden;
}

/* the photos: a swipeable scroll-snap row, one photo per view */
.pdp-gallery__track {
  position: relative;   /* offsetParent for the slides (assets/pdp.js) */
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.pdp-gallery__track::-webkit-scrollbar {
  display: none;
}

.pdp-gallery__track:focus-visible {
  outline: 2px solid var(--a-ink-pure);
  outline-offset: -2px;
}

.pdp-gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.pdp-gallery__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* gift card: the drawn face, centred on the hero ground */
.pdp-gallery__giftcard {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--a-space-6);
}

.pdp-gallery__giftcard .giftcard-face {
  max-width: 480px;
  box-shadow: var(--a-shadow-card);
}

/* thumbnails under the photo (designer review 2026-09-28 — they used to
   float over its lower edge and hide part of it), centred */
.pdp-gallery__thumbs {
  position: relative;   /* offsetParent for the thumbs (assets/pdp.js) */
  display: flex;
  justify-content: safe center;
  gap: var(--a-space-2);
  margin: 0;
  padding: var(--a-space-3) var(--a-page-pad) 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.pdp-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.pdp-gallery__thumb-item {
  flex: 0 0 auto;
}

.pdp-gallery__thumb {
  display: block;
  width: 54.239px;
  height: 54.239px;
  border: 1px solid transparent;
  padding: 0;
  border-radius: var(--a-radius-sm);
  background: var(--a-photo-ground);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.15s ease;
}

.pdp-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--a-tan);
}

@media (prefers-reduced-motion: reduce) {
  .pdp-gallery__track {
    scroll-behavior: auto;
  }
}

.pdp-gallery__thumb:focus-visible {
  outline: 2px solid var(--a-ink-pure);
  outline-offset: 1px;
  opacity: 1;
}

.pdp-gallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
