/* Prism Vitrine — product-only identity
   Obsidian / glass / lime / sky. Grid areas + glass buy panel + container queries.
   Independent of Specimen Stage (ss-*) right-gallery / bento / buy-dock. */

.page-product {
  --pv-ink: #e8eef5;
  --pv-mute: rgba(232, 238, 245, 0.62);
  --pv-deep: #0d1117;
  --pv-panel: rgba(22, 27, 34, 0.72);
  --pv-glass: rgba(255, 255, 255, 0.06);
  --pv-glass-2: rgba(255, 255, 255, 0.12);
  --pv-line: rgba(232, 238, 245, 0.14);
  --pv-lime: #c8f731;
  --pv-lime-dim: rgba(200, 247, 49, 0.18);
  --pv-sky: #7dd3fc;
  --pv-display: "Quicksand", system-ui, sans-serif;
  --pv-serif: "Libre Bodoni", Georgia, serif;
  --pv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pv-h1: clamp(1.65rem, 1.15rem + 2vw, 2.45rem);
  --pv-blur: blur(20px) saturate(1.35);
}

.page-product .a60-prism-stage {
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(200, 247, 49, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 20%, rgba(125, 211, 252, 0.12), transparent 50%),
    var(--pv-deep) !important;
  color: var(--pv-ink) !important;
  font-family: var(--pv-display);
}

.page-product .page-main {
  max-width: none;
  padding: 0 0 3rem;
  color: var(--pv-ink) !important;
}

.page-product .page-main h1,
.page-product .page-main h2,
.page-product .page-main h3,
.page-product .page-main h4,
.page-product .page-main p,
.page-product .page-main span,
.page-product .page-main a,
.page-product .page-main strong,
.page-product .page-main em,
.page-product .page-main label,
.page-product .page-main li,
.page-product .page-main button,
.page-product .page-main dt,
.page-product .page-main dd,
.page-product .page-main small,
.page-product .page-main time {
  color: inherit;
}

.pv-vitrine {
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.pv-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pv-lime);
}

.pv-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.75rem 0 1.15rem;
  font-size: 0.82rem;
  color: var(--pv-mute);
}

.pv-crumb a {
  color: var(--pv-sky) !important;
  text-decoration: none;
}

.pv-crumb a:hover {
  color: var(--pv-lime) !important;
}

.pv-crumb [aria-current="page"] {
  color: var(--pv-ink);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Named grid board */
.pv-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 22rem);
  grid-template-areas:
    "media buy"
    "detail buy";
  gap: 1.15rem 1.35rem;
  align-items: start;
}

.pv-media { grid-area: media; }
.pv-buy { grid-area: buy; }
.pv-detail { grid-area: detail; }

@media (max-width: 900px) {
  .pv-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "buy"
      "detail";
  }
}

/* Gallery */
.pv-gallery,
.a60x-pd-gallery {
  position: relative;
  min-height: clamp(18rem, 48vw, 32rem);
  border-radius: 1.5rem 0.5rem 1.5rem 0.5rem;
  overflow: hidden;
  background: #080b10;
  border: 1px solid var(--pv-line);
  container-type: inline-size;
  container-name: gallery;
}

.pv-gallery-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 17, 23, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.pv-figure {
  margin: 0;
  height: 100%;
  min-height: inherit;
}

.pv-figure img,
#vmPdImage {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.35s var(--pv-ease);
  will-change: transform;
}

#vmPdImage.is-zoomed {
  transform: scale(1.55);
}

.pv-placeholder {
  display: grid;
  place-items: center;
  min-height: inherit;
  font-size: 3rem;
  color: var(--pv-mute);
}

.pv-media-chips {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pv-chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.55);
  border: 1px solid var(--pv-line);
  backdrop-filter: var(--pv-blur);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pv-zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid var(--pv-line);
  backdrop-filter: blur(12px);
  font-size: 0.7rem;
  color: var(--pv-mute);
}

@container gallery (max-width: 28rem) {
  .pv-zoom-hint { display: none; }
}

/* Glass buy panel */
.pv-buy {
  position: relative;
}

@media (min-width: 901px) {
  .pv-buy {
    position: sticky;
    top: calc(var(--island-h, 64px) + 0.85rem);
  }
}

.pv-buy-glass {
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 1.35rem 0.55rem 1.35rem 0.55rem;
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  backdrop-filter: var(--pv-blur);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pv-aisle {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pv-sky);
}

