/* ==========================================================================
   TCG Pro design tokens.
   :root = light tokens ("Washi & Vermilion"), used by the admin.
   html.theme-holo (end of file) = the storefront's dark holographic theme ("Holo Night").
   Components use tokens only; raw colours live in these two token blocks.
   ========================================================================== */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional; /* 2026-11-27: no layout shift from a late font swap (CLS); the fonts are preloaded */
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: optional; /* 2026-11-27: no layout shift from a late font swap (CLS); the fonts are preloaded */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EEE6;
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --muted: #6F6A62;
  --line: #E8E2D8;
  --line-strong: #D6CEC1;
  --accent: #C8102E;
  --accent-dark: #A00D25;
  --accent-soft: #FBEAEC;
  --accent-ink: #FFFFFF;
  --gold: #B08D57;
  --gold-soft: #F4EBDD;
  --gold-ink: #6E5129;
  --ok: #2E7D4F;
  --ok-soft: #E6F2EA;
  --danger: #B3261E;
  --danger-soft: #FBE9E7;
  --info-soft: #EEF1F5;
  --on-ink: #FFFFFF;          /* text on an ink-coloured background */
  --paper: #FFFFFF;           /* printable documents, admin canvas */
  --placeholder: #8A847B;
  --tag-out-bg: #ECE8E1;
  --gold-line: #E2CFAF;
  --ok-ink: #1E5434;  --ok-line: #B9DBC5;
  --danger-ink: #8A1C15;  --danger-line: #F0C2BE;
  --info-ink: #2B3A55;  --info-line: #D3DAE4;
  --accent-line: #E8B4BC;
  --footer-bg: #1A1A1A;  --footer-ink: #D9D2C7;  --footer-muted: #B8B0A4;  --footer-line: #333333;  --footer-link: #F3EEE6;  --footer-link-hover: #FFFFFF;
  --band-bg: #1A1A1A;  --band-ink: #FFFFFF;  --band-ink-2: #D9D2C7;
  --dot: rgba(200, 16, 46, 0.09);  --dot-faint: rgba(200, 16, 46, 0.05);
  --overlay: rgba(26, 26, 26, 0.35);
  --chart-blue: #2a78d6;  --chart-gold: #eda100;
  /* Brand neons (used by the storefront's holographic theme below; defined here so every page can reference them) */
  --cyan: #00f0ff;
  --sakura: #ff3388;
  --amber: #f59e0b;
  --op-crimson: #ef4444;
  --pk-yellow: #eab308;
  --violet: #8b5cf6;
  --void: #0a0b0e;
  --void-2: #111318;
  /* Footer v2 (owner spec 2026-11-27): same colours in every theme */
  --ft-bg: #f5f3f8; --ft-card: #ffffff; --ft-line: #e6e1ec; --ft-red: #d81f2a; --ft-ink: #14181f; --ft-muted: #5c5866;
  --ft-red-hover: #b5141e; --ft-soc-line: rgba(216, 31, 42, 0.35); --ft-shadow: rgba(20, 24, 31, 0.25);
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, var(--font-ja);
  /* TcgPro logo artwork: Japanese-flag red and the holographic card pastels */
  --brand-red: #BC002D;
  --brand-red-text: #BC002D;
  /* Ticker / glow colours (Banners & promos, 2026-11-26) */
  /* Fixed component colours (trust strip, search, crypto pay, order centre, packing slip) moved here 2026-11-26 */
  --c-79-70-229-45: rgba(79, 70, 229, 0.45); --c-20-20-40-08: rgba(20, 20, 40, 0.08); --c-fff: #fff; --c-255-255-255-9: rgba(255, 255, 255, 0.9); --c-255-255-255-72: rgba(255, 255, 255, 0.72); --c-4f46e5: #4f46e5; --c-255-255-255-8: rgba(255, 255, 255, 0.8); --c-444: #444; --c-111: #111; --c-30-30-60-35: rgba(30, 30, 60, 0.35); --c-e5e5ea: #e5e5ea; --c-f6f6f9: #f6f6f9; --c-244-200-60-65: rgba(244, 200, 60, 0.65); --c-eee: #eee; --c-f3f3f6: #f3f3f6; --c-b45309: #b45309; --c-555: #555; --c-fff7ed: #fff7ed; --c-9a3412: #9a3412; --c-fef2f2: #fef2f2;
  --tk-cyan: #22d3ee; --tk-gold-1: #f7ebbf; --tk-gold-2: #e8c766;
  --brand-ink: #111111;
  --mark-ink: #111111;        /* the diamond on the main logo stays black on every background */
  --holo-rule: rgba(255, 255, 255, 0.75);
  --holo-pink: #E8CFE6;  --holo-blue: #CADCF2;  --holo-yellow: #F4F0C3;  --holo-mint: #D2EED3;  --holo-lilac: #D9CBEE;
  /* Floating holo cards (owner 2026-11-27): the same holo hues, saturated enough to read as a glowing edge on white. */
  --edge-violet: #a98bf0; --edge-sky: #6fc3f5; --edge-gold: #f0c95a; --edge-mint: #6fd9a8; --edge-rose: #f38dbf; --edge-iris: #8f9bff;
  --edge-glow: rgba(124, 99, 235, 0.30); --edge-glow-2: rgba(80, 190, 240, 0.22); --edge-sheen: rgba(255, 255, 255, 0.65); --edge-lift: rgba(20, 20, 45, 0.07);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06);
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.06), 0 8px 24px -12px rgba(26, 26, 26, 0.14);
  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, var(--font-ja);
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.lang-ja { font-family: var(--font-latin), var(--font-ja); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
h1, h2, h3 { line-height: 1.2; margin: 1.2em 0 0.5em; font-weight: 700; color: var(--ink); }
.lang-en h1, .lang-en h2 { letter-spacing: -0.02em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0.9em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; margin: 0 0 0.25em; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }
::selection { background: var(--accent-soft); }
.wrap { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.narrow-ish { max-width: 880px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine, .fine-print { font-size: 0.8rem; color: var(--muted); }
.error { color: var(--danger); font-size: 0.9rem; }
.pre { white-space: pre-wrap; }
.icon { flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 0.5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.kicker { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.6rem; }
.lang-ja .kicker { letter-spacing: 0.04em; }
.price, .big-price, .num, .line, .subtotal { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------- top of the page */
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 0.45rem 1rem; font-size: 0.9rem; font-weight: 600; }
.utility-bar { background: var(--surface-2); color: var(--ink-2); font-size: 0.8rem; text-align: center; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions" "nav nav nav"; column-gap: 1.5rem; align-items: center; padding-top: 0.8rem; }
.brand { grid-area: logo; display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-light { color: var(--ink); }
.brand-dark { color: var(--footer-link); }
.brand:hover { color: inherit; }
.brand small { font-weight: 500; color: var(--muted); font-size: 0.7em; }
.site-menu { display: contents; }
.search { grid-area: search; position: relative; display: flex; max-width: 620px; width: 100%; justify-self: center; }
.search input[type=search] { border-radius: 999px; padding: 0.65rem 3.2rem 0.65rem 1.1rem; background: var(--bg); border-color: var(--line); }
.search input[type=search]:focus { background: var(--surface); }
.search .search-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--on-ink); border: 0; padding: 0; }
.search .search-btn:hover { background: var(--accent); }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 1rem; }
.lang-toggle { margin: 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.lang-toggle strong { color: var(--ink); }
.lang-toggle a { color: var(--muted); text-decoration: none; }
.lang-toggle a:hover { color: var(--accent); }
.cart-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.4rem 0.2rem; }
.cart-link:hover { color: var(--accent); }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 1.35rem; height: 1.35rem; display: inline-grid; place-items: center; padding: 0 0.35rem; font-size: 0.75rem; font-weight: 700; }
.badge-empty { background: var(--surface-2); color: var(--muted); }
.badge.bump { animation: bump 0.4s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }
.menu-btn { display: none; }
.main-nav { grid-area: nav; display: flex; gap: 0.25rem; margin-top: 0.6rem; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.93rem; padding: 0.55rem 0.8rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.main-nav .nav-wholesale { color: var(--accent); font-weight: 600; }
.site-header button.link { color: var(--ink); }

/* -------------------------------------------------------------- controls */
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; padding: 0.62rem 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
input[type=checkbox] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin: 0.7rem 0; color: var(--ink); }
label input, label select, label textarea { margin-top: 0.3rem; font-weight: 400; }
label.check { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; margin: 0; }
label.bare { margin-top: 0.3rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.6rem 1.2rem 1.2rem; background: var(--surface); margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 0.4rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.stack { max-width: 580px; }
.stack.wide { max-width: 1000px; }
.narrow-input { width: 6.5rem !important; }

.btn, button { cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border: 1px solid transparent; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.2; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.btn, .btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn:hover, .btn-primary:hover { background: var(--accent-dark); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--on-ink); }
.btn-danger { background: var(--danger); }
.btn-block { width: 100%; }
button:not(.link):not(.btn):not(.step):not(.search-btn):not(.menu-btn):not(.qf):not(.drawer-close):not(.hc-btn):not(.hc-dot):not(.lb-close):not(.lb-nav):not(.qa-close):not(.wish-btn):not(.qa-btn):not(.qa-step):not(.qa-sold):not(.cw-close):not(.nl-close):not(.qs-btn) { background: var(--ink); color: var(--on-ink); border: 0; border-radius: var(--radius); padding: 0.6rem 1rem; font-weight: 600; }
button.link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.9rem; }
button.link:hover { color: var(--accent); }
form.inline, form.inline-form { display: inline-flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0.3rem 0.6rem 0.3rem 0; }
form.inline-form input, form.inline-form select { width: 220px; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ink); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.link-arrow:hover { color: var(--accent); }
.small-link { font-size: 0.85rem; color: var(--ink-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); margin: 1.6rem 0 0.5rem; padding: clamp(1.5rem, 4vw, 3.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hero h1 { margin: 0 0 0.8rem; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; font-weight: 800; }
.lang-ja .hero h1 { line-height: 1.35; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-2); max-width: 46ch; margin: 0 0 1.5rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0; }
.hero-compact { grid-template-columns: 1fr; }
.hero-collage { position: relative; height: clamp(260px, 32vw, 380px); }
.collage-card { position: absolute; width: 46%; aspect-ratio: 5 / 7; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); transition: transform 0.25s; }
.collage-card img { width: 100%; height: 100%; object-fit: contain; }
.collage-card:hover { transform: translateY(-4px); }
.collage-1 { left: 0; top: 12%; transform: rotate(-5deg); }
.collage-2 { left: 27%; top: 0; z-index: 2; }
.collage-3 { right: 0; top: 14%; transform: rotate(5deg); }
.collage-1:hover { transform: rotate(-5deg) translateY(-4px); }
.collage-3:hover { transform: rotate(5deg) translateY(-4px); }
/* calm seal pattern when there aren't 3 product photos yet */
.hero-seal { height: clamp(220px, 28vw, 340px); border-radius: var(--radius-lg); background-color: var(--surface-2);
  background-image: radial-gradient(circle at center, var(--dot) 0 22%, transparent 23%), radial-gradient(circle at center, var(--dot-faint) 0 22%, transparent 23%);
  background-size: 64px 64px; background-position: 0 0, 32px 32px; border: 1px solid var(--line); }

/* ------------------------------------------------------- why / sections */
.block { margin: 3rem 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.block-head h2 { margin: 0; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 0.3rem; }
.why { margin: 2.5rem 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.3rem 1.1rem; }
.why-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 0.8rem; }
.why-item h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.why-item p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin: 3rem 0; padding: 2rem clamp(1.2rem, 4vw, 2.6rem); border-radius: var(--radius-lg); background: var(--band-bg); color: var(--surface-2); }
.band h2 { margin: 0 0 0.4rem; color: var(--band-ink); font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.band p { margin: 0; color: var(--band-ink-2); max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.chip { display: inline-block; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); padding: 0.4rem 0.95rem; border-radius: 999px; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.type-chips { margin: 0 0 1.2rem; }
.chip .muted { font-weight: 400; margin-left: 0.2rem; }
.sold-note { color: var(--muted); font-weight: 600; }
.cond-note { margin: 0 0 0.6rem; }
.stock-note { margin: 0 0 0.6rem; color: var(--ink-2); font-weight: 600; }
.brand-list li { flex-direction: column; align-items: stretch; }
.brand-list .chips { margin: 0.3rem 0 0.6rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.feature h2 { font-size: 1.02rem; margin: 0.1rem 0 0.4rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.ws-grid .stack { max-width: none; }
.ws-grid h2 { margin-top: 0; }
.ws-banner { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--accent); margin: 1rem 0 0; }
.ws-banner svg { flex: none; color: var(--accent); margin-top: 0.15rem; }
.ws-pricing > h2 { margin-bottom: 1rem; }
.ws-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.ws-tier-grid .panel { min-width: 0; overflow-x: auto; }
.ws-tier-grid h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.ws-tiers tr.current td { background: var(--accent-soft); font-weight: 600; }
.tier-name { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; }
.tier-1 { border-color: var(--amber); }
.tier-2 { border-color: var(--ink-2); }
.tier-3 { border-color: var(--accent); }
.ws-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; counter-reset: none; }
.ws-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; row-gap: 0.2rem; align-items: start; }
.ws-steps li .muted { grid-column: 2; font-size: 0.93rem; }
.ws-step-n { grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }
.ws-apply h2 { margin-bottom: 0.2rem; }
.ws-quote { margin-top: 1rem; }
.ws-quote form { margin-top: 0.9rem; }
#apply, #pricing, #quote { scroll-margin-top: 7rem; }
@media (max-width: 600px) {
  .ws-tier-grid .panel { padding: 1rem 0.8rem; }
  .ws-tier-grid .table :is(th, td) { padding: 0.55rem 0.4rem; font-size: 0.88rem; }
  .ws-tier-grid .table th { white-space: normal; }
  .tier-name { padding: 0.05rem 0.45rem; }
}
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 0.6rem; scroll-margin-top: 9rem; }
.faq summary { cursor: pointer; padding: 0.95rem 1.15rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq summary h2 { font-size: 1rem; margin: 0; }
.faq p { margin: 0; padding: 0 1.15rem 1.05rem; color: var(--ink-2); }
.faq:target { border-color: var(--accent); }
.intro { max-width: 760px; color: var(--ink-2); margin: 0.2rem 0 1.4rem; }
.intro p { margin: 0 0 0.6rem; }
.set-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.set-list a { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.set-list a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.set-list .muted { grid-column: 1; font-size: 0.85rem; }
.set-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.soldout-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.2rem; }
.soldout-note p { margin: 0.5rem 0 0; color: var(--ink-2); }
.soldout-note .tag { margin: 0; }
.soon-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.2rem; margin: 0.8rem 0 1rem; }
.soon-box > p { margin: 0.5rem 0 0; color: var(--ink-2); }
.soon-box .tag { margin: 0; }
.soon-box .soon-date { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.notify-form { margin-top: 0.9rem; }
.notify-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.notify-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.notify-row input { flex: 1 1 200px; min-width: 0; }
.notify-form .small { margin: 0.4rem 0 0; }
/* checkout address: international order by default, Japanese order (〒 → prefecture → city → street) for JP */
.addr { display: flex; flex-direction: column; }
.addr .f label { margin: 0.55rem 0; }
.f-name { order: 1; } .f-country { order: 2; } .f-line1 { order: 3; } .f-line2 { order: 4; } .f-city { order: 5; } .f-region { order: 6; } .f-postal { order: 7; }
.f-pref { display: none; } .addr noscript { order: 9; } .f-phone { order: 8; } .co-saved { order: 0; }
.lbl-jp { display: none; }
[data-country="JP"] .lbl-jp { display: inline; }
[data-country="JP"] .lbl-intl { display: none; }
[data-country="JP"] .f-postal { order: 3; } [data-country="JP"] .f-pref { display: block; order: 4; } [data-country="JP"] .f-city { order: 5; }
[data-country="JP"] .f-line1 { order: 6; } [data-country="JP"] .f-line2 { order: 7; } [data-country="JP"] .f-region { display: none; }
.tax-note { font-size: 0.82rem; color: var(--muted); margin: -0.6rem 0 1rem; }
.subtotal .tax-note { margin: 0; }
.line.tax-removed { color: var(--ok); }
/* receipt */
.receipt { max-width: 820px; margin: 1.5rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 4vw, 2.4rem); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.8rem; margin-bottom: 1.2rem; }
.receipt-head h1 { margin: 0; letter-spacing: 0.1em; }
.receipt-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.receipt-to { font-size: 1.25rem; font-weight: 700; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.3rem; margin: 0 0 0.6rem; }
.receipt-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; margin: 0; font-size: 0.92rem; }
.receipt-meta dt { color: var(--muted); } .receipt-meta dd { margin: 0; }
.receipt-seller { font-size: 0.9rem; line-height: 1.6; text-align: right; }
.empty, .empty-state { padding: 2.5rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); background: var(--surface); }
.prose p { font-size: 1.05rem; color: var(--ink-2); }
.legal-table { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.legal-table dt, .legal-table dd { margin: 0; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.legal-table dt { background: var(--surface-2); font-weight: 600; font-size: 0.92rem; }
.legal-table dd p { margin: 0 0 0.4rem; }
.legal-table dd p:last-child { margin: 0; }
.legal-table dt:last-of-type, .legal-table dd:last-of-type { border-bottom: 0; }

/* --------------------------------------------------------------- catalog */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.card-img { position: relative; aspect-ratio: 5 / 7; background: var(--surface-2); padding: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 0.8rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.card-body h3 { font-weight: 600; font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { margin: 0.1rem 0; font-size: 0.84rem; }
.card-body .price { margin-top: auto; padding-top: 0.45rem; font-size: 1.02rem; }
.price { font-weight: 700; color: var(--ink); }
.noimg { height: 100%; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2);
  background-image: radial-gradient(circle at center, var(--dot) 0 20%, transparent 21%); background-size: 40px 40px; }
.noimg span { background: var(--surface); color: var(--muted); font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem; border: 1px solid var(--line); }
.noimg.big { min-height: 420px; border-radius: var(--radius-lg); }
.tag { position: absolute; top: 10px; left: 10px; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; z-index: 1; }
.tag-out { background: var(--tag-out-bg); color: var(--ink-2); }
.tag-soon { background: var(--ink); color: var(--surface); }
.soon-line { color: var(--ink-2); font-weight: 600; }
.tag-jp { left: auto; right: 10px; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold); }
.tag-lang { left: auto; right: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--ink); letter-spacing: 0.04em; }
.tag-ai { position: static; display: inline-block; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold); }
.tag.inline { position: static; display: inline-block; }
.filters { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: end; background: var(--surface); border: 1px solid var(--line); padding: 0.4rem 1.1rem 0.9rem; border-radius: var(--radius-lg); margin-bottom: 1.4rem; }
.filters label { margin: 0.4rem 0 0; }
.filters select { min-width: 150px; }
.js .filters [type=submit] { display: none; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 2rem 0; }
.pager { flex-wrap: wrap; }
.pager-nums { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.pager-num { min-width: 2.25rem; padding: .35rem .5rem; border-radius: .5rem; text-align: center; border: 1px solid var(--line); text-decoration: none; }
.pager-num[aria-current] { font-weight: 700; background: var(--ink); color: var(--on-ink); border-color: transparent; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 1.3rem 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* --------------------------------------------------------------- product */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1rem; }
.gallery { position: sticky; top: 9rem; align-self: start; display: grid; gap: 0.8rem; }
.gallery-main { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(12px, 3vw, 28px); }
.gallery-main img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; }
.thumb-strip { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.thumb-btn { display: block; width: 72px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.thumb-btn img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; }
.thumb-btn[aria-current] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.info h1 { margin: 0 0 0.3rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.alt-title { margin: 0 0 0.3rem; }
.big-price { font-size: 2rem; font-weight: 700; margin: 0.8rem 0 1.1rem; color: var(--ink); }
.buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.5rem 1.2rem 1.2rem; box-shadow: var(--shadow-sm); }
.buy .btn { margin-top: 1rem; padding: 0.95rem; font-size: 1.05rem; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.7rem; }
.field-head label { margin: 0; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stepper input[type=number] { width: 4rem !important; border: 0 !important; border-radius: 0 !important; text-align: center; box-shadow: none !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step { display: none; width: 2.6rem; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1.15rem; font-weight: 600; cursor: pointer; }
.js .step { display: block; }
.step:hover { background: var(--line); }
.assure { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.55rem; }
.assure li { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-2); font-size: 0.93rem; }
.assure .icon { color: var(--accent); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.specs dt, .specs dd { margin: 0; padding: 0.6rem 1rem; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 0.9rem; background: var(--surface-2); }
.specs dd { font-weight: 500; }
.specs dt:last-of-type, .specs dd:last-of-type { border-bottom: 0; }
.desc { margin-top: 1rem; color: var(--ink-2); }

/* ------------------------------------------------ cart / checkout / tables */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: var(--surface-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.table .num, th.num { text-align: right; white-space: nowrap; }
.table tr.total td { font-weight: 700; }
.cart-table input[type=number] { width: 5rem; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; }
.cart-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0; }
.subtotal { font-size: 1.15rem; margin: 0; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); position: sticky; top: 9rem; }
.summary h2 { margin-top: 0; }
.summary .line[hidden] { display: none; } /* .line is flex, which would otherwise override [hidden] */
.plain { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.plain li, .line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; margin: 0; }
.line.total { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.7rem; font-weight: 700; font-size: 1.2rem; }
.callout { background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 0.95rem 1.15rem; border-radius: var(--radius); }
.callout h2 { margin-top: 0; font-size: 1.1rem; }
.flash { padding: 0.8rem 1.1rem; border-radius: var(--radius); margin: 1rem 0; border: 1px solid; }
.flash ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.flash-success { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-ink); }
.flash-error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }
.flash-info { background: var(--info-soft); border-color: var(--info-line); }
.status { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.status-soon, .status-pending_payment, .status-lead-new, .status-email-queued, .status-email-sending { background: var(--gold-soft); color: var(--gold-ink); }
.status-paid, .status-lead-won, .status-email-sent { background: var(--ok-soft); color: var(--ok-ink); }
.status-shipped, .status-lead-contacted { background: var(--info-soft); color: var(--info-ink); }
.status-email-failed { background: var(--danger-soft); color: var(--danger-ink); }
.status-cancelled, .status-refunded, .status-lead-lost, .status-email-skipped { color: var(--muted); }
address { font-style: normal; line-height: 1.6; }

/* toast (instant add to cart) */
.toast { position: fixed; z-index: 50; right: 1rem; bottom: 1rem; max-width: min(420px, calc(100% - 2rem)); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); transform: translateY(150%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s; }
.toast.show { transform: none; opacity: 1; }
.toast p { margin: 0 0 0.7rem; font-weight: 500; }
.toast .toast-actions { display: flex; gap: 0.5rem; }
.toast .btn { padding: 0.55rem 1rem; font-size: 0.9rem; }
.toast.error { border-left-color: var(--danger); }

/* ------------------------------------------------------- compact trust */
.trust-strip { margin-top: 3.5rem; border-top: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.1rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.55rem; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; }
.trust-item .icon { color: var(--accent); }

/* ----------------------------------------------------------------- admin */
.admin h1 { margin-bottom: 0.4em; }
.admin .header-inner { grid-template-areas: "logo nav actions"; grid-template-columns: auto 1fr auto; padding-bottom: 0.6rem; }
.admin .main-nav { margin-top: 0; }
.admin .header-inner > a.muted { grid-area: actions; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1rem 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.stat strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.88rem; }
.stat-ai { border-top: 3px solid var(--gold); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0.8rem 0; }
.scroll { overflow-x: auto; }
.thumb { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; }
.thumbs { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.thumb-box { width: 110px; margin: 0; }
.thumb-box img { width: 110px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.notes { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.8rem; white-space: pre-wrap; font-size: 0.85rem; }
.lead { margin: 0 0 0.8rem; }
.lead summary { cursor: pointer; }

/* ---------------------------------------------------------------- footer */

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-collage { height: 300px; max-width: 460px; width: 100%; margin-inline: auto; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .ws-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .header-inner { grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "menu menu"; padding-bottom: 0.7rem; }
  .header-actions { justify-self: end; gap: 0.6rem; }
  .cart-label { display: none; }
  .site-menu { display: block; grid-area: menu; padding-top: 0.7rem; }
  .search { max-width: none; }
  .main-nav { flex-wrap: wrap; margin-top: 0.4rem; }
  /* Phones (owner 2026-11-27: "search should be the most accessible button"): the search field is always in the
     sticky header; quick filters, category pills and utils live in the menu drawer. Hidden from the first paint
     (waiting for app.js to hide them moved the whole page up ~480px on slow phones: CLS 0.4). Without JS,
     public/css/nojs.css shows them inline again. */
  .menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0; }
  .site-menu { padding-top: 0.55rem; }
  .site-menu > :not(.search), .site-menu .search-filters { display: none; }
  .search input[type=search] { min-height: 46px; font-size: 16px; } /* 16px: iOS does not zoom the page on focus */
  .search .search-btn { width: 40px; height: 40px; }
  .js .site-menu.open { display: block; border-top: 1px solid var(--line); margin-top: 0.7rem; }
  .js .site-menu.open .main-nav { flex-direction: column; gap: 0; }
  .js .site-menu.open .main-nav a { padding: 0.75rem 0.2rem; border-bottom: 1px solid var(--line); }
  .js .site-menu.open .main-nav a[aria-current] { border-bottom-color: var(--line); color: var(--accent); }
  .product, .checkout, .two-col { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .summary { position: static; order: -1; }
  .row3, .row2 { grid-template-columns: 1fr; gap: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .card-body { padding: 0.6rem 0.7rem 0.8rem; }
  .filters { gap: 0.4rem 0.8rem; }
  .filters label:not(.check) { flex: 1 1 140px; }
  .filters select { min-width: 0; }
  .buy .btn-block { position: sticky; bottom: 0.8rem; z-index: 5; box-shadow: var(--shadow); }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  .cart-table td { border: 0; padding: 0.3rem 0.8rem; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .cart-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.8rem; }
  .cart-foot, .cart-actions { width: 100%; }
  .cart-actions .btn { flex: 1; }
  .legal-table { grid-template-columns: 1fr; }
  .legal-table dt { border-bottom: 0; padding-bottom: 0.3rem; }
  .admin .header-inner { grid-template-areas: "logo actions" "nav nav"; }
  .admin .main-nav { margin-top: 0.5rem; }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.1rem; }
  .lang-toggle { font-size: 0.8rem; }
  .utility-bar { font-size: 0.72rem; }
}
@media print {
  .utility-bar, .site-header, .site-footer, .trust-strip, .announce, .ticker, .flash-promo, .no-print, .flash { display: none !important; }
  body { background: var(--paper); }
  .receipt { border: 0; margin: 0; padding: 0; max-width: none; }
  .table { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Company profile (About, legal notice) */
.company { margin-top: 2rem; }
.legal-table + h2, .company h2 { margin-top: 2rem; }

/* Bulk import (admin) */
.error-box { background: var(--accent-soft); border-color: var(--accent-line); }
.error-box ul, .import-help ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.import-help { margin: 1.2rem 0; }
.import-help summary { cursor: pointer; font-weight: 600; }
.import-help table { margin-top: 0.6rem; }

/* Wholesale partners: their price first, retail struck through in muted ink */
.retail { color: var(--muted); font-weight: 400; font-size: 0.85em; margin-left: 0.3rem; }
.ws-note { display: inline-block; margin: 0.2rem 0 0.6rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-size: 0.85rem; font-weight: 600; }
.ws-cart { margin: 1rem 0; }
.ws-cart p { margin: 0.2rem 0; }
.ws-min-left { color: var(--ink); font-weight: 600; }
.ws-min-ok { color: var(--ok-ink); font-weight: 600; }
.ws-link { color: var(--ok-ink); background: var(--ok-soft); text-decoration: none; font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.ws-link:hover { text-decoration: underline; }
.ws-auth .panel { margin: 1rem 0; }
.status-ws-active { background: var(--ok-soft); color: var(--ok-ink); }
.status-ws-suspended { background: var(--accent-soft); color: var(--danger-ink); }

/* Long links (e.g. partner invite links) wrap instead of widening the page */
.flash, .callout { overflow-wrap: anywhere; }

/* Volume pricing table + reseller profit calculator (product page) */
.volume { margin: 1.4rem 0 0.6rem; }
.volume h2 { font-size: 1.05rem; margin: 0 0 0.2rem; }
.small { font-size: 0.86rem; }
/* Keep the bulk-price table and calculator inside a phone-width column (they used to push the page sideways). */
.product > * { min-width: 0; }
.volume { overflow-x: auto; }
.calc > summary { overflow-wrap: anywhere; }
.vol-table { margin: 0.5rem 0; font-size: 0.92rem; }
.vol-table td, .vol-table th { padding: 0.45rem 0.6rem; }
.vol-table tr.current td { background: var(--gold-soft); font-weight: 700; }
.vol-table tr.current td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.vol-status { font-size: 0.92rem; margin: 0.4rem 0 0; min-height: 1.3em; }
.vol-hint { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--ok-ink); font-weight: 600; }
.vol-cart { margin: 0.8rem 0; padding: 0.7rem 1rem; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok-ink); font-weight: 600; }
.rule { font-size: 0.8rem; color: var(--ok-ink); font-weight: 600; }
.calc { margin: 0.8rem 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.calc > summary { cursor: pointer; padding: 0.8rem 1rem; font-weight: 700; list-style-position: inside; }
.calc[open] > summary { border-bottom: 1px solid var(--line); }
.calc > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 0.8rem; margin-top: 0.6rem; }
.calc-grid label { font-size: 0.85rem; }
.calc-grid input { width: 100%; }
.calc-unit { display: flex; flex-direction: column; justify-content: flex-end; margin: 0; font-size: 0.85rem; }
.calc-unit strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 0.8rem; margin: 0.9rem 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.calc-out div { display: flex; flex-direction: column; }
.calc-out dt { font-size: 0.78rem; color: var(--muted); }
.calc-out dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-net dd { font-size: 1.2rem; color: var(--ok-ink); }
.calc-net.neg dd { color: var(--danger-ink); }
@media (max-width: 520px) { .calc-grid, .calc-out { grid-template-columns: 1fr; } }

/* Wholesale application (5 steps). Without JavaScript every step shows as one long form. */
html:not(.js) .js-only { display: none !important; }
.wa { max-width: 760px; margin: 0 auto; }
.wa .lead { color: var(--ink-2); }
.wa-progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; padding: 0; margin: 1.4rem 0; counter-reset: none; }
.wa-progress li { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; font-size: 0.8rem; color: var(--muted); position: relative; }
.wa-progress li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.wa-progress li:first-child::before { display: none; }
.wa-progress li.done::before, .wa-progress li.active::before { background: var(--accent); }
.wa-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface); border: 2px solid var(--line); color: var(--muted); }
.wa-progress li.active .wa-dot { border-color: var(--accent); color: var(--accent); }
.wa-progress li.done .wa-dot { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
.wa-progress li.done { cursor: pointer; color: var(--ink); }
.wa-progress li.active { color: var(--ink); font-weight: 600; }
.wa-step { margin: 0 0 1.2rem; }
.wa-step legend { font-size: 1.2rem; font-weight: 700; padding: 0; margin-bottom: 0.6rem; }
.wa-step legend:focus { outline: none; }
.wa-step-no { display: block; font-size: 0.78rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.wa-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.wa-fields > label:has(textarea), .wa-fields > fieldset, .wa-fields > .consent { grid-column: 1 / -1; }
.wa-fields label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; }
.wa-fields .check { flex-direction: row; align-items: flex-start; font-weight: 400; gap: 0.5rem; }
.wa-fields .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.wa-fields .req { color: var(--accent); }
.wa-fields .opt { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.checks { border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.35rem 1rem; }
.inline-checks .check { display: inline-flex; margin-right: 1.2rem; }
.consent a { font-weight: 600; }
.wa-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.2rem; }
.wa-review { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wa-review h2 { font-size: 1.05rem; }
.wa-review h3 { font-size: 0.9rem; margin: 1rem 0 0.3rem; color: var(--accent); }
.wa-review dl { display: grid; grid-template-columns: minmax(140px, 35%) 1fr; gap: 0.25rem 1rem; margin: 0; font-size: 0.9rem; }
.wa-review dt { color: var(--muted); }
.wa-review dd { margin: 0; overflow-wrap: anywhere; }
.wa-ref { font-size: 1.1rem; }
.wa-next-steps li { margin: 0.3rem 0; }
@media (max-width: 640px) {
  .wa-fields { grid-template-columns: 1fr; }
  .wa-progress-label { display: none; }
  .wa-progress li.active .wa-progress-label { display: block; position: absolute; top: 38px; white-space: nowrap; }
  .wa-progress { margin-bottom: 2.2rem; }
  .wa-review dl { grid-template-columns: 1fr; }
  .wa-review dd { margin-bottom: 0.4rem; }
}

/* Admin: application review */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.app-section { margin-bottom: 1rem; }
.app-section h2, .app-actions h2 { font-size: 1rem; margin-top: 0; }
.app-actions { display: flex; flex-direction: column; gap: 0.9rem; }
.app-actions .panel { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.timeline li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.chip-on { background: var(--ink); color: var(--on-ink); }
.status-app-approved { background: var(--ok-soft); color: var(--ok-ink); }
.status-app-pending, .status-app-info_required { background: var(--gold-soft); color: var(--gold-ink); }
.status-app-rejected, .status-app-suspended { background: var(--accent-soft); color: var(--danger-ink); }
.btn-block { width: 100%; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
/* Keep the step legend inside the panel (fieldset legends otherwise sit on the border) */
.wa-step legend { float: left; width: 100%; }
.wa-step legend + * { clear: both; }
.wa-step > p.muted { clear: both; margin-top: 0; }

/* Payment requests */
.pay h1 { font-size: 2.4rem; margin: 0.2rem 0; font-variant-numeric: tabular-nums; }
.pay .panel { margin: 1rem 0; }
.pay h2 { font-size: 1.05rem; margin-top: 0; }
.pay-details { padding: 0.8rem 1rem; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.pay-details p { margin: 0 0 0.4rem; }
.pay-ref { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0.4rem 0; }
.pay-ref dt { color: var(--muted); }
.pay-ref dd { margin: 0; font-variant-numeric: tabular-nums; }
.pay-message { border-left: 3px solid var(--accent); padding: 0.4rem 1rem; margin: 1rem 0; }
.status-pr-paid { background: var(--ok-soft); color: var(--ok-ink); }
.status-pr-reported, .status-pr-expired { background: var(--gold-soft); color: var(--gold-ink); }
.status-pr-cancelled { background: var(--accent-soft); color: var(--danger-ink); }
form.inline { display: inline; }

/* Admin detail pages: long links and codes wrap instead of widening the page */
.app-grid > * { min-width: 0; }
.app-grid code, .legal-table dd { overflow-wrap: anywhere; }

/* Quick order + quotes */
.qo-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.2rem; align-items: start; }
.qo-grid > * { min-width: 0; }
.qo-search { display: flex; gap: 0.5rem; }
.qo-search input { flex: 1; min-width: 0; }
.qo-table td { vertical-align: middle; }
.qo textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }
.cart-extra { text-align: right; margin-top: 0.4rem; }
.cart-save { justify-content: flex-end; margin-top: 0.6rem; }
.saved-carts li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.quote .panel { margin: 1rem 0; }
.quote h1 { font-variant-numeric: tabular-nums; }
.status-q-requested { background: var(--gold-soft); color: var(--gold-ink); }
.status-q-sent { background: var(--info-soft); }
.status-q-accepted { background: var(--ok-soft); color: var(--ok-ink); }
.status-q-declined, .status-q-cancelled, .status-q-expired { background: var(--accent-soft); color: var(--danger-ink); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
@media (max-width: 860px) { .qo-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- admin command centre */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 1rem 0.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.admin-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); font-weight: 800; padding: 0 0.4rem; }
.admin-brand small { font-weight: 400; color: var(--muted); }
.admin-search input { width: 100%; font-size: 0.88rem; padding: 0.5rem 0.7rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.nav-group > summary { list-style: none; cursor: pointer; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.6rem 0.5rem 0.25rem; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: '–'; float: right; font-weight: 400; }
.nav-group:not([open]) > summary::after { content: '+'; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.42rem 0.6rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 0.93rem; }
.admin-nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.nav-count { min-width: 1.4rem; text-align: center; font-size: 0.75rem; font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--accent); color: var(--on-ink); }
.admin-side-foot { border-top: 1px solid var(--line); padding: 0.8rem 0.5rem 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.admin-side-foot p { margin: 0; overflow-wrap: anywhere; }
.admin-main { min-width: 0; padding: 0 2rem 3rem; }
.admin-top { display: flex; align-items: center; gap: 0.8rem; padding: 1.2rem 0 0.6rem; }
.admin-top h1 { margin: 0; font-size: 1.6rem; }
.admin-menu-btn { display: none; }
.admin-main main { max-width: 1280px; }

/* Dashboard */
.action-centre { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; margin: 0.6rem 0 1.2rem; }
.ac-card { display: flex; flex-direction: column; padding: 0.7rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--muted); }
.ac-card strong { font-size: 1.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ac-card span { font-weight: 600; font-size: 0.88rem; }
.ac-card small { font-size: 0.78rem; }
.ac-hot { border-color: var(--line-strong); color: var(--ink-2); box-shadow: inset 3px 0 0 var(--accent); }
.ac-hot strong { color: var(--ink); }
.ac-card:hover { border-color: var(--ink); }
.range-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; margin: 0 0 1rem; }
.range-bar .chips { margin: 0; }
.range-bar label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; }
.range-bar input[type=date] { padding: 0.3rem 0.4rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.kpi span { font-size: 0.82rem; color: var(--muted); }
.kpi strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.kpi-hero strong { font-size: 1.9rem; }
.delta { font-size: 0.78rem; font-weight: 600; }
.delta.up { color: var(--ok-ink); }
.delta.down { color: var(--danger-ink); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.panel h2 { font-size: 1.02rem; margin-top: 0; }
.panel h3 { font-size: 0.9rem; margin: 1rem 0 0.3rem; color: var(--ink-2); }
.chart-panel { margin-bottom: 1rem; }
.chart { width: 100%; height: 220px; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .baseline { stroke: var(--line-strong); stroke-width: 1; }
.chart .axis { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .bar-g:hover .bar { opacity: 0.8; }
.chart .bar-g:hover .hit { fill: var(--surface-2); }
.empty-chart { padding: 2rem 0; text-align: center; }
.table-view summary { cursor: pointer; font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.dash-grid > * { min-width: 0; margin: 0; }
.bar-list td { padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 0.9rem; }
.bl-label { width: 40%; overflow-wrap: anywhere; }
.bl-bar { width: 32%; }
.bl-track { display: block; height: 10px; }
.bl-track svg { display: block; width: 100%; height: 10px; }
.share-bar { width: 100%; height: 16px; display: block; border-radius: 4px; }
.share-bar .empty { fill: var(--surface-2); }
.legend { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.9rem; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.4rem; vertical-align: baseline; }
.sw-blue { background: var(--chart-blue); }
.sw-gold { background: var(--chart-gold); }
.tag-ws { background: var(--gold-soft); color: var(--gold-ink); font-size: 0.7rem; padding: 0.05rem 0.35rem; border-radius: 4px; text-decoration: none; }
.admin-search-big { display: flex; gap: 0.5rem; max-width: 640px; }
.admin-search-big input { flex: 1; }
.search-group { margin-bottom: 0.8rem; }
.search-results li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-main { padding: 0 1rem 2rem; }
  /* With JavaScript the sidebar becomes a drawer behind the menu button. */
  html.js .admin-side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100vh; z-index: 50; transform: translateX(-105%); transition: transform 0.2s ease; box-shadow: 0 0 0 100vmax transparent; }
  html.js .admin-side.open { transform: none; box-shadow: 0 0 0 100vmax var(--overlay); }
  html.js .admin-menu-btn { display: inline-flex; }
  .dash-grid { grid-template-columns: 1fr; }
}

/* Orders: fulfilment badges, parcels, printable documents */
.status-f-unfulfilled { background: var(--surface-2); color: var(--ink-2); }
.status-f-partial { background: var(--gold-soft); color: var(--gold-ink); }
.status-f-fulfilled { background: var(--info-soft); color: var(--ink); }
.status-f-delivered { background: var(--ok-soft); color: var(--ok-ink); }
.order-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.parcel { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
.parcel:last-child { border-bottom: 0; }
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; max-width: 900px; }
.doc-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--ink); margin-bottom: 1rem; }
.doc-head h2 { margin: 0 0 0.3rem; letter-spacing: 0.04em; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1rem; }
.doc-parties h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.3rem; }
.doc-parties p { margin: 0; }
.doc-table { font-size: 0.88rem; }
.doc-sign { margin-top: 2.4rem; }
@media print {
  .admin-side, .admin-top, .no-print, .flash, .skip { display: none !important; }
  .admin-shell { display: block; background: var(--paper); }
  .admin-main { padding: 0; }
  .doc { border: 0; padding: 0; max-width: none; }
}
@media (max-width: 640px) { .doc-parties { grid-template-columns: 1fr; } }

/* Staff, two-step login, activity log */
.break { overflow-wrap: anywhere; word-break: break-all; }
.totp-key { display: inline-block; margin: 0.4rem 0; padding: 0.5rem 0.75rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.1rem; letter-spacing: 0.06em; }
.steps-list { padding-left: 1.25rem; display: grid; gap: 0.75rem; margin: 0 0 1rem; }
.row-warn td { background: var(--danger-soft); }
.role-table td:first-child { width: 34%; }

/* ==========================================================================
   Storefront theme: "Holo Night" (dark holographic, 2026-11-23)
   Applied by <html class="theme-holo"> on customer pages (src/views/layout.js). The admin keeps the light
   tokens above. Components only use tokens: change colours here, never inside a component rule.
   ========================================================================== */
/* Animatable aura colours (registered so the page glow can fade between slides). Initial values = cyan / sakura. */
@property --aura-1 { syntax: '<color>'; inherits: true; initial-value: #00f0ff; }
@property --aura-2 { syntax: '<color>'; inherits: true; initial-value: #ff3388; }
html.theme-holo {
  /* "Pearl Holo" (owner, 2026-11-25): white, the pastel blend of the holo-card logo, black ink. No dark panels, no frosted blur. */
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f9;
  --foil: linear-gradient(135deg, #e8e2f8 0%, #d2f5e3 35%, #fff2cc 70%, #d0eeff 100%);
  --foil-logo: linear-gradient(135deg, #e8cfe6 0%, #cadcf2 22%, #f4f0c3 42%, #d2eed3 60%, #d9cbee 80%, #e8cfe6 100%);
  --foil-soft: linear-gradient(135deg, #d9c9f2 0%, #b9e8cf 35%, #f3dc9a 70%, #b3dcf5 100%); /* the same hues, deep enough to read as a border on white */
  --foil-ink: #111114;
  --foil-glow: 0 0 0 1px rgba(17, 17, 20, 0.03), 0 14px 30px -16px rgba(109, 91, 208, 0.38);
  --qa-glow: 0 0 0 2px #ffffff, 0 4px 16px rgba(109, 91, 208, 0.35), 0 0 18px rgba(232, 207, 230, 0.9);
  --qa-glow-hover: 0 0 0 2px #ffffff, 0 8px 22px rgba(109, 91, 208, 0.45), 0 0 26px rgba(202, 220, 242, 1);
  --price: #8a6200;     /* warm gold, dark enough for small text on white (5.4:1) */
  --shine: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%);
  --glow-pk: radial-gradient(60% 55% at 50% 55%, rgba(250, 204, 21, 0.38), transparent 70%), radial-gradient(40% 40% at 30% 35%, rgba(96, 165, 250, 0.30), transparent 70%);
  --glow-op: radial-gradient(60% 55% at 50% 55%, rgba(248, 113, 113, 0.32), transparent 70%), radial-gradient(40% 40% at 70% 35%, rgba(234, 179, 8, 0.30), transparent 70%);
  --toast-bg: #ffffff;
  --drop-avatar: drop-shadow(0 2px 6px rgba(17, 17, 20, 0.18));
  --drop-logo: drop-shadow(0 4px 10px rgba(17, 17, 20, 0.12));
  --drop-brand: drop-shadow(0 16px 24px rgba(17, 17, 20, 0.16));
  --pearl-chip: rgba(255, 255, 255, 0.78);
  --ink: #111114;
  --ink-2: #3d404a;
  --muted: #646875;
  --line: #ececf1;
  --line-strong: #d9dae2;
  --cyan: #4f46e5;        /* interactive accent: a holo violet-blue that reads on white */
  --sakura: #c2185b;
  --amber: #b45309;
  --op-crimson: #c81e1e;
  --pk-yellow: #a16207;
  --pirate-gold: #a1740a;
  --violet: #6d5bd0;
  --void: #ffffff;
  --void-2: #ffffff;
  --accent: #111114;      /* primary buttons: black, like the diamond */
  --accent-dark: #2b2d36;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --accent-ink: #ffffff;
  --accent-line: rgba(79, 70, 229, 0.3);
  --gold: var(--amber);
  --gold-soft: rgba(245, 196, 81, 0.16);
  --gold-ink: #8a6200;
  --gold-line: rgba(180, 83, 9, 0.3);
  --ok: #16a34a;  --ok-soft: rgba(22, 163, 74, 0.08);  --ok-ink: #15803d;  --ok-line: rgba(22, 163, 74, 0.3);
  --danger: #dc2626;  --danger-soft: rgba(220, 38, 38, 0.07);  --danger-ink: #b91c1c;  --danger-line: rgba(220, 38, 38, 0.3);
  --info-soft: #f6f6f9;  --info-ink: #3d404a;  --info-line: #e3e4ea;
  --on-ink: #ffffff;
  --paper: #ffffff;
  --placeholder: #8e929d;
  --tag-out-bg: rgba(17, 17, 20, 0.06);
  --footer-bg: #f7f7fa;  --footer-ink: #3d404a;  --footer-muted: #646875;  --footer-line: #e6e7ec;  --footer-link: #111114;  --footer-link-hover: #4f46e5;
  --band-bg: #f7f7fa;  --band-ink: var(--ink);  --band-ink-2: var(--ink-2);
  --dot: rgba(79, 70, 229, 0.05);  --dot-faint: rgba(194, 24, 91, 0.04);
  --overlay: rgba(17, 17, 20, 0.38);
  --shadow-sm: 0 1px 2px rgba(17, 17, 20, 0.06);
  --shadow: 0 18px 40px -26px rgba(17, 17, 20, 0.30);
  /* surfaces (formerly glass): solid and clean */
  --glass: #ffffff;
  --glass-strong: #f6f6f9;
  --glass-border: #e9e9ef;
  --header-bg: #ffffff;
  --glow-cyan: 0 0 0 3px rgba(79, 70, 229, 0.14);
  --glow-sakura: 0 0 0 3px rgba(194, 24, 91, 0.12);
  --glow-amber: 0 0 0 3px rgba(180, 83, 9, 0.14);
  --glow-crimson: 0 0 0 3px rgba(200, 30, 30, 0.12);
  --glow-yellow: 0 0 0 3px rgba(202, 138, 4, 0.18);
  --holo: linear-gradient(115deg, transparent 22%, rgba(232, 207, 230, 0.55) 36%, rgba(202, 220, 242, 0.55) 50%, rgba(244, 240, 195, 0.55) 64%, transparent 78%);
  --brand-gradient: linear-gradient(90deg, #6d5bd0 0%, #c2185b 55%, #b45309 100%);
  --hero-glow: none;
  --brand-ink: #111114;
  --brand-red-text: #bc002d;
  --sakura-soft: rgba(194, 24, 91, 0.08);
  --obsidian: #64748b;
  --badge-glow: 0 0 0 2px #ffffff;
  --aura-1: var(--cyan);
  --aura-2: var(--sakura);
  --cyan-haze: 0 6px 16px -10px rgba(17, 17, 20, 0.45);
  --brand-glow: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.2));
  --holo-rule: rgba(255, 255, 255, 0.85);
  /* scrollbars */
  scrollbar-color: #d9dae2 #ffffff;
  scrollbar-width: thin;
}
html.theme-holo body { background-color: var(--bg); background-image: var(--hero-glow); background-attachment: fixed; }
html.theme-holo ::-webkit-scrollbar { width: 10px; height: 10px; }
html.theme-holo ::-webkit-scrollbar-track { background: var(--void); }
html.theme-holo ::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--sakura)); border-radius: 999px; border: 3px solid var(--void); }
html.theme-holo ::selection { background: var(--accent-soft); color: var(--ink); }

/* type: display face for headings, prices and badges */
html.theme-holo h1, html.theme-holo h2, html.theme-holo h3, html.theme-holo .kicker, html.theme-holo .tag,
html.theme-holo .badge, html.theme-holo .big-price, html.theme-holo .brand, html.theme-holo .btn { font-family: var(--font-display); }
html.theme-holo h1 { letter-spacing: -0.01em; }
html.theme-holo .kicker { color: var(--cyan); }

/* ---------------------------------------------------------- FX utilities */
.glass { background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.neon-border { box-shadow: var(--glow-cyan); }
.holo { position: relative; isolation: isolate; }
.holo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: var(--holo); background-size: 250% 100%; background-position: 130% 0; opacity: 0; mix-blend-mode: screen; transition: opacity 0.3s;
}
.holo:hover::after, .holo:focus-visible::after { opacity: 1; animation: holo-shimmer 1.8s linear infinite; }
@keyframes holo-shimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------- seal + brand */

/* ------------------------------------------------------- storefront parts */
html.theme-holo .site-header { background: var(--header-bg); border-bottom-color: var(--glass-border); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html.theme-holo .utility-bar { background: var(--void); color: var(--muted); border-bottom-color: var(--glass-border); }
html.theme-holo .main-nav a[aria-current] { border-bottom-color: var(--cyan); }
html.theme-holo .main-nav .nav-wholesale { color: var(--amber); }
html.theme-holo .search input[type=search] { background: var(--glass); border-color: var(--glass-border); }
html.theme-holo .hero, html.theme-holo .why-item, html.theme-holo .panel, html.theme-holo fieldset, html.theme-holo .soon-box,
html.theme-holo .soldout-note, html.theme-holo .set-list a, html.theme-holo .volume, html.theme-holo .calc {
  background: var(--glass); border-color: var(--glass-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
html.theme-holo .hero { background-image: var(--hero-glow); }
html.theme-holo .set-list a:hover { box-shadow: var(--glow-cyan); border-color: transparent; }
html.theme-holo .why-icon { box-shadow: var(--glow-cyan); }

/* product cards: glass panel, holo sheen, a glow in the franchise colour */
html.theme-holo .card { background: var(--glass); border-color: var(--glass-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
html.theme-holo .card-img { background: var(--glass-strong); }
html.theme-holo .card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--glow-cyan); }
html.theme-holo .card[data-franchise="pokemon"]:hover { box-shadow: var(--glow-yellow); }
html.theme-holo .card[data-franchise="one-piece"]:hover { box-shadow: var(--glow-crimson); }
html.theme-holo .card[data-type="case"]:hover { box-shadow: var(--glow-amber); }
html.theme-holo .tag-jp { background: var(--sakura-soft); color: var(--sakura); border-color: var(--sakura); }
html.theme-holo .tag-lang { background: var(--surface); color: var(--ink); border-color: var(--ink); }
html.theme-holo .tag-soon { background: var(--accent-soft); color: var(--cyan); box-shadow: var(--glow-cyan); }
html.theme-holo .vol-hint, html.theme-holo .ws-link { color: var(--gold-ink); }
html.theme-holo .ws-link, html.theme-holo .ws-note { background: var(--gold-soft); color: var(--gold-ink); }

/* buttons: neon */
html.theme-holo .btn-primary, html.theme-holo .btn:not(.btn-secondary):not(.btn-neon) { box-shadow: var(--cyan-haze); }
html.theme-holo .btn-primary:hover, html.theme-holo .btn:not(.btn-secondary):not(.btn-neon):hover { background: var(--cyan); box-shadow: var(--glow-cyan); }
html.theme-holo .btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
html.theme-holo .btn-secondary:hover { background: var(--glass-strong); color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn-neon { --neon: var(--cyan); --neon-glow: var(--glow-cyan); background: transparent; color: var(--neon); border: 1px solid var(--neon); box-shadow: var(--neon-glow); text-shadow: 0 0 10px currentColor; }
.btn-neon:hover { background: var(--neon); color: var(--void); text-shadow: none; box-shadow: var(--neon-glow), 0 0 40px var(--neon); }
.neon-yellow { --neon: var(--pk-yellow); --neon-glow: var(--glow-yellow); }
.neon-crimson { --neon: var(--op-crimson); --neon-glow: var(--glow-crimson); }
.neon-amber { --neon: var(--amber); --neon-glow: var(--glow-amber); }
.neon-sakura { --neon: var(--sakura); --neon-glow: var(--glow-sakura); }

/* ------------------------------------------------------- /design showcase */
.ds-hero { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; margin: 1.5rem 0; border-radius: var(--radius-lg); }
.brand-mark { display: inline-flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.brand-mark-logo { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1; letter-spacing: -0.02em;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--brand-glow); }
.brand-mark-sub { font-family: var(--font-display); letter-spacing: 0.4em; color: var(--sakura); font-size: 0.85rem; text-transform: uppercase; }
.ds-section { margin: 2.5rem 0; }
.ds-samples .sample { display: flex; flex-direction: column; gap: 0.5rem; }
.ds-label { align-self: flex-start; font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid currentColor; }
.ds-label.l-pokemon { color: var(--pk-yellow); }
.ds-label.l-one-piece { color: var(--op-crimson); }
.ds-label.l-case { color: var(--amber); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; padding: 0; margin: 0; list-style: none; }
.swatch { border-radius: var(--radius); overflow: hidden; }
.swatch .chip-color { height: 70px; border-bottom: 1px solid var(--glass-border); }
.swatch p { margin: 0; padding: 0.5rem 0.7rem; font-size: 0.8rem; }
.swatch code { background: none; padding: 0; color: var(--muted); }
.sw-void { background: var(--void); }
.sw-void-2 { background: var(--void-2); }
.sw-glass { background: var(--glass-strong); }
.sw-glass-border { background: var(--glass-border); }
.sw-cyan { background: var(--cyan); }
.sw-sakura { background: var(--sakura); }
.sw-amber { background: var(--amber); }
.sw-op-crimson { background: var(--op-crimson); }
.sw-pk-yellow { background: var(--pk-yellow); }
.sw-ink { background: var(--ink); }
.sw-muted { background: var(--muted); }
.sw-gradient { background: var(--brand-gradient); }
.ds-buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.ds-secondary-row { margin-top: 0.9rem; }
.ds-type .t-display { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin: 0; }
.ds-type .t-body { color: var(--ink-2); max-width: 60ch; }

/* ==========================================================================
   Header (step 2): category pills, search quick filters, currency + language, cart drawer
   ========================================================================== */
html.theme-holo .site-header {
  background: color-mix(in srgb, var(--aura-1) 7%, var(--header-bg));
  border-bottom-color: color-mix(in srgb, var(--aura-1) 30%, transparent);
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--aura-1) 55%, transparent);
}
.search { flex-direction: column; }
.search-field { position: relative; display: flex; width: 100%; }
.search-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
@media (min-width: 801px) {
  .search-filters { position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0; z-index: 35; margin: 0; padding: 0.55rem; border-radius: var(--radius); background: var(--void-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
  .search:focus-within .search-filters { opacity: 1; visibility: visible; transform: none; }
}
.qf { border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink-2); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.qf:hover, .qf:focus-visible { color: var(--ink); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
html.theme-holo .search input[type=search]:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); background: var(--void-2); }
html.theme-holo .search .search-btn { background: var(--cyan); color: var(--void); }
html.theme-holo .search .search-btn:hover { box-shadow: var(--glow-cyan); }

.main-nav.cat-nav { gap: 0.5rem; align-items: center; padding-bottom: 0.75rem; flex-wrap: wrap; overflow: visible; }
.cat-nav .pill { --pill: var(--cyan); display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.9rem; border-radius: 999px; border: 1px solid var(--glass-border); border-bottom-width: 1px;
  background: var(--glass); color: var(--ink-2); font-weight: 600; font-size: 0.88rem; transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s; }
.cat-nav .pill .icon { color: var(--pill); }
.cat-nav .pill:hover, .cat-nav .pill:focus-visible { color: var(--ink); border-color: var(--pill); box-shadow: 0 0 16px -2px color-mix(in srgb, var(--pill) 45%, transparent); }
.cat-nav .pill[aria-current] { color: var(--ink); border-color: var(--pill); background: color-mix(in srgb, var(--pill) 14%, transparent); }
.pill-pokemon { --pill: var(--pk-yellow) !important; }
.pill-op { --pill: var(--op-crimson) !important; }
.pill-ws { --pill: var(--amber) !important; }
.pill-new { --pill: var(--sakura) !important; }
.pill-singles { --pill: var(--cyan) !important; }
.nav-sep { width: 1px; align-self: stretch; margin: 0.35rem 0.25rem; background: var(--line-strong); }
.cat-nav .nav-plain { font-size: 0.88rem; padding: 0.42rem 0.5rem; border-bottom-width: 0; }

.header-actions { gap: 0.7rem; }
.cur-menu { position: relative; }
.cur-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.65rem; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass); color: var(--ink-2); font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.cur-menu summary::-webkit-details-marker { display: none; }
.cur-menu[open] summary, .cur-menu summary:hover { color: var(--ink); border-color: var(--cyan); }
.cur-list { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 40; list-style: none; margin: 0; padding: 0.35rem; min-width: 150px; background: var(--void-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.cur-list a { display: block; padding: 0.45rem 0.65rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 0.88rem; }
.cur-list a:hover, .cur-list a[aria-current] { background: var(--accent-soft); color: var(--ink); }
.cur-list a[aria-current] { color: var(--cyan); }
.lang-toggle { gap: 0; padding: 2px; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass); }
.lang-toggle a, .lang-toggle strong { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; }
html.theme-holo .lang-toggle strong { background: var(--accent-soft); color: var(--cyan); }
.fx-note { margin: -0.3rem 0 0.8rem; font-size: 0.82rem; color: var(--muted); }

/* cart badge: neon pulse on change */
html.theme-holo .badge:not(.badge-empty) { background: var(--cyan); color: var(--void); box-shadow: var(--badge-glow); }
.badge.bump { animation: badge-pulse 0.9s ease-out; }
@keyframes badge-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 70%, transparent); }
  35% { transform: scale(1.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px transparent; }
}

/* cart drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: var(--overlay); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--void-2); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: drawer-in 0.25s ease-out; }
.drawer-backdrop[hidden], .cart-drawer[hidden] { display: none !important; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
html.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass); color: var(--ink); cursor: pointer; }
.drawer-close:hover { border-color: var(--cyan); color: var(--cyan); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem 1.4rem; }
.drawer-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.drawer-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.drawer-thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--glass-strong); overflow: hidden; }
.drawer-thumb img { width: 100%; height: 100%; object-fit: contain; }
.drawer-line { display: grid; gap: 0.1rem; font-size: 0.88rem; }
.drawer-line a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-line .muted { font-size: 0.78rem; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin: 0.5rem 0; }
.drawer-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
.drawer-empty { color: var(--muted); margin: 1rem 0; }

/* ==========================================================================
   Hero carousel with ambient aura
   ========================================================================== */
/* The aura colours live on the header and the hero only: set on <html>, every slide change restyled the whole page. */
html.theme-holo :is(.site-header, .hero-carousel) { transition: --aura-1 1.2s ease, --aura-2 1.2s ease; }
html.theme-holo[data-aura="pokemon"] :is(.site-header, .hero-carousel) { --aura-1: var(--cyan); --aura-2: var(--pk-yellow); }
html.theme-holo[data-aura="one-piece"] :is(.site-header, .hero-carousel) { --aura-1: var(--op-crimson); --aura-2: var(--pirate-gold); }
html.theme-holo[data-aura="wholesale"] :is(.site-header, .hero-carousel) { --aura-1: var(--obsidian); --aura-2: var(--amber); }
html.theme-holo[data-aura="sakura"] :is(.site-header, .hero-carousel) { --aura-1: var(--sakura); --aura-2: var(--cyan); }
html.theme-holo[data-aura="tokyo"] :is(.site-header, .hero-carousel) { --aura-1: var(--cyan); --aura-2: var(--violet); }
html.theme-holo[data-aura="grails"] :is(.site-header, .hero-carousel) { --aura-1: var(--pirate-gold); --aura-2: var(--sakura); }
html.theme-holo body { overflow-x: clip; }

.hero-carousel { position: relative; isolation: isolate; margin: 1.5rem 0 0.5rem; }
.hc-aura { position: absolute; inset: -10% 0; z-index: -1; pointer-events: none; opacity: 0.7; /* no blur filter: a 70px blur re-rasterised the whole hero glow on every slide change; the gradients fade to transparent on their own */
  background: radial-gradient(38% 60% at 22% 40%, color-mix(in srgb, var(--aura-1) 55%, transparent), transparent 70%),
              radial-gradient(36% 58% at 80% 62%, color-mix(in srgb, var(--aura-2) 45%, transparent), transparent 70%); }
.hc-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--aura-1) 30%, var(--glass-border)); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--aura-1) 60%, transparent); }
.hc-track::-webkit-scrollbar { display: none; }
.hc-slide { scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4.5vw, 3.4rem); min-height: clamp(360px, 36vw, 440px); }
.hc-copy .kicker { color: var(--aura-2); }
.hc-title { margin: 0 0 0.8rem; font-size: clamp(1.75rem, 3.8vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; }
.lang-ja .hc-title { line-height: 1.3; font-size: clamp(1.55rem, 3.2vw, 2.4rem); }
.hc-text { color: var(--ink-2); max-width: 46ch; font-size: clamp(0.98rem, 1.3vw, 1.08rem); margin: 0 0 1.5rem; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; }
.is-enhanced .hc-copy { transition: opacity 0.5s ease, transform 0.5s ease; }
.is-enhanced .hc-slide:not(.is-active) .hc-copy { opacity: 0; transform: translateY(10px); }
.hc-feature { justify-self: end; width: 100%; max-width: 340px; display: grid; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--glass-strong); border: 1px solid var(--glass-border); transition: transform 0.25s, box-shadow 0.25s; }
.hc-feature:hover { color: var(--ink); transform: translateY(-4px); }
.hc-pokemon .hc-feature:hover { box-shadow: var(--glow-yellow); }
.hc-one-piece .hc-feature:hover { box-shadow: var(--glow-crimson); }
.hc-wholesale .hc-feature:hover { box-shadow: var(--glow-amber); }
.hc-feature-img { display: block; aspect-ratio: 1; padding: 1rem; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--aura-2) 18%, transparent), transparent 70%); }
.hc-feature-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px var(--overlay)); }
.hc-feature-meta { display: grid; gap: 0.15rem; padding: 0.85rem 1rem 1rem; border-top: 1px solid var(--glass-border); }
.hc-feature-label { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aura-2); }
.hc-feature-meta strong { font-size: 0.92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-feature-empty { min-height: 200px; background: var(--hero-glow); }

.hc-controls { display: none; }
.is-enhanced .hc-controls { display: flex; justify-content: center; align-items: center; gap: 0.55rem; margin-top: 0.9rem; }
.hc-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass); color: var(--ink); cursor: pointer; }
.hc-btn:hover, .hc-btn:focus-visible { border-color: var(--aura-1); box-shadow: 0 0 14px -2px color-mix(in srgb, var(--aura-1) 60%, transparent); }
.hc-dots { display: flex; align-items: center; gap: 0.45rem; padding: 0 0.3rem; }
/* 24px tap target (WCAG 2.5.8) around the 9px dot: the button is a transparent box, the dot is drawn with a background clip. */
.hc-dots .hc-dot { min-width: 24px; height: 24px; background-clip: content-box; padding: 7.5px 7.5px; box-sizing: border-box; }
.hc-dots .hc-dot[aria-current] { min-width: 45px; box-shadow: none; }
.hc-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: width 0.3s, background 0.3s; }
.hc-dot[aria-current] { width: 30px; background: var(--aura-1); box-shadow: 0 0 10px color-mix(in srgb, var(--aura-1) 70%, transparent); }
.hc-pause .i-play, .is-paused .hc-pause .i-pause { display: none; }
.is-paused .hc-pause .i-play { display: inline; }
.hc-pause .icon { display: block; }

