/* ─────────────────────────────────────────────────────────────
   STYLES — black & gold
   ───────────────────────────────────────────────────────────── */
:root {
  --ink: #0D0D0D;
  --surface: #151412;
  --raised: #1C1A17;
  --line: #2C2821;
  --line-soft: #1F1D19;
  --gold: #C9A84C;
  --gold-hi: #E3C97E;
  --gold-lo: #7E6A30;
  --gold-wash: rgba(201, 168, 76, 0.08);
  --bone: #F2EDE3;
  --mute: #A39B8C;
  --faint: #6F695E;
  --danger: #E3806F;
  --ok: #86C39B;

  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --gutter: 32px;
  --top-h: 68px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.view:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }
.noscript { padding: 40px; text-align: center; }

.i { width: 22px; height: 22px; flex: none; }
.i-sm { width: 18px; height: 18px; }
.i-lg { width: 28px; height: 28px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ────────────────────────────────────────────────── */
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--bone);
  font-variation-settings: 'opsz' 60;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 96;
}
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; font-variation-settings: 'opsz' 72; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-variation-settings: 'opsz' 48; }
.h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.lede { color: var(--mute); font-size: 17px; line-height: 1.65; max-width: 46ch; }
.muted { color: var(--mute); }
.faint { color: var(--faint); }
.small { font-size: 13.5px; }
.gold { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }
.link { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-lo); }
.link:hover { text-decoration-color: var(--gold-hi); }
.prose p + p { margin-top: 10px; }
.prose p { color: var(--mute); max-width: 62ch; }
.prose strong { color: var(--bone); font-weight: 600; }

/* ── Buttons & fields ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 3px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-hi); }
.btn-ghost { border-color: var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.btn-danger { border-color: rgba(227, 128, 111, .45); color: var(--danger); }
.btn-danger:hover { background: rgba(227, 128, 111, .1); }
.btn-wa { background: #1FAF55; color: #06130A; }
.btn-wa:hover { background: #28c263; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; color: var(--bone);
  transition: color .18s, background-color .18s;
}
.icon-btn:hover { color: var(--gold-hi); background: var(--gold-wash); }
.count {
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--gold); color: var(--ink);
  font: 700 10.5px/17px var(--sans); text-align: center;
}
.count:empty { display: none; }

.field { display: block; }
.field + .field, .row + .field, .field + .row, .row + .row { margin-top: 16px; }
.label { display: block; font-size: 13.5px; color: var(--mute); margin-bottom: 6px; font-weight: 500; }
.label .optional { color: var(--faint); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  color: var(--bone); font-size: 16px; line-height: 1.4;
  transition: border-color .18s, box-shadow .18s;
}
.textarea { min-height: 90px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A39B8C' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13.5px; margin-top: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row > .field + .field { margin-top: 0; }

/* ── Announcement + top bar ──────────────────────────────── */
.announce {
  background: #000; border-bottom: 1px solid var(--line-soft);
  color: var(--gold-hi); text-align: center;
  font-size: 13px; padding: 8px 16px; letter-spacing: 0.01em;
}
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 13, 13, .9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--top-h); display: flex; align-items: center; gap: 28px;
}
.topnav { display: flex; gap: 22px; flex: 1; overflow: hidden; }
.topnav a { font-size: 14px; color: var(--mute); padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; transition: color .18s, border-color .18s; }
.topnav a:hover { color: var(--bone); }
.topnav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-search { position: relative; margin-right: 8px; }
.top-search input {
  width: 240px; height: 40px; padding: 0 40px 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  font-size: 14px; color: var(--bone); transition: border-color .18s, width .25s;
}
.top-search input:focus { outline: none; border-color: var(--gold-lo); width: 280px; }
.top-search input::placeholder { color: var(--faint); }
.top-search .icon-btn { position: absolute; right: 0; top: 0; width: 40px; height: 40px; color: var(--mute); }
.top-search input::-webkit-search-cancel-button { display: none; }

.only-mobile { display: none; }

/* ── Bottom tab bar (phones / installed app) ─────────────── */
.tabbar { display: none; }

