/* ==========================================================================
   Multi-Seller Commerce design system — mobile-first layer on Bootstrap 5.3
   Tokens mirror docs/DESIGN_TOKENS.md so a native app can share them.
   No inline styles are needed (strict CSP: style-src 'self').
   ========================================================================== */
@font-face { font-family: "InterVariable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "InterVariable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #5b6577; --muted-2: #6b7280;
  --line: #e5e7eb; --line-2: #eef0f4; --bg: #f6f7fb; --surface: #ffffff; --soft: #f1f3f9;
  --tl: #4f46e5; --tl-dark: #4338ca; --tl-tint: #eef2ff; --tl-violet: #7c3aed;
  --brand: var(--tl); --brand-dark: var(--tl-dark); --brand-tint: var(--tl-tint); --on-brand: #fff;
  --success: #047857; --success-tint: #ecfdf5; --warning: #b45309; --warning-tint: #fffbeb;
  --danger: #b91c1c; --danger-tint: #fef2f2; --info: #1d4ed8; --info-tint: #eff6ff;
  --r-xl: 24px; --r-lg: 18px; --r: 14px; --r-sm: 10px; --r-xs: 8px;
  --sh-1: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.03);
  --sh-2: 0 10px 30px -14px rgba(15,23,42,.22);
  --sh-3: 0 24px 48px -24px rgba(15,23,42,.32);
  --header-h: 64px;
  --bs-body-font-family: "InterVariable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --bs-body-color: var(--ink); --bs-body-bg: var(--bg); --bs-border-color: var(--line);
  --bs-link-color-rgb: 67, 56, 202; --bs-link-hover-color-rgb: 55, 48, 163;
  --bs-border-radius: var(--r-sm); --bs-border-radius-lg: var(--r);
}
/* Allowed tenant theme tokens (TADM-01). Every primary meets 4.5:1 with white text. */
.theme-indigo  { --brand:#4f46e5; --brand-dark:#4338ca; --brand-tint:#eef2ff; }
.theme-blue    { --brand:#1d4ed8; --brand-dark:#1e40af; --brand-tint:#eff6ff; }
.theme-teal    { --brand:#0f766e; --brand-dark:#115e59; --brand-tint:#f0fdfa; }
.theme-emerald { --brand:#047857; --brand-dark:#065f46; --brand-tint:#ecfdf5; }
.theme-amber   { --brand:#b45309; --brand-dark:#92400e; --brand-tint:#fffbeb; }
.theme-orange  { --brand:#c2410c; --brand-dark:#9a3412; --brand-tint:#fff7ed; }
.theme-rose    { --brand:#be123c; --brand-dark:#9f1239; --brand-tint:#fff1f2; }
.theme-violet  { --brand:#6d28d9; --brand-dark:#5b21b6; --brand-tint:#f5f3ff; }
.theme-slate   { --brand:#334155; --brand-dark:#1e293b; --brand-tint:#f1f5f9; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-size: .95rem; line-height: 1.55; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,.h1,.h2,.h3,.h4,.h5 { font-weight: 720; letter-spacing: -.022em; color: var(--ink); }
h1,.h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h2,.h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
/* Bootstrap's .btn:focus-visible removes the outline and relies on per-variant shadow variables that the app's own
   variants (ghost, soft, ink ...) don't define, so give every interactive Bootstrap component the same focus ring. */
.btn:focus-visible, .nav-link:focus-visible, .page-link:focus-visible, .dropdown-item:focus-visible,
.list-group-item-action:focus-visible, .btn-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted) !important; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; } .clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; }
.text-balance { text-wrap: balance; }
.fw-650 { font-weight: 650; } .fw-750 { font-weight: 750; }
.small-2 { font-size: .8rem; }
.min-w-0 { min-width: 0; }
.container-xl { max-width: 1280px; }
.section { padding-block: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.divider { height: 1px; background: var(--line); margin-block: 1rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- buttons */
.btn { font-weight: 600; border-radius: 12px; padding: .55rem 1rem; letter-spacing: -.005em; }
.btn-sm { border-radius: 10px; padding: .35rem .7rem; font-size: .85rem; }
.btn-lg { border-radius: 14px; padding: .8rem 1.3rem; font-size: 1rem; }
.btn-brand, .btn-primary { --bs-btn-color: var(--on-brand); --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--on-brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: color-mix(in srgb, var(--brand) 40%, white);
  --bs-btn-hover-bg: var(--brand-tint); --bs-btn-hover-color: var(--brand-dark); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-tint); --bs-btn-active-color: var(--brand-dark); background: #fff; }
.btn-soft { --bs-btn-color: var(--brand-dark); --bs-btn-bg: var(--brand-tint); --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: color-mix(in srgb, var(--brand) 14%, white); --bs-btn-hover-color: var(--brand-dark); --bs-btn-active-bg: color-mix(in srgb, var(--brand) 18%, white); }
.btn-ink { --bs-btn-color: #fff; --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: #1e293b; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #1e293b; }
.btn-ghost { --bs-btn-color: var(--ink-2); --bs-btn-bg: transparent; --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--soft); --bs-btn-hover-border-color: var(--line); --bs-btn-hover-color: var(--ink); background: #fff; }
.btn-danger-soft { --bs-btn-color: var(--danger); --bs-btn-bg: var(--danger-tint); --bs-btn-border-color: transparent; --bs-btn-hover-bg: #fee2e2; --bs-btn-hover-color: #991b1b; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 12px; }

/* ---------------------------------------------------------------- forms */
.form-control, .form-select { border-radius: 12px; border-color: #d6dae3; padding: .6rem .8rem; font-size: .95rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.form-control-sm, .form-select-sm { border-radius: 10px; padding: .35rem .6rem; font-size: .85rem; }
.form-label { font-weight: 620; font-size: .85rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-text { color: var(--muted); font-size: .8rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); border-color: var(--brand); }
.field-error { color: var(--danger); font-size: .8rem; margin-top: .3rem; display: flex; gap: .3rem; align-items: center; }
.is-invalid { border-color: var(--danger) !important; }
.input-group-text { border-radius: 12px; background: var(--soft); border-color: #d6dae3; color: var(--muted); }
.req::after { content: " *"; color: var(--danger); }

/* ---------------------------------------------------------------- chips & badges */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: .82rem; font-weight: 560; white-space: nowrap; }
a.chip:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 40%, white); color: var(--brand-dark); }
.chip.active, .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.pill-neutral { background: #f1f5f9; color: #334155; } .pill-brand { background: var(--brand-tint); color: var(--brand-dark); }
.pill-success { background: var(--success-tint); color: var(--success); } .pill-warning { background: var(--warning-tint); color: var(--warning); }
.pill-danger { background: var(--danger-tint); color: var(--danger); } .pill-info { background: var(--info-tint); color: var(--info); }
.pill-dark { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-success { background: #10b981; } .dot-warning { background: #f59e0b; } .dot-danger { background: #ef4444; } .dot-muted { background: #cbd5e1; }
.sponsored { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; background: rgba(255,255,255,.92); padding: .15rem .45rem; border-radius: 6px; }
.status-placed { background: var(--info-tint); color: var(--info); } .status-confirmed { background: #eef2ff; color: #4338ca; }
.status-packed { background: #f5f3ff; color: #6d28d9; } .status-dispatched { background: var(--warning-tint); color: var(--warning); }
.status-delivered, .status-collected { background: var(--success-tint); color: var(--success); } .status-cancelled { background: #f1f5f9; color: #64748b; }
.state-published { background: var(--success-tint); color: var(--success); } .state-draft { background: #f1f5f9; color: #475569; }
.state-archived { background: #fef2f2; color: #991b1b; } .life-active { background: var(--success-tint); color: var(--success); }
.life-setup, .life-provisioning { background: var(--info-tint); color: var(--info); } .life-suspended { background: var(--warning-tint); color: var(--warning); }
.life-archived { background: #f1f5f9; color: #475569; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .bar { min-height: var(--header-h); display: flex; align-items: center; gap: .75rem; }
.brand-mark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 780; font-size: 1.12rem; letter-spacing: -.03em; }
.brand-mark:hover { text-decoration: none; color: var(--ink); }
.brand-mark img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: #fff; }
.brand-mark .seller-sub { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: -2px; }
.search-pill { position: relative; flex: 1; max-width: 560px; }
.search-pill .form-control { border-radius: 999px; padding-left: 2.5rem; background: var(--soft); border-color: transparent; height: 44px; }
.search-pill .form-control:focus { background: #fff; }
.search-pill .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ink-2); border: 0; background: transparent; }
.icon-btn:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.icon-btn .bi { font-size: 1.25rem; }
.count-badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.loc-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px dashed #cbd5e1; border-radius: 999px; padding: .35rem .75rem; font-size: .8rem; color: var(--ink-2); background: #fff; white-space: nowrap; }
.loc-chip:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--tl), var(--tl-violet)); flex: none; }
.cat-nav { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0 .7rem; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.preview-bar { background: repeating-linear-gradient(135deg, #1e1b4b, #1e1b4b 12px, #25215c 12px, #25215c 24px); color: #e0e7ff; font-size: .82rem; }
.preview-bar a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ---------------------------------------------------------------- hero (light illustrated banners) */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; isolation: isolate; box-shadow: var(--sh-1); }
.hero > img.hero-art { order: -1; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 72% center; display: block; }
.hero-body { padding: 1.25rem 1.25rem 1.5rem; color: var(--ink); max-width: 640px; }
.hero-body h1, .hero-body h2 { color: var(--ink); }
.hero-body p { color: var(--ink-2); font-size: 1.02rem; }
.hero-kicker { display: inline-flex; gap: .4rem; align-items: center; background: var(--brand-tint); color: var(--brand-dark);
  padding: .3rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
@media (min-width: 768px) {
  .hero { min-height: 400px; justify-content: center; }
  .hero > img.hero-art { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: -2; object-position: right center; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 36%, rgba(255,255,255,.35) 56%, rgba(255,255,255,0) 66%); }
  .hero-body { padding: 2.5rem 3rem; }
}
.hero-mini { min-height: 220px; }
.hero-plain { background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 55%, #0f172a) 100%); border: 0; }
.hero-plain::before { display: none; }
.hero-plain .hero-body, .hero-plain .hero-body h1, .hero-plain .hero-body p { color: #fff; }
.hero-plain .hero-kicker { background: rgba(255,255,255,.16); color: #fff; }

/* ---------------------------------------------------------------- sections & cards */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sec-head h2 { margin: 0; font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); }
.sec-head a { font-weight: 600; font-size: .88rem; white-space: nowrap; }
.card-x { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-x > .card-pad, .card-pad { padding: clamp(1rem, .85rem + .6vw, 1.5rem); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { font-size: 1rem; margin: 0; }
.card-foot { padding: .85rem 1.25rem; border-top: 1px solid var(--line-2); background: #fcfcfd; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.notice { border-radius: var(--r); padding: .85rem 1rem; display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; border: 1px solid transparent; }
.notice .bi { font-size: 1.1rem; margin-top: .05rem; }
.notice-info { background: var(--info-tint); color: #1e3a8a; border-color: #dbeafe; }
.notice-warn { background: var(--warning-tint); color: #78350f; border-color: #fde68a; }
.notice-danger { background: var(--danger-tint); color: #7f1d1d; border-color: #fecaca; }
.notice-success { background: var(--success-tint); color: #064e3b; border-color: #a7f3d0; }
.notice-brand { background: var(--brand-tint); color: var(--brand-dark); border-color: color-mix(in srgb, var(--brand) 20%, white); }
.sim-note { display: flex; gap: .6rem; align-items: center; background: #fdf4ff; border: 1px dashed #d8b4fe; color: #6b21a8; border-radius: var(--r); padding: .7rem .9rem; font-size: .85rem; font-weight: 560; }

/* ---------------------------------------------------------------- product grid & card */
.p-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } }
@media (min-width: 1100px) { .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .p-grid.p-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.p-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 44%); gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: thin; }
.p-row > * { scroll-snap-align: start; }
@media (min-width: 768px) { .p-row { grid-auto-columns: minmax(210px, 23%); } }
@media (min-width: 1100px) { .p-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.p-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; height: 100%; }
.p-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: #dde1ea; }
.p-media { position: relative; aspect-ratio: 1 / 1; background: #f3f4f6; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.p-card:hover .p-media img { transform: scale(1.035); }
.p-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-wrap: wrap; gap: .3rem; z-index: 2; }
.p-badges .pill { box-shadow: 0 2px 6px rgba(15,23,42,.08); }
.p-body { padding: .8rem .85rem .9rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.p-seller { font-size: .74rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.p-title { font-size: .93rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.p-title a { color: inherit; }
.p-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-title a:hover { text-decoration: none; }
.p-variant { font-size: .78rem; color: var(--muted); }
.p-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; margin-top: auto; padding-top: .35rem; }
.price { font-weight: 760; font-size: 1.05rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.price-lg { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.price-was { color: var(--muted-2); text-decoration: line-through; font-size: .82rem; font-variant-numeric: tabular-nums; }
.price-unit { color: var(--muted); font-size: .76rem; }
.avail { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--muted); font-weight: 560; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.p-add { position: relative; z-index: 3; }

/* company & category tiles */
.co-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; height: 100%; }
.co-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.co-cover { height: 110px; position: relative; overflow: hidden; background: var(--brand-tint); }
.co-cover img { width: 100%; height: 100%; object-fit: cover; }
.co-logo { width: 60px; height: 60px; border-radius: 16px; background: #fff; border: 3px solid #fff; box-shadow: var(--sh-2); object-fit: contain; margin-top: -30px; position: relative; z-index: 2; }
.co-logo-fallback { display: grid; place-items: center; font-weight: 800; color: var(--brand); font-size: 1.2rem; }
.co-body { padding: 0 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.co-name { font-weight: 720; font-size: 1.05rem; margin: .4rem 0 0; }
.co-name a { color: var(--ink); } .co-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; color: var(--ink); padding: .4rem; border-radius: var(--r); }
.cat-tile:hover { text-decoration: none; color: var(--brand-dark); }
.cat-tile .ct-img { width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--brand-tint); border: 1px solid var(--line-2); transition: transform .2s; }
.cat-tile:hover .ct-img { transform: translateY(-2px); box-shadow: var(--sh-2); }
.cat-tile .ct-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .ct-name { font-weight: 650; font-size: .85rem; line-height: 1.25; }
.cat-grid { display: grid; gap: .6rem; grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(8, minmax(0,1fr)); } }

/* placements / promo cards (light artwork, dark text) */
.promo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 210px; display: flex; align-items: flex-end;
  color: var(--ink); isolation: isolate; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 48%, rgba(255,255,255,.1) 78%); }
.promo-body { padding: 1.1rem 1.2rem; width: 100%; max-width: 78%; }
.promo-body h3 { color: var(--ink); font-size: 1.12rem; margin: .2rem 0 .25rem; }
.promo-body p { color: var(--ink-2); font-size: .86rem; margin: 0 0 .7rem; }
.promo .sponsored { position: absolute; top: .7rem; left: .7rem; border: 1px solid var(--line); }
.promo-seller { color: var(--muted); }
.promo-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.offer-card { border: 1px dashed color-mix(in srgb, var(--brand) 45%, white); background: var(--brand-tint); border-radius: var(--r); padding: .85rem 1rem; display: flex; gap: .8rem; align-items: center; }
.offer-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; background: #fff; border-radius: 8px; padding: .25rem .55rem; border: 1px solid color-mix(in srgb, var(--brand) 25%, white); color: var(--brand-dark); }

/* ---------------------------------------------------------------- listing filters */
.filter-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { border-bottom: 1px solid var(--line-2); padding-block: .9rem; }
.filter-group:first-child { padding-top: 0; }
.filter-title { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .55rem; }
.facet { display: flex; justify-content: space-between; align-items: center; padding: .3rem .5rem; border-radius: 8px; color: var(--ink-2); font-size: .88rem; }
.facet:hover { background: var(--soft); text-decoration: none; }
.facet.active { background: var(--brand-tint); color: var(--brand-dark); font-weight: 650; }
.facet .n { color: var(--muted-2); font-size: .78rem; }

/* ---------------------------------------------------------------- product detail */
.pdp-gallery .main { aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: #f3f4f6; border: 1px solid var(--line); }
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .5rem; margin-top: .65rem; overflow-x: auto; }
.thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: #f3f4f6; padding: 0; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--brand); }
@media (min-width: 992px) { .pdp-info { position: sticky; top: calc(var(--header-h) + 20px); } }
.seller-line { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.seller-line img { width: 22px; height: 22px; border-radius: 6px; }
.opt-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .45rem .8rem; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.opt-btn:hover { border-color: #c7ccd8; }
.opt-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.opt-btn.oos { color: var(--muted-2); text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 44px; border: 0; background: transparent; color: var(--ink-2); font-size: 1.1rem; }
.qty button:hover { background: var(--soft); }
.qty input { width: 64px; height: 44px; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus:not(:focus-visible) { outline: none; }
/* Keyboard focus stays visible inside the stepper (its overflow:hidden would clip an outside outline). */
.qty:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.qty input:focus-visible, .qty button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: -3px; border-radius: 10px; }
.qty-sm button { width: 34px; height: 36px; } .qty-sm input { width: 48px; height: 36px; }
.tiers { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.tiers td, .tiers th { padding: .5rem .7rem; border-bottom: 1px solid var(--line-2); }
.tiers th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tiers tr.active td { background: var(--brand-tint); color: var(--brand-dark); font-weight: 650; }
.tiers tr.active td:first-child { border-radius: 10px 0 0 10px; } .tiers tr.active td:last-child { border-radius: 0 10px 10px 0; }
.svc-box { border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; background: #fff; }
.spec-table { width: 100%; font-size: .9rem; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; padding: .55rem 0; vertical-align: top; }
.spec-table td { padding: .55rem 0; }
.spec-table tr + tr th, .spec-table tr + tr td { border-top: 1px solid var(--line-2); }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); display: flex; gap: .75rem; align-items: center; }
@media (min-width: 992px) { .buy-bar { display: none !important; } }

/* ---------------------------------------------------------------- cart / checkout */
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line-2); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb-lg { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #f3f4f6; border: 1px solid var(--line-2); }
.cart-line .thumb-lg img { width: 100%; height: 100%; object-fit: cover; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .92rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; font-weight: 760; font-size: 1.1rem; }
.sum-row .neg { color: var(--success); }
.steps { display: flex; gap: .5rem; align-items: center; font-size: .82rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.steps .step { display: inline-flex; align-items: center; gap: .4rem; }
.steps .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; color: var(--ink-2); font-size: .72rem; }
.steps .step.done .num { background: var(--success); color: #fff; } .steps .step.now { color: var(--ink); } .steps .step.now .num { background: var(--brand); color: #fff; }
.steps .sep { width: 18px; height: 1px; background: #cbd5e1; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 1.5px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; cursor: pointer; display: flex; gap: .7rem; align-items: flex-start; background: #fff; height: 100%; }
.seg label .bi { font-size: 1.3rem; color: var(--muted); }
.seg input:checked + label { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.seg input:checked + label .bi { color: var(--brand); }
.seg input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.seg input:disabled + label { opacity: .55; cursor: not-allowed; }
.pay-opt { display: block; }
.success-hero { text-align: center; padding: 1.5rem 1rem .5rem; }
.success-hero img { width: 200px; max-width: 60%; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li.muted-dot::after { border-color: #cbd5e1; }
.track { display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: .3rem; }
.track .t { height: 6px; border-radius: 999px; background: #e2e8f0; }
.track .t.on { background: var(--brand); }
.track-4 { --steps: 4; } .track-5 { --steps: 5; }

/* ---------------------------------------------------------------- footer & bottom nav */
.site-footer { margin-top: 3rem; background: #fff; border-top: 1px solid var(--line); padding: 2.2rem 0 6rem; font-size: .88rem; color: var(--muted); }
.site-footer h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 750; }
.site-footer a { color: var(--ink-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
@media (min-width: 768px) { .site-footer { padding-bottom: 2.2rem; } }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1035; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; color: var(--muted); font-size: .68rem; font-weight: 600; position: relative; }
.bottom-nav a .bi { font-size: 1.25rem; }
.bottom-nav a[aria-current="page"] { color: var(--brand); }
.bottom-nav a:hover { text-decoration: none; color: var(--ink); }
.bottom-nav .count-badge { top: 2px; right: calc(50% - 22px); }
@media (min-width: 768px) { .bottom-nav { display: none; } }
@media (max-width: 767.98px) { body.has-bottom-nav { padding-bottom: 64px; } }

/* ---------------------------------------------------------------- flash / toasts */
.flash-stack { position: fixed; top: calc(var(--header-h) + 10px); right: 16px; left: 16px; z-index: 1090; display: grid; gap: .5rem; pointer-events: none; }
@media (min-width: 768px) { .flash-stack { left: auto; width: 400px; } }
.flash { pointer-events: auto; display: flex; gap: .7rem; align-items: flex-start; background: #0f172a; color: #fff; border-radius: 14px; padding: .8rem .9rem; box-shadow: var(--sh-3); font-size: .9rem; animation: flash-in .25s ease; }
.flash .bi { font-size: 1.1rem; margin-top: .05rem; } .flash-success .bi { color: #34d399; } .flash-danger .bi { color: #f87171; }
.flash-warning .bi { color: #fbbf24; } .flash-info .bi { color: #93c5fd; }
.flash .x { margin-left: auto; background: none; border: 0; color: #94a3b8; padding: 0 .2rem; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- empty states */
.empty { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 4rem) 1rem; }
.empty img { width: 220px; max-width: 70%; margin-bottom: 1rem; }
.empty h2, .empty h3 { font-size: 1.2rem; }
.empty p { color: var(--muted); max-width: 440px; margin-inline: auto; }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1.05fr 1fr; } }
.auth-art { display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem; background: radial-gradient(1200px 600px at 10% 10%, #6366f1 0%, transparent 60%), radial-gradient(900px 600px at 90% 90%, #7c3aed 0%, transparent 55%), #1e1b4b; }
@media (min-width: 992px) { .auth-art { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-art h2, .auth-art .art-title { color: #fff; font-size: 2rem; font-weight: 700; line-height: 1.2; max-width: 420px; }
.auth-art p.art-title { color: #fff; }  /* the panel is not hidden from assistive technology: it holds the home link */
.auth-art p { color: rgba(255,255,255,.8); max-width: 420px; }
.auth-art .grid-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 420px; }
.auth-art .grid-art img { border-radius: 18px; aspect-ratio: 1; object-fit: cover; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 2rem 1.25rem; }
.auth-card .card-x { padding: clamp(1.25rem, 1rem + 1vw, 2rem); }

/* ---------------------------------------------------------------- admin shell */
.admin-body { background: #f4f5f9; }
.admin { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 992px) { .admin { grid-template-columns: 268px 1fr; } }
.admin-side { background: #fff; border-right: 1px solid var(--line); }
@media (min-width: 992px) { .admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.admin-side .offcanvas-body { display: flex; flex-direction: column; padding: 1rem; gap: .25rem; }
.side-tenant { display: flex; align-items: center; gap: .7rem; padding: .6rem; border-radius: 14px; background: var(--brand-tint); margin-bottom: .75rem; }
.side-tenant img, .side-tenant .tl-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: #fff; flex: none; }
.side-tenant .tl-logo { display: grid; place-items: center; font-weight: 800; color: var(--brand); }
.side-tenant .nm { font-weight: 720; font-size: .92rem; line-height: 1.2; }
.side-tenant .rl { font-size: .74rem; color: var(--brand-dark); font-weight: 600; }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: var(--muted-2); margin: .9rem .6rem .35rem; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--ink-2); font-weight: 560; font-size: .9rem; }
.side-link .bi { font-size: 1.08rem; color: var(--muted); width: 20px; text-align: center; }
.side-link:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.side-link.active { background: var(--brand-tint); color: var(--brand-dark); font-weight: 680; }
.side-link.active .bi { color: var(--brand); }
.side-link .badge-n { margin-left: auto; font-size: .7rem; background: var(--brand); color: #fff; border-radius: 999px; padding: .05rem .45rem; font-weight: 700; }
.admin-top { position: sticky; top: 0; z-index: 1020; background: rgba(244,245,249,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-top .bar { min-height: 60px; display: flex; align-items: center; gap: .75rem; }
.admin-main { padding: 1.25rem 0 3rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); margin: 0; }
.crumbs { font-size: .8rem; color: var(--muted); display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }
.stat-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1100px) { .stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; box-shadow: var(--sh-1); }
.stat .lbl { font-size: .76rem; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: .4rem; }
.stat .val { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: .2rem; }
.stat .sub { font-size: .76rem; color: var(--muted); }
.stat .ic { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.table-x { width: 100%; margin: 0; font-size: .88rem; border-collapse: separate; border-spacing: 0; }
.table-x th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .7rem 1rem; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; }
.table-x td { padding: .75rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table-x tbody tr:hover td { background: #fafbff; }
.table-x tbody tr:last-child td { border-bottom: 0; }
.table-x .thumb-sm { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #f3f4f6; border: 1px solid var(--line-2); }
.row-link { color: var(--ink); font-weight: 620; } .row-link:hover { color: var(--brand-dark); }
.tabs-x { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 1.1rem; }
.tabs-x::-webkit-scrollbar { display: none; }
.tabs-x a, .tabs-x button { border: 0; background: none; padding: .7rem .9rem; color: var(--muted); font-weight: 620; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs-x a:hover, .tabs-x button:hover { color: var(--ink); text-decoration: none; }
.tabs-x .active, .tabs-x [aria-selected="true"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
.vtabs { display: flex; flex-direction: row; gap: .25rem; overflow-x: auto; }
@media (min-width: 992px) { .vtabs { flex-direction: column; } }
.vtabs a { padding: .55rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 580; white-space: nowrap; display: flex; gap: .6rem; align-items: center; }
.vtabs a:hover { background: #fff; text-decoration: none; }
.vtabs a.active { background: #fff; color: var(--brand-dark); box-shadow: var(--sh-1); font-weight: 680; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.check-list .bi-check-circle-fill { color: var(--success); } .check-list .bi-circle { color: #cbd5e1; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 92px; }
.mini-bars .b { flex: 1; background: color-mix(in srgb, var(--brand) 28%, white); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; }
.mini-bars .b.today { background: var(--brand); }
.mini-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted-2); margin-top: .35rem; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
@media (min-width: 768px) { .media-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1200px) { .media-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.media-tile { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.media-tile .im { aspect-ratio: 1; background: #f3f4f6; }
.media-tile .im img { width: 100%; height: 100%; object-fit: cover; }
.media-tile .mt-body { padding: .55rem; }
.media-tile.primary { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .5rem; max-height: 260px; overflow-y: auto; padding: 2px; }
@media (min-width: 768px) { .pick-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.pick-grid input { position: absolute; opacity: 0; }
.pick-grid label { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #f3f4f6; }
.pick-grid label img { width: 100%; height: 100%; object-fit: cover; }
.pick-grid input:checked + label { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.pick-grid input:focus-visible + label { outline: 3px solid var(--brand); }
.swatch { width: 100%; aspect-ratio: 1.6; border-radius: 12px; display: block; }
.swatch-indigo { background: #4f46e5; } .swatch-blue { background: #1d4ed8; } .swatch-teal { background: #0f766e; } .swatch-emerald { background: #047857; }
.swatch-amber { background: #b45309; } .swatch-orange { background: #c2410c; } .swatch-rose { background: #be123c; } .swatch-violet { background: #6d28d9; } .swatch-slate { background: #334155; }
.theme-pick { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .6rem; }
@media (min-width: 768px) { .theme-pick { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick label { display: block; border: 2px solid var(--line); border-radius: 14px; padding: .4rem; cursor: pointer; text-align: center; font-size: .8rem; font-weight: 600; background: #fff; }
.theme-pick input:checked + label { border-color: var(--ink); }
.theme-pick input:focus-visible + label { outline: 3px solid var(--brand); }
.dyn-row { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr auto; align-items: start; margin-bottom: .5rem; }
.zone-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: #fcfcfd; margin-bottom: .75rem; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .4rem .9rem; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; background: var(--soft); border-radius: 6px; padding: .1rem .35rem; }
.audit-item { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-2); font-size: .86rem; align-items: start; }
.audit-item .ai-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; color: var(--ink-2); }
.platform-theme { --brand: #4f46e5; --brand-dark: #4338ca; --brand-tint: #eef2ff; }
.platform-side { background: #12112b; border-right: 0; }
.platform-side .side-link { color: #c7c9e8; } .platform-side .side-link .bi { color: #8b8fc7; }
.platform-side .side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.platform-side .side-link.active { background: rgba(129,140,248,.18); color: #fff; } .platform-side .side-link.active .bi { color: #a5b4fc; }
.platform-side .side-label { color: #9a9ed6; }
.platform-side .side-tenant { background: rgba(255,255,255,.06); color: #fff; } .platform-side .side-tenant .rl { color: #a5b4fc; }
.mail-list a { display: block; padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.mail-list a:hover { background: var(--soft); text-decoration: none; }
.mail-body { white-space: pre-wrap; font-size: .95rem; }

/* misc */
.ratio-banner { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 5/2; background: var(--soft); }
.ratio-banner img { width: 100%; height: 100%; object-fit: cover; }
.legal { max-width: 760px; } .legal p { margin-bottom: 1rem; }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .05rem .35rem; background: #fff; }
.dropdown-menu { border-radius: 14px; border-color: var(--line); box-shadow: var(--sh-3); padding: .4rem; font-size: .9rem; }
.dropdown-item { border-radius: 9px; padding: .45rem .7rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--brand-tint); color: var(--brand-dark); }
.offcanvas { border-radius: 0; }
.accordion-button:not(.collapsed) { background: var(--brand-tint); color: var(--brand-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.accordion-item { border-color: var(--line); }
.accordion-item:first-of-type, .accordion-item:first-of-type > .accordion-header .accordion-button { border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.accordion-item:last-of-type, .accordion-item:last-of-type > .accordion-header .accordion-button.collapsed { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
.page-link { border-radius: 10px !important; margin: 0 .15rem; color: var(--ink-2); border-color: var(--line); }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.hide-scroll { scrollbar-width: none; } .hide-scroll::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-header, .bottom-nav, .site-footer, .admin-side, .admin-top, .flash-stack { display: none !important; } }
/* utilities added for templates */
.thumb-sm { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #f3f4f6; border: 1px solid var(--line-2); flex: none; }
.place-center { place-items: center; }
.d-grid.place-center { display: grid; height: 100%; }
.pick-grid label.d-grid { display: grid !important; }
.flex-none { flex: none; }
.stat.ic, span.stat.ic { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--brand-tint); color: var(--brand); padding: 0; border: 0; box-shadow: none; font-size: 1.15rem; }
.mt-n1 { margin-top: -.25rem; } .mt-n2 { margin-top: -.5rem; }
.fw-700 { font-weight: 700; }
.progress { height: 8px; border-radius: 999px; background: #eef0f4; }
.progress-bar { background: var(--brand); border-radius: 999px; }
/* link colours from tokens (Bootstrap's default blue is under 4.5:1 on the page background) */
:root { --bs-link-color: #4338ca; --bs-link-hover-color: #3730a3; }
a { color: var(--bs-link-color); }
.btn-link { --bs-btn-color: var(--brand-dark); --bs-btn-hover-color: var(--brand); --bs-btn-active-color: var(--brand-dark); --bs-btn-disabled-color: var(--muted); }
/* links inside running text are underlined so they don't rely on colour alone (WCAG 1.4.1) */
p a:not(.btn), li > a:not([class]), dd a:not(.btn), .notice a:not(.btn), .form-text a, .legal a, .accordion-body a,
.small a:not(.btn):not(.facet), .card-pad > a:not([class]) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
/* Bootstrap makes .offcanvas-lg transparent on desktop; keep the intended sidebar surfaces */
@media (min-width: 992px) {
  .admin-side.offcanvas-lg { background-color: #fff !important; }
  .platform-side.offcanvas-lg { background-color: #12112b !important; }
}
.platform-side.offcanvas-lg { background-color: #12112b; }
.side-label { color: var(--muted); }
.platform-side .side-label { color: #9a9ed6; }
.kv dd { overflow-wrap: anywhere; min-width: 0; }

/* ---- Seller workspace (Addendum A): action queue, checklist rows, header details ---- */
.task-list { margin: 0; }
.task { display: flex; gap: .85rem; align-items: flex-start; padding: .8rem 1rem; border-bottom: 1px solid var(--line, #e5e7eb); }
.task:last-child { border-bottom: 0; }
.task-sev { flex: 0 0 auto; min-width: 5.5rem; padding-top: .1rem; }
.task-actions { flex: 0 0 auto; display: flex; gap: .4rem; align-items: flex-start; }
.top-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.store-url { max-width: 22rem; }
@media (max-width: 575.98px) {
  .task { flex-wrap: wrap; }
  .task-sev { min-width: 0; }
  .task-actions { width: 100%; }
}
.card-foot a:not(.btn), .small-2 a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.filter-bar > div { min-width: 0; max-width: 100%; }
.filter-bar .form-select, .filter-bar .form-control { max-width: 100%; }
@media (max-width: 575.98px) { .filter-bar > div { flex: 1 1 100%; } }
.table-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---- Returns, tracking and printable documents (27 Nov 2026) ---- */
.qty-input { width: 5.5rem; }
.return-row { padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
.return-row:first-of-type { padding-top: 0; }
.dispatch-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.dispatch-form { width: 100%; }
.print-page { background: var(--bg); }
.print-toolbar { position: sticky; top: 0; z-index: 10; display: flex; gap: .75rem; align-items: center;
  padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.print-doc { max-width: 820px; margin: 1.25rem auto; padding: 2rem 2.25rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.doc-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink); }
.doc-seller { font-size: 1.15rem; font-weight: 700; }
.doc-title { font-size: 1.35rem; font-weight: 750; letter-spacing: -.01em; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.doc-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.doc-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left;
  border-bottom: 1px solid var(--ink-2); padding: .45rem .5rem; }
.doc-table td { border-bottom: 1px solid var(--line); padding: .55rem .5rem; vertical-align: top; }
.doc-table .text-end { text-align: right; }
.check-col { width: 2rem; }
.check-box { display: inline-block; width: 1rem; height: 1rem; border: 1.5px solid var(--ink-2); border-radius: 3px; }
.doc-foot { border-top: 1px dashed var(--line); padding-top: .85rem; }
@media (max-width: 575.98px) { .doc-grid { grid-template-columns: 1fr; } .print-doc { padding: 1.25rem; margin: .75rem; } }
@media print {
  .print-toolbar { display: none !important; }
  .print-page { background: #fff; }
  .print-doc { box-shadow: none; border: 0; border-radius: 0; margin: 0 auto; padding: 0; max-width: none;
    break-after: page; page-break-after: always; }
  .print-doc:last-of-type { break-after: auto; page-break-after: auto; }
}

/* ---- Two-step sign-in (27 Nov 2026) ---- */
.setup-steps { padding-left: 1.2rem; display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.qr-box { display: inline-block; margin: .75rem 0 .5rem; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); line-height: 0; }
.qr-box svg { width: 200px; height: 200px; max-width: 100%; }
.setup-key { font-size: 1rem; letter-spacing: .04em; word-break: break-all; }
.recovery-codes { columns: 2; column-gap: 1.5rem; padding-left: 1.4rem; margin-bottom: 1rem; }
.recovery-codes li { margin-bottom: .35rem; font-size: 1.02rem; }
@media (max-width: 400px) { .recovery-codes { columns: 1; } }

/* ---- Seller sign-up (27 Nov 2026) ---- */
.sell-hero { background: linear-gradient(135deg, var(--brand-tint), #fff 70%); padding: 2.25rem; }
.sell-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; max-width: 34rem; }
.sell-ic { font-size: 1.4rem; color: var(--brand-dark); }
@media (min-width: 992px) { .sell-aside { top: calc(var(--header-h) + 1rem); } }