@media (max-width: 800px) {
  .hc-slide { grid-template-columns: 1fr; min-height: 0; align-content: start; }
  .hc-feature { justify-self: stretch; max-width: none; grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
  .hc-feature-img { padding: 0.5rem; }
  .hc-feature-meta { border-top: 0; border-left: 1px solid var(--glass-border); }
  .hc-feature-empty { display: none; }
  .header-actions { gap: 0.45rem; }
  .cur-menu summary { padding: 0.3rem 0.5rem; }
  .cur-menu summary .icon:first-child { display: none; }
  .main-nav.cat-nav { flex-wrap: wrap; }
  .nav-sep { display: none; }
  /* menu panel: pills as a tidy two-column grid, extra links as a list below */
  .js .site-menu.open .main-nav.cat-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; align-items: stretch; }
  .js .site-menu.open .cat-nav .pill { justify-content: flex-start; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--glass-border); border-radius: var(--radius); white-space: normal; line-height: 1.25; }
  .js .site-menu.open .cat-nav .pill[aria-current] { border-color: var(--pill); }
  .js .site-menu.open .cat-nav .nav-plain { padding: 0.65rem 0.2rem; border-bottom: 1px solid var(--line); text-align: left; }
}
/* phones: currency + language move from the bar into the menu panel */
.menu-utils { display: none; }
@media (max-width: 560px) {
  .header-actions .cur-menu, .header-actions .lang-toggle { display: none; }
  .menu-utils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
  .menu-cur { display: inline-flex; gap: 0.25rem; margin: 0; padding: 2px; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass); }
  .menu-cur a { padding: 0.25rem 0.55rem; border-radius: 999px; font-size: 0.8rem; color: var(--ink-2); text-decoration: none; }
  .menu-cur a[aria-current] { background: var(--accent-soft); color: var(--cyan); }
  .menu-utils .lang-toggle { margin: 0; }
}