.pv-buy-glass h1 {
  margin: 0 0 0.35rem;
  font-size: var(--pv-h1);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pv-sku {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pv-mute);
}

.pv-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
}

.pv-rating strong {
  color: var(--pv-lime);
  font-size: 1.1rem;
}

.pv-rating span {
  color: var(--pv-lime);
  letter-spacing: 0.05em;
}

.pv-rating em {
  font-style: normal;
  color: var(--pv-mute);
}

.pv-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: var(--pv-glass);
  border: 1px solid var(--pv-line);
}

.pv-price-block span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-mute);
}

.pv-price-block strong {
  font-family: var(--pv-serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--pv-lime);
}

.pv-buy-form {
  display: grid;
  gap: 1rem;
}

.pv-variant {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.45rem;
}

.pv-variant legend {
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-mute);
}

.pv-variant-opt {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--pv-line);
  background: var(--pv-glass);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--pv-ease);
}

.pv-variant-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pv-variant-opt span {
  font-weight: 700;
  font-size: 0.92rem;
}

.pv-variant-opt em {
  grid-column: 1;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--pv-mute);
}

.pv-variant-opt.is-on,
.pv-variant-opt:has(input:checked) {
  border-color: var(--pv-lime);
  background: var(--pv-lime-dim);
  box-shadow: 0 0 0 1px rgba(200, 247, 49, 0.25);
}

.pv-variant-opt[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pv-sizes-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-mute);
}

.pv-size-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.pv-size {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.55rem 0.25rem;
  border-radius: 0.7rem;
  border: 1.5px solid var(--pv-line);
  background: var(--pv-glass);
  color: var(--pv-ink);
  font-family: var(--pv-display);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--pv-ease);
  animation: pv-rise 0.4s var(--pv-ease) both;
  animation-delay: calc(var(--si, 0) * 0.04s);
}

.pv-size strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.pv-size em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--pv-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pv-size:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.5);
}

.pv-size.is-on {
  background: var(--pv-lime);
  border-color: var(--pv-lime);
  color: var(--pv-deep);
}

.pv-size.is-on em {
  color: rgba(13, 17, 23, 0.65);
}

.pv-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pv-qty label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-mute);
}

.pv-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--pv-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--pv-glass);
}

.pv-step {
  appearance: none;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  background: transparent;
  color: var(--pv-ink);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pv-step:hover {
  background: var(--pv-lime);
  color: var(--pv-deep);
}

.pv-stepper input {
  width: 2.6rem;
  height: 2.35rem;
  border: 0 !important;
  border-left: 1px solid var(--pv-line) !important;
  border-right: 1px solid var(--pv-line) !important;
  background: transparent !important;
  color: var(--pv-ink) !important;
  font-family: var(--pv-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-align: center;
  -moz-appearance: textfield;
}

.pv-stepper input::-webkit-outer-spin-button,
.pv-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.pv-stepper input.is-pop {
  animation: pv-pop 0.35s var(--pv-ease);
}

.pv-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--pv-line);
}

.pv-line span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pv-mute);
}

.pv-line strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pv-sky);
  font-variant-numeric: tabular-nums;
}

.pv-line strong.is-tick {
  animation: pv-pop 0.4s var(--pv-ease);
}

.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--pv-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--pv-ease), background 0.25s, box-shadow 0.25s;
}

.pv-btn-fill {
  width: 100%;
  background: var(--pv-lime);
  color: var(--pv-deep) !important;
  box-shadow: 0 12px 32px rgba(200, 247, 49, 0.28);
}

.pv-btn-fill:hover {
  transform: translateY(-2px);
  background: #d8ff5c;
}

.pv-btn-line {
  background: transparent;
  border-color: var(--pv-line);
  color: var(--pv-ink) !important;
}

.pv-btn-line:hover {
  border-color: var(--pv-sky);
  color: var(--pv-sky) !important;
}

.pv-add {
  margin-top: 0.15rem;
}

.pv-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pv-trust li {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--pv-glass);
  border: 1px solid var(--pv-line);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pv-mute);
}

/* Detail tabs */
.pv-detail {
  container-type: inline-size;
  container-name: detail;
}

.pv-tabs,
.a60x-pd-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  backdrop-filter: var(--pv-blur);
}

