/* Product page (stone-*.html) */
.crumbs { display: flex; gap: 10px; padding-top: calc(var(--header-h) + 20px); padding-bottom: 18px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.crumbs a:hover { color: var(--ivory); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pdp-media { position: relative; }
.pdp-stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; background: var(--midnight-2); }
.pdp-gem { position: absolute; inset: 6% 4% 14%; z-index: 2; }
.pdp-gem .pdp-fallback { position: absolute; inset: 22%; width: 56%; height: 56%; transition: opacity .6s; }
.pdp-gem.has-3d .pdp-fallback { opacity: 0; }
.pdp-controls { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pdp-controls .chip { background: rgba(10,18,13,.6); backdrop-filter: blur(8px); }
.pdp-light { display: flex; gap: 6px; }
.pdp-hint { position: absolute; top: calc(var(--header-h) + 16px); left: 24px; z-index: 3; display: flex; gap: 10px; align-items: center; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }
.pdp-hint svg { width: 16px; height: 16px; }
.pdp-info { padding: clamp(40px, 5vw, 80px) clamp(24px, 4vw, 64px); border-left: 1px solid var(--line); background: var(--bg-raised); }
.pdp-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp-origin { font-family: var(--f-editorial); font-style: italic; font-size: 1.35rem; color: var(--text-soft); margin-top: 6px !important; }
.pdp-price { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .08em; color: var(--gold-lt); }
.grades { border: 0; display: grid; gap: 10px; }
.grade-opt { position: relative; cursor: pointer; }
.grade-opt input { position: absolute; opacity: 0; }
.grade-opt span { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 18px; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.grade-opt strong { font-family: var(--f-display); font-weight: 400; letter-spacing: .14em; }
.grade-opt small { grid-column: 1; color: var(--text-dim); font-size: .8rem; }
.grade-opt em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--gold-lt); font-size: .85rem; letter-spacing: .06em; }
.grade-opt input:checked + span { border-color: var(--gold); background: rgba(201,168,76,.07); }
.grade-opt input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.pdp-actions { display: grid; gap: 14px; }
.pdp-actions [data-pdp-wish][aria-pressed="true"] svg { fill: var(--gold); }
.pdp-delivery { list-style: none; display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.pdp-delivery li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; font-size: .9rem; color: var(--text-soft); }
.pdp-delivery svg { width: 20px; height: 20px; color: var(--gold); }

.spec-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spec { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--f-display); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.spec dd { color: var(--text); }

.coord-plot { width: 100%; height: auto; }
.coord-plot .grid line { stroke: rgba(201,168,76,.18); stroke-width: .5; }
.coord-plot .grid text { fill: rgba(250,247,240,.62); font: 300 9px var(--f-body); letter-spacing: .1em; }
.coord-plot .pin { fill: var(--gold); }
.coord-plot .pulse { fill: none; stroke: var(--gold); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: plotpulse 2.6s ease-out infinite; }
.coord-plot .lead-line { stroke: var(--gold); stroke-width: .75; }
.coord-plot .pin-label { fill: var(--ivory); font: 400 13px var(--f-display); letter-spacing: .2em; text-transform: uppercase; }
@keyframes plotpulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.story .story-block { margin-bottom: clamp(56px, 8vw, 96px); }
.story .story-block h3 { margin: 16px 0 24px; }
.story .story-block p { color: var(--text-soft); font-size: 1.05rem; }
.story .story-block p + p { margin-top: 1em; }
.story .story-block:first-child p:first-of-type::first-letter { float: left; font-family: var(--f-display); font-size: 4.2em; line-height: .82; padding: 6px 12px 0 0; color: var(--gold); }
.pull { font-family: var(--f-editorial); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.3; color: var(--ivory); text-align: center; padding: 48px 0; margin: 0 0 48px; border-block: 1px solid var(--line); }

.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tabs [role="tab"] { min-height: 48px; padding: 0 20px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s; }
.tabs [role="tab"][aria-selected="true"] { color: var(--gold-lt); border-color: var(--gold); }
.tabs [role="tabpanel"] p { color: var(--text-soft); }
.tabs [role="tabpanel"] p + p { margin-top: 1em; }
.tab-kicker { font-family: var(--f-editorial); font-style: italic; font-size: 1.4rem; color: var(--text) !important; }

.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rel-card { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow: hidden; gap: 6px; padding-bottom: 20px; border: 1px solid var(--line); background: var(--bg-raised); transition: border-color .5s, transform .5s var(--ease-lux); }
.rel-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.rel-card .rel-visual { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, var(--pc-tint), transparent 70%), var(--midnight-2); margin-bottom: 12px; }
.rel-card .rel-visual svg { width: 42%; height: 42%; }
.rel-card strong, .rel-card small, .rel-card .pc-price { padding-inline: 20px; }
.rel-card strong { font-family: var(--f-display); font-weight: 400; letter-spacing: .1em; }
.rel-card small { font-family: var(--f-editorial); font-style: italic; font-size: 1rem; color: var(--text-dim); }