/* ==========================================================================
   TcgPro logos (src/views/logo.js)
   ========================================================================== */
.hs-pink { stop-color: var(--holo-pink); }
.hs-blue { stop-color: var(--holo-blue); }
.hs-yellow { stop-color: var(--holo-yellow); }
.hs-mint { stop-color: var(--holo-mint); }
.hs-lilac { stop-color: var(--holo-lilac); }
.lg-diamond { fill: var(--mark-ink); }
.lg-red { fill: var(--brand-red); }
.lg-card-edge { stroke: var(--line-strong); stroke-width: 2; }
.lg-card-rule { stroke: var(--holo-rule); stroke-width: 3; }
.logo-mark, .logo-card { display: block; flex: none; }
.logo-card { filter: drop-shadow(0 2px 6px var(--overlay)); }
html.theme-holo .logo-card { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--aura-1) 35%, transparent)); }

/* header lockup: card + TcgPro + トレカプロ */
.brand { gap: 0.65rem; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-latin); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.035em; color: var(--brand-ink); }
.brand-kana { font-family: var(--font-ja); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.42em; color: var(--brand-red-text); margin-top: 0.28rem; }
html.theme-holo .brand { font-family: var(--font-latin); }
.admin-brand .logo-mark { width: 26px; height: 36px; }

