/* ============================================================
   JustHeyo — storefront theme (rebuilt).
   Language from the reference designs: light neutral canvas, white
   hairline-bordered cards (12–20px radii), ink CTAs, gold accent,
   Satoshi type, invoice-style detail tables, numbered steppers.
   ============================================================ */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.70880e42f07b.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-VariableItalic.ed39abb752ab.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #eceae5;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #43433f;
  --muted: #8b897f;
  --beige: #f4f2ed;
  --beige-2: #eae7e0;
  --line: #e7e4dd;
  --yellow: #f0d264;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --info: #175cd3;
  --info-bg: #eff4ff;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgb(11 11 12 / 0.05), 0 10px 28px -16px rgb(11 11 12 / 0.16);
  --shadow-lg: 0 2px 6px rgb(11 11 12 / 0.05), 0 26px 56px -24px rgb(11 11 12 / 0.26);
  --ring: 0 0 0 3px rgb(11 11 12 / 0.08), 0 0 0 1.5px var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 16px;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* page shell */
.shell {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 1340px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
  overflow: clip;
}
main { max-width: 1180px; margin: 0 auto; padding: 22px 26px 70px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 15px 28px;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.28rem; letter-spacing: -0.04em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 8px; flex: none; width: 30px; height: 30px; box-shadow: 0 2px 8px rgb(11 11 12 / 0.16); }

.header-search {
  flex: 1; max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--beige); border-radius: 999px; padding: 8px 16px 8px 8px;
  border: 1px solid transparent;
  color: var(--muted); transition: box-shadow 0.18s, background 0.18s;
}
.header-search:focus-within { background: var(--surface); box-shadow: var(--ring); color: var(--ink); }
.header-search input {
  border: none; background: none; padding: 6px 0; width: 100%;
  font: inherit; font-size: 0.93rem; color: var(--ink);
}
.header-search input:focus { outline: none; }
.header-search svg { flex: none; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 0.92rem; font-weight: 600; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.inline-form { display: inline; margin: 0; }
.link-btn { background: none; border: none; padding: 0; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 10px 22px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 6px 16px -6px rgb(11 11 12 / 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); text-decoration: none; }

/* ---------- category nav ---------- */
.cat-nav {
  display: flex; justify-content: center; align-items: center; gap: 26px;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 600;
}
.cat-nav-label { color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.cat-nav a { color: var(--muted); transition: color 0.15s; }
.cat-nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- buttons / forms ---------- */
.btn, button {
  display: inline-block; background: var(--ink); color: #fff; border: none;
  padding: 13px 26px; border-radius: 12px; font-size: 0.97rem; font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer; box-shadow: 0 8px 20px -8px rgb(11 11 12 / 0.4);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover, button:hover { background: #000; text-decoration: none; transform: translateY(-1px); }
.btn:active, button:active { transform: translateY(0); }
.btn-block { width: 100%; text-align: center; }
.btn-arrow::after { content: "→"; display: inline-block; margin-left: 8px; transition: transform 0.15s; }
.btn-arrow:hover::after { transform: translateX(4px); }

.form label { display: block; margin-bottom: 15px; font-weight: 700; font-size: 0.9rem; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 5px; font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.errorlist { list-style: none; margin: 0 0 6px; padding: 0; color: var(--danger); font-weight: 500; font-size: 0.85rem; }
.errorlist li { margin-bottom: 2px; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--danger); }
.helptext { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.helptext ul { margin: 4px 0 0; padding-left: 16px; }
.helptext li { margin-bottom: 2px; }

/* ---------- home: trending feature ---------- */
.home-feature { margin-top: 10px; max-width: 520px; }
.home-feature .section-head { margin-top: 0; }
.hero-feature {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--beige); box-shadow: var(--shadow-lg);
}
.hero-feature:hover { text-decoration: none; }
.hero-feature img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.3, 1); }
.hero-feature:hover img { transform: scale(1.05); }
.hero-feature-info {
  position: absolute; left: 14px; bottom: 14px; right: 72px;
  display: flex; flex-direction: column; gap: 2px;
  background: rgb(255 255 255 / 0.9); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px; border-radius: 13px; font-size: 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.6);
}
.hero-feature-price { font-weight: 900; }
.hero-feature-cta {
  position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px;
  background: var(--ink); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: transform 0.2s;
}
.hero-feature:hover .hero-feature-cta { transform: translateX(4px); }

/* ---------- home: shop-by-category tiles ---------- */
.cat-tiles-section { margin-top: 26px; }
.cat-tiles-section .section-head { margin-top: 0; }
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.cat-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--beige); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 17px 19px; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.cat-tile:hover { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; transform: translateY(-2px); }
.cat-tile-arrow { color: var(--muted); transition: color 0.15s, transform 0.15s; }
.cat-tile:hover .cat-tile-arrow { color: var(--yellow); transform: translateX(3px); }

