/* ==================================================================
   PRODUCT DETAIL: product.html?id=…
   ================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(24px, 4vw, 64px); padding-top: 18px; align-items: start; }

/* gallery */
.pg { display: grid; grid-template-columns: 76px 1fr; gap: 16px; position: sticky; top: 84px; }
.pg.one { grid-template-columns: 1fr; }
.pg.one .pg-thumbs { display: none; }
.pg-thumbs { display: flex; flex-direction: column; gap: 10px; }
.pg-thumbs button {
  width: 76px; height: 96px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); cursor: pointer; padding: 6px;
  display: grid; place-items: center; opacity: .6; transition: .25s var(--ease); overflow: hidden; flex: 0 0 auto;
}
.pg-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pg-thumbs button.sel, .pg-thumbs button:hover { opacity: 1; border-color: var(--ink); }
.pg-stage {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: calc(100vh - 120px); width: 100%;
  background: radial-gradient(110% 80% at 50% 0%, #fff, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, var(--tint, #f3ece2), #e9e0d3);
  border: 1px solid #fff; box-shadow: 0 1px 0 #fff inset, 0 40px 80px -40px rgba(40, 28, 12, .4);
}
.pg-track { display: flex; height: 100%; transition: transform .6s var(--ease); }
.pg-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.pg-slide img { height: 88%; width: auto; max-width: 90%; object-fit: contain; filter: drop-shadow(0 30px 24px rgba(30, 20, 10, .2)); transition: transform .35s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pg-slide.jewel img { height: 64%; }
.pg-slide.photo { background: #efe5d7; }
.pg-slide.photo img { height: 100%; max-width: none; width: 100%; object-fit: cover; object-position: 50% 15%; filter: none; }
.pg-slide.zoom img { transform: scale(2); }
.pg-slide.zoom { cursor: zoom-out; }
.pg-stage .nav.prev { left: 14px; } .pg-stage .nav.next { right: 14px; }
.pg-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: none; gap: 6px; padding: 7px 10px; border-radius: 999px; }
.pg-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .25; transition: .3s; }
.pg-dots i.on { opacity: 1; width: 18px; border-radius: 4px; }
.pg-label { position: absolute; top: 16px; left: 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* buy panel */
.buy { position: sticky; top: 84px; border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px); }
.buy .sku { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; font-weight: 600; margin-top: 14px; }
.buy h1 { font-size: clamp(36px, 3.6vw, 50px); margin: 6px 0 10px; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.buy .price { font-size: 20px; font-weight: 600; }
.buy .tax { font-size: 12px; color: var(--muted); }
.buy .blurb { margin: 14px 0 0; color: var(--ink-2); }
.origin-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.origin-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.row-lbl { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.row-lbl .lbl { margin: 0; }
.row-lbl button { background: none; border: 0; font-size: 12.5px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 22px; }
.stepper { display: inline-flex; align-items: center; height: 52px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.stepper button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; }
.size-err { color: #a3261d; font-size: 12.5px; margin-top: 8px; display: none; }
.size-err.show { display: block; }
.perks { display: grid; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.perks div { display: flex; gap: 10px; align-items: flex-start; }
.perks svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }

/* Prop 65 */
.p65 { margin-top: 16px; font-size: 12.5px; border-radius: 16px; border: 1px solid #e7d9b8; background: #fffaf0; padding: 10px 14px; }
.p65 summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.p65 summary::-webkit-details-marker { display: none; }
.p65 .tri { width: 18px; height: 16px; flex: 0 0 auto; }
.p65 p { margin-top: 8px; color: var(--ink-2); }

/* accordions */
.acc { margin-top: 22px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; font-weight: 400; transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 0 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 10px; }
.acc ul { padding-left: 18px; display: grid; gap: 4px; }
.acc dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.acc dt { color: var(--muted); }
.acc dd { font-weight: 500; }
.acc .fine { font-size: 12px; color: var(--muted); }

/* related */
.related { margin-top: clamp(60px, 8vw, 110px); }
.related .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; gap: 16px; }

/* size guide dialog */
dialog.sg { margin: auto; border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 24px)); background: transparent; }
dialog.sg::backdrop { background: rgba(23, 19, 15, .3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sg .in { padding: 28px; border-radius: var(--r-lg); background: var(--glass-strong); }
dialog.sg h2 { font-size: 30px; margin-bottom: 14px; }
dialog.sg table { width: 100%; border-collapse: collapse; font-size: 14px; }
dialog.sg th, dialog.sg td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
dialog.sg th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
dialog.sg .close { position: absolute; top: 16px; right: 16px; }
dialog.sg p { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* mobile sticky bar */
.sticky-buy {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 80; display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy b { font-family: var(--serif); font-size: 18px; font-weight: 600; display: block; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy span { font-size: 13px; }
.sticky-buy .txt { flex: 1; min-width: 0; }
.sticky-buy .btn { height: 46px; }

.notfound { text-align: center; padding: 120px 0; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; padding-top: 6px; }
  .pg { position: static; grid-template-columns: 1fr; }
  .pg-thumbs { display: none; }
  .pg-stage { aspect-ratio: 4 / 5; max-height: none; border-radius: 26px; }
  .pg-stage .nav { display: none; }
  .pg-dots { display: flex; }
  .pg-slide { cursor: default; }
  .buy { position: static; padding: 22px 18px; }
  .sticky-buy { display: flex; }
  .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pg-note { margin: 10px 4px 0; }
.pg { align-content: start; }
.pg > .pg-note { grid-column: 2; }
.pg.one > .pg-note { grid-column: 1; }
@media (max-width: 900px) { .pg > .pg-note { grid-column: 1; } }

/* white studio views: plain white stage so the background disappears */
.pg-slide.white { background: #fff; }
.pg-slide.white img { filter: none; }

/* real photos: show the whole photo (no crop), on a soft blurred copy of itself */
.pg-slide.photo { position: relative; background: #2a2420; }
.pg-slide.photo::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover no-repeat; filter: blur(28px) brightness(.85) saturate(1.1); }
.pg-slide.photo { overflow: hidden; }
.pg-slide.photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 50%; }
.pg-slide.photo.zoom img { object-fit: cover; }