/* wordmark: TcgPr + red sun as the "o", holo rule, トレカプロ */
.wordmark-lg { display: inline-grid; justify-items: center; line-height: 1; color: var(--brand-ink); }
.wm-name { font-family: var(--font-latin); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.04em; white-space: nowrap; }
.wm-dot { display: inline-block; width: 0.56em; height: 0.56em; margin-left: 0.04em; border-radius: 50%; background: var(--brand-red); }
.wm-rule { width: 100%; height: 0.32rem; margin: 0.55rem 0 0.5rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--holo-pink), var(--holo-blue) 22%, var(--holo-yellow) 45%, var(--holo-mint) 62%, var(--holo-lilac) 82%, var(--holo-pink)); }
.wm-kana { font-family: var(--font-ja); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.9em; margin-right: -0.9em; }
.wordmark-xl .wm-name { font-size: clamp(3rem, 11vw, 6rem); }
.wordmark-xl .wm-rule { height: 0.55rem; margin: 0.9rem 0 0.8rem; }
.wordmark-xl .wm-kana { font-size: clamp(0.9rem, 2.2vw, 1.3rem); }
html.theme-holo .wordmark-xl .wm-dot { box-shadow: 0 0 40px color-mix(in srgb, var(--brand-red) 70%, transparent); }
.ds-wordmark { margin: 0 0 1rem; }

/* /design: logo board */
.ds-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.ds-logo { margin: 0; border-radius: var(--radius-lg); padding: 1.4rem; display: grid; gap: 1rem; }
.ds-logo-art { min-height: 190px; display: grid; place-items: center; }
.ds-logo-art .brand { pointer-events: none; }
.ds-logo figcaption { display: grid; gap: 0.15rem; font-size: 0.9rem; }

@media (max-width: 520px) {
  .brand-name { font-size: 1.2rem; }
  .brand-kana { font-size: 0.55rem; letter-spacing: 0.32em; }
  .logo-card { width: 24px; height: 34px; }
}

/* ==========================================================================
   Shop: filter sidebar + results (step 3)
   ========================================================================== */
.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; }
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.6rem; align-items: start; margin-top: 0.5rem; }
.facets { position: sticky; top: 9.5rem; max-height: calc(100vh - 11rem); overflow-y: auto; scrollbar-width: thin; }
.facets-box { border-radius: var(--radius-lg); padding: 0 1.1rem 1.1rem; }
.facets-box > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; }
.facets-box > summary::-webkit-details-marker { display: none; }
.facets-box[open] > summary .icon { transform: rotate(180deg); }
.facet-form { display: grid; gap: 1.1rem; }
.facet-form .facet { margin: 0; }
html.theme-holo .facet-form fieldset, .facet-form fieldset { border: 0; padding: 0; margin: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.facet-form legend, .facet-form > label.facet { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0; }
.facet-form > label.facet input, .facet-form > label.facet select { margin-top: 0.4rem; font-size: 0.92rem; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 400; }
.facet-form legend { margin-bottom: 0.4rem; }
.facet-form label.radio { display: flex; align-items: center; gap: 0.5rem; margin: 0.15rem 0; padding: 0.25rem 0; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.facet-form label.radio:hover { color: var(--ink); }
.facet-form input[type=radio] { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; }
.facet-form .count { margin-left: auto; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.facet-form label.check.facet { text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--ink); }
.price-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.45rem; align-items: center; }
.price-range label { margin: 0; }
.price-quick { margin-top: 0.6rem; gap: 0.35rem; }
.price-quick .chip { font-size: 0.75rem; padding: 0.22rem 0.6rem; }
.facet-actions { display: flex; align-items: center; gap: 0.9rem; margin: 0; }
.facet-actions .btn { padding: 0.55rem 1.1rem; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.results-count { margin: 0; }
.sort { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.88rem; white-space: nowrap; }
.sort select { width: auto; padding: 0.45rem 0.7rem; }
.active-filters { margin: 0 0 1rem; gap: 0.4rem; }
.active-filters .chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; padding: 0.3rem 0.7rem; background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.active-filters .chip:hover { border-color: var(--accent); }
@media (max-width: 959px) {
  .catalog { grid-template-columns: 1fr; gap: 1rem; }
  .facets { position: static; max-height: none; overflow: visible; }
}

/* ==========================================================================
   Product page: zoom, lightbox, stock, buy buttons, related rail
   ========================================================================== */
.gallery-main.zoom { position: relative; display: block; overflow: hidden; cursor: zoom-in; border-radius: var(--radius-lg); }
.gallery-main.zoom img { transition: transform 0.2s ease; }
.gallery-main.zoom.zooming img { transform: scale(2.1); }
.zoom-hint { position: absolute; left: 50%; bottom: 0.7rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--header-bg, var(--surface)); border: 1px solid var(--glass-border, var(--line)); color: var(--ink-2); font-size: 0.75rem; white-space: nowrap; pointer-events: none; transition: opacity 0.2s; }
.gallery-main.zoom.zooming .zoom-hint { opacity: 0; }
.lightbox { width: min(94vw, 960px); max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb-img { display: block; width: 100%; height: min(88vh, 900px); object-fit: contain; background: var(--surface-2); }
.lb-close, .lb-nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.lb-close { top: 0.8rem; right: 0.8rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0.8rem; }
.lb-next { right: 0.8rem; }
.lb-close:hover, .lb-nav:hover { border-color: var(--accent); color: var(--accent); }
.stock-level { display: flex; align-items: center; gap: 0.5rem; margin: 0.1rem 0 0.9rem; font-weight: 600; font-size: 0.92rem; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.stock-in { color: var(--ok-ink); }
.stock-in .stock-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.stock-low { color: var(--gold-ink); }
.stock-low .stock-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.stock-out { color: var(--muted); }
.buy-actions { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.buy-actions .btn { gap: 0.5rem; }
html.theme-holo .btn-buy-now { border-color: var(--amber); color: var(--gold-ink); }
html.theme-holo .btn-buy-now:hover { background: var(--amber); color: var(--void); border-color: var(--amber); box-shadow: var(--glow-amber); }
.vol-cta { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
.vol-cta a { color: var(--gold-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; }
.vol-cta a:hover { text-decoration: underline; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0.3rem 0.2rem 0.8rem; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* ---------------------------------------------------------------- checkout + customer accounts (prompt 5) */
.account-link { position: relative; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--ink); text-decoration: none; }
.account-link:hover, .account-link[aria-current="page"] { color: var(--accent); }
.account-dot { position: absolute; top: 0.35rem; right: 0.35rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.86rem; }
.btn-link { background: none; border-color: transparent; color: var(--ink-2); text-decoration: underline; padding-inline: 0.4rem; }
.btn-link:hover { color: var(--accent); }
.co-who { display: flex; align-items: center; gap: 0.4rem; margin: -0.5rem 0 1rem; }
.ship-methods #ship-methods { display: grid; gap: 0.6rem; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin: 0; }
.ship-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ship-opt-main { display: grid; gap: 0.15rem; }
.ship-opt-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.co-save { margin: 0.2rem 0; }
.co-account { display: grid; gap: 0.6rem; }
.co-account .co-pw { display: none; }
.co-account:has(input[name="create_account"]:checked) .co-pw { display: block; }
.co-secure { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: -0.4rem; }
.co-saved { margin-bottom: 0.4rem; }
.order-thanks { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--accent); margin: 0 0 1.5rem; }
.order-thanks svg { flex: none; color: var(--accent); margin-top: 0.2rem; }
.order-thanks h2 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.order-thanks p { margin: 0; }
.acct { max-width: 1100px; margin-inline: auto; }
.acct-auth .panel { margin: 1rem 0; }
.acct-head h1 { margin: 0.1rem 0 0.2rem; }
.acct-head .eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--ink-2); }
.acct-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; border-bottom: 1px solid var(--line); margin: 1.2rem 0 1.5rem; padding-bottom: 0.6rem; }
.acct-tabs a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.acct-tabs a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.acct-tabs a:hover { color: var(--accent); }
.acct-out { margin-left: auto; }
.acct-orders .track { display: block; }
.acct-orders .track a { display: inline-flex; align-items: center; gap: 0.3rem; }
.acct-empty { text-align: center; padding: 2rem 1rem; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.addr-list { display: grid; gap: 0.8rem; margin: 0; }
.addr-card { position: relative; }
.addr-card.is-default { border-color: var(--accent); }
.addr-card address { font-style: normal; line-height: 1.6; margin: 0 0 0.7rem; }
.addr-card .badge-soft { position: absolute; top: 0.8rem; right: 0.9rem; font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.addr-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.addr-actions form { margin: 0; }
.addr-form h2 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.zone-table td { vertical-align: top; }
.zone-table textarea { margin-top: 0.4rem; min-width: 12rem; }
.rate-grid { display: grid; grid-template-columns: repeat(3, minmax(5.5rem, 1fr)); gap: 0.35rem 0.6rem; min-width: 19rem; }
.rate-grid label { font-size: 0.8rem; margin: 0; }
.rate-grid .rate-on { grid-column: 1 / -1; font-weight: 600; }
@media (max-width: 760px) {
  .acct-grid { grid-template-columns: 1fr; }
  .acct-orders thead { display: none; }
  .acct-orders tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .acct-orders td { border: 0; padding: 0.1rem 0; }
  .acct-orders td::before { content: attr(data-label); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
  .acct-orders td.num { text-align: left; }
  .acct-out { margin-left: 0; }
}

/* ---------------------------------------------------------------- admin orders (prompt 7) */
.search-row { display: flex; gap: 0.5rem; margin: 0 0 0.8rem; max-width: 34rem; }
.search-row input { flex: 1; }
.chip-n { display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.25rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.78em; text-align: center; }
.chip-on .chip-n { background: var(--surface); color: var(--ink); }
.status-stage-pending { background: var(--gold-soft); color: var(--gold-ink); }
.status-stage-paid { background: var(--ok-soft); color: var(--ok-ink); }
.status-stage-processing { background: var(--info-soft); color: var(--ink); }
.status-stage-shipped { background: var(--info-soft); color: var(--ink); }
.status-stage-delivered { background: var(--ok-soft); color: var(--ok-ink); }
.status-stage-cancelled { background: var(--surface-2); color: var(--ink-2); }
.status-stage-refunded { background: var(--accent-soft); color: var(--ink); }
.stage-track { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; padding: 0; margin: 0.4rem 0 1rem; font-size: 0.82rem; }
.stage-track li { padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.stage-track li.done { background: var(--surface-2); color: var(--ink); }
.stage-track li.now { background: var(--ink); color: var(--on-ink); border-color: var(--ink); font-weight: 600; }
.stage-track li.closed { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
details.mini { margin: 0.6rem 0 0; }
details.mini > summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
details.mini form { margin-top: 0.6rem; }
.inline-radios { border: 0; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.inline-radios legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.inline-radios .narrow-input { margin-left: 0.3rem; }
.refund-row td { color: var(--ink-2); }
.doc-stamp { display: inline-block; padding: 0.3rem 0.9rem; border: 2px solid currentColor; border-radius: 6px; font-weight: 800; letter-spacing: 0.08em; }
.doc-stamp.paid { color: var(--ok-ink); }
.doc-stamp.due { color: var(--accent); }
.doc-stamp.void { color: var(--ink-2); }

/* ---------------------------------------------------------------- revenue, banners, merchandising (prompt 8) */
.rev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 0 0 1.2rem; }
.rev-card { display: grid; gap: 0.2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.rev-card:hover { border-color: var(--ink-2); }
.rev-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rev-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.rev-total { font-size: 1.6rem; line-height: 1.2; }
.rev-meta { font-weight: 600; font-size: 0.9rem; }
.panel-head .chips { margin: 0; }
.best-table td:nth-child(2) { max-width: 26rem; }
.theme-swatch { display: inline-block; width: 2.2rem; height: 1.1rem; border-radius: 999px; vertical-align: middle; border: 1px solid var(--line); }
.theme-pokemon { background: linear-gradient(90deg, var(--cyan), var(--pk-yellow)); }
.theme-one-piece { background: linear-gradient(90deg, var(--op-crimson), var(--amber)); }
.theme-wholesale { background: linear-gradient(90deg, var(--ink-2), var(--amber)); }
.theme-sakura { background: linear-gradient(90deg, var(--sakura), var(--cyan)); }
.theme-tokyo { background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.theme-grails { background: linear-gradient(90deg, var(--amber), var(--sakura)); }
.theme-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.5rem; }
.theme-pick { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin: 0; font-weight: 500; }
.theme-pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.theme-pick .theme-swatch { width: 3rem; height: 1.4rem; }
.banner-table .nowrap { white-space: nowrap; }
.banner-table .inline-form { display: inline; }
.tag-limited { top: auto; bottom: 10px; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
html.theme-holo .tag-limited { background: var(--sakura-soft); color: var(--sakura); border-color: var(--sakura); }
.limited-line { margin: 0.2rem 0 0.4rem; font-size: 0.9rem; color: var(--ink-2); }
.limited-pill { display: inline-block; padding: 0.05rem 0.55rem; border-radius: 999px; font-weight: 700; font-size: 0.78rem; border: 1px solid var(--accent); color: var(--accent); }
html.theme-holo .limited-pill { border-color: var(--sakura); color: var(--sakura); }
/* Admin inline badges reuse .tag (absolutely positioned for product cards): keep them in the text flow. */
.tag.tag-ws, .tag.tag-ai { position: static; display: inline-block; vertical-align: middle; }

/* ---------------------------------------------------------------- admin visitors (prompt 9) */
.kpi-live strong { color: var(--ok-ink); }
.live-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ok-ink); margin-right: 0.2rem; vertical-align: middle; animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-pages li { padding: 0.25rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
/* Admin -> Revenue hub (2026-11-26) */
.rev-export { margin-left: auto; }
.rev-kpis .kpi-bad strong { color: var(--danger, var(--ink)); }
.rev-est { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: flex-end; }
.rev-est label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.input-suffix { display: inline-flex; align-items: center; gap: 0.3rem; }
@media (max-width: 640px) { .rev-export { margin-left: 0; width: 100%; justify-content: center; } }
/* Admin -> Visitors: live pulse + device split (2026-11-26) */
.live-pulse .panel-head h2 { display: flex; align-items: center; gap: 0.4rem; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.8rem; align-items: start; }
.live-grid h3 { font-size: 0.9rem; margin: 0 0 0.35rem; color: var(--muted); }
.live-list li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.live-list strong { font-variant-numeric: tabular-nums; }
.device-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.section-h { font-size: 1.05rem; margin: 1.2rem 0 0.6rem; }
.funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.funnel li { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 0.2rem 0.8rem; align-items: center; }
.funnel-n { font-size: 1.25rem; font-weight: 700; text-align: right; }
.funnel-bar { grid-column: 2 / -1; height: 0.5rem; border-radius: 999px; background: var(--info-soft); width: 0; }

/* ---------------------------------------------------------------- guides, calendar, shipping guide, FAQ (2026-11-25) */
.crumbs [aria-current="page"] { color: var(--ink-2); }
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.g-card { padding: 1.3rem 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--line); display: grid; gap: 0.5rem; align-content: start; }
.g-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.g-card h2 a { color: inherit; text-decoration: none; }
.g-card h2 a:hover { color: var(--cyan); }
.g-card p { margin: 0; }
.g-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin: 2rem 0; }
.g-tools h2 { display: flex; align-items: center; gap: 0.4rem; font-size: 1.05rem; margin: 0 0 0.6rem; }
.g-next li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.guide { line-height: 1.75; }
.guide h2 { margin-top: 2.2rem; scroll-margin-top: 7rem; }
.guide h3 { margin-top: 1.6rem; }
.g-head h1 { margin-bottom: 0.4rem; }
.g-lead { font-size: 1.12rem; color: var(--ink-2); }
.g-toc { margin: 1.5rem 0; padding: 1rem 1.3rem; }
.g-toc h2 { margin: 0 0 0.4rem; font-size: 1rem; }
.g-toc ol { margin: 0; padding-left: 0; list-style: none; } /* headings carry their own numbers */
.g-toc li { padding: 0.15rem 0; }
.g-tip { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.9rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); }
.g-tip svg { flex: none; margin-top: 0.35rem; color: var(--amber); }
/* Guides: Featured Tokyo Stock, FAQ, wholesale CTA (2026-11-26) */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: 760px; margin-inline: auto; }
.guide-layout > .guide.narrow { margin-inline: 0; width: 100%; min-width: 0; max-width: none; }
.g-stock { margin: 2.2rem 0; }
.g-stock .block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.g-stock .block-head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 0.4rem; }
.g-stock-rail { grid-auto-columns: minmax(170px, 1fr); }
.g-faq { margin-top: 2.4rem; }
.g-faq .faq { margin-bottom: 0.5rem; }
.g-ws-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; }
.g-ws-cta .kicker { margin: 0 0 0.3rem; }
.g-ws-cta .g-ws-p { margin: 0 0 0.8rem; font-size: 0.92rem; }
.g-ws-cta .btn { width: 100%; justify-content: center; }
@media (min-width: 1100px) {
  .guide-layout { grid-template-columns: minmax(0, 760px) 280px; justify-content: center; gap: 2.5rem; max-width: none; }
  .g-ws-cta { position: sticky; top: 7rem; align-self: start; margin-top: 4rem; }
}
@media (max-width: 1099px) {
  .guide-layout { padding-bottom: 5.5rem; }
  .g-ws-cta { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 40; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 18%, transparent); }
  .g-ws-cta .kicker { margin: 0; flex: 1; min-width: 0; }
  .g-ws-cta .g-ws-p { display: none; }
  .g-ws-cta .btn { width: auto; flex: none; font-size: 0.88rem; padding-inline: 0.8rem; }
}
@media (max-width: 420px) { .g-ws-cta .kicker { display: none; } .g-ws-cta .btn { width: 100%; } }
.g-showcase { margin: 2rem 0; padding: 1.2rem 1.3rem; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.g-showcase .block-head h2 { margin: 0; font-size: 1.1rem; }
.g-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; }
.g-related ul li { padding: 0.35rem 0; }
.cal-filters { margin: 1rem 0 1.5rem; }
.cal-timeline { list-style: none; padding: 0; margin: 0; }
.cal-month { margin: 0 0 1.8rem; }
.cal-month > h2 { font-size: 1.15rem; margin: 0 0 0.7rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.cal-list { display: grid; gap: 0.75rem; margin: 0; }
.cal-list > .cal-entry { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: center; padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); scroll-margin-top: 7rem; }
.cal-entry:target { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.cal-pokemon { border-left: 3px solid var(--pk-yellow); }
.cal-one-piece { border-left: 3px solid var(--op-crimson); }
.cal-date { text-align: center; line-height: 1.15; }
.cal-date strong { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.cal-date span { font-size: 0.72rem; color: var(--ink-2); }
.cal-main h3 { margin: 0.15rem 0 0.4rem; font-size: 1.05rem; }
.cal-alt { font-size: 0.85rem; font-weight: 400; }
.cal-meta { margin: 0; font-size: 0.82rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.cal-status { margin-left: 0.3rem; padding: 0.05rem 0.55rem; border-radius: 999px; font-weight: 700; font-size: 0.74rem; border: 1px solid currentColor; }
.cal-st-announced { color: var(--cyan); }
.cal-st-preorder { color: var(--amber); }
.cal-st-released { color: var(--ink-2); }
.cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.cal-notify { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.cal-notify input { width: min(15rem, 100%); padding: 0.4rem 0.6rem; }
.cal-img img { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; }
.cal-list > .cal-entry[hidden], .cal-month[hidden] { display: none; }
@media (max-width: 640px) {
  .cal-list > .cal-entry { grid-template-columns: 3.5rem 1fr; }
  .cal-img { display: none; }
}
.sg-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0.8rem; counter-reset: sg; }
.sg-steps li { counter-increment: sg; display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.sg-steps li::before { content: counter(sg); font-family: var(--font-display); font-weight: 700; color: var(--cyan); }
.sg-steps span { font-size: 0.9rem; color: var(--ink-2); }
.sg-rates td, .sg-customs td { vertical-align: top; }
.faq-search { display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.faq-search input { flex: 1; }
.faq-cat > h2 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; }
.faq summary h3 { display: inline; font-size: 1rem; margin: 0; }
.faq-cat[hidden], .faq[hidden] { display: none; }
.faq-more { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- homepage components (2026-11-25) */
html.theme-holo .price, html.theme-holo .big-price { color: var(--price); }
.card-wrap { position: relative; display: flex; min-width: 0; }
.card-wrap > .card { flex: 1; min-width: 0; }
html.theme-holo .card { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--foil-soft) border-box; }
html.theme-holo .card:hover { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--foil) border-box; box-shadow: var(--foil-glow); }
.card-img .tag-jp { top: auto; bottom: 10px; }
.card-img .tag-lang { top: auto; bottom: 10px; }
.tag-save { background: var(--foil); color: var(--foil-ink); font-weight: 800; letter-spacing: 0.04em; box-shadow: var(--shadow-sm); }
.card-body .was { color: var(--muted); font-size: 0.85em; text-decoration-thickness: 2px; text-decoration-color: var(--danger); }
.stock-left { color: var(--ok-ink); font-size: 0.8rem; font-weight: 600; margin: 0.15rem 0 0; }
.qa-form { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; }
.qa-btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--price); background: var(--bg); color: var(--price); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.15s, background 0.15s, color 0.15s; }
.qa-btn:hover, .qa-btn:focus-visible { background: var(--foil); color: var(--foil-ink); transform: scale(1.08); }
.qa-btn[disabled] { opacity: 0.6; }
/* buttons: holographic foil with a shine sweep */
.btn-foil { position: relative; overflow: hidden; background: var(--foil); color: var(--foil-ink); border-color: transparent; font-weight: 700; }
.btn-foil:hover, .btn-foil:focus-visible { color: var(--foil-ink); box-shadow: var(--foil-glow); }
.btn-foil::after { content: ''; position: absolute; inset: 0; background: var(--shine); transform: translateX(-120%); }
.btn-foil:hover::after { transform: translateX(120%); transition: transform 0.8s ease; }
.btn-pill { border-radius: 999px; padding: 0.95rem 2rem; font-size: 1.02rem; letter-spacing: 0.04em; text-transform: uppercase; }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }
.min-order-note { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.7rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--amber); color: var(--price); background: var(--gold-soft); margin: 0.8rem 0; font-size: 0.92rem; }
.min-order-note svg { flex: none; margin-top: 0.2rem; }
/* added-to-cart toast */
.qa-toast { position: fixed; left: 50%; bottom: 1.2rem; z-index: 80; width: min(30rem, calc(100% - 1.5rem)); display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: center;
  padding: 0.9rem 1rem; border-radius: var(--radius-lg); background: linear-gradient(var(--toast-bg), var(--toast-bg)) padding-box, var(--foil-soft) border-box; border: 1px solid transparent;
  box-shadow: var(--shadow), var(--foil-glow); transform: translate(-50%, 140%); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; }
.qa-toast.show { transform: translate(-50%, 0); opacity: 1; }
.qa-media { position: relative; width: 64px; height: 64px; }
.qa-thumb { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.qa-avatar { position: absolute; left: -10px; bottom: -8px; display: grid; place-items: center; width: 30px; height: 36px; filter: var(--drop-avatar); }
.qa-text p { margin: 0; }
.qa-head { font-family: var(--font-display); font-weight: 700; color: var(--price); font-size: 0.95rem; }
.qa-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 1.4rem; }
.qa-price { font-size: 0.9rem; color: var(--ink-2); }
.qa-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.55rem !important; }
.qa-close { position: absolute; top: 0.5rem; right: 0.5rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer; }
.qa-close:hover { color: var(--ink); border-color: var(--ink-2); }
/* Shop by Era */
.era-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.3rem 0.2rem 1rem; scrollbar-width: thin; }
.era-card { scroll-snap-align: start; display: grid; grid-template-rows: 1fr auto; min-height: 220px; border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--foil-soft) border-box; border: 1px solid transparent; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.era-card:hover { box-shadow: var(--foil-glow); transform: translateY(-2px); color: var(--ink); }
.era-logo { display: grid; place-items: center; padding: 1.6rem 1.4rem 0.8rem; }
.era-logo img { max-height: 92px; width: auto; object-fit: contain; filter: var(--drop-logo); }
.era-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem 1.1rem; }
.era-name { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.era-count { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ok-ink); font-size: 0.86rem; }
.era-count::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ok-ink); }
.era-go { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--price); color: var(--price); flex: none; }
.era-card:hover .era-go { background: var(--foil); color: var(--foil-ink); border-color: transparent; }
.era-all { text-align: center; margin: 0.6rem 0 0; }
.era-chips { margin: 0.6rem 0 1.4rem; }
/* Shop by Brand */
.brand-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.brand-card { position: relative; display: grid; place-items: center; padding: 1.5rem; border-radius: var(--radius-lg); isolation: isolate; perspective: 900px; }
.brand-card::before { content: ''; position: absolute; inset: 6% 8%; z-index: -1; filter: blur(28px); opacity: 0.85; transition: opacity 0.3s; }
.brand-pokemon::before { background: var(--glow-pk); }
.brand-one-piece::before { background: var(--glow-op); }
.brand-card img { width: min(100%, 460px); height: auto; transition: transform 0.35s ease; filter: var(--drop-brand); }
.brand-card:hover img, .brand-card:focus-visible img { transform: rotateX(6deg) translateY(-6px) scale(1.03); }
.brand-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .qa-toast { transition: none; }
  .btn-foil:hover::after { transition: none; }
  .brand-card img, .era-card, .qa-btn { transition: none; }
  .brand-card:hover img, .brand-card:focus-visible img { transform: none; }
}