/* ---------- shared bits ---------- */
[x-cloak] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon-btn {
  flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: transparent; color: var(--muted); box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgb(11 11 12 / 0.06); color: var(--ink); box-shadow: none; transform: none; }
.spinner { color: var(--muted); text-align: center; padding: 14px; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: block; }
.htmx-request.htmx-indicator { display: block; }

/* paste-form: reused by result empty-states */
.paste-form { display: flex; flex-direction: column; gap: 10px; }
.paste-form input {
  padding: 14px 18px; font-size: 1.02rem; border: 1.5px solid var(--line);
  border-radius: 999px; width: 100%; background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.paste-form input:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 24px 18px; margin-top: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.cards .card {
  padding: 10px 10px 14px; display: flex; flex-direction: column; position: relative;
  box-shadow: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.6, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
}
.cards .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--beige-2); }
.card-media {
  position: relative; overflow: hidden; aspect-ratio: 1;
  background: var(--beige); border-radius: var(--radius-sm);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.3, 1); display: block; }
.cards .card:hover .card-media img { transform: scale(1.04); }
.card .badge {
  position: absolute; z-index: 2; margin: 16px; background: var(--ink); color: var(--yellow);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.card-body { padding: 13px 6px 2px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 {
  margin: 0; font-size: 0.97rem; font-weight: 700; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { color: var(--ink); font-weight: 900; font-size: 1.18rem; margin: 0; font-variant-numeric: tabular-nums; }
.card .btn { margin-top: auto; text-align: center; }
.card-body > div[id^="price-"] { display: flex; flex-direction: column; flex: 1; }
.variant-label { display: block; margin: 6px 0; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.variant-label select {
  width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); font-size: 0.93rem; background: var(--surface);
  cursor: pointer; transition: border-color 0.15s;
}
.variant-label select:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }

/* offer card meta chips */
.offer-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--beige); color: var(--ink-2); border: 1px solid var(--line);
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); border-color: rgb(6 118 71 / 0.25); }

/* ---------- flash messages ---------- */
.messages { max-width: 720px; margin: 16px auto 0; }
.messages .alert { margin-top: 0; margin-bottom: 10px; }

