:root {
  --bench: #eceff0;
  --panel: #ffffff;
  --ink: #1f2428;
  --steel: #66717a;
  --rule: #d2d8db;
  --rule-strong: #b9c1c5;
  --tag: #f6c71a;
  --tag-edge: #d9a900;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --bad: #b3261e;
  --focus: #2456c9;
  --radius-s: 4px;
  --radius-m: 10px;
  --wide: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bench);
  color: var(--ink);
  font-family: var(--wide);
  font-size: 16px;
  line-height: 1.5;
  font-stretch: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

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

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--bench); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font-stretch: 125%; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); background: transparent;
  border-radius: 999px; padding: 7px 16px; cursor: pointer; font-weight: 600; text-decoration: none;
}
.cart-btn .count { background: var(--ink); color: var(--bench); border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; padding: 0 7px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-stretch: 125%; font-weight: 800; font-size: clamp(38px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
.hero p { font-size: 18px; color: var(--steel); max-width: 52ch; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-strong); }
.steps li::before { content: counter(s); font-stretch: 125%; font-weight: 800; font-size: 22px; line-height: 1.1; grid-row: span 2; }
.steps b { font-weight: 700; }
.steps span { color: var(--steel); font-size: 15px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--rule-strong); background: var(--panel); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bench); border-color: var(--ink); }
.tools-right { display: flex; gap: 8px; flex: 1 1 280px; justify-content: flex-end; }
.input, .select, .textarea {
  border: 1px solid var(--rule-strong); background: var(--panel); border-radius: var(--radius-s); padding: 9px 12px; min-height: 42px; width: 100%;
}
.textarea { min-height: 96px; resize: vertical; }
.tools-right .input { max-width: 300px; }
.tools-right .select { width: auto; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; padding: 8px 0 72px; }
.card { position: relative; text-decoration: none; display: flex; flex-direction: column; }
.card .photo { aspect-ratio: 4 / 3; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; display: grid; place-items: center; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo .noimg { color: var(--steel); font-size: 13px; }
.card:hover .photo { border-color: var(--rule-strong); }
.card h3 { font-size: 17px; font-weight: 600; margin: 14px 0 2px; line-height: 1.3; }
.card .meta { font-size: 14px; color: var(--steel); }
.card .tag { position: absolute; top: 12px; left: -6px; }
.card.reserved .photo img { filter: grayscale(0.85); opacity: 0.7; }

/* The asset tag: the one loud element on the site */
.tag {
  --h: 34px;
  display: inline-flex; align-items: center; gap: 8px; height: var(--h);
  background: var(--tag); color: var(--ink); border: 1px solid var(--tag-edge);
  border-radius: 3px 6px 6px 3px; padding: 0 12px 0 22px; font-weight: 800; font-stretch: 112%;
  font-variant-numeric: tabular-nums; font-size: 16px; transform: rotate(-2deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  position: relative;
}
.tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bench); box-shadow: inset 0 0 0 1px var(--tag-edge); }
.tag.grey { background: #dfe4e6; border-color: var(--rule-strong); }
.tag.big { --h: 48px; font-size: 26px; padding: 0 18px 0 30px; }
.tag.big::before { left: 11px; width: 9px; height: 9px; margin-top: -4.5px; }

/* ---------- item page ---------- */
.back { display: inline-block; margin: 24px 0 8px; color: var(--steel); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--ink); }
.item { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 8px 0 72px; }
.gallery .main { aspect-ratio: 4 / 3; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 56px; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-s); overflow: hidden; background: var(--panel); cursor: pointer; }
.thumbs button[aria-current="true"] { border: 2px solid var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.item h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.015em; margin: 6px 0 12px; }
.item .sub { color: var(--steel); margin: 0 0 22px; }
.condition { display: inline-block; border: 1px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.buy-row { display: flex; align-items: center; gap: 18px; margin: 4px 0 26px; flex-wrap: wrap; }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs th { width: 38%; color: var(--steel); font-weight: 500; padding-right: 12px; }
.desc { white-space: pre-line; max-width: 62ch; }
.note { font-size: 14px; color: var(--steel); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bench); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--panel); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--steel); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ---------- cart / checkout ---------- */
.page-title { font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; margin: 32px 0 20px; line-height: 1.05; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 72px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: clamp(18px, 3vw, 28px); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.line:last-child { border-bottom: 0; }
.line img, .line .ph { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-s); background: var(--bench); }
.line .t { font-weight: 600; line-height: 1.3; }
.line .p { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.totals { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.totals td { padding: 7px 0; }
.totals td:last-child { text-align: right; }
.totals tr.sum td { border-top: 2px solid var(--ink); font-weight: 800; font-size: 19px; padding-top: 12px; }
.totals .pending { color: var(--steel); font-style: italic; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field .hint { font-size: 13px; color: var(--steel); margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 8px 0 0; }
legend { font-stretch: 112%; font-weight: 800; font-size: 19px; margin-bottom: 10px; padding: 0; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { display: flex; gap: 8px; align-items: center; border: 1px solid var(--rule-strong); border-radius: var(--radius-s); padding: 8px 14px; background: var(--panel); cursor: pointer; font-size: 15px; }
.radio-row input:checked + span { font-weight: 700; }
.error { background: #fbe9e7; color: var(--bad); border-radius: var(--radius-s); padding: 10px 14px; font-size: 15px; }
.okmsg { background: #e5f3ec; color: var(--ok); border-radius: var(--radius-s); padding: 10px 14px; font-size: 15px; }

.empty { padding: 56px 0 88px; max-width: 46ch; }
.empty h2 { font-stretch: 112%; font-size: 26px; margin: 0 0 8px; }
.empty p { color: var(--steel); margin: 0 0 18px; }

/* ---------- order page ---------- */
.status-track { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.status-track li { border-top: 4px solid var(--rule-strong); padding-top: 8px; font-size: 14px; color: var(--steel); }
.status-track li.done { border-color: var(--ink); color: var(--ink); }
.status-track li.now { border-color: var(--tag); color: var(--ink); font-weight: 700; }
.pay-coins { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pay-box { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.qr { background: #fff; padding: 10px; border: 1px solid var(--rule); border-radius: var(--radius-s); width: 200px; height: 200px; }
.qr img, .qr canvas { width: 180px !important; height: 180px !important; }
.copyline { display: flex; gap: 8px; align-items: stretch; margin: 4px 0 14px; }
.copyline code { flex: 1; min-width: 0; background: var(--bench); border-radius: var(--radius-s); padding: 9px 12px; font-size: 14px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.amount { font-size: 28px; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; margin: 0; }
.kv dt { color: var(--steel); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.site-foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--steel); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-foot p { margin: 0; max-width: 70ch; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bench); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 50; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (max-width: 860px) {
  .hero, .item, .two-col { grid-template-columns: 1fr; }
  .pay-box { grid-template-columns: 1fr; }
  .status-track { grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 12px; }
  .status-track li { font-size: 12px; }
}
@media (max-width: 520px) {
  .form .row { grid-template-columns: 1fr; }
  .tools-right { flex-wrap: wrap; }
  .tools-right .input { max-width: none; }
  .tools-right .select { width: 100%; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .card h3 { font-size: 15px; }
  .tag { font-size: 14px; --h: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Stand-in tile for listings without a photo yet */
.ph-tile { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 18px 18px 16px; background: #dde2e4; background-image: repeating-linear-gradient(90deg, transparent 0 11px, rgba(31, 36, 40, 0.06) 11px 12px); }
.ph-brand { font-size: 13px; font-weight: 600; color: var(--steel); }
.ph-model { font-stretch: 125%; font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); line-height: 1; letter-spacing: -0.02em; }
.ph-mem { font-size: 13px; color: var(--steel); }
.ph-tile.big { padding: 32px; }
.ph-tile.big .ph-model { font-size: clamp(34px, 5vw, 60px); }

/* In-page confirm dialog */
.ask { border: 0; border-radius: var(--radius-m); padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); }
.ask::backdrop { background: rgba(20, 24, 27, 0.55); }
.ask-body { padding: 22px 24px; display: grid; gap: 12px; }
.ask-body h2 { margin: 0; font-stretch: 112%; font-size: 20px; }
.ask-body p { margin: 0; color: var(--steel); }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }

/* Product gallery zoom + full-screen viewer */
.gallery .zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery .zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.viewer::backdrop { background: rgba(14, 17, 19, 0.92); }
.viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.viewer img { max-width: min(1600px, calc(100vw - 32px)); max-height: calc(100vh - 96px); object-fit: contain; border-radius: var(--radius-s); }
.viewer-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.viewer-count { color: #dfe4e6; font-size: 14px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.viewer .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.viewer .btn.ghost:hover { background: rgba(255,255,255,.08); }
.viewer .btn:not(.ghost) { color: var(--ink); }

/* Buyer assurances on the product page */
.assure { list-style: none; padding: 12px 14px; margin: 0 0 22px; display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-s); font-size: 15px; }
.assure li { padding-left: 22px; position: relative; }
.assure li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.check.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; background: #fffbea; border: 1px solid var(--tag-edge); border-radius: var(--radius-s); padding: 12px 14px; cursor: pointer; }
.check.agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.desc { margin: 0 0 22px; }
.desc + .specs { margin-top: 0; }

/* Checkout shipping options */
.ship-opts { display: grid; gap: 8px; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--rule-strong); border-radius: var(--radius-s); padding: 12px 14px; background: var(--panel); cursor: pointer; }
.ship-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ship-opt .svc { display: grid; gap: 1px; }
.ship-opt .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.ship-opt input { width: 18px; height: 18px; }
.err-inline { color: var(--bad); }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--rule-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -1px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   Premium theme: white space, large photos, quiet type.
   Overrides the original "workbench" styling above.
   ===================================================================== */
:root {
  --bench: #ffffff;          /* page */
  --panel: #f5f5f7;          /* soft surfaces, photo tiles */
  --ink: #1d1d1f;            /* text, primary buttons */
  --steel: #6e6e73;          /* secondary text */
  --rule: #e5e5ea;
  --rule-strong: #d2d2d7;
  --link: #0066cc;
  --tag: #1d1d1f;            /* former yellow accents become ink */
  --tag-edge: #1d1d1f;
  --radius-s: 10px;
  --radius-m: 18px;
  --wide: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
}
body { font-family: var(--wide); background: var(--bench); color: var(--ink); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
h1, h2, h3, .brand, .page-title, .item h1, legend, .empty h2 { font-stretch: 100% !important; }

/* header: frosted bar */
.site-head { background: rgba(255,255,255,0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { height: 52px; }
.brand { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.cart-btn { border: 0; background: transparent; padding: 6px 4px; font-weight: 500; font-size: 15px; }
.cart-btn .count { background: var(--ink); color: #fff; min-width: 20px; height: 20px; font-size: 12px; }

/* buttons */
.btn { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; min-height: 44px; padding: 0 22px; letter-spacing: -0.01em; transition: background .15s; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { background: var(--panel); }

/* hero */
.hero { display: block; text-align: center; padding: clamp(56px, 10vw, 112px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; margin: 0 0 18px; }
.hero h1 span { display: block; color: var(--steel); }
.hero p { margin: 0 auto 28px; font-size: clamp(17px, 2vw, 21px); line-height: 1.45; max-width: 40ch; color: var(--steel); }

/* spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: clamp(20px, 4vw, 56px); background: var(--panel); border-radius: 28px; padding: clamp(24px, 5vw, 56px); text-decoration: none; margin-bottom: 20px; overflow: hidden; }
.spot-kicker { font-size: 14px; font-weight: 600; color: #bf4800; }
.spotlight h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 8px 0 10px; text-wrap: balance; }
.spotlight p { color: var(--steel); margin: 0 0 18px; font-size: 17px; }
.spot-price { display: block; font-size: 22px; font-weight: 600; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.spot-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.spotlight:hover .spot-photo img { transform: scale(1.015); }
.spot-photo img { transition: transform .4s ease; }

/* promises */
.promises { list-style: none; padding: 0; margin: 0 0 clamp(48px, 8vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promises li { background: var(--panel); border-radius: var(--radius-m); padding: 24px; display: grid; gap: 6px; }
.promises b { font-size: 17px; font-weight: 600; }
.promises span { color: var(--steel); font-size: 15px; line-height: 1.45; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; scroll-margin-top: 72px; }

/* toolbar */
.toolbar { border-top: 0; padding: 12px 0 24px; }
.chip { border-color: var(--rule-strong); background: #fff; font-size: 14px; padding: 7px 16px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.input, .select, .textarea { border-color: var(--rule-strong); border-radius: 12px; background: #fff; min-height: 44px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15); }

/* product grid */
.grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; padding-bottom: 96px; }
.card { background: var(--panel); border-radius: var(--radius-m); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); }
.card .photo { border: 0; border-radius: 0; background: #eaeaec; }
.card:hover .photo { border-color: transparent; }
.card-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.card .meta { font-size: 14px; color: var(--steel); }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.card .price { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card .avail { font-size: 13px; color: var(--steel); }
.card .tag { display: none; }
.card.reserved .price { color: var(--steel); }
.ph-tile { background: #eaeaec; background-image: none; }
.ph-model { font-stretch: 100%; font-weight: 700; letter-spacing: -0.03em; }

/* product page */
.back { color: var(--link); font-size: 15px; }
.gallery .main { border: 0; border-radius: 24px; background: var(--panel); }
.thumbs button { border-radius: 10px; border-color: var(--rule); }
.thumbs button[aria-current="true"] { border: 2px solid var(--ink); }
.item h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.condition { border: 0; background: #e8f5ec; color: #1e7b3f; font-weight: 600; padding: 3px 10px; }
.big-price { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.big-price.muted { color: var(--steel); }
.assure { background: var(--panel); border: 0; border-radius: var(--radius-m); padding: 16px 18px; }
.specs th { color: var(--steel); }
.specs th, .specs td { border-bottom-color: var(--rule); padding: 11px 0; }

/* cart, checkout, order */
.page-title { font-weight: 700; letter-spacing: -0.035em; font-size: clamp(32px, 4.5vw, 48px); }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 22px; }
.two-col > aside.panel { background: var(--panel); border-color: transparent; }
legend { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.ship-opt, .radio-row label { border-radius: 12px; border-color: var(--rule-strong); background: #fff; }
.ship-opt:has(input:checked) { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.check.agree { background: var(--panel); border: 0; border-radius: 14px; }
.totals tr.sum td { border-top: 1px solid var(--rule-strong); }
.status-track li { border-top-width: 3px; border-radius: 2px; }
.status-track li.now { border-color: var(--link); }
.status-track li.done { border-color: var(--ink); }
.copyline code { background: var(--panel); border-radius: 10px; }
.amount { font-weight: 700; letter-spacing: -0.02em; }
.toast { background: rgba(29, 29, 31, 0.92); backdrop-filter: blur(10px); }

.site-foot { background: var(--panel); border-top: 0; font-size: 13px; padding: 32px 0 48px; }
.site-foot a { color: var(--link); }

@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; }
  .spot-photo { order: -1; }
  .promises { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 14px; }
  .card .meta, .card .avail { font-size: 12px; }
  .card .price { font-size: 15px; }
  .card-foot { flex-direction: column; gap: 2px; margin-top: 6px; }
}

/* ---- Hero that says what we sell ---- */
.hero { padding-bottom: 28px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); max-width: 15ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stage { position: relative; height: clamp(220px, 34vw, 420px); margin: 8px auto clamp(28px, 5vw, 48px); max-width: 1000px; }
.stage-pic { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08); background: var(--panel); }
.stage-pic img { width: 100%; height: 100%; object-fit: cover; }
.stage-3 .p0 { transform: translate(-112%, -46%) rotate(-7deg) scale(.86); z-index: 1; }
.stage-3 .p1 { transform: translate(-50%, -50%); z-index: 2; }
.stage-3 .p2 { transform: translate(12%, -46%) rotate(7deg) scale(.86); z-index: 1; }
.stage-2 .p0 { transform: translate(-90%, -50%) rotate(-5deg) scale(.9); }
.stage-2 .p1 { transform: translate(-10%, -50%) rotate(5deg) scale(.9); }
.stage-1 .p0 { transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: no-preference) {
  .stage-pic { animation: rise-in .8s cubic-bezier(.2,.7,.2,1) both; }
  .stage .p1 { animation-delay: .05s; } .stage .p0 { animation-delay: .15s; } .stage .p2 { animation-delay: .25s; }
  @keyframes rise-in { from { opacity: 0; margin-top: 40px; } to { opacity: 1; margin-top: 0; } }
}

.assure-strip { list-style: none; margin: 0 auto clamp(56px, 8vw, 88px); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.assure-strip li { background: var(--panel); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; }
.assure-strip li::before { content: "\2713"; color: #1e7b3f; font-weight: 700; margin-right: 7px; }

.cats { margin-bottom: clamp(48px, 7vw, 80px); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 18px; }
.cat-tile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 16px; background: var(--panel); border-radius: 22px; padding: 22px 0 22px 26px; overflow: hidden; min-height: 170px; transition: transform .25s ease, box-shadow .25s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.cat-tile:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.cat-text { display: grid; gap: 4px; }
.cat-text b { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.cat-text span { color: var(--steel); font-size: 15px; }
.cat-tile img { width: 100%; height: 150px; object-fit: cover; border-radius: 16px 0 0 16px; }
.cat-mark { font-size: 96px; font-weight: 800; color: #d9d9de; text-align: center; letter-spacing: -0.05em; }

@media (max-width: 640px) {
  .stage { height: 240px; }
  .stage-pic { width: 72%; }
  .stage-3 .p0 { transform: translate(-88%, -44%) rotate(-7deg) scale(.78); }
  .stage-3 .p2 { transform: translate(-12%, -44%) rotate(7deg) scale(.78); }
  .assure-strip li { font-size: 13px; padding: 8px 12px; }
  .cat-tile { grid-template-columns: 1fr 1fr; padding-left: 18px; min-height: 130px; }
  .cat-tile img { height: 110px; }
  .cat-text b { font-size: 20px; }
}

/* fixes: compact headline, keep fanned photos inside the screen */
.hero h1 span { font-size: 0.62em; letter-spacing: -0.025em; margin-top: 10px; }
.hero h1 { max-width: 17ch; }
#app { overflow-x: clip; }
.stage { overflow: visible; }
@media (max-width: 640px) { .hero h1 span { font-size: 0.68em; } }

/* ---- Payment page: three clear steps ---- */
.status-track li.now { border-color: var(--link); }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pay-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.hold { font-size: 14px; color: var(--steel); background: var(--panel); border-radius: 999px; padding: 5px 12px; font-variant-numeric: tabular-nums; }
.pay-steps { list-style: none; counter-reset: ps; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.pay-steps > li { counter-increment: ps; position: relative; padding: 18px 0 18px 46px; border-top: 1px solid var(--rule); }
.pay-steps > li:first-child { border-top: 0; }
.pay-steps > li::before { content: counter(ps); position: absolute; left: 0; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.pay-steps h3 { margin: 3px 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn { border: 1px solid var(--rule-strong); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: 15px; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.send { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.send .qr { width: 220px; height: 220px; padding: 10px; border-radius: 16px; border: 1px solid var(--rule); background: #fff; }
.send .qr img, .send .qr canvas { width: 200px !important; height: 200px !important; }
.send-detail { display: grid; gap: 10px; min-width: 0; }
.big-copy { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "lbl cp" "val cp"; gap: 2px 12px; align-items: center; background: var(--panel); border-radius: 14px; padding: 12px 16px; min-width: 0; }
.big-copy:hover { background: #ececf0; }
.big-copy:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.big-copy .lbl { grid-area: lbl; font-size: 13px; color: var(--steel); }
.big-copy .val { grid-area: val; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big-copy .val small { font-size: 16px; font-weight: 600; color: var(--steel); }
.big-copy .val.addr { font-size: 15px; font-weight: 500; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.big-copy .cp { grid-area: cp; color: var(--link); font-weight: 600; font-size: 15px; }
.wallet-btn { justify-self: start; }
.btn.wide { width: 100%; min-height: 50px; font-size: 17px; }
details.txid { margin-top: 12px; }
details.txid summary { cursor: pointer; color: var(--link); font-size: 15px; }
details.txid .input { margin-top: 10px; }
.pay-hint { margin: 4px 0 0; color: var(--steel); font-size: 15px; }
@media (max-width: 640px) {
  .send { grid-template-columns: 1fr; }
  .send .qr { justify-self: center; }
  .pay-steps > li { padding-left: 40px; }
}

/* Automatic payment detection */
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--rule-strong, #d2d2d7); border-top-color: var(--ink, #1d1d1f); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; flex: none; }
.waiting { display: flex; gap: 10px; align-items: flex-start; background: #f5f5f7; border-radius: 14px; padding: 14px 16px; }
.waiting .spin { margin-top: 3px; }
.net-warn { background: #fff4e5; border: 1px solid #f5c26b; color: #5c3b00; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.net-warn b { color: #3d2700; }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-toggle { font-size: 13px; text-align: center; max-width: 220px; }
.seg-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.2; border-radius: 16px; padding: 8px 16px; }
.seg-btn .seg-main { font-weight: 600; }
.seg-btn .seg-sub { font-size: 12px; opacity: .72; }