/* ==========================================================================
   Pearl Holo (2026-11-25): light storefront in the colours of the holo-card logo.
   Later rules win: no frosted blur, no neon glow; pastel foil only as accents.
   ========================================================================== */
html.theme-holo .site-header, html.theme-holo .hero, html.theme-holo .why-item, html.theme-holo .panel, html.theme-holo fieldset, html.theme-holo .soon-box,
html.theme-holo .soldout-note, html.theme-holo .set-list a, html.theme-holo .volume, html.theme-holo .calc, html.theme-holo .card, html.theme-holo .glass,
html.theme-holo .hc-track, html.theme-holo .drawer-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.theme-holo .lightbox::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.theme-holo body { background-image: none; }
html.theme-holo .site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); box-shadow: none; }
html.theme-holo .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--foil-logo); pointer-events: none; }
html.theme-holo .utility-bar { background: var(--surface-2); color: var(--ink-2); }
html.theme-holo .panel, html.theme-holo .why-item, html.theme-holo .soon-box, html.theme-holo .set-list a, html.theme-holo .volume, html.theme-holo .calc { box-shadow: var(--shadow-sm); }
html.theme-holo ::-webkit-scrollbar-track { background: var(--bg); }
html.theme-holo ::-webkit-scrollbar-thumb { background: var(--line-strong); border-color: var(--bg); }
html.theme-holo .holo::after { mix-blend-mode: multiply; }
html.theme-holo .logo-card { filter: var(--drop-avatar); }

/* buttons: black primary, white secondary, foil highlight */
html.theme-holo .btn-primary, html.theme-holo .btn:not(.btn-secondary):not(.btn-neon) { box-shadow: var(--cyan-haze); }
html.theme-holo .btn-primary:hover, html.theme-holo .btn:not(.btn-secondary):not(.btn-neon):not(.btn-foil):hover { background: var(--accent-dark); color: var(--accent-ink); box-shadow: var(--shadow); }
html.theme-holo .btn.btn-foil { color: var(--foil-ink); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); }
html.theme-holo .btn.btn-foil:hover, html.theme-holo .btn.btn-foil:focus-visible { background: var(--foil); color: var(--foil-ink); box-shadow: inset 0 0 0 1px var(--line-strong), var(--foil-glow); }
html.theme-holo .btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
html.theme-holo .btn-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink); box-shadow: none; }
html.theme-holo .btn-neon { background: var(--ink); color: var(--on-ink); border-color: var(--ink); text-shadow: none; box-shadow: var(--cyan-haze); }
html.theme-holo .btn-neon:hover { background: var(--accent-dark); color: var(--on-ink); border-color: var(--accent-dark); box-shadow: var(--shadow); }
html.theme-holo .search .search-btn { background: var(--ink); color: var(--on-ink); }
html.theme-holo .search input[type=search] { background: var(--surface-2); border-color: var(--line); }
html.theme-holo .search input[type=search]:focus { background: var(--surface); }
html.theme-holo .badge:not(.badge-empty) { background: var(--ink); color: var(--on-ink); }
html.theme-holo .cat-nav .pill { background: var(--surface); border-color: var(--line-strong); }
html.theme-holo .cat-nav .pill:hover, html.theme-holo .cat-nav .pill:focus-visible { box-shadow: var(--shadow-sm); }

/* hero: the logo's pastel blend, black type */
html.theme-holo .hc-aura { display: none; }
html.theme-holo .hc-track { background: var(--foil-logo); border: 0; box-shadow: var(--shadow); }
html.theme-holo .hc-copy .kicker { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--pearl-chip); color: var(--ink); }
html.theme-holo .hc-text { color: var(--ink-2); }
html.theme-holo .hc-feature { background: var(--surface); border-color: transparent; box-shadow: var(--shadow); }
html.theme-holo .hc-feature-img { background: var(--surface); }
html.theme-holo .hc-feature-img img { filter: var(--drop-logo); }
html.theme-holo .hc-feature-label { color: var(--ink-2); }
html.theme-holo .hc-btn { background: var(--surface); border-color: var(--line-strong); }
html.theme-holo .hc-btn:hover, html.theme-holo .hc-btn:focus-visible { border-color: var(--ink); box-shadow: none; }
html.theme-holo .hc-dot[aria-current] { background: var(--ink); box-shadow: none; }

/* product cards: white, foil edge, soft lift */
html.theme-holo .card-img { background: var(--surface-2); }
html.theme-holo .card:hover, html.theme-holo .card[data-franchise]:hover, html.theme-holo .card[data-type="case"]:hover {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--foil-soft) border-box; box-shadow: var(--foil-glow); }
html.theme-holo .qa-btn { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
html.theme-holo .qa-btn:hover, html.theme-holo .qa-btn:focus-visible { background: var(--foil); color: var(--foil-ink); border-color: var(--line-strong); }
html.theme-holo .tag-save { box-shadow: inset 0 0 0 1px var(--line-strong); }
html.theme-holo .tag-soon { box-shadow: none; }

/* Shop by Era: logos sit on the pastel blend */
html.theme-holo .era-logo { background: var(--foil-logo); margin: 0.5rem 0.5rem 0; border-radius: calc(var(--radius-lg) - 6px); }
html.theme-holo .era-go { border-color: var(--ink); color: var(--ink); }
html.theme-holo .era-card:hover .era-go { background: var(--ink); color: var(--on-ink); }
html.theme-holo .qa-head { color: var(--ink); }

/* ===================================================================== Conversion features (2026-11-25)
   Card quick add (big black + → green tick → − qty + stepper), badge stack, wishlist heart, stars, goal bars
   (minimum order / free shipping), reviews, sticky mobile buy bar, cart-waiting banner, newsletter popup,
   Shipping & Returns page. Colours only through tokens. */
.card-wrap { container-type: inline-size; }

/* Badge stack, top-left of the photo */
.card-img .badges { position: absolute; top: 10px; left: 10px; right: 52px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; pointer-events: none; }
.card-img .badges .tag, html.theme-holo .card-img .badges .tag { position: static; box-shadow: var(--shadow-sm); white-space: nowrap; }
.tag-new { background: var(--ink); color: var(--on-ink); }
.tag-hot { background: var(--danger); color: var(--on-ink); }
.tag-low { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold); }
.tag-pre { background: var(--info-soft); color: var(--info-ink); border: 1px solid var(--info-line); }
.tag-sealed-jp { background: var(--sakura-soft); color: var(--sakura); border: 1px solid var(--sakura); }

/* Wishlist heart, top-right of the photo */
.wish-btn, button.wish-btn:not(.link) { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.15s, color 0.15s; touch-action: manipulation; }
.wish-btn:hover, .wish-btn:focus-visible { color: var(--danger); transform: scale(1.08); }
.wish-btn[aria-pressed="true"], button.wish-btn[aria-pressed="true"]:not(.link) { color: var(--danger); border-color: var(--danger-line); }
.wish-btn[aria-pressed="true"] svg path { fill: currentColor; }
.wish-btn.pop { animation: bump 0.35s ease; }
.wish-link { position: relative; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--ink); text-decoration: none; }
.wish-link:hover, .wish-link[aria-current="page"] { color: var(--danger); }
.wish-link .badge { position: absolute; top: -2px; right: -4px; min-width: 1.1rem; height: 1.1rem; font-size: 0.65rem; padding: 0 0.25rem; }
.wish-link .badge-empty { display: none; }

/* Quick add: bottom-right corner of the photo (the photo is 5:7 of the card width) */
.qa-form, html.theme-holo .qa-form { position: absolute; top: calc(140cqw - 60px); bottom: auto; right: 10px; z-index: 3; margin: 0; display: flex; align-items: center; justify-content: flex-end; }
.qa-btn, html.theme-holo .qa-btn { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); cursor: pointer; touch-action: manipulation;
  border: 4px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--foil-logo) border-box; box-shadow: var(--qa-glow); transition: transform 0.15s ease, box-shadow 0.2s; }
.qa-btn svg { stroke-width: 3.2; }
.qa-btn:hover, .qa-btn:focus-visible, .qa-btn:active, html.theme-holo .qa-btn:hover, html.theme-holo .qa-btn:focus-visible { color: var(--on-ink); border: 4px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--foil-logo) border-box; transform: scale(1.12); box-shadow: var(--qa-glow-hover); }
.qa-btn.qa-ok, html.theme-holo .qa-btn.qa-ok, html.theme-holo .qa-btn.qa-ok:hover { background: linear-gradient(var(--ok), var(--ok)) padding-box, var(--foil-logo) border-box; color: var(--on-ink); transform: scale(1.12); }
.qa-form.in-cart .qa-btn { display: none; }
.qa-stepper { display: none; align-items: center; gap: 0.1rem; height: 50px; padding: 0 0.2rem; border-radius: 999px; border: 4px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--foil-logo) border-box; color: var(--on-ink); box-shadow: var(--qa-glow); }
.qa-form.in-cart .qa-stepper { display: inline-flex; }
.qa-step, button.qa-step:not(.link) { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--on-ink); font-size: 1.4rem; font-weight: 800; line-height: 1; cursor: pointer; touch-action: manipulation; }
.qa-step:hover:not([disabled]), .qa-step:focus-visible { background: var(--ink-2); }
.qa-step[disabled] { opacity: 0.35; cursor: not-allowed; }
.qa-qty { min-width: 1.6rem; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.qa-plus1 { position: absolute; right: 10px; top: -8px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ok); pointer-events: none; animation: qa-float 0.9s ease-out forwards; }
@keyframes qa-float { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-30px); } }
.qa-sold, button.qa-sold:not(.link) { height: 34px; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); font-size: 0.78rem; font-weight: 700; cursor: not-allowed; }
.qa-head { display: flex; align-items: center; gap: 0.35rem; }
.qa-head .icon { color: var(--ok); }
.qa-undo { font-weight: 700; }

