/* The puffy initial pendant shop page. Same look as the main site: black, Fraunces, a touch of gold. */
:root {
  --bg: #000;
  --panel: #0f0f0f;
  --raise: #1a1a1a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.68);
  --brand: #c73a52;
  --brand-hover: #d4475f;
  --gold: #d9b98a;
  --display: Fraunces, ui-serif, Georgia, serif;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

.top { display: flex; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 10px; border-bottom: 1px solid var(--line); }
.logo { width: 150px; height: auto; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.hero { display: grid; gap: 24px; padding: 24px 0 8px; }
.hero-media { min-width: 0; }
.reel { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; background: #fff; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; }
.slide video, .slide img { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; }
/* iPhone's big play button when autoplay is refused: hidden, the photo shows instead. */
.slide video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.slide video::-webkit-media-controls { display: none !important; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: width 0.3s var(--ease), background 0.3s; }
.dots button[aria-current="true"] { width: 22px; background: var(--gold); }
.reel-note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.kicker { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { font: 500 clamp(34px, 7vw, 52px)/1.05 var(--display); margin: 6px 0 10px; }
.price { font: 600 26px var(--display); margin: 0 0 12px; }
.price span { font: 400 14px var(--sans); color: var(--muted); }
.lede { color: var(--muted); margin: 0 0 14px; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.facts li { padding-left: 18px; position: relative; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.facts strong { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease), background 0.2s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.btn-outline:disabled { opacity: 0.4; }
.btn-wide { width: 100%; }


.order { padding: 36px 0 24px; }
.order h2 { font: 500 32px/1.1 var(--display); margin: 0 0 18px; }
.step { margin-bottom: 22px; }
.label { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
/* Seven to a row (nine on desktop), with the last, shorter row centred. */
.letters { --per-row: 7; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.letter { flex: 0 0 calc((100% - (var(--per-row) - 1) * 6px) / var(--per-row)); }
.letter { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 18px var(--display); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.letter.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.metals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metal { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 500 15px var(--sans); cursor: pointer; }
.metal.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.size-price { color: var(--muted, #9a9a9a); font-weight: 400; }
.swatch { width: 18px; height: 18px; border-radius: 50%; }
.swatch.yellow { background: linear-gradient(135deg, #f7e1a0, #c99a3c); }
.swatch.white { background: linear-gradient(135deg, #ffffff, #b9bcc2); }

/* Photo and name side by side; the chain option and price run full width below. */
.preview { display: grid; grid-template-columns: 88px 1fr; column-gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 22px; }
.preview-pic { grid-row: span 2; position: relative; width: 88px; height: 88px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; }
.preview-pic img { width: 100%; height: 100%; object-fit: cover; }
.preview-pic .tag { display: none; position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.62); color: #fff; font: 500 9px/1.4 var(--sans); letter-spacing: 0.02em; }
.preview-pic.drawn .tag { display: block; }
.preview-pic .enlarge { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; }
.zoom { padding: 0; border: 0; background: transparent; max-width: min(92vw, 640px); width: 100%; }
.zoom::backdrop { background: rgba(0, 0, 0, 0.82); }
.zoom figure { margin: 0; }
.zoom img { width: 100%; height: auto; border-radius: 16px; background: #fff; }
.zoom figcaption { margin-top: 10px; text-align: center; color: #fff; font: 500 18px var(--display); }
.zoom-close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font: 28px/1 var(--sans); cursor: pointer; }
.preview-body { display: contents; }
.preview-name, .preview-shown { grid-column: 2; }
.preview:has(.preview-pic[hidden]) .preview-name, .preview:has(.preview-pic[hidden]) .preview-shown { grid-column: 1 / -1; }
.chain, .chain-metals, .preview-foot { grid-column: 1 / -1; }
.preview-foot .btn { white-space: nowrap; }
.preview-name { margin: 0; align-self: end; font: 500 20px/1.2 var(--display); }
.preview-shown { align-self: start; margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.chain { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); cursor: pointer; font-size: 13px; color: var(--muted); line-height: 1.45; }
.chain:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.chain input { accent-color: var(--brand); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.chain img { flex: none; width: 64px; height: 64px; margin-left: auto; border-radius: 10px; object-fit: cover; }
.chain strong { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
.chain em { font-style: normal; color: var(--gold); margin-left: 4px; }
.chain-metals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.metal.small { min-height: 42px; font-size: 14px; gap: 8px; }
.metal.small .swatch { width: 14px; height: 14px; }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.preview-price { margin: 0; font: 600 20px var(--display); }
.preview-price span { font: 400 13px var(--sans); color: var(--muted); }
.bag-item strong { color: var(--text); }
.bag-item small { display: block; color: var(--muted); font-size: 13px; }

.bag { margin-bottom: 22px; }
.bag ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bag li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bag .amt { margin-left: auto; color: var(--muted); }
.bag li button { background: none; border: 0; color: var(--muted); font: 13px var(--sans); cursor: pointer; padding: 8px 0 8px 8px; }

.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.choice input { accent-color: var(--brand); margin-top: 4px; }
.choice span { color: var(--muted); font-size: 14px; }
.choice strong { display: block; color: var(--text); font-size: 15px; }
.field { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 16px var(--sans); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.delivery { margin: 12px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.delivery legend { padding: 0 6px; margin-left: -6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.delivery .field { margin-top: 10px; }
.delivery .field input { background: var(--raise); }
.delivery .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery-note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.summary-rows p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; color: var(--muted); }
.summary-rows .total { color: var(--text); font-weight: 600; font-size: 18px; margin: 10px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(199, 58, 82, 0.14); color: #ffb3c0; font-size: 14px; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 16px calc(env(safe-area-inset-bottom, 0px) + 24px); text-align: center; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-top: 40px; }
  .order { max-width: 640px; margin: 0 auto; }
  .letters { --per-row: 9; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