.pv-tabs button {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 2.5rem;
  background: transparent;
  color: var(--pv-mute);
  font-family: var(--pv-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.25s;
}

.pv-tabs button.is-active {
  color: var(--pv-deep);
}

.pv-tab-glider,
.a60x-pd-tab-glider {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: calc((100% - 0.7rem - 0.5rem) / 3);
  height: calc(100% - 0.7rem);
  border-radius: 999px;
  background: var(--pv-lime);
  transition: transform 0.35s var(--pv-ease);
  z-index: 0;
}

.pv-tabs[data-active="specs"] .pv-tab-glider,
.a60x-pd-tabs[data-active="specs"] .a60x-pd-tab-glider {
  transform: translateX(calc(100% + 0.25rem));
}

.pv-tabs[data-active="notes"] .pv-tab-glider,
.a60x-pd-tabs[data-active="notes"] .a60x-pd-tab-glider {
  transform: translateX(calc(200% + 0.5rem));
}

.pv-panel,
.a60x-pd-panel {
  display: none;
  animation: pv-rise 0.4s var(--pv-ease) both;
}

.pv-panel.is-active,
.a60x-pd-panel.is-active {
  display: grid;
  gap: 0.75rem;
}

.pv-panel[hidden] {
  display: none !important;
}

.pv-glass-card {
  padding: 1.15rem 1.2rem;
  border-radius: 1.1rem;
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  backdrop-filter: var(--pv-blur);
}

.pv-glass-card h2,
.pv-panel-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.pv-glass-card p {
  margin: 0;
  color: var(--pv-mute);
  line-height: 1.55;
}

.pv-review-score {
  margin-bottom: 0.45rem !important;
  color: var(--pv-ink) !important;
}

.pv-review-score strong {
  color: var(--pv-lime);
  font-size: 1.25rem;
}

.pv-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0;
}

@container detail (max-width: 28rem) {
  .pv-spec-grid {
    grid-template-columns: 1fr;
  }
}

.pv-spec-grid > div {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  backdrop-filter: blur(12px);
}

.pv-spec-wide {
  grid-column: 1 / -1;
}

.pv-spec-grid dt {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pv-mute);
}

.pv-spec-grid dd {
  margin: 0;
  font-weight: 700;
}

.pv-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.pv-notes-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
}

.pv-notes-list strong {
  font-size: 0.95rem;
}

.pv-notes-list span {
  font-size: 0.85rem;
  color: var(--pv-mute);
}

/* Related */
.pv-related {
  margin-top: 2.25rem;
}

.pv-related > header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pv-related h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pv-related > header a {
  color: var(--pv-lime) !important;
  font-weight: 700;
  text-decoration: none;
}

.pv-related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12rem, 15rem);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.pv-rel {
  scroll-snap-align: start;
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  backdrop-filter: blur(14px);
  animation: pv-rise 0.45s var(--pv-ease) both;
  animation-delay: calc(var(--rel-i, 0) * 0.05s);
  transition: transform 0.3s var(--pv-ease), border-color 0.3s;
}

.pv-rel:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 247, 49, 0.4);
}

.pv-rel-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #080b10;
  overflow: hidden;
}

.pv-rel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--pv-ease);
}

.pv-rel:hover .pv-rel-media img {
  transform: scale(1.06);
}

.pv-rel-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--pv-lime);
  color: var(--pv-deep);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pv-rel-body {
  padding: 0.85rem 0.9rem 1rem;
}

.pv-rel-body > span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pv-sky);
}

.pv-rel-body h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.pv-rel-body h3 a {
  color: inherit !important;
  text-decoration: none;
}

.pv-rel-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.pv-rel-foot strong {
  color: var(--pv-lime);
}

.pv-rel-foot em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--pv-mute);
}

/* 404 */
.pv-miss {
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}

.pv-miss-card {
  max-width: 28rem;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  border-radius: 1.35rem;
  backdrop-filter: var(--pv-blur);
}

.pv-miss-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--pv-lime-dim);
  color: var(--pv-lime);
  font-size: 1.5rem;
  font-weight: 700;
}

.pv-miss-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 700;
}

.pv-miss-card p {
  margin: 0 0 1.25rem;
  color: var(--pv-mute);
  line-height: 1.5;
}

.pv-miss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.pv-miss-actions .pv-btn {
  width: auto;
  min-width: 8rem;
}

@keyframes pv-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pv-pop {
  40% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .pv-size,
  .pv-rel,
  .pv-panel,
  .pv-stepper input.is-pop,
  .pv-line strong.is-tick {
    animation: none !important;
  }
}