/* Stars */
.stars { display: flex; align-items: center; gap: 0.3rem; margin: 0.1rem 0 0.25rem; font-size: 0.82rem; }
.star-row { letter-spacing: 0.04em; font-size: 0.95rem; }
.star-row .on { color: var(--pk-yellow); }
.star-row .off { color: var(--line-strong); }
.star-num { font-weight: 700; }
.stars-link { text-decoration: none; color: inherit; display: inline-block; }

/* Goal bars: minimum order and free shipping */
.goal-note { margin: 0.8rem 0; padding: 0.75rem 0.95rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.goal-note p { display: flex; gap: 0.5rem; align-items: center; margin: 0 0 0.5rem; font-weight: 600; color: var(--ink); }
.goal-note.min-order-note { display: block; border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.free-ship-note.done { border-color: var(--ok-line); background: var(--ok-soft); }
.free-ship-note.done p { color: var(--ok-ink); margin-bottom: 0; }
.free-ship-note.done .goal-bar { display: none; }
.goal-bar { display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); -webkit-appearance: none; appearance: none; }
.goal-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.goal-bar::-webkit-progress-value { background: var(--foil-soft); border-radius: 999px; }
.goal-bar::-moz-progress-bar { background: var(--foil-soft); border-radius: 999px; }
.min-order-note .goal-bar::-webkit-progress-value { background: var(--ink); }
.min-order-note .goal-bar::-moz-progress-bar { background: var(--ink); }
.cart-drawer .goal-note { margin: 0.6rem 0; font-size: 0.9rem; }

/* Recommendations */
.reco { margin-top: 2.2rem; }

/* Reviews */
.reviews { margin-top: 2.5rem; }
.rv-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1.5rem; align-items: start; }
.rv-avg { margin: 0; font-family: var(--font-display); font-size: 1rem; color: var(--muted); }
.rv-avg strong { font-size: 2.4rem; color: var(--ink); }
.rv-write { margin-top: 0.8rem; }
.rv-write > summary { list-style: none; cursor: pointer; display: inline-flex; gap: 0.4rem; align-items: center; }
.rv-write > summary::-webkit-details-marker { display: none; }
.rv-form { margin-top: 0.8rem; }
.rv-rate { border: 0; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.rv-star { display: flex; gap: 0.5rem; align-items: center; color: var(--pk-yellow); letter-spacing: 0.05em; cursor: pointer; }
.rv-list { display: grid; gap: 0.9rem; }
.rv-item { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rv-item p { margin: 0 0 0.35rem; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.rv-head .stars { margin: 0; }
.rv-head .stars .muted, .rv-head .star-num { display: none; }

/* Sticky Add to cart (phones, product page) */
.sticky-buy { display: none; }
@media (max-width: 760px) {
  .sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px var(--overlay); transform: translateY(110%); transition: transform 0.25s ease; }
  .sticky-buy.show { transform: translateY(0); }
  body:has(.sticky-buy) { padding-bottom: 76px; }
  .sticky-info { flex: 1; min-width: 0; display: grid; }
  .sticky-title { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
  .sticky-buy .btn { flex: none; min-height: 46px; }
  .rv-grid { grid-template-columns: 1fr; }
}

/* "Your cart is waiting" */
.cart-wait { background: var(--foil-logo); border-bottom: 1px solid var(--line); }
.cart-wait-inner { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; color: var(--ink); }
.cart-wait-inner p { margin: 0; flex: 1; }
.cw-close, button.cw-close:not(.link) { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }

/* Newsletter popup */
.nl-pop { width: min(26rem, calc(100% - 2rem)); padding: 2rem 1.6rem 1.4rem; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 24px 60px var(--overlay); }
.nl-pop::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--foil-logo); border-radius: 18px 18px 0 0; }
.nl-pop::backdrop { background: var(--overlay); }
.nl-pop h2 { margin: 0.6rem 0 0.4rem; font-size: 1.35rem; }
.nl-pop p { margin: 0 0 0.8rem; color: var(--ink-2); }
.nl-art { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; background: var(--foil-logo); }
.nl-close, button.nl-close:not(.link) { position: absolute; top: 0.7rem; right: 0.7rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.nl-form { display: flex; gap: 0.5rem; margin: 0 0 0.6rem; }
.nl-form input[type=email] { flex: 1; min-width: 0; }
.nl-pop .nl-msg { font-weight: 600; color: var(--ok-ink); }
.nl-pop .nl-msg.error { color: var(--danger); }
.nl-msg:empty { display: none; }
@media (max-width: 480px) { .nl-form { flex-direction: column; } }

/* Shipping & Returns */
.sr-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.4rem 0 2rem; }
.sr-card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.sr-card > .icon { color: var(--ink); }
.sr-card h2 { font-size: 1.1rem; margin: 0.4rem 0; }
.sr-card ul { padding-left: 1.1rem; margin: 0 0 0.6rem; }
.sr-free { font-weight: 700; color: var(--ok-ink); }
@media (max-width: 640px) { .sr-cards { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .qa-btn, .wish-btn, .sticky-buy { transition: none; }
  .qa-plus1, .wish-btn.pop { animation: none; }
}

/* Delivery options before checkout (product page, cart) */
.ship-opts { margin: 1rem 0; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.ship-opts-h { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.4rem; }
.ship-opts ul { list-style: none; margin: 0 0 0.4rem; padding: 0; display: grid; gap: 0.25rem; }
.ship-opts li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.ship-days { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ship-opts p.small { margin: 0; }
.cart-foot .ship-opts { flex-basis: 100%; }

/* Payment states on the order page (processing / failed / success) and the checkout overlay (2026-11-25) */
.pay-state { display: flex; gap: 1rem; align-items: flex-start; margin: 0 0 1.25rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.pay-state h2 { margin: 0.1rem 0 0.4rem; font-size: 1.35rem; }
.pay-state p { margin: 0 0 0.5rem; }
.pay-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pay-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; }
.pay-success { border-color: var(--ok-line); background: var(--ok-soft); }
.pay-success .pay-icon { background: var(--ok); color: var(--on-ink); }
.pay-success .pay-kicker { color: var(--ok-ink); }
.pay-failed { border-color: var(--danger-line); background: var(--danger-soft); }
.pay-failed .pay-icon { background: var(--danger); color: var(--on-ink); }
.pay-failed .pay-kicker, .pay-reason { color: var(--danger-ink); }
.pay-processing { border-color: var(--info-line); background: var(--info-soft); }
.pay-processing .pay-kicker { color: var(--info-ink); }
.pay-retry { margin-top: 0.75rem; }
.pay-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem 1.25rem; margin: 0.75rem 0 0; }
.pay-facts div { padding: 0.6rem 0.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--ok-line); }
.pay-facts dt { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.pay-facts dd { margin: 0.15rem 0 0; font-weight: 700; display: flex; align-items: center; gap: 0.35rem; }
.pay-spinner { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid var(--info-line); border-top-color: var(--cyan); border-right-color: var(--sakura); animation: pay-spin 0.9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: var(--overlay); }
.pay-overlay[hidden] { display: none; }
.pay-overlay-card { display: flex; gap: 1rem; align-items: center; max-width: 24rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.pay-overlay-card p { margin: 0; }
[data-pay-btn].is-busy { opacity: 0.7; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .pay-spinner { animation-duration: 2.4s; } }
@media (max-width: 560px) { .pay-state { flex-direction: column; } }

/* Quote tracker (/account/quotes) and the case quote form (/wholesale/quote) */
.q-cards { display: grid; gap: 1rem; margin: 1rem 0; }
.q-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.q-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; margin: 1rem 0 0.75rem; padding: 0; counter-reset: q; }
.q-steps li { position: relative; display: grid; justify-items: center; gap: 0.35rem; text-align: center; font-size: 0.82rem; color: var(--muted); }
.q-steps li::before { content: ""; position: absolute; top: 0.55rem; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.q-steps li:first-child::before { display: none; }
.q-steps li.done::before, .q-steps li.current::before { background: linear-gradient(90deg, var(--cyan), var(--sakura)); }
.q-dot { position: relative; z-index: 1; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.q-steps li.done .q-dot { background: var(--cyan); border-color: var(--cyan); }
.q-steps li.current { color: var(--ink); font-weight: 700; }
.q-steps li.current .q-dot { background: var(--sakura); border-color: var(--sakura); box-shadow: 0 0 0 4px var(--accent-soft); }
.q-card-foot { margin: 0; color: var(--muted); }
.q-closed { margin: 0.75rem 0; }
.case-quote fieldset { margin: 0; }
.case-quote legend { font-weight: 800; }
.cq-filter { max-width: 22rem; margin-bottom: 0.6rem; }
.cq-table { max-height: 28rem; overflow-y: auto; }
.cq-qty { width: 5.5rem; text-align: right; }
.cq-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; }
.cq-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.cq-cta h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.25rem; font-size: 1.2rem; }
.cq-cta p { margin: 0; }
@media (max-width: 560px) { .q-steps li { font-size: 0.7rem; } }
.table tr.hl td { background: var(--gold-soft); font-weight: 700; }

/* ------------------------------------------------ admin: quotes drawer, funnel analytics, email previewer (2026-11-25) */
.admin .btn-small { padding: 0.35rem 0.8rem; font-size: 0.86rem; }
.admin .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; white-space: nowrap; }
/* Quote stages (admin view) */
.status-qs-pending { background: var(--gold-soft); color: var(--gold-ink); }
.status-qs-priced { background: var(--info-soft); color: var(--info-ink); }
.status-qs-approved { background: var(--ok-soft); color: var(--ok-ink); }
.status-qs-fulfilled { background: var(--ink); color: var(--on-ink); }
.status-qs-rejected { background: var(--danger-soft); color: var(--danger-ink); }
.q-stage { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.q-detail { display: block; }
@media (max-width: 720px) { .q-table .q-stage { align-items: flex-end; } }
/* Quote list: a table on wide screens, stacked cards on phones (labels from data-label) */
@media (max-width: 720px) {
  .q-table thead { display: none; }
  .q-table, .q-table tbody, .q-table tr, .q-table td { display: block; width: 100%; }
  .q-table tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.8rem; margin-bottom: 0.7rem; background: var(--surface); }
  .q-table td { border: 0; padding: 0.2rem 0; display: flex; gap: 0.75rem; justify-content: space-between; text-align: right; }
  .q-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.85rem; text-align: left; }
  .q-table td.num { text-align: right; }
}
/* Side drawer */
.q-drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(760px, 100vw); max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--ink); overflow-y: auto; }
.q-drawer::backdrop { background: var(--overlay); }
.q-drawer-bar { position: sticky; top: 0; z-index: 1; margin: 0; padding: 0.7rem 1.2rem; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; justify-content: flex-end; }
.q-drawer [data-q-drawer-body] { padding: 0 1.2rem 1.5rem; }
.q-panel h2 { margin: 0.2rem 0; }
.q-panel h2:focus { outline: none; } /* focused by script when the drawer opens (screen readers start here) */
.q-lines { font-size: 0.9rem; }
.q-lines th, .q-lines td { padding: 0.45rem 0.5rem; }
.q-lines td:first-child { min-width: 9rem; }
.q-lines .narrow-input { width: 6rem; }
.q-panel h3 { margin: 1.4rem 0 0.5rem; font-size: 1rem; }
.q-panel-head { padding-top: 0.8rem; }
.q-panel-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.q-panel-ref .q-stage { flex-direction: row; align-items: center; gap: 0.5rem; }
.q-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem 1.2rem; margin: 1rem 0; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.q-facts dt { color: var(--muted); font-size: 0.82rem; }
.q-facts dd { margin: 0.1rem 0 0; overflow-wrap: anywhere; }
.q-notes { background: var(--surface-2); border-radius: var(--radius); padding: 0.7rem 0.9rem; }
.q-total { font-size: 1.05rem; }
.q-acts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.q-act { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); padding: 0.65rem 0.9rem; background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.q-act-done { border-left-color: var(--ok); }
.q-act-current { border-left-color: var(--accent); }
.q-act-locked { border-left-color: var(--line-strong); color: var(--muted); }
.q-act-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; flex: 1 1 260px; }
.q-act-form input { flex: 1 1 140px; min-width: 0; }
/* Funnel analytics */
.fn { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.fn-stage { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fn-head { display: flex; align-items: center; gap: 0.75rem; }
.fn-step { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.fn-label { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fn-count { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.fn-count strong { font-size: 1.35rem; }
.fn-bar { display: block; width: 100%; height: 18px; margin-top: 0.55rem; }
.fn-bar rect { fill: var(--chart-blue); }
.fn-src { margin: 0.4rem 0 0; }
.fn-drop { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.45rem 0.9rem 0.45rem 1.25rem; color: var(--ink-2); font-size: 0.92rem; }
.fn-arrow { color: var(--muted); }
.fn-lost { color: var(--muted); }
.fn-drop.is-worst { margin: 0.35rem 0; background: var(--danger-soft); border: 1px solid var(--danger-line); border-radius: var(--radius); color: var(--danger-ink); }
.fn-drop.is-worst .fn-lost, .fn-drop.is-worst .fn-arrow { color: var(--danger-ink); font-weight: 600; }
.fn-flag { display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--danger); color: var(--on-ink); font-size: 0.78rem; font-weight: 700; }
.fn-stage.is-worst .fn-bar rect { fill: var(--danger); }
.fn-callout { background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger-ink); border-radius: var(--radius); padding: 0.8rem 1rem; }
.stat.stat-bad { border-color: var(--danger-line); background: var(--danger-soft); }
.stat.stat-bad strong { color: var(--danger-ink); }
@media (max-width: 560px) {
  .admin .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .admin .stat { padding: 0.8rem; }
  .admin .stat strong { font-size: 1.35rem; }
  .fn-head { flex-wrap: wrap; }
  .fn-count { flex-direction: row; gap: 0.5rem; align-items: baseline; width: 100%; justify-content: flex-start; padding-left: 2.55rem; }
  .fn-drop { padding-left: 0.6rem; }
}
/* Email previewer */
.ep-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0.6rem; }
.ep-tabs .tab { padding: 0.45rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 500; font-size: 0.92rem; }
.ep-tabs .tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ep-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg-btn { padding: 0.35rem 0.85rem; text-decoration: none; color: var(--ink); font-size: 0.88rem; }
.seg-btn.is-on { background: var(--ink); color: var(--on-ink); }
.ep-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; margin: 0.6rem 0; font-size: 0.92rem; }
.ep-meta div { display: contents; }
.ep-meta dt { color: var(--muted); }
.ep-meta dd { margin: 0; overflow-wrap: anywhere; }
.ep-stage { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.8rem; }
.ep-frame { display: block; width: 100%; height: 80vh; min-height: 560px; border: 0; border-radius: var(--radius); background: var(--paper); margin: 0 auto; }
.ep-stage.is-phone .ep-frame { width: 390px; max-width: 100%; }
.fn-lookup { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.8rem; }
.fn-lookup input { flex: 1 1 200px; min-width: 0; max-width: 320px; }

/* ---------------------------------------------------------------------------------------------------------------
   Authenticity & trust guarantees (owner, 2026-11-25): holographic "floating" strip on product pages, cart, cart
   drawer and checkout (src/views/layout.js trustGuarantees). A slow holo shimmer on the border; still when the visitor
   asks for reduced motion. */
.tg-strip { position: relative; margin: 1.25rem 0; padding: 1.5px; border-radius: 18px;
  background: linear-gradient(115deg, var(--holo-pink), var(--holo-blue), var(--holo-yellow), var(--holo-mint), var(--holo-lilac), var(--holo-pink));
  background-size: 300% 100%; animation: tg-shift 14s ease-in-out infinite alternate;
  box-shadow: 0 18px 40px -22px var(--c-79-70-229-45), 0 2px 6px -2px var(--c-20-20-40-08); }
.tg-strip > ul { list-style: none; margin: 0; padding: 0.95rem 1.05rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem 1.2rem;
  border-radius: 16.5px; background: var(--surface, var(--c-fff)); background-image: linear-gradient(160deg, var(--c-255-255-255-9), var(--c-255-255-255-72)); }
.tg-item { display: flex; align-items: flex-start; gap: 0.65rem; min-width: 0; }
.tg-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--accent, var(--c-4f46e5));
  background: linear-gradient(135deg, var(--holo-pink), var(--holo-blue) 45%, var(--holo-mint)); box-shadow: inset 0 0 0 1px var(--c-255-255-255-8); }
.tg-text { display: flex; flex-direction: column; gap: 0.12rem; font-size: 0.84rem; line-height: 1.4; color: var(--ink-2, var(--c-444)); min-width: 0; }
.tg-text strong { color: var(--ink, var(--c-111)); font-size: 0.9rem; letter-spacing: 0.01em; }
.tg-strip.is-compact > ul { grid-template-columns: 1fr; padding: 0.8rem 0.9rem; gap: 0.7rem; }
.tg-dap .tg-icon { background: linear-gradient(135deg, var(--holo-yellow), var(--holo-lilac)); }
.summary .tg-strip { margin-top: 1rem; }
.drawer-body .tg-strip { margin: 0.9rem 0; }
@keyframes tg-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .tg-strip { animation: none; } }
@media print { .tg-strip { box-shadow: none; animation: none; } }

/* Instant search dropdown (owner, 2026-11-25): set-code pills + products with quick add, under the header search. */
.search-suggest { position: fixed; top: 64px; left: 8px; width: min(620px, calc(100vw - 16px)); z-index: 1000; max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain;
  padding: 1.5px; border-radius: 16px; background: linear-gradient(115deg, var(--holo-pink), var(--holo-blue), var(--holo-yellow), var(--holo-mint), var(--holo-lilac));
  box-shadow: 0 24px 50px -20px var(--c-30-30-60-35); text-align: left; }
.search-suggest[hidden] { display: none; }
.ss { background: var(--surface, var(--c-fff)); border-radius: 14.5px; padding: 0.7rem; display: flex; flex-direction: column; gap: 0.55rem; }
.ss-sets { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line, var(--c-e5e5ea)); }
.ss-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.65rem 0.28rem 0.3rem; border-radius: 999px; font-size: 0.8rem; text-decoration: none; color: var(--ink, var(--c-111));
  background: var(--surface-2, var(--c-f6f6f9)); border: 1px solid var(--line, var(--c-e5e5ea)); }