/* ── Main ─────────────────────────────────────────────────── */
.view { flex: 1; padding-bottom: 72px; }
.boot { min-height: 60vh; display: grid; place-items: center; opacity: .35; }
.section { margin-top: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 14px; margin: 24px 0 8px; }
.back-link:hover { color: var(--bone); }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--faint); margin-bottom: 12px; flex-wrap: wrap; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--gold-hi); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  align-items: center; padding-top: 56px; padding-bottom: 48px;
}
.hero h1 { font-size: clamp(46px, 7.2vw, 104px); }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.arch {
  position: relative; justify-self: end; width: 100%; max-width: 420px;
  padding: 10px; border: 1px solid var(--gold-lo);
  border-radius: 999px 999px 0 0;
}
.arch-img {
  display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 0 0; background: var(--surface);
}
.arch-img img { width: 100%; height: 100%; object-fit: cover; }
.arch-empty { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 120px; color: var(--gold-lo); font-style: italic; }
.arch-caption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 4px 2px; font-size: 14px; }
.arch-caption .muted { font-size: 13px; }
.arch-caption strong { font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; gap: 14px; padding: 22px 24px 22px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact .i { color: var(--gold); margin-top: 2px; }
.fact strong { display: block; font-size: 15px; font-weight: 600; }
.fact span { color: var(--mute); font-size: 13.5px; }

/* ── Shop toolbar ────────────────────────────────────────── */
.shop-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 19px;
  font-size: 14px; color: var(--mute); white-space: nowrap;
  transition: color .18s, border-color .18s, background-color .18s;
}
.chip:hover { color: var(--bone); border-color: var(--gold-lo); }
.chip[aria-current="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); font-weight: 600; }
.sort { width: auto; min-height: 38px; height: 38px; padding: 0 38px 0 14px; font-size: 14px; border-radius: 19px; flex: none; }
.search-page { margin-top: 28px; }
.search-page .input { font-size: 18px; min-height: 56px; }

/* ── Product grid ────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 40px 22px; }
.card { position: relative; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .6s ease; }
.card-media .alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media .alt { opacity: 1; }
  .card:hover .card-media img:only-of-type { transform: scale(1.03); }
}
.card-media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 64px; color: var(--line); }
.badge {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  background: rgba(13, 13, 13, .82); color: var(--gold-hi);
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 2px;
}
.badge.out { color: var(--bone); background: rgba(13, 13, 13, .9); }
.card.is-out .card-media img { opacity: .45; }
.save-btn {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 13, 13, .6); color: var(--bone);
  transition: color .18s, background-color .18s, transform .18s;
}
.save-btn:hover { color: var(--gold-hi); }
.save-btn[aria-pressed="true"] { color: var(--gold); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.save-btn .i { width: 20px; height: 20px; }
.card-body { display: block; padding-top: 12px; }
.card-name { font-size: 15px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-name:hover { color: var(--gold-hi); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.was { color: var(--faint); text-decoration: line-through; font-size: 13.5px; }
.card-seller { color: var(--faint); font-size: 13px; margin-top: 2px; }

.card.skeleton .card-media { animation: pulse 1.6s ease-in-out infinite; }
.skeleton-line { height: 12px; background: var(--surface); margin-top: 12px; width: 70%; border-radius: 2px; }
.skeleton-line.short { width: 35%; margin-top: 8px; }
@keyframes pulse { 50% { opacity: .55; } }

.empty { text-align: center; padding: 72px 20px; border: 1px dashed var(--line); }
.empty h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.empty p { color: var(--mute); margin: 10px auto 24px; max-width: 42ch; }

/* ── Product page ────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; margin-top: 8px; }
.gallery { min-width: 0; }
.g-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4 / 5; background: var(--surface);
}
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-wrap { position: relative; }
.g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(13, 13, 13, .75); color: var(--bone); font-size: 12.5px; padding: 3px 9px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.g-thumb { width: 72px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); opacity: .6; transition: opacity .18s, border-color .18s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.pdp-info { position: sticky; top: calc(var(--top-h) + 24px); }
.pdp-info h1 { margin-bottom: 12px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; font-size: 22px; }
.pdp-price .was { font-size: 16px; }
.pdp-seller { color: var(--mute); font-size: 14px; margin-top: 6px; }
.pdp-seller strong { color: var(--bone); font-weight: 600; }
.stock-note { color: var(--danger); font-size: 14px; margin-top: 10px; }
.opt-group { margin-top: 28px; }
.opt-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.opt-head span { color: var(--mute); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  min-width: 52px; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 3px;
  font-size: 14.5px; font-weight: 500; color: var(--bone);
  transition: border-color .18s, background-color .18s, color .18s;
}
.opt:hover { border-color: var(--gold-lo); }
.opt[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-wash); color: var(--gold-hi); }
.opt-group.invalid .opts .opt { border-color: rgba(227, 128, 111, .55); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; height: 46px; }
.stepper button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--mute); }
.stepper button:hover { color: var(--gold-hi); }
.stepper output { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.stepper.sm { height: 36px; }
.stepper.sm button { width: 34px; }
.pdp-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-top: 28px; }
.pdp-actions .btn-ghost { width: 50px; padding: 0; }
.pdp-actions .btn-ghost[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-lo); }
.pdp-actions .btn-ghost[aria-pressed="true"] svg path { fill: currentColor; }
.pdp-assure { display: grid; gap: 10px; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.pdp-assure div { display: flex; gap: 10px; align-items: center; }
.pdp-assure .i { color: var(--gold); width: 20px; height: 20px; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 600; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { transition: transform .2s; color: var(--mute); }
.acc[open] summary .i { transform: rotate(180deg); }
.acc .acc-body { padding-bottom: 20px; }
.acc .acc-body p, .acc .acc-body li { color: var(--mute); font-size: 14.5px; }
.acc .acc-body ul { list-style: none; display: grid; gap: 6px; }
.desc { white-space: pre-line; }

/* ── Bag & checkout ──────────────────────────────────────── */
.page-head { margin: 40px 0 28px; }
.page-head p { margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 96px; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; display: block; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 600; font-size: 15.5px; }
.line-name:hover { color: var(--gold-hi); }
.line-meta { color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.line-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.line-remove { color: var(--faint); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.line-remove:hover { color: var(--danger); }
.line-total { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-warn { color: var(--danger); font-size: 13.5px; margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.summary { position: sticky; top: calc(var(--top-h) + 24px); }
.summary h2 { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14.5px; color: var(--mute); }
.sum-row span:last-child { color: var(--bone); font-variant-numeric: tabular-nums; text-align: right; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; color: var(--bone); font-weight: 600; }
.sum-row.total span:last-child { color: var(--gold); }
.sum-row.em span:last-child { color: var(--gold-hi); font-weight: 600; }
.sum-note { color: var(--faint); font-size: 13px; margin-top: 10px; }
.sum-items { display: grid; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sum-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; font-size: 14px; align-items: center; }
.sum-item .thumb { width: 48px; aspect-ratio: 4 / 5; background: var(--raised); overflow: hidden; position: relative; }
.sum-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sum-item .meta { color: var(--faint); font-size: 12.5px; }

.step { padding: 28px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step h2 { font-size: 19px; font-weight: 600; margin-bottom: 18px; display: flex; gap: 12px; align-items: baseline; }
.step h2 .n { color: var(--gold); font-family: var(--serif); font-size: 22px; font-weight: 500; }
.delivery-note { margin-top: 12px; font-size: 14px; color: var(--mute); display: flex; gap: 8px; align-items: flex-start; }
.delivery-note .i { color: var(--gold); width: 20px; height: 20px; margin-top: 1px; }
.plans { display: grid; gap: 10px; }
.plan {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 16px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.plan:hover { border-color: var(--gold-lo); }
.plan input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--gold); }
.plan-title { font-weight: 600; font-size: 15px; }
.plan-blurb { color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.plan:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); }
.plan.is-off { opacity: .42; cursor: not-allowed; }
.plan.is-off:hover { border-color: var(--line); }
.plan-off-note { color: var(--faint); font-size: 12.5px; margin-top: 4px; }
.inst { margin-top: 12px; padding: 18px; border: 1px solid var(--gold-lo); border-radius: 4px; background: rgba(201, 168, 76, .04); }
.inst-weeks { display: flex; justify-content: space-between; align-items: baseline; }
.inst-weeks strong { color: var(--gold-hi); font-size: 17px; }
.range { width: 100%; margin: 14px 0 10px; accent-color: var(--gold); }
.form-error { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(227, 128, 111, .45); color: var(--danger); font-size: 14px; border-radius: 3px; }

/* ── Order confirmation / tracking ───────────────────────── */
.narrow { max-width: 680px; margin: 0 auto; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); margin: 48px 0 24px; }
.done-mark .i { width: 30px; height: 30px; }
.order-code { display: flex; align-items: center; gap: 12px; margin: 24px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.order-code .code { font-size: 26px; font-weight: 700; letter-spacing: .12em; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.order-code .label { margin: 0; }
.order-code .btn { margin-left: auto; }
.next-steps { counter-reset: s; list-style: none; display: grid; gap: 18px; margin: 28px 0; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.next-steps li::before { content: counter(s); font-family: var(--serif); font-size: 22px; color: var(--gold); line-height: 1.2; }
.next-steps strong { display: block; font-weight: 600; }
.next-steps span { color: var(--mute); font-size: 14.5px; }
.pay-box { margin: 24px 0; }
.pay-box h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.bank { display: grid; gap: 4px; margin-top: 12px; }
.bank div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.bank div span:first-child { color: var(--mute); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.timeline { list-style: none; margin: 24px 0; }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 20px; bottom: -2px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); }
.timeline li.done .dot { background: var(--gold); border-color: var(--gold); }
.timeline li.done::before { background: var(--gold-lo); }
.timeline li.now .dot { box-shadow: 0 0 0 5px rgba(201, 168, 76, .18); }
.timeline li.cancel .dot { background: var(--danger); border-color: var(--danger); }
.timeline strong { font-weight: 600; }
.timeline li:not(.done):not(.cancel) strong { color: var(--faint); font-weight: 500; }
.timeline span { display: block; color: var(--mute); font-size: 13.5px; }
.recent { display: grid; gap: 8px; margin-top: 12px; }
.recent a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; font-size: 14.5px; }
.recent a:hover { border-color: var(--gold-lo); }
.recent .code { font-weight: 700; letter-spacing: .08em; color: var(--gold-hi); }

/* ── How it works ────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.how-card { padding: 24px; border: 1px solid var(--line); border-radius: 4px; }
.how-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.how-card p { color: var(--mute); font-size: 14.5px; }
.how-card .when { color: var(--gold-hi); font-size: 13.5px; margin-bottom: 8px; }
.how-section { margin-top: 56px; }
.how-section > h2 { margin-bottom: 8px; }
.steps-list { counter-reset: s; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.steps-list li { counter-increment: s; border-top: 1px solid var(--gold-lo); padding-top: 18px; }
.steps-list li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); margin-bottom: 12px; }
.steps-list strong { display: block; font-size: 16px; margin-bottom: 4px; }
.steps-list p { color: var(--mute); font-size: 14.5px; }
.table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--mute); font-weight: 500; font-size: 13.5px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); background: #080808; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 40px; }
.footer h3 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--bone); }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer li a, .footer li span { color: var(--mute); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.footer li a:hover { color: var(--gold-hi); }
.footer .i { width: 18px; height: 18px; }
.footer-brand p { color: var(--mute); margin-top: 12px; font-size: 14px; max-width: 30ch; }
.footer-brand .btn { margin-top: 20px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 28px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; flex-wrap: wrap; }
.footer-base a:hover { color: var(--mute); }

/* ── Toast & dialog ──────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 16px;
  max-width: calc(100vw - 32px); padding: 13px 16px 13px 18px;
  background: var(--bone); color: var(--ink); border-radius: 4px;
  font-size: 14.5px; font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .2s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast.error { background: var(--danger); }
.toast-action { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; white-space: nowrap; }

.dialog { border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: var(--bone); padding: 0; width: min(440px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(0, 0, 0, .72); }
.dialog-inner { padding: 24px; }
.dialog-title { font-size: 19px; font-weight: 600; }
.dialog-body { color: var(--mute); margin-top: 8px; font-size: 14.5px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.dialog-actions .btn { height: 44px; }

/* ── Phones ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .top-search input, .top-search input:focus { width: 190px; }
  .topnav { gap: 16px; }
}
@media (max-width: 900px) {
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
  .arch { justify-self: center; max-width: 360px; }
  .pdp, .split { grid-template-columns: 1fr; gap: 32px; }
  .pdp-info, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-list { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --top-h: 56px; }
  body { font-size: 15px; }
  .only-mobile { display: inline-grid; }
  .only-desktop, .top-search { display: none; }
  .wordmark { font-size: 21px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(10, 10, 10, .96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-soft);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 11.5px; font-weight: 600; }
  .tabbar a[aria-current="page"] { color: var(--gold); }
  .tabbar .count { top: 6px; right: calc(50% - 22px); }
  body { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
  .toast { bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }
  .view { padding-bottom: 48px; }
  .hero { padding-top: 24px; padding-bottom: 32px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero .lede { font-size: 16px; margin-top: 18px; }
  .hero-actions .btn { flex: 1; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 16px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .section { margin-top: 44px; }
  .shop-bar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; }
  .chips { margin: -2px calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .sort { align-self: flex-start; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .card-name { font-size: 14px; }
  .price { font-size: 14.5px; }
  .save-btn { width: 34px; height: 34px; right: 6px; top: 6px; }
  .badge { left: 6px; top: 6px; font-size: 11px; }
  .gallery { margin: 0 calc(-1 * var(--gutter)); }
  .g-thumbs { display: none; }
  .pdp-actions { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 5; background: var(--ink); padding: 12px 0; margin-top: 20px; }
  .line { grid-template-columns: 80px 1fr; }
  .line-img { width: 80px; }
  .line-total { grid-column: 2; text-align: left; }
  .row { grid-template-columns: 1fr; }
  .row > .field + .field { margin-top: 16px; }
  .page-head { margin: 28px 0 20px; }
  .how-grid { grid-template-columns: 1fr; }
  .order-code { flex-wrap: wrap; }
  .order-code .code { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 0 24px; }
  .announce { font-size: 12.5px; }
}

/* Installed app: no browser chrome above, so give the top bar room for the notch. */
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ─────────────────────────────────────────────────────────────
   Admin
   ───────────────────────────────────────────────────────────── */
body.is-admin .announce, body.is-admin .topbar, body.is-admin .tabbar, body.is-admin .footer { display: none !important; }
body.is-admin { padding-bottom: 0; }
body.is-admin .view { padding-bottom: 40px; }

.admin-top { position: sticky; top: 0; z-index: 30; background: rgba(13, 13, 13, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.admin-top-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.admin-top .wordmark { font-size: 20px; }
.admin-top .tag { color: var(--gold); font-size: 13px; font-weight: 600; border: 1px solid var(--gold-lo); border-radius: 2px; padding: 2px 8px; }
.atabs { display: flex; gap: 4px; margin-left: 8px; }
.atabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 3px; color: var(--mute); font-size: 14.5px; font-weight: 500; }
.atabs a:hover { color: var(--bone); }
.atabs a[aria-current="page"] { color: var(--bone); background: var(--surface); }
.atabs .pill { background: var(--gold); color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 9px; line-height: 18px; }
.admin-top .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.admin-top .who { color: var(--faint); font-size: 13px; margin-right: 6px; }

.login { max-width: 400px; margin: 10vh auto 0; padding: 0 var(--gutter); }
.login .wordmark { display: block; text-align: center; font-size: 30px; }
.login p.muted { text-align: center; margin: 10px 0 28px; }
.login .btn { margin-top: 20px; }
.login .forgot { display: block; text-align: center; margin-top: 16px; font-size: 14px; color: var(--mute); }

.admin-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 28px 0 20px; }
.admin-bar .input { min-height: 42px; height: 42px; max-width: 320px; font-size: 14.5px; }
.admin-bar .grow { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.stat { background: var(--ink); padding: 18px 20px; }
.stat span { color: var(--mute); font-size: 13.5px; }
.stat strong { display: block; font-size: 24px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat strong.gold { color: var(--gold); }

.status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); color: var(--mute); white-space: nowrap; }
.status.new { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.status.confirmed { border-color: var(--gold-lo); color: var(--gold-hi); }
.status.shipped { border-color: #6c86a8; color: #a9c2e2; }
.status.delivered { border-color: rgba(134, 195, 155, .5); color: var(--ok); }
.status.cancelled { border-color: rgba(227, 128, 111, .5); color: var(--danger); }
.pay-tag { font-size: 12.5px; color: var(--faint); }
.pay-tag.paid { color: var(--ok); }
.pay-tag.part { color: var(--gold-hi); }

.olist { display: grid; gap: 10px; }
.ocard { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.ocard[open] { border-color: var(--gold-lo); }
.ocard.is-new { border-left: 3px solid var(--gold); }
.ocard > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 130px 1fr auto auto 22px; gap: 16px; align-items: center; padding: 14px 18px; }
.ocard > summary::-webkit-details-marker { display: none; }
.ocard > summary .i { color: var(--faint); transition: transform .2s; }
.ocard[open] > summary .i { transform: rotate(180deg); }
.o-code { font-weight: 700; letter-spacing: .08em; font-size: 14px; color: var(--gold-hi); }
.o-date { color: var(--faint); font-size: 12.5px; }
.o-who { min-width: 0; }
.o-who strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-who span { color: var(--mute); font-size: 13px; }
.o-total { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.o-body { border-top: 1px solid var(--line); padding: 20px 18px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.o-body h4 { font-size: 13px; color: var(--mute); font-weight: 500; margin-bottom: 8px; }
.o-contact { display: grid; gap: 8px; font-size: 14.5px; }
.o-contact div { display: flex; gap: 10px; align-items: flex-start; }
.o-contact .i { width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.o-contact a:hover { color: var(--gold-hi); }
.o-items { display: grid; gap: 10px; }
.o-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.o-item .thumb { width: 44px; aspect-ratio: 4 / 5; background: var(--raised); overflow: hidden; }
.o-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.o-item .meta { color: var(--faint); font-size: 12.5px; }
.o-pay { margin-top: 14px; padding: 12px 14px; background: var(--ink); border-radius: 3px; font-size: 14px; color: var(--gold-hi); }
.o-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding-top: 16px; border-top: 1px solid var(--line); }
.o-actions .field { min-width: 170px; }
.o-actions .select { min-height: 38px; height: 38px; font-size: 14px; padding-top: 0; padding-bottom: 0; }
.o-actions .label { font-size: 12.5px; margin-bottom: 4px; }
.o-actions .spacer { flex: 1; }

.plist { border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 56px 1fr 120px 130px auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow .thumb { width: 56px; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.prow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prow strong { font-weight: 600; display: block; }
.prow .meta { color: var(--faint); font-size: 13px; }
.prow .price { text-align: right; }
.prow .acts { display: flex; gap: 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--mute); user-select: none; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; cursor: pointer; transition: background-color .18s; margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bone); transition: transform .18s; }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { transform: translateX(16px); background: var(--ink); }

.editor { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; margin-top: 12px; }
.editor .panel + .panel { margin-top: 20px; }
.editor h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.hint { color: var(--faint); font-size: 12.5px; margin-top: 6px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo { position: relative; aspect-ratio: 4 / 5; background: var(--raised); overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .cover-tag { position: absolute; left: 6px; bottom: 6px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px; }
.photo .ph-acts { position: absolute; right: 4px; top: 4px; display: flex; gap: 4px; }
.photo .ph-acts button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 13, 13, .8); color: var(--bone); }
.photo .ph-acts button:hover { color: var(--gold-hi); }
.photo .ph-acts .i { width: 16px; height: 16px; }
.photo.loading::after { content: 'Uploading'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 13, 13, .7); font-size: 12.5px; color: var(--gold-hi); }
.photo.failed::after { content: 'Failed'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(40, 10, 8, .8); font-size: 12.5px; color: var(--danger); }
.add-photo { aspect-ratio: 4 / 5; border: 1px dashed var(--gold-lo); display: grid; place-items: center; text-align: center; color: var(--gold-hi); font-size: 13px; cursor: pointer; gap: 4px; align-content: center; }
.add-photo:hover { background: var(--gold-wash); }
.add-photo input { display: none; }
.save-bar { position: sticky; bottom: 0; background: rgba(13, 13, 13, .95); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 28px; display: flex; gap: 10px; justify-content: flex-end; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.settings-grid .panel h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.settings-grid .panel > p { color: var(--mute); font-size: 13.5px; margin-bottom: 18px; }

@media (max-width: 900px) {
  .ocard > summary { grid-template-columns: 1fr auto 22px; }
  .ocard > summary .o-who { grid-column: 1 / 2; grid-row: 2; }
  .ocard > summary .o-total { grid-row: 2; grid-column: 2; }
  .o-body { grid-template-columns: 1fr; }
  .editor, .settings-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .prow { grid-template-columns: 56px 1fr auto; }
  .prow .price { grid-column: 2; text-align: left; grid-row: 2; }
  .prow .switch { grid-column: 3; grid-row: 2; }
  .prow .acts { grid-column: 3; grid-row: 1; }
  .prow .thumb { grid-row: span 2; }
  .admin-top .who { display: none; }
}
@media (max-width: 640px) {
  .admin-top-inner { gap: 10px; height: auto; padding-top: 10px; padding-bottom: 0; flex-wrap: wrap; }
  .atabs { order: 3; width: 100%; margin: 0 0 0 -6px; overflow-x: auto; }
  .atabs a { height: 44px; }
  .admin-bar .input { max-width: none; }
}
