/* SafeTrade design system - orange brand, semantic escrow tokens.
   Ported from the DESIGN.md commerce system. */

:root {
  --brand: #007185;              /* Amazon link/accent teal-blue */
  --brand-fg: #ffffff;
  --bg: #eaeded;                 /* Amazon page grey */
  --card: #ffffff;
  --ink: #0f1111;                /* Amazon near-black */
  --ink-2: #565959;              /* Amazon secondary grey */
  --ink-faint: #8a8d8d;
  --border: #d5d9d9;             /* Amazon hairline */
  --muted: #f0f2f2;

  /* Fixed semantic escrow money-states */
  --held: #a15f00;      --held-bg: #fff4e0;
  --released: #007600;  --released-bg: #e4f5ec;
  --dispute: #c22f2f;   --dispute-bg: #fce9e9;
  --info: #007185;      --info-bg: #e7f2f4;

  /* Amazon chrome + CTA palette */
  --header-bg: #131921;          /* top nav navy */
  --header-bg2: #232f3e;         /* department bar navy */
  --header-fg: #ffffff;
  --header-hover: #37475a;
  --cta: #ffd814;   --cta-hover: #f7ca00;   --cta-fg: #0f1111;   --cta-border: #fcd200;   /* palette-driven primary-action fill */
  --hi: color-mix(in srgb, var(--cta) 62%, #fff);   /* navy-chrome accent: a light tint of the palette CTA so it follows the theme but stays readable on navy (yellow barely changes; dark palettes lighten) */
  --cta2: #ffa41c;  --cta2-hover: #fa8900;  --cta2-border: #ff8f00;                        /* orange "buy now" */
  --link: #007185;  --link-hover: #c7511f;  --price: #b12704;    --search-btn: #febd69;

  --r-card: 8px;
  --r-ctrl: 8px;
  --shadow-sm: 0 1px 2px rgba(15,17,17,.06), 0 1px 3px rgba(15,17,17,.05);
  --shadow-md: 0 6px 20px rgba(15,17,17,.09);
  --shadow-lg: 0 18px 50px rgba(15,17,17,.16);

  --font-body: "Amazon Ember", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-display: "Amazon Ember", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Admin-switchable palettes. Each sets the accent (--brand, for links) AND the
   primary-action fill (--cta, for buttons/CTAs/active nav) so the theme switch
   recolours everything. :root is the default (teal accent + Amazon-yellow CTA);
   "amazon" is the gold-accent + yellow-button look as a pickable option. */
[data-palette="emerald"] { --brand: #0e8a4d; --brand-fg: #fff; --cta: #0e8a4d; --cta-fg: #fff; }
[data-palette="indigo"]  { --brand: #4f46e5; --brand-fg: #fff; --cta: #4f46e5; --cta-fg: #fff; }
[data-palette="ocean"]   { --brand: #0369a1; --brand-fg: #fff; --cta: #0369a1; --cta-fg: #fff; }
[data-palette="rose"]    { --brand: #e11d48; --brand-fg: #fff; --cta: #e11d48; --cta-fg: #fff; }
[data-palette="amber"]   { --brand: #b45309; --brand-fg: #fff; --cta: #f59e0b; --cta-fg: #1f2333; }
[data-palette="teal"]    { --brand: #0d9488; --brand-fg: #fff; --cta: #0d9488; --cta-fg: #fff; }
[data-palette="violet"]  { --brand: #7c3aed; --brand-fg: #fff; --cta: #7c3aed; --cta-fg: #fff; }
[data-palette="crimson"] { --brand: #be123c; --brand-fg: #fff; --cta: #be123c; --cta-fg: #fff; }
[data-palette="slate"]   { --brand: #475569; --brand-fg: #fff; --cta: #475569; --cta-fg: #fff; }
[data-palette="amazon"]  { --brand: #a16207; --brand-fg: #fff; --cta: #ffd814; --cta-fg: #0f1111; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 .4em;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ── Prices as typographic events ── */
.price { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--ink); }
.price-sym { font-size: .65em; font-weight: 700; color: var(--ink-2); margin-right: .08em; }
.price-md { font-size: 1rem; }
.price-lg { font-size: 1.5rem; }
.price-xl { font-size: 2rem; }
.font-ordernum { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }

/* ── Buttons (dark ink on orange; 44px+ targets) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 0 1.1rem; height: 44px; border-radius: var(--r-ctrl);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .06s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
/* Amazon yellow "add to cart" is the primary action; orange "buy now" via .btn-buy */
.btn-primary { background: var(--cta); color: var(--cta-fg); border-color: color-mix(in srgb, var(--cta), #000 8%); box-shadow: 0 2px 5px rgba(15,17,17,.1); font-weight: 500; }
.btn-primary:hover { background: color-mix(in srgb, var(--cta), #000 8%); }
.btn-buy { background: var(--cta2); color: var(--cta-fg); border-color: var(--cta2-border); box-shadow: 0 2px 5px rgba(15,17,17,.1); font-weight: 500; }
.btn-buy:hover { background: var(--cta2-hover); }
.btn-outline { background: var(--card); border-color: #8d9096; color: var(--ink); box-shadow: 0 1px 2px rgba(15,17,17,.08); font-weight: 500; }
.btn-outline:hover { background: #f7fafa; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--muted); }
.btn-danger { background: var(--dispute-bg); color: var(--dispute); }
.btn-lg { height: 50px; padding: 0 1.6rem; font-size: 1rem; font-weight: 500; }
.btn-sm { height: 38px; padding: 0 .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.card-p { padding: 1.4rem; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 1.6rem; }

/* ── Badges / pills (semantic tones) ── */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.tone-held      { background: var(--held-bg);     color: var(--held); }
.tone-released  { background: var(--released-bg); color: var(--released); }
.tone-dispute   { background: var(--dispute-bg);  color: var(--dispute); }
.tone-info      { background: var(--info-bg);     color: var(--info); }
.tone-muted     { background: var(--muted);       color: var(--ink-2); }
.tone-brand     { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.brand-tint     { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }

/* ── Header (Amazon two-tier navy chrome) ── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); color: var(--header-fg); }
.hdr-top { display: flex; align-items: center; gap: .4rem; height: 60px; max-width: 1500px; margin: 0 auto; padding: 0 14px; }
.brand-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--header-fg); padding: 6px 8px; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; }
.brand-logo:hover, .hdr-act:hover, .hdr-cart:hover, .subnav-all:hover, .brand-logo:focus { border-color: #fff; }
.hdr-actions { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.hdr-act { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; padding: 8px 9px; border: 1px solid transparent; border-radius: 4px; color: var(--header-fg); white-space: nowrap; }
.hdr-act-1 { font-size: .72rem; color: #e6e6e6; }
.hdr-act-2 { font-size: .88rem; font-weight: 700; }
.hdr-icon { position: relative; display: inline-grid; place-items: center; color: var(--header-fg); padding: 8px; border: 1px solid transparent; border-radius: 4px; }
.hdr-icon:hover { border-color: #fff; }
.hdr-cart { display: flex; align-items: flex-end; gap: .15rem; position: relative; padding: 8px 9px; border: 1px solid transparent; border-radius: 4px; color: var(--header-fg); }
.hdr-cart-l { font-size: .88rem; font-weight: 700; }
.hdr-cart-n { position: absolute; top: 2px; left: 26px; color: var(--hi); font-weight: 800; font-size: .95rem; }
/* Second-tier department bar */
.site-subnav { background: var(--header-bg2); color: var(--header-fg); }
.subnav-inner { display: flex; align-items: center; gap: .1rem; height: 39px; max-width: 1500px; margin: 0 auto; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.site-subnav a, .subnav-all { color: var(--header-fg); font-size: .88rem; font-weight: 500; padding: 6px 9px; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.subnav-all { font-weight: 700; }
.site-subnav a:hover, .subnav-all:hover { border-color: #fff; }
.subnav-tag { margin-left: auto; color: var(--hi); font-weight: 700; font-size: .85rem; padding: 6px 9px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; color: var(--header-fg); font-size: 1.5rem; cursor: pointer; margin-left: .3rem; }
.bell { position: relative; color: var(--header-fg); }
.bell .dot { position: absolute; top: 0; right: 0; background: var(--hi); color: #0f1111; font-size: .6rem; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 3px; }

/* ── Footer ── */
/* Amazon-style footer */
.amz-footer { margin-top: 3rem; background: var(--header-bg2); color: var(--header-fg); }
.footer-backtop { display: block; width: 100%; background: var(--header-hover); color: #fff; border: 0; padding: 15px; font-size: .85rem; font-weight: 500; cursor: pointer; text-align: center; }
.footer-backtop:hover { background: #485769; }
.footer-cols-wrap { border-bottom: 1px solid #3a4553; padding: 2.6rem 0 2rem; }
.footer-cols { max-width: 1000px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 .8rem; }
.footer-col a { display: block; color: #ddd; font-size: .86rem; padding: .3rem 0; }
.footer-col a:hover { text-decoration: underline; color: #fff; }
.footer-blurb { font-size: .84rem; color: #ccc; line-height: 1.5; margin: 0 0 .8rem; }
.footer-blurb svg { color: var(--released); vertical-align: -2px; }
.footer-region { font-size: .8rem; color: #9aa5b1; }
.footer-base { background: var(--header-bg); padding: 1.8rem 20px; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.footer-logo { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-base span { font-size: .76rem; color: #99a0a8; }
.footer-base a { color: #aeb6c2; text-decoration: underline; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* ── Forms (filled inputs) ── */
.field { display: block; margin-bottom: 1rem; }
.field > .label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.field .hint { display: block; font-size: .78rem; color: var(--ink-2); margin-top: .35rem; }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--muted); border: 1px solid transparent; border-radius: var(--r-ctrl);
  padding: .7rem .9rem; outline: none; transition: background .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus { background: var(--card); box-shadow: 0 0 0 2px var(--brand); }

/* Keyboard focus — a consistent, on-brand ring for interactive elements
   (browser defaults are inconsistent and low-contrast on the navy chrome). */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, summary:focus-visible,
.cat-tile:focus-visible, .coupon-chip:focus-visible, .rv-help-btn:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 5px;
}
/* Light ring on dark navy surfaces (header, subnav, hero, footer, CTA) for contrast. */
.site-header a:focus-visible, .site-header button:focus-visible,
.site-subnav a:focus-visible, .site-subnav button:focus-visible,
.amz-hero a:focus-visible, .sell-cta a:focus-visible, .amz-footer a:focus-visible {
  outline-color: #fff;
}
.textarea { min-height: 6rem; resize: vertical; }

/* ── Flash ── */
.flash { border-radius: var(--r-ctrl); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.flash-success { background: var(--released-bg); color: var(--released); }
.flash-error   { background: var(--dispute-bg);  color: var(--dispute); }
.flash-info    { background: var(--info-bg);     color: var(--info); }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1100px 520px at 88% -12%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 62%),
    radial-gradient(820px 480px at -8% 118%, color-mix(in srgb, var(--info) 12%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--bg)), var(--bg));
}
.hero::before { /* faint dot texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero .glow { position: absolute; z-index: 0; width: 440px; height: 440px; right: -40px; top: 30px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 32%, transparent), transparent 66%); filter: blur(46px); }
.hero .container { position: relative; z-index: 1; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; padding: 4.5rem 0 4rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; line-height: 1.08; }
.hero .accent { color: var(--brand); }
.hero .lede { font-size: 1.1rem; color: var(--ink-2); max-width: 30rem; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; }
.hero-visual .tile { aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.hero-visual .tile:nth-child(odd) { transform: translateY(1rem); }
.hero-card { position: absolute; bottom: -1rem; left: 50%; transform: translateX(-50%); width: 16rem; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 1rem; }
.hero-card .bar { height: 8px; background: var(--muted); border-radius: 999px; overflow: hidden; margin: .5rem 0; }
.hero-card .bar > span { display: block; height: 100%; width: 66%; background: var(--released); border-radius: 999px; }

/* ── Stat strip ── */

/* Amazon-style hero banner (fades into the grey page) */
.amz-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #0f1f3d 0%, #0b5c6e 52%, #12868f 100%); }
.amz-hero::before { content: ""; position: absolute; inset: 0; background: url('/assets/img/hero-pattern.svg') repeat; background-size: 320px 320px; opacity: .07; z-index: 0; pointer-events: none; }
.amz-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 0; }
.amz-hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 3.2rem 20px 4.5rem; color: #fff; }
.amz-hero-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.amz-hero-eyebrow svg { color: var(--hi); }
.amz-hero-h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; color: #fff; margin: 1.1rem 0 .5rem; max-width: 18ch; line-height: 1.08; }
.amz-hero-h1 span { color: var(--hi); }
.amz-hero-lede { font-size: 1.05rem; line-height: 1.55; max-width: 42rem; color: #e2e8ec; margin: 0 0 1.5rem; }
.amz-hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.amz-hero-ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.42); color: #fff; }
.amz-hero-ghost:hover { background: rgba(255,255,255,.2); }
/* Order status hero (big plain-language status at the top of an order) */
.order-hero { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
.order-hero-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--ink-2); background: var(--muted); }
.order-hero-h { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.order-hero-sub { color: var(--ink-2); font-size: .88rem; margin-top: .2rem; }
.order-hero.tone-held .order-hero-ic     { color: var(--held);     background: var(--held-bg); }
.order-hero.tone-info .order-hero-ic     { color: var(--info);     background: var(--info-bg); }
.order-hero.tone-released .order-hero-ic  { color: var(--released); background: var(--released-bg); }
.order-hero.tone-dispute .order-hero-ic  { color: var(--dispute);  background: var(--dispute-bg); }
.order-hero.tone-released { border-color: color-mix(in srgb, var(--released) 30%, var(--border)); }
.order-hero.tone-dispute { border-color: color-mix(in srgb, var(--dispute) 30%, var(--border)); }

/* Trust value-prop band (sits below the hero) */
.trust-band { background: var(--card); border-bottom: 1px solid var(--border); }
.trust-band-inner { max-width: 1040px; margin: 0 auto; padding: 1rem 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; justify-content: center; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-ic { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--released-bg); color: var(--released); }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.1; color: var(--ink); }
.trust-item span { font-size: .82rem; color: var(--ink-2); }
/* Full-bleed white bands to break up the grey homepage */
.home-band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* Single-column content/account/checkout pages sit on a white canvas (set via body.page-white in header.php). */
body.page-white { background: var(--card); }
body.page-white main { background: var(--card); min-height: 68vh; border-top: 1px solid var(--border); }
.home-band-rails { padding: .4rem 0 1.4rem; }
@media (max-width: 640px) { .trust-band-inner { grid-template-columns: 1fr; gap: .6rem; } .trust-item + .trust-item { border-left: 0; } .trust-item { justify-content: flex-start; } }

/* Light "how it works" steps */
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.how-step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.how-num { position: absolute; top: 1rem; right: 1.3rem; font-size: 2rem; font-weight: 800; color: var(--border); font-family: var(--font-display); line-height: 1; }
.how-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .9rem; }
.how-ic.held { background: var(--held-bg); color: var(--held); }
.how-ic.info { background: var(--info-bg); color: var(--info); }
.how-ic.released { background: var(--released-bg); color: var(--released); }
.how-step h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.how-step p { margin: 0; font-size: .9rem; line-height: 1.5; }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }

/* Navy seller CTA banner with yellow action */
.sell-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--header-bg), var(--header-bg2)); border-radius: var(--r-card); padding: 2.2rem 2.4rem; color: #fff; }
.sell-cta h2 { color: #fff; font-size: 1.6rem; margin: 0 0 .45rem; }
.sell-cta p { color: #d7dde3; margin: 0; max-width: 40rem; font-size: .98rem; line-height: 1.55; }
.sell-cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.sell-cta .btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.sell-cta .btn-outline:hover { background: rgba(255,255,255,.12); }
@media (max-width: 640px) { .sell-cta { padding: 1.8rem; } .sell-cta h2 { font-size: 1.35rem; } }


/* ── Escrow journey (signature) ── */
.escrow-journey { padding: 1.4rem; }
.ej-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.ej-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.ej-track { position: relative; }
.ej-line { position: absolute; left: 20px; right: 20px; top: 20px; height: 3px; background: var(--border); border-radius: 999px; }
.ej-fill { position: absolute; left: 20px; top: 20px; height: 3px; background: var(--released); border-radius: 999px; }
.ej-nodes { position: relative; display: flex; justify-content: space-between; }
.ej-node { display: flex; flex-direction: column; align-items: center; text-align: center; width: 6rem; }
.ej-dot { width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--border); background: var(--card); display: grid; place-items: center; color: var(--ink-faint); }
.ej-node.done .ej-dot { background: var(--released); border-color: var(--released); color: #fff; }
.ej-node.active .ej-dot { background: var(--card); }
.ej-node.active.held .ej-dot { border-color: var(--held); color: var(--held); box-shadow: 0 0 0 4px rgba(161,95,0,.15); }
.ej-node.active.info .ej-dot { border-color: var(--info); color: var(--info); box-shadow: 0 0 0 4px rgba(36,86,200,.15); }
.ej-node.active.released .ej-dot { border-color: var(--released); color: var(--released); box-shadow: 0 0 0 4px rgba(14,138,77,.15); }
.ej-label { font-size: .78rem; font-weight: 500; margin-top: .5rem; color: var(--ink-2); }
.ej-node.active .ej-label { color: var(--ink); font-weight: 600; }
.ej-node.active .ej-dot { animation: ej-pulse 2s ease-out infinite; }
@keyframes ej-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .ej-node.active .ej-dot { animation: none; } }
.ej-next { display: flex; align-items: flex-start; gap: .55rem; margin-top: 1.5rem; padding: .8rem 1rem; border-radius: var(--r-ctrl); font-size: .88rem; line-height: 1.45; background: var(--muted); color: var(--ink); }
.ej-next-ic { flex-shrink: 0; margin-top: .05rem; }
.ej-next.held { background: var(--held-bg); color: color-mix(in srgb, var(--held) 82%, var(--ink)); }
.ej-next.info { background: var(--info-bg); color: color-mix(in srgb, var(--info) 82%, var(--ink)); }
.ej-next.released { background: var(--released-bg); color: color-mix(in srgb, var(--released) 82%, var(--ink)); }
.ej-next.dispute { background: var(--dispute-bg); color: color-mix(in srgb, var(--dispute) 82%, var(--ink)); }

/* ── Product cards ── */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product-card { overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card .thumb { position: relative; aspect-ratio: 4/5; background: var(--muted); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .protected { position: absolute; top: 8px; left: 8px; }
.product-card .body { padding: .9rem 1rem 1rem; }
.product-card h3 { font-size: .95rem; font-weight: 500; font-family: var(--font-body); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin: 0; }

/* ── Rich product card (carousel + rating + wishlist + buy) ── */
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); transition: transform .14s, box-shadow .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard-media { position: relative; aspect-ratio: 4/3; background: var(--muted); overflow: hidden; }
.pcard-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.pcard-track > a, .pcard-track > .pcard-slide { flex: 0 0 100%; height: 100%; }
.pcard-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-track .tile-fallback { width: 100%; height: 100%; }
.pcard:hover .pcard-track img { transform: scale(1.04); transition: transform .4s; }
.pcard-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--card) 82%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s; z-index: 3; }
.pcard-media:hover .pcard-nav { opacity: 1; }
.pcard-nav.prev { left: 8px; } .pcard-nav.next { right: 8px; }
.pcard-nav:hover { background: var(--card); }
.pcard-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 3; }
.pcard-dots button { width: 6px; height: 6px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--brand) 30%, transparent); transition: width .2s, background .2s; }
.pcard-dots button.on { width: 16px; background: var(--brand); }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.pcard-wish { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--card) 82%, transparent); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); z-index: 3; transition: color .15s, transform .1s; }
.pcard-wish:hover { transform: scale(1.08); }
.pcard-wish.on { color: var(--dispute); }
.pcard-wish.on svg { fill: var(--dispute); }
.pcard-body { padding: .7rem .85rem .85rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pcard-topline { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--ink-2); }
.pcard-topline .rate { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; color: var(--ink); }
.pcard-topline .rate svg { fill: var(--held); color: var(--held); }
.pcard-title { font-size: .92rem; font-weight: 500; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.pcard-title:hover { color: var(--brand); }
.pcard-vendor { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--ink-2); }
.pcard-buy { margin-top: auto; }

/* ── Fallback product tile (no image) ── */
.tile-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--muted), #e2e5ee); color: var(--ink-faint); }

/* ── Grid utils ── */
/* minmax(0,1fr) lets tracks shrink below content min-content so wide children
   (charts, tables) never blow the grid past the viewport. */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.chart, .chart-axis { min-width: 0; max-width: 100%; }
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.bullet { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .7rem; color: var(--ink-2); font-size: .92rem; }
.bullet .ic { color: var(--released); flex-shrink: 0; margin-top: .1rem; }

/* ── Star ── */
.stars { display: inline-flex; gap: 1px; color: var(--held); }
.stars > span:not(.empty) svg { fill: currentColor; }
.stars .empty { color: var(--ink-faint); opacity: .4; }
.rate-star { color: var(--ink-faint); transition: color .1s; }
.rate-star.on { color: var(--held); }
.rate-star.on svg { fill: currentColor; }

/* ── Mobile nav ── */
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--border); }
.mobile-nav a { display: block; padding: .9rem 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { background: var(--muted); }
body.nav-open .mobile-nav { display: block; }

/* ── Chat ── */
.chat-thread { display: flex; flex-direction: column; gap: .5rem; padding: 1rem .2rem; min-height: 42vh; max-height: 62vh; overflow-y: auto; }
.chat-msg { max-width: 80%; align-self: flex-start; }
.chat-msg.me { align-self: flex-end; }
.chat-msg .bubble { background: var(--muted); color: var(--ink); padding: .55rem .8rem; border-radius: 16px; border-bottom-left-radius: 5px; font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.chat-msg.me .bubble { background: var(--brand); color: var(--brand-fg); border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.chat-msg .time { font-size: .64rem; color: var(--ink-faint); margin-top: .2rem; padding: 0 .35rem; }
.chat-msg.me .time { text-align: right; }
.chat-compose { display: flex; gap: .5rem; align-items: center; margin-top: .8rem; }
.chat-compose .input { border-radius: 999px; }
.chat-compose .btn { border-radius: 999px; width: 46px; height: 46px; padding: 0; flex-shrink: 0; }
.msg-link { position: relative; }
.msg-link .dot { position: absolute; top: -3px; right: -3px; background: var(--dispute); color: #fff; font-size: .58rem; font-weight: 700; min-width: 15px; height: 15px; border-radius: 999px; display: grid; place-items: center; padding: 0 3px; }

/* ── Mobile app shell (PWA) ── */
.app-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: var(--card); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 18px rgba(38,42,59,.07);
}
.app-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: .5rem 0 .45rem; color: var(--ink-2); font-size: .64rem; font-weight: 500; }
.app-tabbar a.active { color: var(--brand); }
body.app-mode { padding-bottom: 60px; }
body.app-mode .site-footer { display: none; }

.app-home { padding: 1rem 1rem 1.5rem; }
.app-hero { border-radius: var(--r-card); padding: 1.1rem 1.15rem; margin-bottom: 1rem; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 240px at 90% -20%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 60%), #12131a; }
.app-hero h1 { font-size: 1.5rem; margin: .6rem 0 .2rem; color: #fff; }
.app-hero p { font-size: .88rem; color: #aab; margin: 0; }
.app-search { display: flex; align-items: center; gap: .5rem; background: var(--muted); border-radius: var(--r-ctrl); padding: .6rem .8rem; margin-bottom: 1rem; }
.app-search input { border: 0; background: transparent; outline: none; font: inherit; width: 100%; color: var(--ink); }
.app-cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .9rem; margin-bottom: .3rem; scrollbar-width: none; }
.app-cats::-webkit-scrollbar { display: none; }
.app-cats a { flex-shrink: 0; }
/* One card per row on phones, laid out horizontally (image left, details right). */
body.app-mode .product-grid, .app-grid { grid-template-columns: 1fr !important; gap: .75rem !important; }
body.app-mode .pcard { flex-direction: row; }
body.app-mode .pcard-media { width: 40%; max-width: 150px; flex-shrink: 0; aspect-ratio: auto; align-self: stretch; }
body.app-mode .pcard-nav { display: none; }
/* App-home section headings + rails (rail cards stay vertical even though app-mode makes normal cards horizontal) */
.app-sec-h { font-size: 1.1rem; margin: 1.3rem 0 .8rem; display: flex; align-items: center; gap: .45rem; }
body.app-mode .rail-sec { max-width: none; padding-left: 0; padding-right: 0; padding-top: 1.3rem; padding-bottom: .2rem; }
body.app-mode .rail-head h2 { font-size: 1.1rem; }
body.app-mode .rail > .pcard { flex-direction: column; flex-basis: 62vw; }
body.app-mode .rail .pcard-media { width: 100%; max-width: none; aspect-ratio: 1; }
body.app-mode .pcard-dots { bottom: 6px; }
body.app-mode .pcard-body { justify-content: center; padding: .75rem .9rem; gap: .35rem; }
body.app-mode .pcard-title { font-size: 1rem; -webkit-line-clamp: 2; }
body.app-mode .pcard-buy { margin-top: .2rem; }

@media (min-width: 768px) { .app-tabbar { display: none; } body.app-mode { padding-bottom: 0; } body.app-mode .pcard { flex-direction: column; } body.app-mode .pcard-media { width: auto; max-width: none; } }

/* ── Admin shell (sidebar + main) ── */
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100dvh - 56px); }
.admin-sidebar { background: var(--card); border-right: 1px solid var(--border); padding: 1.2rem .75rem; position: sticky; top: 56px; height: calc(100dvh - 56px); overflow-y: auto; }
.admin-sidebar a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: var(--r-ctrl); color: var(--ink-2); font-size: .9rem; font-weight: 500; margin-bottom: .1rem; }
.admin-sidebar a:hover { background: var(--muted); color: var(--ink); }
.admin-sidebar a.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 600; }
.admin-sidebar a .badge { margin-left: auto; }
/* Collapsible nav groups */
.admin-navgroup { margin-bottom: .15rem; }
.admin-navgroup-h { width: 100%; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: none; border: 0; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); border-radius: var(--r-ctrl); }
.admin-navgroup-h:hover { background: var(--muted); color: var(--ink-2); }
.admin-navgroup-lbl { flex: 1; text-align: left; }
.admin-navgroup-badge { margin-left: auto; }
.admin-navgroup.open .admin-navgroup-badge { display: none; }
.admin-navgroup-chev { display: inline-flex; color: var(--ink-faint); transition: transform .2s ease; }
.admin-navgroup.open .admin-navgroup-chev { transform: rotate(90deg); }
.admin-navgroup-items { max-height: 0; overflow: hidden; transition: max-height .22s ease; }
.admin-navgroup.open .admin-navgroup-items { max-height: 520px; }
.admin-main { padding: 1.8rem 2rem; min-width: 0; max-width: 1200px; }
.admin-main h1 { font-size: 1.5rem; }

/* ── Simple bar chart (no JS) ── */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.chart .bar { flex: 1; background: color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; transition: background .12s; }
.chart .bar:hover { background: var(--brand); }
.chart .bar > span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .65rem; color: var(--ink-2); white-space: nowrap; opacity: 0; transition: opacity .1s; padding-bottom: 2px; }
.chart .bar:hover > span { opacity: 1; }
.chart-axis { display: flex; gap: 4px; margin-top: .4rem; }
.chart-axis span { flex: 1; text-align: center; font-size: .62rem; color: var(--ink-faint); white-space: nowrap; }

/* ── Responsive ── */
/* Tablets: 4-up KPI clusters become 2×2, 3-up charts stack, before the full
   single-column collapse below. Charts stay side-by-side (they shrink to fit). */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; display: flex; overflow-x: auto; gap: .3rem; border-right: 0; border-bottom: 1px solid var(--border); padding: .6rem; }
  .admin-sidebar a { white-space: nowrap; margin-bottom: 0; }
  .admin-sidebar a span:not(.badge) { display: inline; }
  /* Flatten collapsible groups into the horizontal scroller on mobile */
  .admin-navgroup, .admin-navgroup-items { display: contents; }
  .admin-navgroup-h { display: none; }
  .admin-main { padding: 1.2rem; }
}
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .hero-visual { display: none; }
  .grid-2, .product-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .ej-node { width: auto; }
  .escrow-journey .ej-nodes { flex-direction: column; gap: 1.2rem; align-items: flex-start; }
  .escrow-journey .ej-node { flex-direction: row; gap: .8rem; text-align: left; align-items: center; }
  .ej-line, .ej-fill { display: none; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-template-columns: repeat(2, auto); }
}

/* ── Account hub ─────────────────────────────────────────────── */
.account-hero { display: flex; gap: 1rem; align-items: center; padding: 1.4rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.account-avatar { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--brand-fg); background: var(--brand); box-shadow: var(--shadow-sm); }
.account-name { font-size: 1.25rem; margin: 0; line-height: 1.15; }
.account-sub { margin: .15rem 0 0; color: var(--ink-2); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-sell-cta, .account-push { display: flex; gap: .85rem; align-items: center; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-card); text-decoration: none; color: var(--ink); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
.account-sell-cta { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--brand) 24%, var(--border)); }
.account-sell-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.account-sell-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }

.account-sec { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 1.5rem 0 .55rem .2rem; }
.account-menu { margin-top: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.account-row { display: flex; gap: .85rem; align-items: center; padding: .95rem 1.1rem; text-decoration: none; color: var(--ink); border-top: 1px solid var(--border); transition: background .15s; }
.account-row:first-child { border-top: 0; }
.account-row:hover { background: color-mix(in srgb, var(--c, var(--ink-2)) 7%, transparent); }
.account-row-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: var(--c, var(--ink-2)); background: color-mix(in srgb, var(--c, var(--ink-2)) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--ink-2)) 22%, transparent); }
.account-row-title { display: block; font-weight: 600; font-size: .95rem; }
.account-row-sub { display: block; color: var(--ink-2); font-size: .8rem; margin-top: .1rem; }
.account-row .icon, .account-row > svg:last-child { color: var(--ink-faint); }
.account-row-badge { min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 999px; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--dispute); }

.account-signout { display: flex; gap: .5rem; align-items: center; justify-content: center; margin: 1.5rem 0 0; padding: .85rem; border-radius: var(--r-ctrl); text-decoration: none; font-weight: 600; color: var(--dispute); border: 1px solid color-mix(in srgb, var(--dispute) 30%, var(--border)); background: var(--card); }
.account-signout:hover { background: var(--dispute-bg); }
.account-legal { text-align: center; margin: 1.25rem 0 0; font-size: .8rem; color: var(--ink-faint); }
.account-legal a { color: var(--ink-2); }

/* ── Seller bulk-action bar ──────────────────────────────────── */
.bulk-bar { position: sticky; top: .5rem; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; padding: .7rem 1rem; border-radius: var(--r-ctrl); background: var(--card); border: 1px solid var(--brand); box-shadow: var(--shadow-md); }

/* ── Admin feature toggles ───────────────────────────────────── */
.feature-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--border); }
.feature-row:first-child { border-top: 0; }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--muted); border: 1px solid var(--border); position: relative; cursor: pointer; flex-shrink: 0; transition: background .18s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s; }
.switch:checked { background: var(--brand); border-color: var(--brand); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Trust tier badges ───────────────────────────────────────── */
.tier-badge { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.tier-badge.tier-top { background: color-mix(in srgb, var(--held) 14%, transparent); color: var(--held); }

/* ── Photo evidence / review thumbnails ──────────────────────── */
.photo-strip { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.photo-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; background: var(--muted); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.photo-thumb:hover img { transform: scale(1.06); }
.upload-preview { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.upload-preview img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); }

/* ── OTP code input ──────────────────────────────────────────── */
.otp-input { letter-spacing: .5em; text-align: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }

/* ── Saved-address chips (checkout) ──────────────────────────── */
.addr-chip { display: inline-flex; gap: .35rem; align-items: center; padding: .5rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); background: var(--card); border: 1.5px solid var(--border); transition: border-color .15s, background .15s; }
.addr-chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.addr-chip.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--card)); color: color-mix(in srgb, var(--brand) 55%, var(--ink)); }