.ss-pill:hover, .ss-pill:focus-visible { border-color: var(--cyan, var(--c-4f46e5)); }
.ss-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.02em; padding: 0.12rem 0.45rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--holo-pink), var(--holo-blue) 50%, var(--holo-mint)); }
.ss mark { background: linear-gradient(transparent 55%, var(--c-244-200-60-65) 55%); color: inherit; padding: 0; }
.ss-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ss-row { position: relative; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.25rem; border-radius: 10px; }
.ss-row + .ss-row { border-top: 1px solid var(--line, var(--c-eee)); }
.ss-row:hover { background: var(--surface-2, var(--c-f6f6f9)); }
.ss-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; }
.ss-thumb { flex: none; width: 44px; height: 60px; border-radius: 6px; overflow: hidden; background: var(--surface-2, var(--c-f3f3f6)); display: grid; place-items: center; }
.ss-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ss-info { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.ss-title { margin: 0; font-size: 0.86rem; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ss-meta { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; }
.ss-tag { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; padding: 0.05rem 0.4rem; border-radius: 6px; background: var(--surface-2, var(--c-f3f3f6)); border: 1px solid var(--line, var(--c-e5e5ea)); }
.ss-low { font-size: 0.74rem; color: var(--c-b45309); }
.search-suggest .ss-row .qa-form { position: static; inset: auto; flex: none; opacity: 1; transform: none; }
.ss-all { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; padding: 0.2rem 0.25rem; }
.ss-empty { margin: 0.2rem 0.3rem; color: var(--ink-2, var(--c-555)); font-size: 0.88rem; }
@media (max-width: 720px) { .search-suggest { max-height: 65vh; } .ss-pill { font-size: 0.76rem; } }

/* Payment method choice at checkout (owner, 2026-11-26: crypto first) and the crypto payment page. */
.pay-methods { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.pay-methods legend { font-weight: 700; margin-bottom: 0.5rem; }
.pm-opt { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 0.95rem; border: 1px solid var(--line, var(--c-e5e5ea)); border-radius: 14px; cursor: pointer; background: var(--surface, var(--c-fff)); }
.pm-opt:has(input:checked) { border-color: var(--cyan, var(--c-4f46e5)); box-shadow: 0 0 0 1px var(--cyan, var(--c-4f46e5)); }
.pm-opt input { margin-top: 0.25rem; }
.pm-opt > span { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.pm-coins { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.pm-coin { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--holo-pink), var(--holo-blue) 50%, var(--holo-mint)); }
.pm-coin small { font-weight: 500; }
.cx-page h1 { margin-bottom: 0.25rem; }
.cx-coins { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.cx-coins form { margin: 0; }
.cx-coin { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.75rem 0.85rem; border-radius: 14px; border: 1px solid var(--line, var(--c-e5e5ea));
  background: var(--surface, var(--c-fff)); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cx-coin:hover, .cx-coin:focus-visible { border-color: var(--cyan, var(--c-4f46e5)); box-shadow: 0 0 0 1px var(--cyan, var(--c-4f46e5)); }
.cx-sym { font-weight: 800; font-size: 1.05rem; }
.cx-net { font-size: 0.82rem; }
.cx-grid { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.cx-qr { flex: none; width: 168px; padding: 8px; background: var(--c-fff); border-radius: 12px; border: 1px solid var(--line, var(--c-e5e5ea)); }
.cx-qr svg { display: block; width: 100%; height: auto; }
.cx-facts { flex: 1; min-width: 240px; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 0.9rem; align-items: baseline; }
.cx-facts dt { color: var(--ink-2, var(--c-555)); font-size: 0.85rem; }
.cx-facts dd { margin: 0; min-width: 0; }
.cx-val { font-size: 1.02rem; font-weight: 700; word-break: break-all; }
.cx-addr { font-size: 0.9rem; }
.cx-usd { display: block; margin-top: 0.2rem; }
.cx-warn { margin: 0.9rem 0 0.4rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--c-fff7ed); color: var(--c-9a3412); font-size: 0.86rem; display: flex; gap: 0.45rem; align-items: flex-start; }
.cx-quote.is-expired .cx-facts { opacity: 0.45; }
.cx-expired { padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--c-fef2f2); }
.cx-tx { word-break: break-all; }
.cx-admin code, .cx-admin .mono { word-break: break-all; white-space: normal; }
.pay-retry-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.pay-bank { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; margin: 0 0 0.8rem; }
.pay-bank dt { color: var(--ink-2, var(--c-555)); }
.pay-bank dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 520px) { .cx-facts { grid-template-columns: 1fr; } .cx-facts dt { margin-top: 0.3rem; } .cx-qr { width: 150px; } }

/* Admin order command centre (2026-11-26) */
.oc-head { display: grid; grid-template-columns: minmax(150px, auto) 1fr auto; gap: 0.6rem 1.4rem; align-items: start; padding: 1rem 1.2rem; margin-bottom: 0.8rem; }
.oc-head p { margin: 0 0 0.2rem; }
.oc-number { font-size: 1.9rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.1; }
.oc-meta { color: var(--muted); font-size: 0.85rem; }
.oc-state { text-align: right; }
.oc-total { font-size: 1.35rem; font-weight: 700; }
.oc-badge .status { font-size: 0.85rem; }
.oc-switch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.oc-switch label { display: grid; gap: 0.2rem; font-size: 0.85rem; }
.oc-link { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.oc-link code { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.35rem 0.55rem; font-size: 0.82rem; }
.oc-track-preview { margin: 0; padding: 0.45rem 0.6rem; background: var(--ok-soft); border: 1px solid var(--ok-line); border-radius: var(--radius); overflow-wrap: anywhere; }
.oc-track-preview[hidden], .courier-other[hidden] { display: none; }
.oc-dnote { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 0.45rem 0.6rem; font-size: 0.9rem; }
.oc-note-list { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.55rem; }
.oc-note-list li { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 0.6rem; }
.oc-note-list p { margin: 0; }
.dc-line td, .dc-line span { color: var(--ok-ink); }
.status-dc-live { background: var(--ok-soft); color: var(--ok-ink); }
.status-dc-off, .status-dc-expired, .status-dc-used-up { background: var(--surface-2); color: var(--muted); }
.status-dc-scheduled { background: var(--info-soft); color: var(--info-ink); }
@media (max-width: 720px) { .oc-head { grid-template-columns: 1fr; } .oc-state { text-align: left; } }

/* Storefront discount code box (cart) */
.dc-box { margin: 1rem 0; max-width: 420px; }
.dc-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.dc-row { display: flex; gap: 0.5rem; }
.dc-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.dc-ok { margin: 0 0 0.3rem; color: var(--ok-ink, var(--ink)); font-weight: 600; }
.dc-warn { margin: 0 0 0.3rem; color: var(--danger-ink, var(--danger)); }

/* Packing slip / customs document */
.doc-logo { min-width: 160px; }
.doc-logo a { pointer-events: none; text-decoration: none; }
.doc-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.85rem; margin: 0 0 0.8rem; }
.doc-note { border: 1px solid var(--line-strong); padding: 0.5rem 0.7rem; border-radius: var(--radius); }
@media print {
  @page { size: auto; margin: 12mm; }
  .doc-print, .doc-print * { color: black !important; background: white !important; box-shadow: none !important; text-shadow: none !important; }
  .doc-print .doc-logo svg, .doc-print .doc-logo img { filter: grayscale(1); }
  .doc-print .doc-table th, .doc-print .doc-table td { border-color: black !important; }
  .doc-print .doc-table { page-break-inside: auto; }
  .doc-print tr { page-break-inside: avoid; }
}

/* ------------------------------------------------------------------ Banners & promos (owner, 2026-11-26) */
/* Top ticker: four background styles; the pulse/shimmer stops under reduced motion. */
.ticker { font-size: 0.86rem; font-weight: 600; text-align: center; letter-spacing: 0.01em; position: relative; z-index: 2; }
.ticker .tk-inner { display: flex; justify-content: center; align-items: center; padding-block: 0.45rem; }
.ticker a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.ticker a:hover .tk-text, .ticker a:focus-visible .tk-text { text-decoration: underline; text-underline-offset: 3px; }
.ticker .tk-text { overflow-wrap: anywhere; }
.ticker .tk-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; background: currentColor; margin-right: 0.5rem; }
.ticker a .tk-dot { margin-right: 0; }
.ticker-cyan { background: var(--tk-cyan); color: var(--ink); animation: tk-pulse 2.4s ease-in-out infinite; }
.ticker-cyan .tk-dot { background: var(--ink); animation: tk-dot 1.2s ease-in-out infinite; }
.ticker-crimson { background: var(--brand-red); color: var(--bg); }
.ticker-crimson .tk-dot { animation: tk-dot 1s ease-in-out infinite; }
.ticker-gold { background: linear-gradient(90deg, var(--tk-gold-1), var(--tk-gold-2), var(--tk-gold-1)); background-size: 200% 100%; color: var(--ink); animation: tk-shimmer 6s linear infinite; }
.ticker-obsidian { background: var(--ink); color: var(--bg); }
.ticker-obsidian .tk-dot { background: var(--tk-cyan); }
@keyframes tk-pulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 18px 2px color-mix(in srgb, var(--tk-cyan) 70%, transparent); } }
@keyframes tk-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes tk-shimmer { to { background-position: -200% 0; } }
@media (max-width: 900px) { .ticker .tk-dot { display: none; } }
@media (max-width: 600px) { .ticker { font-size: 0.78rem; } .ticker .tk-inner { padding-block: 0.4rem; } }

/* Flash promo strip, under the header. */
.flash-promo { background: var(--surface-2, var(--surface)); border-bottom: 1px solid var(--line); }
.flash-promo .fp-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1rem; padding-block: 0.55rem; font-size: 0.9rem; }
.fp-text { margin: 0; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink); }
.fp-text svg { color: var(--brand-red); flex: none; }
.fp-count { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fp-count time { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.fp-code { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.35rem 0.25rem 0.7rem; border: 1px dashed var(--ink); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.fp-code code { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; background: none; padding: 0; }
.fp-code [data-copy-label] { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.8rem; font-weight: 600; }
.fp-code.is-copied [data-copy-label] { background: var(--ok, var(--ink)); }
.fp-link { font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }
@media (max-width: 600px) { .flash-promo .fp-inner { font-size: 0.82rem; gap: 0.35rem 0.7rem; } }

/* Slide badge + artwork */
.hc-badge { display: inline-block; margin: 0 0 0.6rem; padding: 0.2rem 0.7rem; border-radius: 999px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: color-mix(in srgb, var(--aura-1) 14%, var(--bg)); border: 1px solid color-mix(in srgb, var(--aura-1) 55%, transparent); box-shadow: 0 0 16px -4px color-mix(in srgb, var(--aura-1) 60%, transparent); }
.hc-art { max-width: 420px; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--aura-2) 20%, transparent), transparent 70%); }
.hc-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px var(--overlay)); }
.badge-chip { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.05rem 0.45rem; border-radius: 999px; border: 1px solid var(--line-strong, var(--line)); }

/* Ambient glows */
html.theme-holo[data-aura="electric-cyan"] :is(.site-header, .hero-carousel) { --aura-1: var(--tk-cyan); --aura-2: var(--cyan); }
html.theme-holo[data-aura="holo-amber"] :is(.site-header, .hero-carousel) { --aura-1: var(--amber); --aura-2: var(--pirate-gold); }
html.theme-holo[data-aura="op-crimson"] :is(.site-header, .hero-carousel) { --aura-1: var(--op-crimson); --aura-2: var(--sakura); }
html.theme-holo[data-aura="violet-neon"] :is(.site-header, .hero-carousel) { --aura-1: var(--violet); --aura-2: var(--sakura); }
.theme-electric-cyan { background: linear-gradient(90deg, var(--tk-cyan), var(--cyan)); }
.theme-holo-amber { background: linear-gradient(90deg, var(--amber), var(--tk-gold-2)); }
.theme-op-crimson { background: linear-gradient(90deg, var(--op-crimson), var(--sakura)); }
.theme-violet-neon { background: linear-gradient(90deg, var(--violet), var(--sakura)); }

/* Admin: ticker style picks + live preview drawer */
.tk-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.4rem; margin: 0; }
.tk-pick { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.tk-pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tk-swatch { display: inline-block; width: 2rem; height: 1rem; border-radius: 4px; animation: none; border: 1px solid var(--line); }
.bp-drawer { position: fixed; inset: auto 0 0 0; z-index: 60; margin: 0 auto; width: min(1240px, 100vw); max-width: none; max-height: 62vh; overflow: auto; box-shadow: 0 -12px 40px -12px var(--overlay); padding: 1rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); }
.bp-drawer::backdrop { background: var(--overlay); }
.bp-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bp-head h2 { margin: 0; font-size: 1.1rem; }
.bp-stages { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1rem; align-items: start; }
.bp-stage { margin: 0; min-width: 0; }
.bp-stage figcaption { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.bp-box { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bp-box iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: var(--bg); }
@media (max-width: 760px) { .bp-stages { grid-template-columns: minmax(0, 1fr); } .bp-phone { max-width: 260px; } }
@media (prefers-reduced-motion: reduce) { .ticker, .ticker .tk-dot { animation: none; } }

/* 1-click dispatch modal (admin order page, 2026-11-26) */
.btn-dispatch { font-size: 1rem; padding: 0.7rem 1.4rem; box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 22px -10px var(--overlay); }
.dispatch-modal { width: min(680px, 96vw); max-height: 92vh; overflow: auto; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); }
.dispatch-modal::backdrop { background: var(--overlay); }
.dm-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dm-head h2 { margin: 0; font-size: 1.15rem; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
@media (max-width: 600px) { .dispatch-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; } .dispatch-modal .row2 { grid-template-columns: minmax(0, 1fr); } }

/* Launch readiness (admin, 2026-11-26) */
.rd-score { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.5rem 0 1rem; font-size: 1.05rem; }
.rd-score progress { flex: 1 1 200px; height: 0.7rem; accent-color: var(--ok); }
.rd-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.rd-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rd-item.is-ok { border-color: var(--ok-line, var(--line)); }
.rd-icon { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--bg); background: var(--amber); }
.rd-item.is-ok .rd-icon { background: var(--ok); }
.rd-body { min-width: 0; }
.rd-head { margin: 0 0 0.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: center; }
.rd-body .muted { margin: 0; overflow-wrap: anywhere; }

/* Payout hub: saved wallet QR check (admin settings, 2026-11-26) */
.wallet-check summary { cursor: pointer; font-weight: 600; margin: 0.6rem 0; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 0.8rem; }
.wallet-card { margin: 0; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: grid; gap: 0.5rem; }
.wallet-qr svg { width: 100%; max-width: 160px; height: auto; display: block; margin: 0 auto; background: var(--bg); }
.wallet-card figcaption { display: grid; gap: 0.35rem; font-size: 0.85rem; min-width: 0; }
.wallet-card code { overflow-wrap: anywhere; font-size: 0.78rem; }

/* Customs notes at checkout (owner, 2026-11-26; src/customs.js). The form's data-country picks the visible note. */
.customs-notes { margin: 0.25rem 0 0.5rem; }
.customs-note { margin: 0; padding: 0.7rem 0.9rem; border: 1px solid var(--info-line); border-radius: var(--radius); background: var(--info-soft); color: var(--info-ink); font-size: 0.9rem; }
.customs-note p { margin: 0.3rem 0 0; }
.customs-uk { display: none; background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }
#checkout-form[data-country=""] .customs-ddu,
#checkout-form[data-country="JP"] .customs-ddu,
#checkout-form[data-country="GB"] .uk-blocked .customs-ddu,
#checkout-form[data-country="IM"] .uk-blocked .customs-ddu { display: none; }
#checkout-form[data-country="GB"] .customs-uk,
#checkout-form[data-country="IM"] .customs-uk { display: block; }

/* Pre-orders (owner, 2026-11-26, step 9): neon hologram PRE-ORDER pill, release notice, amber mixed-cart notice. */
.tag-pre, html.theme-holo .tag-pre, .pre-pill { background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--foil-logo) border-box; color: var(--on-ink); border: 2px solid transparent; box-shadow: var(--glow-cyan); text-transform: uppercase; letter-spacing: 0.08em; }
.tag.inline.tag-pre { position: static; display: inline-block; font-size: 0.66rem; padding: 0.05rem 0.5rem; vertical-align: middle; }
.pre-pill-row { margin: 0 0 0.35rem; }
.pre-pill { display: inline-block; padding: 0.2rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; animation: pre-glow 2.4s ease-in-out infinite; }
@keyframes pre-glow { 50% { box-shadow: var(--qa-glow-hover); } }
@media (prefers-reduced-motion: reduce) { .pre-pill { animation: none; } }
.pre-notice { margin: 0.6rem 0 0.9rem; padding: 0.8rem 1rem; border: 1px solid var(--info-line); border-radius: var(--radius); background: var(--info-soft); color: var(--info-ink); }
.pre-notice p { margin: 0.15rem 0; }
.pre-count { font-weight: 700; }
.pre-limit { font-weight: 600; }
.pre-card-release { margin: 0.1rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--info-ink); }
.pre-line { color: var(--info-ink); }
.pre-mixed { margin: 0.8rem 0; padding: 0.85rem 1rem; border: 1px solid var(--gold-line); border-left: 4px solid var(--amber); border-radius: var(--radius); background: var(--gold-soft); color: var(--gold-ink); }
.pre-mixed p { margin: 0; font-weight: 600; }
.pre-only, .pre-order-note { margin: 0.6rem 0; padding: 0.6rem 0.9rem; border-radius: var(--radius); background: var(--info-soft); color: var(--info-ink); border: 1px solid var(--info-line); }
.pre-checkout { margin: 0.4rem 0 0.6rem; }
.pre-split { margin: 0.5rem 0; }
.pre-cancel-badge { display: flex; gap: 0.4rem; align-items: flex-start; margin: 0.5rem 0 0; padding: 0.5rem 0.8rem; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.qa-btn.qa-pre, html.theme-holo .qa-btn.qa-pre { width: auto; min-width: 50px; padding: 0 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }

/* Graded slab badges beside the product title (owner, 2026-11-27): grader on ink with a foil rim, grade on foil. */
.grade-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: -0.2rem 0 0.6rem; }
.grade-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.8rem; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; line-height: 1.3; }
.grade-co { background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--foil-logo) border-box; color: var(--on-ink); border: 2px solid transparent; }
.grade-score { background: var(--foil) padding-box, var(--foil-soft) border-box; color: var(--foil-ink); border: 2px solid transparent; box-shadow: var(--foil-glow); background-size: 200% 200%; animation: grade-sheen 6s ease-in-out infinite; }
.grade-word { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.grade-auto { background: var(--foil-soft); color: var(--foil-ink); font-size: 0.75rem; text-transform: uppercase; }
@keyframes grade-sheen { 50% { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .grade-score { animation: none; } }

/* ---------------------------------------------------------------------------------------------------------------
   Floating holo cards (owner, 2026-11-27): "all important information held by a colour-blending floating card".
   One look for every information block of the storefront: a white card whose 2px edge is a slowly turning blend of the
   holo hues (conic gradient on the registered angle --hf-a), a soft coloured glow under it, and a gentle float.
   Applied by class (.hf-card) and to the existing information blocks below (storefront only: html.theme-holo).
   Many-item lists (.faq) and grid cards get the edge without the float, so a page never swims. All motion stops under
   prefers-reduced-motion. */
@property --hf-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
html.theme-holo :is(.hf-card, .hf-float, .pre-notice, .callout, .summary, .panel, .ship-opts, .policy, .customs-notes, .faq, .why-item, .set-card:not(.is-empty)) {
  --hf-fill: var(--surface);
  border: 2px solid transparent;
  background:
    linear-gradient(160deg, var(--edge-sheen), transparent 38%) padding-box,
    linear-gradient(var(--hf-fill), var(--hf-fill)) padding-box,
    conic-gradient(from var(--hf-a), var(--edge-violet), var(--edge-sky), var(--edge-mint), var(--edge-gold), var(--edge-rose), var(--edge-iris), var(--edge-violet)) border-box;
  box-shadow: 0 22px 44px -26px var(--edge-glow), 0 10px 28px -22px var(--edge-glow-2), 0 2px 6px -2px var(--edge-lift);
  animation: hf-turn 9s linear infinite;
}
html.theme-holo :is(.hf-float, .pre-notice, .callout, .summary, .panel, .ship-opts, .policy, .customs-notes) {
  border-radius: 18px; padding: 1.05rem 1.25rem;
  animation: hf-turn 9s linear infinite, hf-float 7s ease-in-out infinite;
}
html.theme-holo .pre-notice { --hf-fill: var(--info-soft); }
html.theme-holo .callout { --hf-fill: var(--gold-soft); }
html.theme-holo .summary { animation: hf-turn 9s linear infinite; } /* sticky column: no float */
/* Grids and long lists hold a still edge and only spin on hover: 100+ always-turning cards stall rendering. */
html.theme-holo :is(.set-card:not(.is-empty), .faq, .era-card, .tile, .brand-tile, .era-tile, .card.hf-card) { animation: none; }
html.theme-holo .why-item { border-radius: 18px; animation: hf-turn 9s linear infinite, hf-float 7s ease-in-out infinite; }
html.theme-holo .why-item:nth-child(2n) { animation-delay: 0s, -3.5s; }
.rail-btn[hidden] { display: none; }
html.theme-holo :is(.hf-card, .set-card:not(.is-empty), .faq):hover { animation: hf-turn 3s linear infinite;box-shadow: 0 26px 50px -24px var(--edge-glow), 0 14px 32px -20px var(--edge-glow-2), 0 3px 8px -2px var(--edge-lift); }
html.theme-holo .faq { border-radius: 14px; }
html.theme-holo .policy { margin: 0.4rem 0 1.6rem; }
@keyframes hf-turn { to { --hf-a: 360deg; } }
@keyframes hf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) {
  html.theme-holo :is(.hf-card, .hf-float, .pre-notice, .callout, .summary, .panel, .ship-opts, .policy, .customs-notes, .faq, .why-item, .set-card, .era-card):is(*, :hover) { animation: none; }
}

/* Home page speed (Lighthouse mobile, 2026-11-27): the home page shows dozens of holo boxes at once, so here every edge
   holds still and turns only on hover, the ticker and trust strip stop pulsing. */
html.theme-holo body.page-home :is(.hf-card, .hf-float, .pre-notice, .callout, .summary, .panel, .ship-opts, .policy, .customs-notes, .faq, .why-item, .set-card, .era-card, .tile, .brand-tile, .era-tile, .ticker, .tk-dot, .tg-strip) { animation: none; }
html.theme-holo body.page-home :is(.hf-card, .panel, .why-item, .faq, .tile, .brand-tile, .era-tile):hover { animation: hf-turn 3s linear infinite; }


/* Shop by Era rail (home): every era, scroll buttons on wide screens (public/js/app.js data-rail). */
.rail-wrap { position: relative; }
.rail-btn { position: absolute; top: 42%; z-index: 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; }
.rail-btn:hover { box-shadow: var(--foil-glow); }
.rail-prev { left: -0.6rem; } .rail-next { right: -0.6rem; }
.era-word { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); text-align: center; }
.era-count.is-soon { color: var(--ink-3, var(--muted)); }
.era-count.is-soon::before { background: var(--line); }
html.theme-holo .era-card { border: 2px solid transparent; min-height: 210px; }
@media (max-width: 720px) { .rail-btn { display: none; } }