/* ---------- sections ---------- */
.results h2, .trending h2 { margin-top: 44px; }
.section-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 50px; }
.section-head h2 { margin: 0; font-size: 1.55rem; font-weight: 900; letter-spacing: -0.03em; }
.view-all { margin-left: auto; font-weight: 700; font-size: 0.92rem; color: var(--ink-2); }
.view-all:hover { color: var(--ink); text-decoration: none; }
.empty { background: var(--beige); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.empty h3 { margin: 0 0 8px; }
.empty p { color: var(--muted); }
.empty .paste-form { margin-top: 14px; }
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { max-width: 380px; margin: 0 auto 18px; color: var(--muted); }
.alert-error { background: var(--danger-bg); color: var(--danger); padding: 13px 17px; border-radius: var(--radius-sm); margin-top: 16px; }
.alert-info { background: var(--info-bg); color: var(--info); padding: 13px 17px; border-radius: var(--radius-sm); }
.alert-success { background: var(--ok-bg); color: var(--ok); padding: 13px 17px; border-radius: var(--radius-sm); }
.alert-hint { display: block; margin-top: 6px; font-size: 0.85rem; opacity: 0.8; }

/* results section head */
.results-head { display: flex; align-items: center; gap: 12px; margin: 44px 0 4px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.03em; }
.count-pill {
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 0.8rem; padding: 6px 14px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.page-back { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.page-back:hover { color: var(--ink); text-decoration: none; }

/* ---------- checkout / orders ---------- */
.checkout .card, .status .card { margin-bottom: 16px; }
.checkout .order-summary, .status .order-summary { display: flex; gap: 16px; align-items: center; }
.checkout .order-summary img, .status .card img { width: 88px; height: 88px; flex: none; border-radius: var(--radius-sm); object-fit: cover; background: var(--beige); }
.order-summary h3 { margin: 0 0 6px; font-size: 1.05rem; }
.order-summary p { margin: 2px 0; }
.order-summary .price { margin-top: 6px; }
.deliver-card .deliver-name { font-weight: 800; margin: 0 0 4px; }
.shipping-note { margin: 12px 0 0; }
.instructions { background: var(--beige); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.instructions h2 { margin-top: 0; font-size: 1.2rem; }
.instructions ul { padding-left: 18px; }

.order-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.order-row {
  display: flex; align-items: center; gap: 14px; padding: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: box-shadow 0.15s;
}
.order-row:hover { box-shadow: var(--shadow); }
.order-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--beige); flex: none; }
.order-row-main { flex: 1; min-width: 0; }
.order-row-main p { margin: 2px 0 0; }
.order-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.order-total { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-row .status-pill { margin-bottom: 0; }

/* ---------- checkout/order steppers ---------- */
.stepper {
  list-style: none; display: flex; align-items: center; gap: 8px;
  padding: 0; margin: 14px 0 4px; font-size: 0.88rem; font-weight: 700; color: var(--muted);
  flex-wrap: wrap;
}
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper li + li::before { content: ""; width: 26px; height: 1.5px; background: var(--line); margin: 0 4px; }
.step-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 0.78rem; font-weight: 800; flex: none;
}
.stepper li.active { color: var(--ink); }
.stepper li.active .step-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done .step-dot { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.stepper-progress { margin: 18px 0 22px; }
.stepper-note { margin-top: 10px; }
.stepper-note .status-pill { margin-bottom: 0; font-size: 0.78rem; padding: 5px 12px; }

/* shipping methods as selectable cards */
.radio-cards { display: grid; gap: 10px; margin: 6px 0 4px; }
label.radio-card {
  display: flex; align-items: center; gap: 13px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; font-weight: 700; font-size: 0.95rem; margin: 0;
  color: var(--ink-2); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
label.radio-card svg { flex: none; color: var(--muted); }
label.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
label.radio-card .radio-card-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
label.radio-card .radio-card-text small { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
label.radio-card strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
label.radio-card:hover { border-color: var(--ink-2); }
label.radio-card:has(input:checked) {
  border-color: var(--ink); background: var(--beige); color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
label.radio-card:has(input:checked) svg { color: var(--ink); }
label.radio-card:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* reassurance line under primary CTAs */
.secure-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 12px 0 0; color: var(--muted); font-size: 0.84rem; font-weight: 600;
}

/* ---------- inner pages ---------- */
.auth { max-width: 440px; margin: 0 auto; }
.auth .page-head { text-align: center; }
.auth-switch { text-align: center; margin-top: 4px; }
.auth-switch a { font-weight: 700; }
.form-section { border-top: 1px solid var(--line); padding-top: 22px; margin: 10px 0 18px; font-size: 1.06rem; }
.auth h1, .payment h1, .status h1, .checkout h1 { font-size: 1.75rem; margin: 10px 0 16px; letter-spacing: -0.03em; }
.auth .card { padding: 26px; margin-bottom: 18px; }
.auth h3 { margin-top: 0; }
.card > .alert:first-child { margin-top: 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.checkout-side { position: sticky; top: 92px; }
.checkout-side .card { box-shadow: var(--shadow-lg); }
.checkout-side .price-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.checkout-side .price-line.total { border-top: 1.5px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 900; font-size: 1.15rem; }

/* status pill */
.status-pill {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 0.85rem; padding: 8px 17px; border-radius: 999px; margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.status .page-head .status-pill { font-size: 0.95rem; padding: 10px 20px; }

/* invoice-style detail table (order status) — reference: receipt layout */
.invoice { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.invoice th {
  text-align: left; font-size: 0.74rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); padding: 10px 0;
  border-bottom: 1.5px solid var(--line);
}
.invoice th:last-child, .invoice td:last-child { text-align: right; }
.invoice td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice td:first-child { color: var(--muted); font-weight: 600; }
.invoice td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.invoice tr.total td { border-bottom: none; font-weight: 900; font-size: 1.08rem; color: var(--ink); padding-top: 14px; }

/* history timeline */
.timeline { list-style: none; padding: 0 0 0 22px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line); border-radius: 2px;
}
.timeline li { position: relative; padding: 9px 0 9px 14px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -21px; top: 15px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--ink);
}
.timeline li:first-child::before { background: var(--ink); box-shadow: 0 0 0 4px rgb(240 210 100 / 0.5); }
.timeline .muted { font-size: 0.82rem; }

/* payment page */
.payment .btn { width: 100%; text-align: center; margin-top: 20px; padding: 16px; font-size: 1.05rem; }
.kicker {
  font-size: 0.76rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--muted); margin: 0;
}
.pay-hero { text-align: center; padding: 34px 24px 28px; }
.pay-hero p { margin: 0; }
.pay-hero .pay-amount { font-size: clamp(2.4rem, 9vw, 3.2rem); letter-spacing: -0.03em; margin: 8px 0 10px; font-variant-numeric: tabular-nums; font-weight: 900; }
.pay-track { text-align: center; margin: 18px 0 0; }
.pay-track a { font-weight: 700; color: var(--ink-2); }
.pay-track a:hover { color: var(--ink); }

/* payment instruction fields */
.pay-fields { margin: 0; }
.pay-field {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.pay-field:last-child { border-bottom: none; }
.pay-field dt { color: var(--muted); font-size: 0.88rem; margin: 0; font-weight: 600; }
.pay-field dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.pay-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-amount { font-size: 1.22rem; font-weight: 900; }
.copy-btn {
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
  padding: 7px 15px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  box-shadow: none; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.copy-btn:hover { border-color: var(--ink); background: var(--surface); transform: none; box-shadow: none; }
.copy-btn.copied { background: var(--ink); color: #fff; border-color: var(--ink); }
.pay-note { margin: 14px 0 0; }

/* tracking fragment */
.tracking-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tracking-head h3 { margin: 0; }
.tracking-head .status-pill { margin: 0; flex: none; }

/* one-time token display (staff OAuth tool) */
.token-box { background: var(--danger-bg); border: 1.5px solid rgb(180 35 24 / 0.3); border-radius: var(--radius-sm); padding: 18px; }
.token-warning { color: var(--danger); font-weight: 700; margin: 0 0 8px; }
.token-value { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 0.82rem; word-break: break-all; white-space: pre-wrap; margin: 0; }
.code-pill { background: var(--beige); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 0.85rem; font-family: ui-monospace, monospace; }

/* ---------- footer ---------- */
.site-footer {
  margin: 52px 16px 16px; padding: 48px 30px 26px; text-align: left;
  background: var(--ink); color: #9d9b94;
  border-radius: 22px;
}
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-grid a { display: block; color: #9d9b94; margin-bottom: 9px; font-size: 0.9rem; transition: color 0.15s; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-brand { font-weight: 900; font-size: 1.28rem; color: #fff; margin: 0 0 8px; letter-spacing: -0.035em; }
.footer-head { font-weight: 800; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--yellow); margin: 0 0 12px; }
.footer-fine { max-width: 1180px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.12); text-align: center; font-size: 0.82rem; color: #6d6b65; }

/* ---------- skeleton shimmer ---------- */
.skeleton-row { margin-top: 24px; }
.skeleton-card { padding: 0; overflow: hidden; border: none; box-shadow: none; }
.skeleton-media { aspect-ratio: 1; border-radius: var(--radius-sm); background: linear-gradient(100deg, #edeae4 40%, #f7f5f0 50%, #edeae4 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-lines { padding: 14px 6px; display: flex; flex-direction: column; gap: 9px; }
.skeleton-lines span { height: 12px; border-radius: 6px; background: linear-gradient(100deg, #edeae4 40%, #f7f5f0 50%, #edeae4 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-lines span:nth-child(2) { width: 60%; }
.skeleton-lines span:nth-child(3) { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* staggered card entrance */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cards .card { animation: fadeUp 0.45s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
.cards .card:nth-child(2) { animation-delay: 0.05s; }
.cards .card:nth-child(3) { animation-delay: 0.1s; }
.cards .card:nth-child(4) { animation-delay: 0.15s; }
.cards .card:nth-child(5) { animation-delay: 0.2s; }
.cards .card:nth-child(6) { animation-delay: 0.25s; }
.cards .card:nth-child(7) { animation-delay: 0.3s; }
.cards .card:nth-child(8) { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cards .card, .skeleton-media, .skeleton-lines span { animation: none; }
  .hero-feature img, .card-media img { transition: none; }
}

/* ---------- page scaffold ---------- */
.page { max-width: 720px; margin: 0 auto; }
.page.wide { max-width: 1080px; }
.page-head { margin: 8px 0 22px; }
.page-head h1 { font-size: 1.75rem; margin: 0 0 6px; letter-spacing: -0.03em; }
.page-head .muted { margin: 0; }
.page .card { padding: 24px; margin-bottom: 16px; }
.page .card h3 { margin-top: 0; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .paste-form { flex-direction: row; }
  .paste-form input { flex: 1; }
  .paste-form button { width: auto; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: 1.5fr 1fr; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cat-tiles { grid-template-columns: repeat(7, 1fr); }
  .cat-tile { flex-direction: column; align-items: flex-start; gap: 14px; padding: 19px; }
}

@media (max-width: 719px) {
  body { padding: 8px; }
  .shell { border-radius: 20px; }
  main { padding: 16px 16px 54px; }
  .site-header { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 6px 0 0; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 24px; height: 24px; }
  .site-nav { gap: 13px; font-size: 0.85rem; }
  .nav-cta { padding: 9px 15px; }
  .cat-nav { justify-content: flex-start; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 11px 16px; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav a, .cat-nav-label { flex: none; }
  .shipping-option, .form label.shipping-option { font-size: 0.9rem; gap: 10px; }
  .pay-field { align-items: flex-start; }
  .pay-field dd { flex-direction: column; align-items: flex-end; gap: 6px; }
  .pay-value { white-space: nowrap; }
  .site-footer { margin: 42px 8px 8px; padding: 38px 22px 22px; }

  /* mobile snap-scroll rows */
  .trending .cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; padding-bottom: 8px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px;
  }
  .trending .cards .card { flex: 0 0 74%; scroll-snap-align: start; }
  .trending .cards::-webkit-scrollbar { display: none; }
}