/* ═══════════════════════════════════════════════════════════════
   ADMIN + SELLER DASHBOARD - Amazon "Seller Central" style:
   navy chrome, light-grey content, boxy white cards. Inherits the
   :root light tokens (no dark override).
   ═══════════════════════════════════════════════════════════════ */
body.admin-ui { background: var(--card); color: var(--ink); }
body.admin-ui .admin-main { background: var(--card); }

/* ── Admin dark theme (toggled via body.admin-dark; palette --brand/--cta stay) ── */
body.admin-ui.admin-dark {
  --bg: #0f141a; --card: #181f29; --ink: #e6edf3; --ink-2: #9aa7b4; --ink-faint: #6b7885;
  --border: #2b3644; --muted: #212b38;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 6px 20px rgba(0,0,0,.45);
}
body.admin-ui.admin-dark .input,
body.admin-ui.admin-dark input:not([type=checkbox]):not([type=radio]),
body.admin-ui.admin-dark select,
body.admin-ui.admin-dark textarea { background: var(--muted); color: var(--ink); border-color: var(--border); }
body.admin-ui.admin-dark .admin-sidebar { background: var(--card); }
body.admin-ui.admin-dark .admin-sidebar a.active { background: color-mix(in srgb, var(--brand) 32%, transparent); color: var(--ink); }
body.admin-ui.admin-dark .admin-sidebar a.active .badge { background: rgba(255,255,255,.18) !important; color: var(--ink) !important; }
body.admin-ui.admin-dark table th { color: var(--ink-2); }
body.admin-ui.admin-dark .admin-search input { background: rgba(255,255,255,.08); color: #fff; }

/* Topbar theme/sidebar toggle buttons */
.admin-tbtn { background: transparent; border: 0; color: var(--header-fg); cursor: pointer; padding: 7px; border-radius: 7px; display: inline-grid; place-items: center; opacity: .82; transition: background .15s ease, opacity .15s ease; }
.admin-tbtn:hover { background: rgba(255,255,255,.14); opacity: 1; }
.admin-tbtn .i-dark { display: none; }
body.admin-ui.admin-dark .admin-tbtn .i-light { display: none; }
body.admin-ui.admin-dark .admin-tbtn .i-dark { display: inline-grid; }

/* ── Collapsible sidebar rail (body.sidebar-collapsed) ── */
.admin-shell { transition: grid-template-columns .2s ease; }
body.admin-ui.sidebar-collapsed .admin-shell { grid-template-columns: 62px 1fr; }
body.admin-ui.sidebar-collapsed .admin-sidebar { padding: 1rem .5rem; overflow: visible; }
body.admin-ui.sidebar-collapsed .admin-navgroup-h { display: none; }
body.admin-ui.sidebar-collapsed .admin-navgroup + .admin-navgroup { border-top: 1px solid var(--border); padding-top: .3rem; margin-top: .3rem; }
body.admin-ui.sidebar-collapsed .admin-navgroup-items { max-height: none !important; overflow: visible; }
body.admin-ui.sidebar-collapsed .admin-sidebar a { justify-content: center; gap: 0; padding: .6rem 0; position: relative; }
body.admin-ui.sidebar-collapsed .admin-sidebar a > span { display: none; }
body.admin-ui.sidebar-collapsed .admin-sidebar a .badge { display: none; }
.admin-sb-toggle .i-open { display: none; }
body.admin-ui.sidebar-collapsed .admin-sb-toggle .i-open { display: inline-grid; }
body.admin-ui.sidebar-collapsed .admin-sb-toggle .i-close { display: none; }
@media (max-width: 720px) { body.admin-ui.sidebar-collapsed .admin-shell { grid-template-columns: 1fr; } .admin-sb-toggle { display: none; } }

/* Top bar - Amazon navy chrome (admin reuses .bar/.nav markup) */
body.admin-ui .admin-topbar { background: var(--header-bg); color: var(--header-fg); border-bottom: 0; box-shadow: none; }
body.admin-ui .admin-topbar .bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
body.admin-ui .admin-topbar .nav { display: flex; align-items: center; gap: 1rem; }
body.admin-ui .admin-topbar .nav-links { display: flex; align-items: center; gap: 1.1rem; font-size: .9rem; font-weight: 500; }
body.admin-ui .admin-topbar .brand-logo { color: #fff; }
body.admin-ui .admin-topbar .nav-links a, body.admin-ui .admin-topbar .admin-username, body.admin-ui .admin-topbar .bell { color: #fff; }
body.admin-ui .admin-topbar .nav-links a:hover { text-decoration: underline; }
body.admin-ui .admin-topbar .nav-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; border-radius: 7px; padding: .4rem .85rem; display: inline-flex; align-items: center; }
body.admin-ui .admin-username { font-weight: 600; font-size: .9rem; }
body.admin-ui .admin-topbar .badge { background: rgba(255,255,255,.16) !important; color: #fff !important; }
/* Global search - white pill with yellow focus */
.admin-search { display: flex; align-items: center; gap: .5rem; flex: 1; max-width: 460px; margin: 0 1.5rem; padding: .5rem .85rem; border-radius: 7px; background: #fff; border: 0; color: var(--ink-2); }
.admin-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: .9rem; }
.admin-search input::placeholder { color: #6a6f6f; }
.admin-search:focus-within { box-shadow: 0 0 0 3px var(--cta); }
@media (max-width: 820px) { .admin-search { display: none; } }

/* Sidebar - light panel, navy filled active item */
body.admin-ui .admin-sidebar { background: #fff; border-right: 1px solid var(--border); }
body.admin-ui .admin-sidebar a { color: var(--ink); border-radius: 7px; }
body.admin-ui .admin-sidebar a:hover { background: var(--muted); color: var(--ink); }
body.admin-ui .admin-sidebar a.active { background: var(--cta); color: var(--cta-fg); font-weight: 700; }
body.admin-ui .admin-sidebar a.active .badge { background: rgba(15,17,17,.14) !important; color: var(--cta-fg) !important; }
body.admin-ui .admin-sidebar::-webkit-scrollbar { width: 8px; }
body.admin-ui .admin-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

/* KPI / stat cards - leading accent icon chip (admin + dashboard) */
body.admin-ui .stat-card { position: relative; overflow: hidden; }
body.admin-ui .stat-ic, body.dash-ui .stat-ic {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); margin-bottom: .7rem;
}

/* Seller dashboard content - white canvas (public navy header/footer already applied) */
body.dash-ui { background: var(--card); color: var(--ink); }
body.dash-ui main { background: var(--card); border-top: 1px solid var(--border); }

/* ── Chat attachments ────────────────────────────────────────── */
.chat-msg .chat-atts { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .35rem; }
.chat-msg .chat-atts img { width: 130px; height: 130px; object-fit: cover; border-radius: 10px; display: block; }
.chat-msg.me .bubble:has(.chat-atts:only-child) { background: transparent; padding: 0; }

/* ── Announcement banner (dismissible) ──────────────────────────── */
.announce-bar { background: var(--ink); color: #fff; font-size: .875rem; overflow: hidden;
  transition: height .24s ease, opacity .24s ease; }
.announce-bar.announce-info    { background: var(--info); }
.announce-bar.announce-success { background: var(--released); }
.announce-bar.announce-alert   { background: var(--dispute); }
.announce-bar.announce-brand   { background: var(--brand); color: var(--brand-fg); }
.announce-hide { height: 0 !important; opacity: 0; }
.announce-inner { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; }
.announce-ico { display: inline-flex; flex-shrink: 0; opacity: .9; }
.announce-msg { flex: 1; min-width: 0; line-height: 1.35; }
.announce-cta { color: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .25rem; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.announce-cta:hover { opacity: .85; }
.announce-x { background: transparent; border: 0; color: inherit; cursor: pointer; opacity: .7;
  display: inline-flex; padding: .2rem; border-radius: 6px; flex-shrink: 0; }
.announce-x:hover { opacity: 1; background: rgba(255,255,255,.18); }
@media (max-width: 640px) { .announce-msg { font-size: .82rem; } .announce-cta span { display: none; } }

/* ── Printable documents: invoice + shipping label ──────────────── */
.doc-wrap { max-width: 780px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
.doc-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-bottom: 1rem; }
.doc-sheet { background: #fff; color: #14161f; border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-md); padding: 2.4rem; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  border-bottom: 2px solid #14161f; padding-bottom: 1.2rem; margin-bottom: 1.4rem; }
.doc-brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display);
  font-weight: 800; font-size: 1.4rem; color: #14161f; }
.doc-brand .doc-tag { font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: #6b7080; display: block; }
.doc-meta { text-align: right; font-size: .82rem; color: #4a4f63; }
.doc-meta .doc-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #14161f; letter-spacing: .02em; }
.doc-meta .font-ordernum { font-size: .95rem; color: #14161f; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1.6rem; }
.doc-cols h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #8a8fa0; margin: 0 0 .3rem; font-weight: 700; }
.doc-cols p { margin: 0; font-size: .9rem; line-height: 1.5; color: #2a2e3e; }
.doc-cols strong { color: #14161f; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.2rem; }
.doc-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: #8a8fa0; border-bottom: 1px solid var(--border); padding: 0 0 .5rem; font-weight: 700; }
.doc-table th.r, .doc-table td.r { text-align: right; }
.doc-table td { padding: .6rem 0; border-bottom: 1px solid #f0f1f5; color: #2a2e3e; }
.doc-totals { margin-left: auto; width: min(280px, 100%); font-size: .9rem; }
.doc-totals .row { display: flex; justify-content: space-between; padding: .3rem 0; color: #4a4f63; }
.doc-totals .row.grand { border-top: 2px solid #14161f; margin-top: .3rem; padding-top: .6rem;
  font-weight: 800; font-size: 1.05rem; color: #14161f; }
.doc-note { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px dashed var(--border);
  font-size: .8rem; color: #6b7080; line-height: 1.5; }
.doc-stamp { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700;
  font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; }
.doc-stamp.paid { color: var(--released); background: var(--released-bg); }
.doc-stamp.held { color: var(--held); background: var(--held-bg); }

/* Shipping label */
.label-sheet { max-width: 520px; }
.label-to { border: 2px solid #14161f; border-radius: 12px; padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.label-to h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #8a8fa0; margin: 0 0 .4rem; font-weight: 700; }
.label-to .name { font-size: 1.35rem; font-weight: 800; font-family: var(--font-display); color: #14161f; line-height: 1.15; }
.label-to .addr { font-size: 1rem; color: #2a2e3e; margin-top: .3rem; line-height: 1.45; }
.label-to .phone { font-size: 1.05rem; font-weight: 700; color: #14161f; margin-top: .5rem; }
.label-track { text-align: center; margin: 1.4rem 0 .4rem; }
.label-track .code { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .06em; color: #14161f; }
.barcode { display: flex; gap: 2px; justify-content: center; align-items: flex-end; height: 58px; margin: .8rem 0 .3rem; }
.barcode i { display: block; width: 3px; background: #14161f; height: 100%; }
.label-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .85rem; margin-top: 1rem; }
.label-grid .k { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: #8a8fa0; font-weight: 700; }
.label-grid .v { color: #14161f; font-weight: 600; margin-top: .15rem; }

@media print {
  body { background: #fff !important; }
  .site-header, .admin-shell .admin-sidebar, .admin-topbar, footer, .doc-actions,
  .announce-bar, .app-tabbar, .nav-toggle { display: none !important; }
  main, .admin-main { padding: 0 !important; margin: 0 !important; }
  .doc-wrap { padding: 0; max-width: 100%; }
  .doc-sheet { border: 0; box-shadow: none; border-radius: 0; padding: 0; }
  @page { margin: 14mm; }
}

/* ── Notification preferences grid (per-channel) ─────────────────── */
.notify-grid { display: flex; flex-direction: column; }
.notify-head, .notify-row { display: grid; grid-template-columns: 1fr 68px 68px; align-items: center; gap: .5rem; }
.notify-head { padding: 0 0 .5rem; border-bottom: 1px solid var(--border); }
.notify-head span:not(:first-child) { text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; }
.notify-row { padding: .85rem 0; border-bottom: 1px solid var(--border); }
.notify-row:last-child { border-bottom: 0; }
.notify-topic { min-width: 0; }
.notify-cell { display: flex; justify-content: center; cursor: pointer; }

/* ── Evidence timeline (dispute report) ─────────────────────────── */
.ev-list { list-style: none; margin: 0; padding: 0; position: relative; }
.ev-list::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.ev-item { position: relative; padding: 0 0 1.1rem 1.6rem; }
.ev-item:last-child { padding-bottom: 0; }
.ev-dot { position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--card); box-shadow: 0 0 0 2px var(--border); }
.ev-when { font-size: .72rem; color: #9ba0b5; letter-spacing: .02em; }
.ev-title { font-weight: 700; font-size: .92rem; color: #14161f; margin-top: .1rem; }
.ev-detail { font-size: .88rem; color: #4a4f63; margin-top: .2rem; line-height: 1.45; }
.ev-item .photo-strip { margin-top: .5rem; }

/* ── Storefront customizer (hero, featured, layouts) ────────────── */
.store-hero { position: relative; width: 100%; height: 240px; overflow: hidden; background: var(--muted); }
.store-hero > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-hero-cap { position: absolute; inset: auto 0 0 0; padding: 3.5rem 0 1.4rem;
  background: linear-gradient(to top, rgba(15,17,24,.82), rgba(15,17,24,0)); }
.store-hero-cap p { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.15rem, 3.5vw, 1.9rem); line-height: 1.2; max-width: 40rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.4); border-left: 3px solid var(--accent, var(--brand)); padding-left: .8rem; }
.store-feat-h { font-size: 1.2rem; display: flex; align-items: center; gap: .4rem; color: var(--accent, var(--brand)); }
.store-feat-h svg { fill: currentColor; }
.store-spotlight { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.store-spotlight .pcard { border: 1.5px solid color-mix(in srgb, var(--brand) 30%, var(--border)); }
.store-spotlight .pcard-media { aspect-ratio: 16/10; }
.store-list .pcard { display: grid; grid-template-columns: 150px 1fr; align-items: stretch; }
.store-list .pcard-media { aspect-ratio: 1/1; height: 100%; }
@media (max-width: 720px) { .store-spotlight { grid-template-columns: 1fr; } .store-list .pcard { grid-template-columns: 110px 1fr; } }
/* Seller products: featured star toggle */
.feat-btn.on { color: var(--brand); }
.feat-btn.on svg { fill: currentColor; }

/* ── Loyalty tiers ──────────────────────────────────────────────── */
.tier-chip { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .78rem;
  padding: .25rem .6rem; border-radius: 999px; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.tier-chip svg { fill: currentColor; }
.tier-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 22%, var(--card)), var(--card) 70%);
  border: 1px solid color-mix(in srgb, var(--tc) 30%, var(--border)); }
.tier-track { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; margin-top: .5rem; }
.tier-track > i { display: block; height: 100%; border-radius: 999px; background: var(--tc); transition: width .5s ease; }
.tier-ladder { display: grid; gap: .5rem; margin-top: 1rem; }
.tier-step { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: var(--r-ctrl); border: 1px solid var(--border); }
.tier-step.on { border-color: color-mix(in srgb, var(--tc) 40%, var(--border)); background: color-mix(in srgb, var(--tc) 6%, transparent); }
.tier-step .tstar { color: var(--tc); display: inline-flex; }
.tier-step .tstar svg { fill: currentColor; }
.tier-step .tmin { margin-left: auto; font-size: .78rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }

/* ── Date range tabs (analytics / reconciliation) ───────────────── */
.range-tabs { display: inline-flex; gap: .2rem; padding: .25rem; background: var(--muted); border-radius: 999px; }
.range-tabs a { padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s; }
.range-tabs a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.range-tabs a:hover:not(.on) { color: var(--ink); }

/* ── Funnel bars (admin growth) ─────────────────────────────────── */
.funnel-bar { height: 10px; border-radius: 999px; background: var(--muted); overflow: hidden; margin-top: .35rem; }
.funnel-bar > i { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }

/* ── Wishlist alert center ──────────────────────────────────────── */
.watch-row { display: flex; align-items: center; gap: .8rem; padding: .5rem; border-radius: var(--r-ctrl); transition: background .15s; }
.watch-row:hover { background: var(--muted); }
.watch-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--muted); display: block; }
.watch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.watch-thumb .tile-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-faint); }
.drop-toggle.on { color: var(--released); }
.drop-toggle.on svg { fill: color-mix(in srgb, var(--released) 20%, transparent); }
.drop-toggle:not(.on) { color: var(--ink-faint); }

/* ── Promotions: product picker ─────────────────────────────────── */
.promo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; margin-top: .5rem;
  max-height: 300px; overflow-y: auto; padding: .2rem; }
.promo-item { display: flex; align-items: center; gap: .6rem; padding: .5rem; border: 1px solid var(--border); border-radius: var(--r-ctrl); cursor: pointer; transition: border-color .15s, background .15s; }
.promo-item:has(.promo-check:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.promo-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--muted); display: grid; place-items: center; }
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-thumb .tile-fallback { color: var(--ink-faint); }

/* ── Batch labels: one per printed page ─────────────────────────── */
@media print { .label-batch-item { page-break-after: always; break-after: page; } .label-batch-item:last-child { page-break-after: auto; } }

/* ── Delivery timeline (buyer order / track) ────────────────────── */
.dt-list { list-style: none; margin: .8rem 0 0; padding: 0; position: relative; }
.dt-list::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.dt-item { position: relative; padding: 0 0 1rem 2rem; }
.dt-item:last-child { padding-bottom: 0; }
.dt-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--released); color: #fff; }
.dt-item.current .dt-dot { background: var(--info); box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 20%, transparent); }
.dt-item.current .dt-title { color: var(--info); }
.dt-when { font-size: .74rem; color: var(--ink-faint); letter-spacing: .01em; }
.dt-title { font-weight: 700; font-size: .93rem; margin-top: .05rem; }
.dt-detail { font-size: .84rem; color: var(--ink-2); margin-top: .15rem; line-height: 1.4; }

/* ── Subscribe & save (product page) ────────────────────────────── */
.sub-cta summary::-webkit-details-marker { display: none; }
.sub-cta[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* ── Storefront theme presets + preview ─────────────────────────── */
.theme-preview { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.tp-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; font-weight: 700; font-size: .9rem;
  background: color-mix(in srgb, var(--pa) 10%, var(--card)); border-bottom: 3px solid var(--pa); }
.tp-logo { width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--pa) 18%, transparent);
  color: var(--pa); display: grid; place-items: center; font-family: var(--font-display); }
.tp-pill { margin-left: auto; font-size: .68rem; font-weight: 600; color: var(--pa);
  background: color-mix(in srgb, var(--pa) 12%, transparent); padding: .2rem .5rem; border-radius: 999px; }
.tp-body { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .9rem; background: var(--bg); }
.tp-card { background: var(--card); border-radius: 10px; padding: .5rem; border: 1px solid var(--border); }
.tp-img { height: 54px; border-radius: 7px; background: color-mix(in srgb, var(--pa) 14%, var(--muted)); }
.tp-line { height: 8px; width: 70%; border-radius: 999px; background: var(--muted); margin: .5rem 0; }
.tp-btn { font-size: .7rem; font-weight: 700; text-align: center; color: #fff; background: var(--pa); padding: .3rem; border-radius: 7px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.theme-card { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; cursor: pointer;
  padding: .7rem; border: 1.5px solid var(--border); border-radius: var(--r-ctrl); background: var(--card); color: var(--ink); transition: border-color .15s; }
.theme-card:hover { border-color: var(--pa); }
.theme-card.on { border-color: var(--pa); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pa) 18%, transparent); }
.theme-card .theme-swatch { width: 34px; height: 34px; border-radius: 9px; background: var(--pa); flex-shrink: 0; }
.theme-card svg { color: var(--pa); vertical-align: middle; }

/* ── Store poster (printable QR flyer) ──────────────────────────── */
.poster-sheet { max-width: 480px; text-align: center; padding: 2.4rem 2rem; }
.poster-top { display: flex; align-items: center; justify-content: space-between; }
.poster-brand { display: flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 800; color: #14161f; }
.poster-pill { font-size: .7rem; font-weight: 700; color: var(--pa); background: color-mix(in srgb, var(--pa) 12%, transparent); padding: .25rem .6rem; border-radius: 999px; }
.poster-logo { width: 76px; height: 76px; margin: 1.4rem auto .2rem; border-radius: 20px; overflow: hidden;
  background: color-mix(in srgb, var(--pa) 14%, transparent); color: var(--pa); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; }
.poster-logo img { width: 100%; height: 100%; object-fit: cover; }
.poster-name { font-size: 1.9rem; margin: .4rem 0 .1rem; color: #14161f; letter-spacing: -0.02em; }
.poster-tag { color: #5c617a; font-size: .95rem; margin: 0 0 .4rem; }
.poster-qr { width: 240px; height: 240px; margin: 1.2rem auto .6rem; padding: 12px; border: 3px solid var(--pa); border-radius: 20px; }
.poster-qr img { width: 100%; height: 100%; display: block; }
.poster-cta { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--pa); margin: .2rem 0; }
.poster-url { font-family: var(--font-mono, monospace); color: #14161f; font-weight: 600; margin: 0 0 1.2rem; }
.poster-benefits { display: flex; flex-direction: column; gap: .4rem; align-items: center; margin: 1rem 0; }
.poster-benefits span { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: #2a2e3e; font-weight: 600; }
.poster-benefits svg { color: var(--pa); }
.poster-foot { font-size: .78rem; color: #8a8fa0; margin: 1rem 0 0; line-height: 1.5; }
@media print { .poster-sheet { border: 0; box-shadow: none; max-width: 100%; } }

/* ── Seller dashboard cards: colour + icon identity ─────────────── */
.dash-sec-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
  font-weight: 700; margin: 1.8rem 0 .7rem; display: flex; align-items: center; gap: .6rem; }
.dash-sec-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.dash-card { display: flex; align-items: flex-start; gap: .8rem; position: relative;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.dash-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 45%, var(--border));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 18%, transparent); }
.dash-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); position: relative;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.dash-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--dispute); color: #fff; font-size: .64rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--card); line-height: 1; }

/* ── Category departments (Amazon-style shop-by-department) ──────── */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  padding: 1rem .6rem; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--border);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.cat-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, var(--border));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 16%, transparent); }
.cat-tile.on { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }
.cat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent); }
.cat-name { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
/* Category carousel — a row of circular colour medallions (all viewports) */
.cat-tiles.cat-rail { display: flex; overflow-x: auto; gap: .35rem; padding: .1rem .1rem .5rem; scrollbar-width: thin; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scroll-padding-left: .1rem; }
.cat-tiles.cat-rail::-webkit-scrollbar { height: 6px; }
.cat-tiles.cat-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.cat-tiles.cat-rail .cat-tile { flex: 0 0 auto; width: 92px; padding: .45rem .25rem; gap: .5rem; background: none; border: 0; box-shadow: none; scroll-snap-align: start; }
.cat-tiles.cat-rail .cat-tile:hover { transform: none; border: 0; box-shadow: none; }
.cat-tiles.cat-rail .cat-ic { width: 62px; height: 62px; border-radius: 50%; background: color-mix(in srgb, var(--c) 13%, var(--card)); color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 24%, transparent); transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease; }
.cat-tiles.cat-rail .cat-tile:hover .cat-ic { background: var(--c); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 32%, transparent); }
.cat-tiles.cat-rail .cat-tile.on .cat-ic { background: var(--c); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.cat-tiles.cat-rail .cat-ic.cat-ic-img { background: #fff; color: inherit; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.cat-tiles.cat-rail .cat-ic.cat-ic-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-tiles.cat-rail .cat-tile:hover .cat-ic.cat-ic-img { background: #fff; box-shadow: inset 0 0 0 2px var(--c), 0 8px 20px color-mix(in srgb, var(--c) 30%, transparent); }
.cat-tiles.cat-rail .cat-tile.on .cat-ic.cat-ic-img { background: #fff; box-shadow: inset 0 0 0 2px var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.cat-tiles.cat-rail .cat-name { font-size: .76rem; font-weight: 500; color: var(--ink-2); }
.cat-tiles.cat-rail .cat-tile:hover .cat-name, .cat-tiles.cat-rail .cat-tile.on .cat-name { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cat-tiles.cat-rail .cat-ic { transition: none; } }
/* Browse toolbar */
.browse-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.4rem 0 1rem; }
.browse-count { font-size: .9rem; color: var(--ink-2); }
.browse-sort { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); }
.browse-sort select { padding: .4rem .6rem; }

/* Breadcrumb */
.crumbs { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--ink-2); flex-wrap: nowrap; overflow: hidden; }
.crumbs a { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { color: var(--ink-faint); flex: 0 0 auto; }
.crumb-ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; }

/* Category eyebrow pill (product page) */
.cat-eyebrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--c); text-decoration: none; padding: .28rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.cat-eyebrow:hover { background: color-mix(in srgb, var(--c) 20%, transparent); }

/* Product detail gallery */
.pdp-top-band { background: var(--card); border-bottom: 1px solid var(--border); }
.pdp-gallery { position: sticky; top: 84px; align-self: start; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.pdp-thumb { width: 64px; height: 64px; padding: 0; overflow: hidden; border-radius: 10px; border: 2px solid var(--border); background: none; cursor: pointer; transition: border-color .15s ease; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.pdp-thumb.on { border-color: var(--brand); }
@media (max-width: 900px) { .pdp-gallery { position: static; } }

/* PDP main image zoom affordance */
.pdp-main-zoomable { position: relative; cursor: zoom-in; }
.pdp-zoom-btn { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: 0 1px 5px rgba(15,17,17,.18); transition: background .15s ease, transform .15s ease; }
.pdp-zoom-btn:hover { background: #fff; transform: translateY(-1px); }

/* Full-screen image lightbox */
.lb { position: fixed; inset: 0; z-index: 1200; display: none; grid-template-rows: 1fr auto; align-items: center; justify-items: center; gap: 12px; background: rgba(11,17,24,.93); backdrop-filter: blur(4px); padding: clamp(16px, 4vw, 40px); }
.lb.on { display: grid; }
.lb-stage { grid-row: 1; margin: 0; display: grid; place-items: center; max-width: 100%; max-height: 100%; position: relative; align-self: center; }
.lb-img { max-width: min(1000px, 92vw); max-height: 76vh; object-fit: contain; border-radius: 12px; background: #fff; cursor: zoom-in; transition: transform .22s cubic-bezier(.22,1,.36,1); will-change: transform; }
.lb-img.zoomed { transform: scale(2); cursor: zoom-out; }
.lb-count { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); color: rgba(255,255,255,.82); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .15s ease; z-index: 2; }
.lb-close:hover { background: rgba(255,255,255,.24); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .15s ease; z-index: 2; }
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }
.lb-thumbs { grid-row: 2; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; max-width: 92vw; }
.lb-thumb { width: 54px; height: 54px; padding: 0; overflow: hidden; border-radius: 8px; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.on { opacity: 1; border-color: #fff; }
.lb :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .lb-img, .pdp-zoom-btn, .lb-close, .lb-nav, .lb-thumb { transition: none; } }
@media (max-width: 560px) { .lb-nav { width: 40px; height: 40px; } .lb-thumb { width: 44px; height: 44px; } }

/* Header search + autocomplete */
.hdr-search { position: relative; flex: 1 1 auto; max-width: 820px; margin: 0 .6rem; display: flex; align-items: stretch; height: 40px; border-radius: 7px; }
.hdr-search:focus-within { box-shadow: 0 0 0 3px var(--cta); border-radius: 7px; }
.hdr-search input { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 7px 0 0 7px; padding: 0 1rem; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); outline: none; }
.hdr-search input::placeholder { color: #6a6f6f; }
.hdr-search-btn { flex: 0 0 45px; border: 0; border-radius: 0 7px 7px 0; background: var(--search-btn); color: #111; cursor: pointer; display: grid; place-items: center; }
.hdr-search-btn:hover { background: #f3a847; }
.hdr-search-ic { display: none; }
.hdr-suggest { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: 0 12px 34px rgba(20,24,40,.16); overflow: hidden; z-index: 40; max-height: min(70vh, 520px); overflow-y: auto; }
.sug-group { border-bottom: 1px solid var(--border); padding: .3rem; }
.sug-group:last-of-type { border-bottom: 0; }
.sug-item { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.sug-item:hover, .sug-item.on { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.sug-thumb, .sug-noimg { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; background: var(--muted); display: grid; place-items: center; }
.sug-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sug-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sug-title { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-sub { font-size: .75rem; color: var(--ink-2); }
.sug-price { font-size: .85rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.sug-catic { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; }
.sug-tag { margin-left: auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.sug-storeic { width: 34px; height: 34px; border-radius: 999px; flex: 0 0 auto; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); }
.sug-all { justify-content: center; font-size: .82rem; font-weight: 600; color: var(--brand); }
.hdr-search-m { display: flex; max-width: none; margin: .3rem 0 .6rem; }
.hdr-search-m input { background: color-mix(in srgb, var(--brand-fg) 92%, var(--brand)); }
@media (max-width: 720px) {
  .hdr-top { flex-wrap: wrap; height: auto; padding: 8px 10px; gap: .3rem; }
  .hdr-search { order: 3; flex-basis: 100%; max-width: none; margin: .2rem 0 0; }
  .hdr-act, .subnav-tag { display: none; }
  .hdr-actions { margin-left: auto; }
  .nav-toggle { display: block; }
}

/* Cart / checkout two-column layout with sticky summary */
.checkout-wrap { max-width: 1040px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.checkout-aside { position: sticky; top: 84px; }
.checkout-main { min-width: 0; }
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-aside { position: static; order: -1; }
}
.cart-line { display: flex; gap: .8rem; align-items: center; padding: .5rem 0; flex-wrap: wrap; }
.cart-line-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--muted); display: block; }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-main { flex: 1; min-width: 130px; }
.cart-line-controls { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.cart-line-total { width: 84px; text-align: right; font-weight: 700; }
@media (max-width: 480px) {
  .cart-line-controls { flex-basis: 100%; margin-left: 62px; justify-content: flex-start; gap: .75rem; }
  .cart-line-total { width: auto; margin-right: auto; }
}
.seller-num { width: 22px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.seller-num.sm { width: 18px; height: 18px; font-size: .68rem; }
.escrow-reassure { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); display: grid; gap: .5rem; }
.escrow-reassure p { margin: 0; font-size: .78rem; color: var(--ink-2); display: flex; align-items: flex-start; gap: .45rem; line-height: 1.4; }
.escrow-reassure svg { color: var(--released); flex-shrink: 0; margin-top: .1rem; }
.promo-row { display: flex; gap: .5rem; }
.promo-row .input { flex: 1; min-width: 0; }

/* Department landing hero */
/* Store landing hero banner - full-bleed, simple */
.shop-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #0f1f3d 0%, #0b5c6e 52%, #12868f 100%); border-bottom: 1px solid var(--border); }
.shop-hero::before { content: ""; position: absolute; inset: 0; background: url('/assets/img/hero-pattern.svg') repeat; background-size: 300px 300px; opacity: .07; pointer-events: none; }
.shop-hero-inner { position: relative; z-index: 1; padding: 2.4rem 20px 2.6rem; }
.shop-hero-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: .3rem .75rem; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.shop-hero-eyebrow svg { color: var(--hi); }
.shop-hero-h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.08; margin: .9rem 0 .5rem; max-width: 24ch; }
.shop-hero-h1 span { color: var(--hi); }
.shop-hero-lede { font-size: 1.02rem; line-height: 1.5; max-width: 46ch; color: #e2e8ec; margin: 0 0 1.3rem; }
.shop-hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.shop-hero-ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.42); color: #fff; }
.shop-hero-ghost:hover { background: rgba(255,255,255,.2); }
.dept-hero { display: flex; align-items: center; gap: 1.1rem; padding: 1.5rem 1.6rem; border-radius: var(--r-card); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, var(--card)), color-mix(in srgb, var(--c) 5%, var(--card))); border: 1px solid color-mix(in srgb, var(--c) 26%, var(--border)); }
.dept-hero-ic { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 40%, transparent); }
.dept-hero-eyebrow { margin: 0; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.dept-hero-title { margin: .15rem 0 .15rem; font-size: 1.7rem; line-height: 1.05; }
.dept-hero-sub { margin: 0; font-size: .88rem; color: var(--ink-2); }
.dept-hero-btn { background: color-mix(in srgb, var(--card) 70%, transparent); }
@media (max-width: 640px) { .dept-hero { flex-wrap: wrap; } .dept-hero-title { font-size: 1.4rem; } }

/* Merchandising rails (horizontal scrollers) */
.rail-sec { padding-top: 2.2rem; padding-bottom: .5rem; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.rail-head h2 { font-size: 1.4rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.rail-all { color: var(--brand); font-weight: 600; font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .25rem; }
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .6rem; margin: 0 -.2rem; scroll-padding-left: .2rem; scrollbar-width: thin; }
.rail > .pcard { flex: 0 0 232px; scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
@media (max-width: 640px) { .rail > .pcard { flex-basis: 62vw; } .rail-head h2 { font-size: 1.2rem; } }

/* Seller storefront trust-stats row + in-store category filter */
.store-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1.2rem; }
.store-stat { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--r-ctrl); background: var(--card); min-width: 0; }
.store-stat-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.store-stat-v { font-weight: 700; font-size: .98rem; font-family: var(--font-display); line-height: 1.1; }
.store-stat-l { font-size: .72rem; color: var(--ink-2); margin-top: .12rem; }
@media (max-width: 720px) { .store-stats { grid-template-columns: 1fr 1fr; } }
.store-filter { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.store-chip { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink); font-size: .85rem; font-weight: 500; text-decoration: none; }
.store-chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.store-chip.on { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--accent); font-weight: 600; }
.store-chip-n { font-size: .74rem; color: var(--ink-2); }
.store-chip.on .store-chip-n { color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }

/* Seller coupon strip (storefront) */
.coupon-strip { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.coupon-strip-lbl { font-size: .85rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: .3rem; }
.coupon-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 8px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); cursor: pointer; font: inherit; }
.coupon-chip:hover { background: color-mix(in srgb, var(--accent) 13%, var(--card)); }
.coupon-code { font-family: var(--font-display); font-weight: 800; letter-spacing: .03em; color: var(--accent); }
.coupon-meta { font-size: .78rem; color: var(--ink-2); }
.coupon-copy { font-size: .72rem; color: var(--accent); display: inline-flex; align-items: center; gap: .2rem; padding-left: .5rem; border-left: 1px solid var(--border); }

/* ── Amazon-style ratings & reviews ─────────────────────────────── */
.rv-summary { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; margin-top: 1rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); }
.rv-avg { text-align: center; min-width: 120px; }
.rv-avg-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink); }
.rv-avg .stars { display: inline-flex; margin-top: .3rem; }
.rv-hist { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.rv-hist-row { display: flex; align-items: center; gap: .6rem; text-decoration: none; padding: .15rem .3rem; border-radius: 6px; }
.rv-hist-row:hover { background: var(--muted); }
.rv-hist-row.on { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.rv-hist-label { flex: 0 0 46px; font-size: .8rem; color: var(--link); white-space: nowrap; }
.rv-hist-row:hover .rv-hist-label { color: var(--link-hover); text-decoration: underline; }
.rv-hist-track { flex: 1; height: 16px; background: var(--muted); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.rv-hist-fill { display: block; height: 100%; background: var(--cta2); }
.rv-hist-pct { flex: 0 0 38px; text-align: right; font-size: .78rem; color: var(--ink-2); }
.rv-photos { margin-top: 1.4rem; }
.rv-photos-head { font-size: .95rem; margin-bottom: .6rem; }
.rv-photos-head svg { vertical-align: -2px; color: var(--ink-2); }
.rv-photos-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.rv-photo { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s; }
.rv-photo:hover img { transform: scale(1.06); }
.rv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); }
.rv-sorts { display: flex; gap: .4rem; flex-wrap: wrap; }
.rv-chip { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink); font-size: .82rem; font-weight: 500; text-decoration: none; }
.rv-chip:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.rv-chip.on { background: var(--header-bg2); border-color: var(--header-bg2); color: #fff; }
.rv-clear { font-size: .8rem; color: var(--link); display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.rv-clear:hover { color: var(--link-hover); text-decoration: underline; }
.rv-helpful { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.rv-help-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border: 1px solid #8d9096; border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; box-shadow: 0 1px 2px rgba(15,17,17,.08); }
.rv-help-btn:hover { background: #f7fafa; }
.rv-help-btn.on { background: var(--released-bg); border-color: color-mix(in srgb, var(--released) 45%, var(--border)); color: var(--released); }
.rv-help-btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 560px) { .rv-summary { grid-template-columns: 1fr; gap: 1rem; } }