/* All-eras page /sets (owner 2026-11-27, after zardocards' "Explore All Eras"). */
.eras-page { max-width: 1240px; margin: 0 auto; }
.eras-hero { text-align: center; padding: 1.2rem 0 0.6rem; }
.eras-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.2rem 0 0.4rem; }
.eras-hero .lead { color: var(--ink-2); max-width: 46rem; margin: 0 auto 1rem; }
.eras-hero .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 700; color: var(--price); margin: 0; }
.eras-back { margin: 0 0 0.6rem; font-size: 0.86rem; } .eras-back a { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ink-2); text-decoration: none; }
.era-group-chips, .eras-hero .era-chips { justify-content: center; }
.era-group { display: flex; align-items: center; gap: 1.2rem; margin: 2.6rem 0 0.4rem; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); scroll-margin-top: 9rem; }
.era-group::before, .era-group::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--foil-soft); }
.era-sec { margin: 1.6rem 0 2.8rem; scroll-margin-top: 9rem; content-visibility: auto; contain-intrinsic-size: auto 1400px; } /* 500+ cards: paint only sections near the viewport */
.era-head { display: grid; justify-items: center; gap: 0.35rem; margin: 0 0 1.3rem; text-align: center; }
.era-head-logo { max-height: 78px; width: auto; filter: var(--drop-logo); }
.era-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: 0.04em; text-transform: uppercase; }
.era-total { margin: 0; color: var(--ink-2); } .era-total strong { color: var(--ink); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.set-card { display: grid; grid-template-rows: 1fr auto; min-height: 168px; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); overflow: hidden; transition: transform 0.2s; }
.set-card:hover { transform: translateY(-3px); color: var(--ink); }
.set-logo { display: grid; place-items: center; padding: 1rem 0.9rem 0.4rem; min-height: 96px; }
.set-logo img { max-width: 100%; max-height: 76px; width: auto; height: auto; object-fit: contain; filter: var(--drop-logo); }
.set-logo.is-word { gap: 0.35rem; align-content: center; }
.set-era-mark { max-height: 26px !important; opacity: 0.85; }
.set-word { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-align: center; }
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.8rem 0.75rem; }
.set-meta { display: flex; flex-direction: column; min-width: 0; }
.set-name { font-size: 0.9rem; line-height: 1.25; overflow-wrap: anywhere; }
.set-n { font-size: 0.8rem; color: var(--ink-2); }
.set-card .era-go { width: 1.9rem; height: 1.9rem; }
.set-card:hover .era-go { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.set-card.is-empty { opacity: 0.55; border-style: dashed; }
.set-card.is-empty img { filter: grayscale(0.6); }
.set-grid-plain .set-logo { min-height: 64px; }
.era-shop { text-align: center; margin: 1.3rem 0 0; }
@media (max-width: 520px) { .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; } .set-logo img { max-height: 58px; } }
@media (prefers-reduced-motion: reduce) { .set-card { transition: none; } }

/* Admin order: contact actions (owner, 2026-11-27, Zardo-style): big buttons + dialogs with a live email preview. */
.oc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; }
.btn-big { min-height: 3rem; padding: 0.75rem 1.25rem; font-size: 1.02rem; }
.oc-modal { width: min(1120px, 96vw); }
.oc-modal-grid { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.oc-modal .checks .check { display: block; padding: 0.2rem 0; }
.oc-preview { position: sticky; top: 0; }
.oc-preview-frame { width: 100%; height: min(70vh, 720px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
@media (max-width: 900px) { .oc-modal-grid { grid-template-columns: minmax(0, 1fr); } .oc-preview { position: static; } .oc-preview-frame { height: 60vh; } }
@media (max-width: 600px) { .oc-modal { width: 100vw; } .btn-big { flex: 1 1 100%; } }

/* ==========================================================================
   Home page rework (owner spec 2026-11-27): 14 sections, src/views/home.js. Tokens only.
   Images carry width/height and rails have fixed column widths, so nothing shifts as the page loads.
   ========================================================================== */
.home-sec { scroll-margin-top: 5rem; }
.hc-count { display: flex; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.hc-count time { font-family: var(--font-display); font-size: 1.1rem; }
.hc-foot { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.88rem; }
.home-hero-plain { padding: 2.5rem 0 1rem; }
.home-trust { margin: 1.6rem 0 0; }
.home-trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.home-trust li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.home-trust strong { display: block; font-size: 0.95rem; }
.home-trust .muted { display: block; font-size: 0.84rem; line-height: 1.4; }
.ht-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.home-note { margin: -0.4rem 0 0.9rem; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0.9rem; }
.tile-grid.tile-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tile { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 0.8rem; min-height: 88px; padding: 1rem 1.1rem;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.tile:hover { color: var(--ink); border-color: var(--line-strong); }
.tile-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.tile-count { color: var(--muted); font-size: 0.86rem; grid-column: 1; }
.tile-go { grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line-strong); }
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.brand-tile { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; }
.brand-tile:hover { color: var(--ink); }
.brand-art { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; height: 230px; padding: 1rem; overflow: hidden; }
.brand-art img { max-width: 100%; max-height: 198px; width: auto; height: auto; object-fit: contain; filter: var(--drop-brand); }
.brand-word { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; text-align: center; }
.brand-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding: 0.8rem 1.1rem 1rem; border-top: 1px solid var(--line); }
.home-rail { grid-auto-columns: 220px; }
.rank-item { position: relative; scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; gap: 0.4rem; }
.rank-n { justify-self: start; display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.4rem; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; pointer-events: none; }
.mb-band, .ws-band { align-items: center; }
.mb-points { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.45rem; color: var(--band-ink-2); }
.mb-points li { display: flex; gap: 0.55rem; align-items: center; }
.mb-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.band .eyebrow { color: var(--band-ink-2); margin: 0 0 0.3rem; }
.ws-tier-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0; padding: 0; }
.ws-tier-chips li { padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--band-ink-2); color: var(--band-ink); font-size: 0.88rem; }
.era-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0.9rem; }
@media (min-width: 1100px) { .era-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } } /* desktop: the 10 home eras as two rows of five */
.era-tile { display: grid; grid-template-rows: 1fr auto; min-height: 170px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; }
.era-tile:hover { color: var(--ink); }
.era-tile .era-logo { padding: 1.2rem 1rem 0.4rem; }
.era-tile .era-logo img { max-height: 72px; height: auto; }
.era-tile .era-foot { padding: 0.7rem 1rem 0.9rem; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.era-tile .era-name { font-size: 1.02rem; }
.era-word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.era-more { margin-top: 1rem; }
.era-more > summary { list-style: none; display: inline-flex; margin: 0 auto 1rem; cursor: pointer; }
.era-more > summary::-webkit-details-marker { display: none; }
.era-more { text-align: center; }
.era-more > .era-tiles { text-align: left; }
.era-more .em-hide, .era-more[open] .em-show { display: none; }
.era-more[open] .em-hide { display: inline; }
.showcase-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.home-story { padding: 2rem clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.story-steps { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.story-steps h3 { font-size: 1.02rem; margin: 0.5rem 0 0.3rem; }
.story-steps p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.story-n { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.rv-agg { display: flex; align-items: baseline; gap: 0.5rem; font-size: 1.2rem; }
.nl-band { display: grid; grid-template-columns: 1fr minmax(260px, 420px); }
.nl-band .nl-msg, .nl-band .small { grid-column: 1 / -1; margin: 0; }
.nl-inline { display: flex; gap: 0.5rem; }
.nl-inline input[type="email"] { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .home-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-steps { grid-template-columns: 1fr; }
  .nl-band { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .home-trust ul { grid-template-columns: 1fr; }
  .home-rail { grid-auto-columns: 172px; }
  .nl-inline { flex-direction: column; }
}
/* Collection pages: intro, bundle upsell after row two, closer. */
.col-intro p { max-width: 75ch; }
.col-upsell { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.col-upsell h2 { font-size: 1.1rem; margin: 0 0 0.2rem; }
.col-upsell p { margin: 0; }
.col-up-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.col-closer { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.col-closer h2 { font-size: 1.15rem; }
.col-closer p { max-width: 75ch; color: var(--ink-2); }
.more-links { margin: 2rem 0; }

/* ==========================================================================
   Menu drawer (2026-11-27): src/views/nav-drawer.js, behaviour in app.js.
   Hamburger under 1024px; "All categories" beside the search from 1024px. Tokens only.
   ========================================================================== */
.allcat-btn { display: none; }
@media (min-width: 1024px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "logo search allcat actions" "nav nav nav nav"; }
  .allcat-btn { grid-area: allcat; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap; cursor: pointer; }
  .allcat-btn:hover, .allcat-btn[aria-expanded="true"] { border-color: var(--ink); }
}
@media (max-width: 1023.98px) {
  .menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0; }
}
html.nav-locked, html.nav-locked body { overflow: hidden; }
.nav-scrim { position: fixed; inset: 0; z-index: 90; background: var(--overlay); opacity: 0; transition: opacity 220ms ease; }
.nav-scrim.is-open { opacity: 1; }
.nav-drawer { position: fixed; z-index: 91; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line); box-shadow: var(--shadow); transform: translateX(100%); transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer[hidden], .nav-scrim[hidden] { display: none; }
.nd-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
.nd-head h2 { margin: 0; font-size: 1.1rem; }
.nd-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0; cursor: pointer; }
.nd-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.1rem 2rem; }
.nd-search { position: relative; margin-bottom: 0.8rem; }
.nd-search input { width: 100%; border-radius: 999px; padding: 0.65rem 3rem 0.65rem 1rem; }
.nd-search .search-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--on-ink); border: 0; padding: 0; }
.nd-group { border-bottom: 1px solid var(--line); }
.nd-group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0.1rem; font-weight: 600; cursor: pointer; }
.nd-group > summary::-webkit-details-marker { display: none; }
.nd-group > summary .icon { transition: transform 220ms ease; }
.nd-group[open] > summary .icon { transform: rotate(180deg); }
.nd-group ul, .nd-links { list-style: none; margin: 0; padding: 0 0 0.6rem; }
.nd-group li a, .nd-links li a { display: flex; align-items: center; gap: 0.6rem; justify-content: space-between; padding: 0.55rem 0.2rem; color: var(--ink-2); text-decoration: none; border-radius: var(--radius); }
.nd-links li a { justify-content: flex-start; }
.nd-group li a:hover, .nd-links li a:hover, .nd-group li a[aria-current], .nd-links li a[aria-current] { color: var(--ink); background: var(--surface-2); }
.nd-n { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.nd-money { padding-top: 0.6rem; border-bottom: 1px solid var(--line); }
.nd-money li a { font-weight: 500; color: var(--ink); }
.nd-money li a.nd-ws { color: var(--accent); font-weight: 600; }
.nd-me { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.nd-me .badge { margin-left: auto; }
.nd-utils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 1rem; }
.nd-utils .menu-cur { display: inline-flex; gap: 0.25rem; margin: 0; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.nd-utils .menu-cur a { padding: 0.25rem 0.55rem; border-radius: 999px; font-size: 0.8rem; color: var(--ink-2); text-decoration: none; }
.nd-utils .menu-cur a[aria-current] { background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-scrim, .nd-group > summary .icon { transition: none; }
}
.admin .stat-warn strong a { color: var(--danger); }
/* Wholesale page rebuild (2026-11-27) */
.ws-elig-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.ws-elig-list li { display: flex; gap: 0.5rem; align-items: flex-start; }
.ws-elig-list .icon { flex: none; color: var(--ok-ink); margin-top: 0.15rem; }
.ws-landed { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
.ws-landed th, .ws-landed td.num { white-space: nowrap; }
.ws-landed td:first-child { min-width: 15rem; }

/* Cart v2 (checkout-v2, 2026-11-27): line list with 64px thumbnails beside a sticky summary; the summary folds on
   phones. Fixed thumbnail and stepper sizes, so a quantity change never moves the layout. */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 7rem; grid-template-areas: "thumb info qty total" "thumb info . remove"; gap: 0.3rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cl-thumb { grid-area: thumb; align-self: start; }
.cl-info { grid-area: info; min-width: 0; }
.cl-qty { grid-area: qty; justify-self: start; }
.cl-total { grid-area: total; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.cl-remove { grid-area: remove; margin: 0; text-align: right; }
.cl-unit { margin: 0.25rem 0 0; color: var(--muted); }
.line-thumb { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.sum-lines .line-thumb { width: 48px; height: 48px; flex: none; }
.sum-lines li { display: flex; gap: 0.6rem; align-items: center; }
.sum-lines li > span:last-child { margin-left: auto; white-space: nowrap; }
.qty-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.cart-lines .qty-step input[type=number] { width: 3.2rem; min-height: 0; box-shadow: none; border: 0; border-radius: 0; text-align: center; padding: 0.35rem 0; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty-step input::-webkit-inner-spin-button, .qty-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qs-btn { width: 2.5rem; height: 2.5rem; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--ink); transition: background-color 0.15s ease; }
.qs-btn:hover, .qs-btn:focus-visible { background: var(--surface-2); }
.cart-summary { position: sticky; top: 9rem; display: grid; gap: 0.9rem; }
.sum-fold > summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sum-fold > summary::-webkit-details-marker { display: none; }
.sum-fold > summary h2 { margin: 0 0 0.6rem; }
.sum-fold-total { display: none; }
.cart-update { margin: 0.8rem 0; }
@media (max-width: 1000px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; order: -1; }
  .sum-fold > summary { cursor: pointer; }
  .sum-fold > summary::after { content: "▾"; }
  .sum-fold[open] > summary::after { content: "▴"; }
  .sum-fold:not([open]) > summary h2 { margin: 0; }
  .sum-fold-total { display: inline; font-weight: 700; margin-left: auto; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb qty total" "thumb . remove"; }
}
/* Checkout v2: each payment radio opens its own panel (CSS only); the pay button waits for a shipping rate. */
.pay-methods .pm-opt { border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0 0 0.6rem; transition: border-color 0.15s ease; }
.pay-methods .pm-opt:has(input:checked) { border-color: var(--ink); }
.pm-pick { display: flex; gap: 0.6rem; align-items: center; cursor: pointer; }
.pm-panel { display: none; margin-top: 0.6rem; }
.pm-opt:has(input:checked) .pm-panel { display: block; }
@supports not selector(:has(*)) { .pm-panel { display: block; } }
.co-geo { margin: 0 0 0.6rem; display: flex; gap: 0.35rem; align-items: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.pm-ref { font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .qs-btn, .pay-methods .pm-opt { transition: none; } }

/* Footer v2 (owner spec, 2026-11-27): light cards, hairline borders, red accent. Same colours in every theme. */
.site-footer.ft { background: var(--ft-bg); color: var(--ft-ink); padding: 2.5rem 0 0; overflow: hidden; border-top: 1px solid var(--ft-line); }
.ft-wrap { display: grid; gap: 1rem; }
.ft-card { background: var(--ft-card); border: 1px solid var(--ft-line); border-radius: 20px; padding: 1.4rem 1.5rem; }
.ft .ft-group h2 { margin: 0 0 0.35rem; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ft-red); }
.ft-group ul { list-style: none; margin: 0; padding: 0; }
.ft-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.site-footer.ft a { color: var(--ft-ink); text-decoration: none; }
.ft-group li a { display: flex; align-items: center; min-height: 44px; font-size: 13.5px; font-weight: 700; color: var(--ft-ink); transition: color 160ms ease; }
.site-footer.ft .ft-group li a:hover { color: var(--ft-red); text-decoration: none; }
/* Focus rings on everything interactive (outline only: never changes the box, so nothing shifts). */
.ft a:focus-visible, .ft button:focus-visible, .ft summary:focus-visible, .ft input:focus-visible { outline: 2px solid var(--ft-red); outline-offset: 3px; border-radius: 8px; }
/* Newsletter card */
.ft-nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "mark form" "head form" "sub msg"; column-gap: 2rem; align-items: center; }
.ft-mark { grid-area: mark; display: inline-flex; align-items: flex-start; gap: 0.55rem; min-height: 44px; justify-self: start; }
.ft-mark .wordmark-lg { color: var(--ft-ink); }
.ft-dot { width: 12px; height: 12px; margin-top: 0.85rem; border-radius: 50%; background: var(--ft-red); flex: none; }
.ft .ft-nl-h { grid-area: head; margin: 0.3rem 0 0; font-size: 1.35rem; line-height: 1.25; color: var(--ft-ink); }
.ft-sub { grid-area: sub; margin: 0.35rem 0 0; color: var(--ft-muted); font-size: 0.93rem; }
.ft-form { grid-area: form; display: flex; gap: 0.5rem; margin: 0; }
.ft-form input[type=email] { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 1rem; font-size: 16px; color: var(--ft-ink); background: var(--ft-card);
  border: 1px solid var(--ft-line); border-radius: 999px; box-shadow: none; transition: border-color 160ms ease; }
.ft-form input[type=email]:focus { border-color: var(--ft-red); box-shadow: none; }
.ft .ft-join { height: 48px; min-width: 88px; margin: 0; padding: 0 1.3rem; border: 0; border-radius: 999px; background: var(--ft-red); color: var(--ft-card);
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background-color 160ms ease; }
.ft .ft-join:hover { background: var(--ft-red-hover); }
.ft .ft-join:disabled { opacity: 0.6; cursor: progress; }
.ft-msg { grid-area: msg; margin: 0.4rem 0 0; min-height: 1.3em; font-size: 0.88rem; color: var(--ft-ink); }
.ft-msg.error { color: var(--ft-red); }
.ft-form[hidden] { display: none; }
/* Follow */
.ft-social { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: 0.4rem !important; }
.ft-soc { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ft-soc-line); background: var(--ft-card); color: var(--ft-red) !important; transition: transform 160ms ease, border-color 160ms ease; }
.ft-soc svg { width: 20px; height: 20px; display: block; }
.ft-soc:hover { transform: translateY(-2px); border-color: var(--ft-red); }
/* Currency pill */
.ft-cur { display: flex; justify-content: center; }
.ft-cur-menu { position: relative; }
.ft-pill { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; margin: 0; padding: 0 1.1rem; border: 1px solid var(--ft-line); border-radius: 999px;
  background: var(--ft-card); font-size: 13.5px; font-weight: 700; color: var(--ft-ink); list-style: none; cursor: default; }
summary.ft-pill { cursor: pointer; transition: border-color 160ms ease; }
summary.ft-pill::-webkit-details-marker { display: none; }
summary.ft-pill:hover { border-color: var(--ft-red); }
.ft-pill-change { color: var(--ft-red); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ft-cur-list { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; min-width: 200px; margin: 0; padding: 0.4rem;
  list-style: none; background: var(--ft-card); border: 1px solid var(--ft-line); border-radius: 14px; box-shadow: 0 12px 30px -12px var(--ft-shadow); }
.ft-cur-list a { display: flex; align-items: center; min-height: 44px; padding: 0 0.8rem; border-radius: 10px; font-size: 13.5px; font-weight: 600; transition: color 160ms ease; }
.site-footer.ft .ft-cur-list a:hover, .ft-cur-list a[aria-current] { color: var(--ft-red); text-decoration: none; }
.ft-copy { margin: 0.5rem 0 0; text-align: center; font-size: 12px; color: var(--ft-muted); }
.ft-nap { margin: 0.75rem 0 0; text-align: center; font-size: 12px; font-style: normal; color: var(--ft-muted); }
.ft-nap a { color: inherit; }
.trust-page .nap { margin: 1.25rem 0; }
.link-list { padding-left: 1.2rem; }
.ft-watermark { margin: 0.5rem 0 -0.18em; text-align: center; font-family: var(--font-display, inherit); font-weight: 800; letter-spacing: 0.04em; line-height: 0.9;
  font-size: clamp(3.5rem, 17vw, 12rem); color: transparent; -webkit-text-stroke: 1px var(--ft-line); user-select: none; white-space: nowrap; }
@media (max-width: 900px) {
  .ft-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-nl { grid-template-columns: 1fr; grid-template-areas: "mark" "head" "sub" "form" "msg"; }
  .ft-form { margin-top: 1rem; }
}
@media (max-width: 480px) {
  .ft-groups { grid-template-columns: 1fr; }
  .ft-card { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ft *, .ft *::before { transition: none !important; }
  .ft-soc:hover { transform: none; }
}
