/* Station 27 product page — full-screen photo with zoom (js/photo-zoom.js).
   The viewer is dark in both site themes, like most photo viewers.
   z-index 9500: above the buy bar (150), cart (200–210) and Fit Finder (9000). */

/* Round zoom button, bottom-right of the main photo */
.product-detail__image-wrap {
  position: relative;
}
.photo-zoom__btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 8, 13, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.photo-zoom__btn svg {
  width: 22px;
  height: 22px;
}
.photo-zoom__btn:focus-visible,
.photo-zoom__close:focus-visible,
.photo-zoom__nav:focus-visible {
  outline: 2px solid var(--aurora, #00b4ff);
  outline-offset: 2px;
}
.product-gallery__track > .product-detail__image {
  cursor: zoom-in;
}

/* The viewer */
.photo-zoom {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  flex-direction: column;
  background: var(--chrome-bg, #06080d);
  color: #fff;
  font-family: var(--font-body, system-ui, sans-serif);
}
.photo-zoom.is-open {
  display: flex;
}
.photo-zoom__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  font-size: 0.875rem;
}
.photo-zoom__count {
  min-width: 3em;
  font-variant-numeric: tabular-nums;
}
.photo-zoom__hint {
  font-size: 0.8125rem;
  opacity: 0.7;
  text-align: center;
}
.photo-zoom__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
}
.photo-zoom__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* The page handles pinch and drag itself */
  touch-action: none;
}
.photo-zoom__img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  will-change: transform;
}
.photo-zoom.is-zoomed .photo-zoom__img {
  cursor: zoom-out;
}
.photo-zoom__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.photo-zoom__prev {
  left: 16px;
}
.photo-zoom__next {
  right: 16px;
}
.photo-zoom.is-zoomed .photo-zoom__nav {
  display: none;
}
.photo-zoom__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 max(18px, env(safe-area-inset-bottom, 0px));
}
.photo-zoom__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.photo-zoom__dot.is-on {
  background: var(--aurora, #00b4ff);
}
/* Phones swipe between photos; the arrows would cover the photo */
@media (max-width: 700px) {
  .photo-zoom__nav {
    display: none;
  }
}