@media (max-width: 1000px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-stage { position: relative; height: 72vh; min-height: 420px; }
  .pdp-info { border-left: 0; }
  .pdp-sticky { position: static; }
  .spec-sheet { grid-template-columns: 1fr 1fr; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .spec-sheet { grid-template-columns: 1fr; } .pdp-controls { left: 12px; right: 12px; bottom: 12px; } .pdp-light .chip { padding: 0 10px; } }
.pdp-controls .chip.is-active, .pdp-controls .chip[aria-pressed="true"] { background: var(--gold); color: var(--midnight); border-color: var(--gold); }
.pdp-light { flex-wrap: wrap; }
@media (max-width: 560px) { .pdp-controls { right: 76px; } .pdp-hint { display: none; } }
.story ul.apps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 16px; }
.story ul.apps li { position: relative; padding-left: 18px; color: var(--text-soft); }
.story ul.apps li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .7em; top: .35em; }
@media (max-width: 560px) { .story ul.apps { grid-template-columns: 1fr; } }
.grade-opt input:disabled + span { opacity: .5; cursor: not-allowed; }
.pdp-info h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.4rem); overflow-wrap: anywhere; hyphens: auto; }
/* Related pieces: compact cards on phones (same as the shop grid) */
@media (max-width: 760px) {
  .rel-grid { gap: 12px; }
  .rel-grid .pc-body { padding: 14px 14px 16px; gap: 4px; }
  .rel-grid .pc-name { font-size: .85rem; }
  .rel-grid .pc-origin { font-size: .9rem; }
  .rel-grid .pc-spec { display: none; }
  .rel-grid .pc-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .rel-grid .pc-add { width: 100%; padding: 0 8px; letter-spacing: .2em; }
  .rel-grid .pc-badge { top: 8px; left: 8px; padding: 4px 8px; font-size: .55rem; }
  .rel-grid .pc-price { white-space: normal; font-size: .85rem; }
}
@media (min-width: 761px) and (max-width: 1200px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rel-card { gap: 4px; padding-bottom: 16px; }
  .rel-card .rel-visual { margin-bottom: 8px; }
  .rel-card strong, .rel-card small, .rel-card .pc-price { padding-inline: 14px; }
  .rel-card strong { font-size: .85rem; overflow-wrap: anywhere; }
  .rel-card small { font-size: .9rem; line-height: 1.35; }
  .rel-card .pc-price { font-size: .85rem; white-space: normal; }
}
/* Mobile buy bar: keep the name and price readable and the button whole */
@media (max-width: 900px) {
  .sticky-buy .li-name { font-size: .8rem; }
  .sticky-buy .pc-price { font-size: .8rem; white-space: normal; }
  .sticky-buy .btn { letter-spacing: .2em; padding-inline: 18px; }
}

/* Disclosure: shown beside the price, same type size as the name of the stone */
.disclosure { border: 1px solid var(--line-strong); background: rgba(201,168,76,.04); padding: 18px 20px; display: grid; gap: 12px; }
.disclosure > .label { color: var(--gold); margin: 0; }
.disclosure dl { display: grid; gap: 10px; margin: 0; }
.disclosure dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; font-size: .9rem; line-height: 1.5; }
.disclosure dt { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); padding-top: 3px; }
.disclosure dd { margin: 0; color: var(--text-soft); }
.disclosure strong { color: var(--ivory); font-weight: 400; }
.disclosure a { color: var(--gold-lt); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .disclosure dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* Conversation buying paths */
.pdp-inquire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pdp-inquire .btn { gap: 8px; letter-spacing: .18em; }
.pdp-inquire svg { width: 15px; height: 15px; }
.pdp-inquire [aria-pressed="true"] { border-color: var(--gold); color: var(--gold-lt); }

/* Photo and video gallery */
[data-gallery-slot]:not(:empty) { padding: 16px; border-top: 1px solid var(--line); }
.gallery { display: grid; gap: 10px; }
.g-main { position: relative; aspect-ratio: 1; background: var(--midnight-2); display: grid; place-items: center; overflow: hidden; }
.g-main img, .g-main video { width: 100%; height: 100%; object-fit: contain; }
.g-zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(10,18,13,.7); }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.g-thumb { flex: 0 0 72px; height: 72px; border: 1px solid var(--line); background: var(--midnight-2); padding: 0; cursor: pointer; display: grid; place-items: center; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.is-on { border-color: var(--gold); }
.g-thumb svg { width: 28px; height: 28px; color: var(--gold); }
.pdp-gem.has-gallery { position: absolute; inset: 0; display: grid; align-content: center; padding: clamp(16px, 3vw, 40px); }
.pdp-gem.has-gallery .g-main { max-height: 72vh; }
.zoom-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,10,7,.96); color: var(--text); }
.zoom-stage { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; }
.zoom-stage img { max-width: 100%; max-height: 100%; cursor: zoom-in; }
.zoom-stage.is-zoomed { place-items: start; }
.zoom-stage.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.zoom-close { position: fixed; top: 16px; right: 16px; z-index: 2; background: rgba(10,18,13,.8); }
.zoom-hint { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); }
.lot-desc:not(:empty) { max-width: 68ch; margin-bottom: 28px; }
