/* Product page: gallery, options, tabs and sticky buy bar. */
/* ============ product page ============ */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); padding: 12px 0 80px; align-items: start; }
.gallery { position: sticky; top: calc(var(--sticky-top, var(--header-h)) + 16px); }
.stage { position: relative; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--c) 28%, var(--surface-2)), var(--surface) 80%); border: 1px solid var(--line); overflow: hidden; perspective: 900px; cursor: grab; }
#stage-view { position: absolute; inset: 0; display: grid; place-items: center; }
.stage .gem-svg { width: 64%; height: auto; transition: transform .2s ease-out; transform-style: preserve-3d; }
.stage .stage-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); white-space: nowrap; }
.stage .light { position: absolute; inset: 0; background: radial-gradient(200px 200px at var(--lx, 30%) var(--ly, 30%), rgba(255,255,255,.18), transparent 70%); pointer-events: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { width: 76px; height: 76px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: border-color .2s; font-size: 11px; color: var(--muted); }
.thumb .gem-svg { width: 52px; height: 52px; }
.thumb[aria-selected="true"] { border-color: var(--gold); }
.pdp-info h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 10px 0 10px; font-weight: 500; letter-spacing: -.015em; }
.pdp-rating { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pdp-price { display: flex; gap: 12px; align-items: baseline; margin: 20px 0 4px; flex-wrap: wrap; }
.pdp-price b { font-size: 34px; font-family: var(--font-display); font-weight: 600; }
.pdp-price s { color: var(--faint); }
.pdp-price .off { color: var(--ok); font-weight: 700; font-size: 14px; }
.per-carat { font-size: 13px; color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin: 24px 0; border: 1px solid var(--line); }
.spec-grid div { background: var(--surface); padding: 14px 16px; }
.spec-grid span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.spec-grid b { font-size: 15px; font-weight: 600; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; margin-left: 6px; vertical-align: middle; }
.unit-toggle button { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--muted); }
.unit-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.opt-block { margin: 22px 0; }
.opt-block > label, .opt-title { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; margin-bottom: 10px; }
.opt-title a { color: var(--gold); font-weight: 500; font-size: 13px; }
.metal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.metal { position: relative; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); text-align: left; transition: all .2s; display: grid; gap: 2px; }
.metal input { position: absolute; opacity: 0; }
.metal span { font-size: 14px; font-weight: 600; padding-right: 26px; }
.metal small { color: var(--muted); font-size: 12.5px; }
.metal:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.metal:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.metal i { position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.toggle-row b { font-size: 14px; display: block; }
.toggle-row small { color: var(--muted); font-size: 12.5px; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch:checked { background: var(--gold); }
.switch:checked::after { transform: translateX(18px); }
.buy-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; margin-top: 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 48px; }
.qty button { width: 40px; height: 100%; font-size: 18px; color: var(--muted); }
.qty button:hover { color: var(--gold); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.delivery { margin-top: 18px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); }
.delivery .tool-row .input { height: 42px; }
.delivery-out { font-size: 13.5px; margin-top: 10px; color: var(--muted); }
.delivery-out b { color: var(--ok); }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.assure div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.assure b { display: block; color: var(--text); font-size: 13.5px; }
.pdp-tabs { margin-top: 30px; border-top: 1px solid var(--line); }
.pdp-tabs .tabs { border: 0; padding: 14px 0; }
.pdp-tab-body { font-size: 15px; color: var(--muted); }
.pdp-tab-body p + p { margin-top: 10px; }
.cert-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.cert-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 13.5px; }
.cert-card dt { color: var(--muted); }
.cert-card dd { margin: 0; font-weight: 600; }
.cert-seal { width: 84px; height: 84px; border-radius: 50%; border: 2px dashed var(--gold); display: grid; place-items: center; text-align: center; font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.wear-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wear-guide div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wear-guide span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.wear-guide b { color: var(--text); font-size: 14px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: none; align-items: center; gap: 12px; transform: translateY(100%); transition: transform .3s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy b { font-size: 18px; }

