/* ============================================================
   AfricaMart — Design Tokens & Global Styles
   Brand: Deep navy #0D1B2A + Gold #E8B84B + White
   Type:  General Sans (+ JetBrains Mono for labels), see DESIGN.md
   ============================================================ */

/* Self-hosted fonts (/fonts): same origin as the page, so no render-blocking
   third-party stylesheet or extra DNS+TLS handshake before text can show.
   General Sans: Indian Type Foundry, ITF Free Font License (Fontshare).
   JetBrains Mono: SIL Open Font License; one variable file covers 400-500. */
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Brand */
  --navy-900: #0A1620;
  --navy-800: #0D1B2A;   /* primary */
  --navy-700: #122638;
  --navy-600: #1B3349;
  --navy-500: #294a64;
  --navy-400: #46688a;
  --navy-300: #7d97b3;
  --navy-200: #b9c8d8;
  --navy-100: #dde6ef;
  --navy-50:  #f1f5f9;

  --gold-700: #b8901f;
  --gold-600: #d2a534;
  --gold-500: #E8B84B;   /* accent */
  --gold-400: #efc869;
  --gold-300: #f4d893;
  --gold-200: #f9e8c0;
  --gold-100: #fcf4dd;
  --gold-50:  #fefaf0;

  /* Neutrals (warm-cool balanced) */
  --white: #ffffff;
  --paper: #f7f9fb;     /* page bg */
  --paper-2: #eef2f6;
  --ink-900: #0D1B2A;
  --ink-700: #2c3a47;
  --ink-600: #44535f;
  --ink-500: #5a6b7a;
  --ink-400: #8595a3;
  --ink-300: #aab6c1;
  --border: #e3e9ef;
  --border-strong: #cdd6df;
  /* Brutally-minimal system tokens (see DESIGN.md) — hairline border replaces
     shadow-based elevation. Used by chrome (nav/footer) and home.page.jsx;
     not yet rolled out to browse/dashboard/storefront/admin. */
  --line: #E3E1DC;
  --r-min: 3px;

  /* Semantic */
  --green-600: #14855a;
  --green-50:  #e9f7f0;
  --amber-600: #b97d09;
  --amber-50:  #fdf4e3;
  --red-600:   #c2362f;
  --red-50:    #fcefee;
  --blue-600:  #1f63c4;
  --blue-50:   #eef4fd;

  /* Type — General Sans is the core typeface (see DESIGN.md). DM Sans is only
     loaded on themed storefronts (loadStorefrontFonts); elsewhere the stack
     falls through to the system font if General Sans hasn't arrived yet. */
  --font: "General Sans", "DM Sans", system-ui, -apple-system, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 46px;
  --fs-5xl: 60px;

  /* Spacing */
  --r-md: 12px;
  --r-xl: 22px;

  --sh-sm: 0 1px 2px rgba(13,27,42,.06), 0 1px 3px rgba(13,27,42,.04);
  --sh-md: 0 4px 16px rgba(13,27,42,.08);
  --sh-lg: 0 12px 40px rgba(13,27,42,.14);

  --maxw: 1240px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* utility text */
.eyebrow {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-700);
}
.muted { color: var(--ink-500); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: var(--fs-md); border-radius: var(--r-min);
  padding: 11px 18px; transition: background .14s ease, border-color .14s ease; white-space: nowrap;
  line-height: 1;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy-800); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy-800); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 15px 26px; font-size: var(--fs-lg); }
.btn-sm { padding: 8px 14px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-min);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-xs); font-weight: 600; padding: 4px 10px;
  border-radius: var(--r-min); line-height: 1;
}
.badge-verified { background: none; color: var(--gold-700); border: 1px solid var(--gold-500); }
/* Kept only for the storefront "Featured" chip until it's restyled (TODOS.md). */
.badge-premium { background: var(--navy-800); color: var(--gold-400); }
/* Supplier plan tag: dashboard and admin only, never public (DESIGN.md: no
   filled badges, gold only for the CTA and the Verified mark). */
.badge-plan {
  background: none; color: var(--ink-900); border: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  min-width: 3.5em; justify-content: center;
}
.badge-plan-brand { border-color: var(--ink-900); }
.badge-green { background: none; color: var(--green-600); border: 1px solid var(--green-600); }
.badge-amber { background: none; color: var(--amber-600); border: 1px solid var(--amber-600); }
.badge-blue  { background: none; color: var(--blue-600); border: 1px solid var(--blue-600); }
.badge-gray  { background: var(--paper-2); color: var(--ink-500); }

/* ---------- Inputs ---------- */
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--r-min); background: #fff; color: var(--ink-900);
  font-size: var(--fs-md); transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid var(--ink-900); outline-offset: 1px; border-color: var(--ink-900);
}
.field-label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; color: var(--ink-700); }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ---------- Tile / product placeholder imagery ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--navy-50);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,27,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,27,42,.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.ph-icon { position: relative; z-index: 1; color: var(--navy-300); }
.ph.has-image::after { display: none; }
/* Supplier photos and logos are shown whole: never cropped to fit a box. A photo that doesn't
   match the box's shape sits centred on a white well (product photos are mostly shot on white). */
.ph.has-image { background: var(--white); }
.ph-img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6px; box-sizing: border-box; }
.logo-img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; box-sizing: border-box; }
.pdp-main-img { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 400px; object-fit: contain; display: block; background: var(--white); }
.pdp-thumb-img { width: 100%; height: 76px; object-fit: contain; display: block; background: var(--white); }

/* AI search indicator — text-only, no chip/pill treatment (gold is reserved
   for CTAs and verified marks, not decorative badges — see DESIGN.md) */
.ai-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--ink-500); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
}

/* fade-in for route changes — transform only, so content is NEVER invisible
   even if the browser throttles/pauses the animation while backgrounded */
@keyframes fadeUp { from { transform: translateY(10px); } to { transform: none; } }
.route-anim { animation: fadeUp .35s cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .route-anim { animation: none; } }

/* Loading skeleton — placeholder shown for data-bound content during the
   brief window between instant mount and live data arriving, so the app
   never has to choose between blocking the whole page or flashing stale
   static-fallback numbers/cards. */
@keyframes skel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.skel { background: var(--paper-2); border-radius: 8px; animation: skel-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; opacity: .7; } }

/* star rating */
.stars { display: inline-flex; gap: 1px; color: var(--gold-500); }

/* scrollbar for filter rails etc */
.thin-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.thin-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

/* Lucide default sizing */
[data-lucide] { width: 20px; height: 20px; stroke-width: 1.6; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ============ HOME (docs/designs/home-landing-redesign.md) ============
   Hairlines, no shadows; gold only on the hero Search button. */
.home-announcement { background: var(--paper); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-900); }
.home-announcement .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.home-announcement a { font-weight: 600; color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }

.home-hero { background: var(--navy-800); color: #fff; }
.home-hero .home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-top: 64px; padding-bottom: 72px; }
.home-hero .home-hero-grid.no-card { grid-template-columns: minmax(0, 1fr); }
.home-h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.03em; color: #fff; max-width: 760px; }
.home-sub { font-size: 18px; color: var(--navy-200); margin-top: 18px; max-width: 620px; line-height: 1.55; }
.hero-search { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-min); padding: 4px; display: flex; max-width: 920px; }
.hero-search:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.hero-search-q { flex: 2; display: flex; align-items: center; gap: 10px; padding: 0 12px; min-width: 0; }
.hero-search .hero-input { border: none; outline: none; flex: 1; font-size: 15.5px; color: var(--ink-900); padding: 14px 0; min-width: 0; background: transparent; }
.hero-search .hero-sel { border: none; border-left: 1px solid var(--border); border-radius: 0; width: auto; font-weight: 600; color: var(--ink-700); }
.hero-search .hero-go { padding: 0 26px; }
.home-chips { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.home-chips-label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--navy-300); }
.home-chip { font-size: 13px; color: var(--navy-200); border: 1px solid rgba(255,255,255,.18); padding: 5px 12px; border-radius: var(--r-min); background: transparent; }
.home-chip:hover, .home-chip:focus-visible { border-color: rgba(255,255,255,.45); color: #fff; }

.home-req { background: #fff; color: var(--ink-900); border: 1px solid var(--line); border-radius: var(--r-min); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.home-req-title { font-size: 19px; letter-spacing: -.01em; }
.home-req .field-label { margin-bottom: 0; }
.home-req .field-label .select { margin-top: 6px; font-weight: 400; }
.home-req .input-error { border-color: var(--red-600); box-shadow: inset 3px 0 0 var(--red-600); }
.home-req-error { color: var(--red-600); font-size: 12.5px; margin-top: -4px; }
.home-req .btn { margin-top: 4px; }
.home-req-note { font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }

.home-stats-band { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.07); }
.home-stats-band .home-stats { display: grid; padding-top: 22px; padding-bottom: 22px; }
.home-stat { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.home-stat + .home-stat { border-left: 1px solid rgba(255,255,255,.1); }
.home-stat-num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 26px; font-weight: 500; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home-stat-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-300); }

.home-section-link { color: var(--navy-600); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.home-ind-grid { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 24px; }
.home-ind { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-ind-icon { color: var(--ink-700); }
.home-ind-name { font-size: 15.5px; font-weight: 600; margin-top: 8px; }
.home-ind-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-ind-count { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--ink-500); }
.home-ind-subs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.home-ind-subs a { color: var(--ink-700); }
.home-ind-subs a:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.home-ind-all { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--navy-600); display: inline-flex; align-items: center; gap: 4px; }

/* ---- Home motion (founder request 2026-11-27, DESIGN.md decision log) ----
   The hero eases in on load; each section's items ease up in turn the first time they scroll
   into view (useReveal in home.page.jsx adds .reveal, then .is-in). Hover: cards lift, arrows
   nudge, buttons press. All of it is off under prefers-reduced-motion and in print. The
   animations fill backwards only: a forwards fill would pin transform and block the hover lift. */
@keyframes homeRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media screen and (prefers-reduced-motion: no-preference) {
  .home-hero .home-h1, .home-hero .home-sub, .home-hero .hero-search, .home-hero .home-chips, .home-hero .home-req {
    animation: homeRise .8s cubic-bezier(.16,1,.3,1) backwards;
  }
  .home-hero .home-sub { animation-delay: .08s; }
  .home-hero .hero-search { animation-delay: .16s; }
  .home-hero .home-req { animation-delay: .22s; }
  .home-hero .home-chips { animation-delay: .28s; }
  .reveal:not(.is-in) > * { opacity: 0; }
  .reveal.is-in > * { animation: homeRise .7s cubic-bezier(.16,1,.3,1) backwards; }
  .reveal.is-in > :nth-child(2) { animation-delay: .07s; }
  .reveal.is-in > :nth-child(3) { animation-delay: .14s; }
  .reveal.is-in > :nth-child(4) { animation-delay: .21s; }
  .reveal.is-in > :nth-child(5) { animation-delay: .28s; }
  .reveal.is-in > :nth-child(6) { animation-delay: .35s; }
  .reveal.is-in > :nth-child(7) { animation-delay: .42s; }
  .reveal.is-in > :nth-child(n+8) { animation-delay: .49s; }

  .home .btn { transition: background .14s ease, border-color .14s ease, transform .14s ease; }
  .home .btn:active { transform: translateY(1px); }
  .home-section-link svg, .home-ind-all svg, .home-announcement a svg { transition: transform .25s cubic-bezier(.16,1,.3,1); }
  .home-section-link:hover svg, .home-ind-all:hover svg, .home-ind:hover .home-ind-all svg, .home-announcement a:hover svg { transform: translateX(4px); }
  .home-ind { transition: background-color .25s ease; }
  .home-chip { transition: border-color .2s ease, color .2s ease, transform .2s ease; }
  .home-chip:hover { transform: translateY(-1px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-cards > .card:hover { transform: translateY(-4px); }
  .home-ind:hover { background-color: var(--paper); }
}

.home-band-white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.cat-tabs { display: flex; margin-top: 24px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.cat-tab { flex-shrink: 0; padding: 10px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--ink-500); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.cat-tab.on { border-bottom-color: var(--navy-800); color: var(--ink-900); }

.home-global { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-global .home-global-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.home-global-t { font-size: 22px; margin-bottom: 6px; }

.home-seller { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: var(--r-min); padding: clamp(32px, 5vw, 56px); display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.home .btn:focus-visible, .home a:focus-visible, .home button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.home .btn-navy:focus-visible { outline-color: var(--navy-800); }

@media (max-width: 1080px) {
  .home-ind-grid[data-n="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .home-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .home-hero .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 44px; padding-bottom: 48px; }
  .home-stats-band .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 16px; }
  .home-stat:nth-child(odd) { border-left: none; }
  .home-ind-grid[data-n="3"], .home-ind-grid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .home-cards { grid-template-columns: repeat(2, 1fr); }
  .home-chip, .home .btn { min-height: 44px; }
  .hero-search .hero-go { flex-basis: 100%; padding: 14px 26px; }
}
@media (max-width: 460px) {
  .home-ind-grid, .home-cards { grid-template-columns: 1fr !important; }
  .home-ind-subs li:nth-child(n+3) { display: none; }
}

/* ============ SITE HEADER (IndiaMART-style bar, DESIGN.md look) ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,248,.96); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header-row { height: var(--nav-h); display: flex; align-items: center; gap: 16px; }
.site-logo { flex-shrink: 0; }
.nav-search { flex: 1; min-width: 0; max-width: 620px; display: flex; align-items: stretch; height: 44px; border: 1px solid var(--line); border-radius: var(--r-min); background: #fff; }
.nav-search:focus-within { border-color: var(--navy-800); }
.nav-search-loc { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; border-right: 1px solid var(--line); color: var(--ink-500); flex-shrink: 0; }
.nav-search-country { border: none; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--ink-700); padding: 0 4px; max-width: 140px; outline: none; cursor: pointer; }
.nav-search-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 0 12px; font-size: 14.5px; color: var(--ink-900); }
.nav-search-go { width: 48px; flex-shrink: 0; background: var(--navy-800); color: #fff; border-radius: 0 var(--r-min) var(--r-min) 0; display: flex; align-items: center; justify-content: center; }
.nav-search-go:hover { background: var(--navy-700); }
.nav-quote { flex-shrink: 0; height: 44px; }
.nav-icons { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-icon { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 9px; color: var(--ink-700); font-size: 12.5px; font-weight: 600; border-radius: var(--r-min); background: none; white-space: nowrap; }
.nav-icon:hover, .nav-icon.on { color: var(--navy-800); background: var(--navy-50); }
.nav-icon-label { display: inline-flex; align-items: center; gap: 2px; }
.nav-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10.5px; }
.nav-icons .cur-select { width: auto; padding: 6px 8px; font-size: 12.5px; font-weight: 600; margin-left: 6px; }
.nav-acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 232px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-min); overflow: hidden; z-index: 60; }
.nav-acct-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink-700); text-align: left; background: none; }
.nav-acct-item:hover { background: var(--navy-50); }
.nav-acct-item.danger { color: var(--danger-700, #b3403a); }
.mobile-menu { border-top: 1px solid var(--border); padding: 8px 16px 16px; background: #fff; }
.mobile-menu-link { display: block; padding: 12px 8px; font-weight: 600; border-bottom: 1px solid var(--border); cursor: pointer; }
@media (max-width: 1180px) {
  .nav-icon-label { display: none; }
  .nav-icon { padding: 8px; }
}
@media (max-width: 920px) {
  .site-header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .site-header-row .mobile-toggle { margin-left: auto; }
  .nav-search { order: 5; flex-basis: 100%; max-width: none; }
  .nav-quote, .nav-icons { display: none !important; }
  .site-header .mobile-menu { display: block; }
}
@media (max-width: 460px) {
  .nav-search-loc { display: none; }
}

/* default desktop visibility */
.mobile-toggle, .mobile-menu { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .card-grid-4, .results-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
/* Dashboard section strip: phones only (the sidebar hides at 920px), in the sidebar's colours. */
.dash-tabs { display: none; }
.dash-tab { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 44px; padding: 0 14px; border-radius: var(--r-min); border: 1px solid var(--border); background: #fff; color: var(--ink-600); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.dash-tab svg { color: var(--ink-400); }
.dash-tab:not(.is-active):hover { border-color: var(--border-strong); color: var(--navy-800); }
.dash-tab.is-active { background: var(--navy-50); border-color: var(--navy-50); color: var(--navy-800); }
.dash-tab.is-active svg { color: var(--gold-700); }
.dash-tab:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 2px; }
@media (max-width: 920px) {
  .mobile-toggle { display: inline-flex !important; }
  .browse-layout { grid-template-columns: 1fr !important; }
  .filter-rail { position: static !important; }
  .product-layout, .desc-layout, .auth-layout, .dash-layout { grid-template-columns: 1fr !important; }
  /* A grid column otherwise grows to its widest content (a long title, the photo strip) and
     pushed the product page past a phone's edge. */
  .product-layout > *, .desc-layout > * { min-width: 0; }
  .auth-aside { display: none !important; }
  .dash-side { display: none !important; }
  /* The scrollbar is hidden, so the right edge fades out: it shows more sections sit off-screen. */
  .dash-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding: 2px 32px 2px 2px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .store-header { flex-direction: column !important; }
  .store-cta { width: 100% !important; }
  .hero-search { flex-wrap: wrap; }
  .hero-search > div:first-child { flex-basis: 100% !important; }
  .hero-sel { flex: 1; }
  .product-layout > div:first-child, .product-layout [style*="sticky"] { position: static !important; }
  /* storefront */
  .store-ribbon { grid-template-columns: repeat(3, 1fr) !important; }
  .cap-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-grid, .reviews-grid, .contact-grid { grid-template-columns: 1fr !important; }
  .store-spotlight, .quickview { grid-template-columns: 1fr !important; }
  .hero-tags { display: none !important; }
}
@media (max-width: 720px) {
  .cat-grid, .card-grid-4, .card-grid-3, .results-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .exporter-grid, .join-steps { grid-template-columns: 1fr !important; }
  .stats-bar { grid-template-columns: repeat(2, 1fr) !important; gap: 18px; }
  .store-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .trust-grid { grid-template-columns: 1fr !important; }
  .chat-grid { grid-template-columns: 1fr !important; }
  .dash-content { padding: 20px 16px 48px !important; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .section { padding: 48px 0; }
  .wrap { padding: 0 16px; }
  .store-ribbon { grid-template-columns: repeat(2, 1fr) !important; }
  .cap-grid { grid-template-columns: 1fr 1fr !important; }
  .stuck-rating { display: none !important; }
}
@media (max-width: 460px) {
  .cat-grid, .card-grid-4, .card-grid-3, .results-grid, .form-row-2 { grid-template-columns: 1fr !important; }
  .hero-sel { flex-basis: 100% !important; border-left: none !important; }
}

/* ============ PREMIUM white-label storefront responsive ============ */
@media (max-width: 960px) {
  .prem-hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .prem-hero-art { display: none !important; }
  .prem-nav { display: none !important; }
  .prem-cap-grid { grid-template-columns: repeat(2, 1fr) !important; row-gap: 32px !important; }
  .prem-terms, .prem-proc, .prem-contact, .prem-about { grid-template-columns: 1fr !important; }
  .prem-prod-grid, .prem-svc-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .prem-cap-grid > div { border-left: none !important; padding-left: 0 !important; }
}
@media (max-width: 620px) {
  .prem-prod-grid, .prem-svc-grid, .prem-cap-grid { grid-template-columns: 1fr !important; }
  .prem-svc-grid { gap: 1px !important; }
}

/* ============ ULTRA storefront responsive (gallery/certs are new grids,
   everything else reuses the Premium classes above) ============ */
@media (max-width: 960px) {
  .ultra-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ultra-cert-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 620px) {
  .ultra-gallery-grid, .ultra-cert-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Supplier plans (shared/components/plans.jsx) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.plan-table-stack { display: none; }
@media (max-width: 720px) {
  .plan-table-wide { display: none; }
  .plan-table-stack { display: block; }
  .plan-block-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Free storefront (storefront v2; docs/designs/storefront-v2.md) ----------
   Hairlines, 3px corners, no shadows. Gold only on Send inquiry and the Verified mark. */
.fstore { padding-bottom: 64px; }
.fstore-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; padding: 32px 0 24px; border-bottom: 1px solid var(--line); }
.fstore-logo { width: 84px; height: 84px; flex-shrink: 0; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 26px; letter-spacing: -.02em; overflow: hidden; }
.fstore-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.fstore-logo-sm { width: 44px; height: 44px; font-size: 14px; }
.fstore-id { flex: 1; min-width: 240px; }
.fstore-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fstore-title h1 { font-size: 30px; letter-spacing: -.025em; line-height: 1.15; }
.fstore-verified { display: inline-flex; align-items: center; gap: 5px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.fstore-verified svg, .fstore-vicon { color: var(--gold-600); }
.fstore-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; font-size: 14px; color: var(--ink-500); }
.fstore-line > span { display: inline-flex; align-items: center; gap: 6px; }
.fstore-bio { margin-top: 10px; max-width: 64ch; font-size: 15px; line-height: 1.55; color: var(--ink-700); }
.fstore-cta { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.fstore-cta-row { display: flex; gap: 8px; }
.fstore-cta-row > * { flex: 1; }
.fstore-share { position: relative; }
.fstore-share > .btn { width: 100%; }
.fstore-share-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 180px; padding: 4px; display: flex; flex-direction: column; }
.fstore-share-menu > * { display: flex; align-items: center; gap: 10px; padding: 10px; font-size: 14px; text-align: left; border-radius: var(--r-min); color: var(--ink-900); }
.fstore-share-menu > *:hover, .fstore-share-menu > *:focus-visible { background: var(--paper-2); }
.fstore-nav { position: sticky; top: var(--nav-h); z-index: 30; background: var(--paper); display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.fstore-nav button { padding: 13px 14px; font-weight: 600; font-size: 14px; color: var(--ink-500); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fstore-nav button.on { color: var(--ink-900); border-bottom-color: var(--ink-900); }
.fstore-sec { padding-top: 44px; scroll-margin-top: 124px; }
.fstore-sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fstore-sec-hd h2 { font-size: 22px; letter-spacing: -.015em; }
.fstore-sec-hd .muted { font-size: 13.5px; }
.fstore-k { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
.fstore-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fstore-pcard { display: flex; flex-direction: column; overflow: hidden; }
.fstore-pcard-bd { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fstore-pcard-bd .btn { margin-top: auto; }
.fstore-pname { font-weight: 600; font-size: 14px; line-height: 1.3; }
.fstore-pname:hover { text-decoration: underline; }
.fstore-price { font-size: 13.5px; margin-top: 2px; }
.fstore-moq { font-size: 12px; margin-bottom: 10px; }
.fstore-more { margin-top: 16px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; align-items: center; }
.fstore-more-left { justify-content: flex-start; }
.fstore-facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-min); background: var(--white); }
.fstore-facts > div { padding: 14px 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; }
.fstore-facts > div:nth-child(-n+3) { border-top: 0; }
.fstore-facts > div:nth-child(3n+1) { border-left: 0; }
.fstore-facts dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
.fstore-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.fstore-about { margin-top: 16px; max-width: 72ch; font-size: 15px; line-height: 1.65; color: var(--ink-700); white-space: pre-line; }
.fstore-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fstore-chips li { font-size: 12.5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--white); }
.fstore-svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fstore-svc-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.fstore-svc-card h3 { font-size: 16px; letter-spacing: -.01em; }
.fstore-svc-card p { font-size: 14px; line-height: 1.55; }
.fstore-incl { display: grid; gap: 4px; font-size: 13.5px; }
.fstore-incl li::before { content: "— "; color: var(--ink-400); }
.fstore-svc-ft { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.fstore-svc-ft .btn { margin-left: auto; }
.fstore-steps { margin-top: 24px; }
.fstore-steps h3 { font-size: 16px; margin-bottom: 8px; }
.fstore-steps ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14.5px; max-width: 72ch; }
.fstore-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fstore-review { padding: 16px; }
.fstore-review-who { font-weight: 600; font-size: 14px; }
.fstore-review-meta { font-size: 12.5px; margin-top: 2px; }
.fstore-review p { font-size: 14px; margin-top: 8px; line-height: 1.55; }
.fstore-revform { padding: 18px; display: grid; gap: 10px; margin-bottom: 14px; max-width: 640px; }
.fstore-contact { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.fstore-biz { padding: 16px 18px; }
.fstore-biz .fstore-k { margin-bottom: 4px; }
.fstore-biz-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fstore-biz-row:first-of-type { border-top: 0; }
.fstore-biz-row > span:last-child { text-align: right; overflow-wrap: anywhere; }
.fstore-biz-row a { text-decoration: underline; }
.fstore-similar { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.fstore-similar .fstore-sec-hd h2 { font-size: 18px; }
.fstore-similar-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fstore-similar-card { padding: 14px; display: flex; gap: 12px; align-items: center; min-width: 0; }
.fstore-similar-card:hover { border-color: var(--ink-900); }
.fstore-similar-card > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fstore-similar-name { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.fstore-similar-meta { font-size: 12.5px; }
@media (max-width: 920px) {
  .fstore-pgrid { grid-template-columns: repeat(2, 1fr); }
  .fstore-contact { grid-template-columns: 1fr; }
  .fstore-facts { grid-template-columns: 1fr 1fr; }
  .fstore-facts > div { border-top: 1px solid var(--line); border-left: 0; }
  .fstore-facts > div:nth-child(2n) { border-left: 1px solid var(--line); }
  .fstore-facts > div:nth-child(-n+2) { border-top: 0; }
  .fstore-similar-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .fstore-head { padding-top: 24px; }
  .fstore-title h1 { font-size: 24px; }
  .fstore-cta { width: 100%; }
  .fstore-reviews, .fstore-svc { grid-template-columns: 1fr; }
}

/* ---------- Seller dashboard › Store page (storefront v2) ----------
   Locked tools: 3px gold left border + mono "Opens on Pro/Brand" (DESIGN.md: status by
   left border and mono label, never a filled background). */
.sted-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sted-head-actions .select { width: auto; min-height: 40px; }
.sted-planline { padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 18px; }
.sted-planline p { flex: 1; min-width: 220px; font-size: 14px; margin: 0; }
.sted-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.sted-main { min-width: 0; }
.sted-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sted-tabs button { padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sted-tabs button[aria-selected="true"] { color: var(--ink-900); border-bottom-color: var(--ink-900); }
.sted-tag { font-size: 10px; font-weight: 500; color: var(--ink-500); border: 1px solid var(--line); padding: 1px 5px; border-radius: var(--r-min); }
.sted-panel { padding-top: 18px; display: grid; gap: 16px; }
.sted-panel[hidden] { display: none; }
.sted-card { padding: 20px; display: grid; gap: 14px; min-width: 0; }
.sted-card-hd h3 { font-size: 16px; letter-spacing: -.01em; }
.sted-card-hd p { font-size: 13px; margin-top: 3px; max-width: 64ch; }
.sted-card-hd-row { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: flex-start; }
.sted-locked { border-left: 3px solid var(--gold-500); }
.sted-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; }
.sted-lock .mono { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.sted-dim { opacity: .45; pointer-events: none; display: grid; gap: 14px; }
.sted-field { display: flex; flex-direction: column; min-width: 0; }
.sted-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sted-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sted-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sted-row > .input { flex: 1; min-width: 0; width: auto; }
.sted-between { justify-content: space-between; }
.sted-grow { flex: 1; min-width: 180px; }
.sted-stack { display: flex; flex-direction: column; gap: 6px; }
.sted-strong { font-weight: 600; }
.sted-help { font-size: 12.5px; margin-top: 4px; }
.sted-error { color: var(--red-600); }
.sted-card .input-error { border-color: var(--red-600); box-shadow: inset 3px 0 0 var(--red-600); }
.sted-logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sted-logo { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--r-min); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; overflow: hidden; background: var(--white); flex-shrink: 0; }
.sted-logo img, .sted-banner img, .sted-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sted-logo img { padding: 3px; box-sizing: border-box; }
.sted-thumb { background: var(--white); }
.sted-about img { width: 100%; height: 100%; object-fit: cover; }
.sted-color { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--white); cursor: pointer; }
.sted-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-700); }
.sted-check input { width: 15px; height: 15px; accent-color: var(--navy-800); }
.sted-check-inline { align-self: end; min-height: 42px; }
.sted-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sted-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--white); }
.sted-chip button { display: inline-flex; color: var(--ink-500); }
.sted-chip-input { width: 180px; }
.sted-sub { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-min); display: grid; gap: 10px; }
.sted-step { display: flex; gap: 10px; align-items: flex-start; }
.sted-step-n { width: 28px; height: 28px; border: 1px solid var(--ink-900); border-radius: var(--r-min); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 4px; }
.sted-savebar { display: flex; justify-content: flex-end; gap: 10px; }
.sted-unsaved { align-self: center; }   /* "Unsaved changes" beside a save button: the pending (gold) status line */
.sted-count { font-size: 12.5px; }
.sted-prods { margin: 0; padding: 0; list-style: none; }
.sted-prods li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sted-prods li:first-child { border-top: 0; }
.sted-thumb { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--paper-2); overflow: hidden; }
.sted-pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sted-star { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--r-min); color: var(--ink-500); }
.sted-star.on { border-color: var(--ink-900); color: var(--ink-900); }
.sted-star:disabled { opacity: .45; cursor: not-allowed; }
.sted-arrows { display: inline-flex; gap: 4px; }
.sted-arrows .btn { padding: 6px 8px; }
.sted-banner { height: 110px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 13px; }
.sted-about { width: 120px; height: 80px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink-400); }
.sted-status { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; padding-left: 10px; border-left: 3px solid var(--gold-500); }
.sted-status-active { border-left-color: var(--green-600); }
.sted-status-error { border-left-color: var(--red-600); }
.sted-dns > div { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.sted-dns > div:first-child { border-top: 0; }
.sted-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 16px); }
.sted-side { padding: 16px; }
.sted-side-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.sted-side-hd a { text-decoration: underline; font-size: 12.5px; }
.sted-k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sted-meter { height: 6px; background: var(--line); border-radius: var(--r-min); overflow: hidden; }
.sted-meter b { display: block; height: 100%; background: var(--navy-800); }
.sted-side-sub { font-size: 12.5px; margin-top: 6px; }
.sted-checks { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.sted-checks li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); align-items: center; }
.sted-checks li > .mono:first-child { color: var(--ink-400); }
.sted-checks li.done > .mono:first-child { color: var(--green-600); }
.sted-tier { font-size: 10.5px; }
.sted-mini { border: 1px solid var(--line); border-radius: var(--r-min); overflow: hidden; background: var(--paper); }
.sted-mini-banner { width: 100%; height: 46px; object-fit: contain; display: block; background: var(--paper-2); }
.sted-mini-head { display: flex; align-items: center; gap: 8px; padding: 8px; }
.sted-mini-logo { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--white); overflow: hidden; flex-shrink: 0; }
.sted-mini-logo img { width: 100%; height: 100%; object-fit: contain; }
.sted-mini-name { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sted-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 8px 8px; }
.sted-mini-grid i { aspect-ratio: 1 / 1; background: var(--paper-2); }
.sted-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-top: 1px solid var(--line); }
.sted-stats > div { padding: 10px 6px 0; border-left: 1px solid var(--line); min-width: 0; }
.sted-stats > div:first-child { border-left: 0; padding-left: 0; }
.sted-stats .mono { font-size: 17px; }
.sted-stats .muted { font-size: 11.5px; }
@media (max-width: 1080px) {
  .sted-grid { grid-template-columns: 1fr; }
  .sted-aside { position: static; }
}
@media (max-width: 720px) {
  .sted-two, .sted-three { grid-template-columns: 1fr; }
  .sted-prods li { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .sted-prods li .sted-star { grid-column: 2; justify-self: start; }
  .sted-prods li .sted-arrows { grid-column: 3; grid-row: 1; }
}

/* ---------- Pro storefront (storefront v2, phase 2) ----------
   Builds on .fstore-*. Hairlines, 3px corners, no shadows, no gradient over the
   banner. Gold only on Send inquiry and the Verified mark. */
.pstore { padding-bottom: 64px; }
/* The banner keeps its own shape: full width, as tall as the image is (up to 360px). A taller
   image is shown whole, centred, rather than cut to a strip. */
/* min-height keeps the logo's overlap (.pstore-head's negative margin) in place while the banner loads. */
.pstore-banner { min-height: 96px; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.pstore-banner img { width: 100%; height: auto; max-height: 360px; object-fit: contain; display: block; margin: 0 auto; }
.pstore-head { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-top: -52px; padding-bottom: 20px; position: relative; }
/* No banner: the header sits on the page instead of overlapping one. Two classes and placed after
   .pstore-head (and again in the phone block) so it wins the cascade; the title needs no banner clearance. */
.pstore-head.pstore-head-nobanner { margin-top: 28px; align-items: center; }
.pstore-head.pstore-head-nobanner .pstore-id { padding-top: 0; }
.pstore-logo { width: 104px; height: 104px; font-size: 32px; }
.pstore-id { flex: 1; min-width: 240px; padding-top: 60px; }
.pstore-id .fstore-title h1 { font-size: 30px; }
.pstore-cta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pstore-phone { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--white); }
.pstore-phone .mono { font-size: 14px; }
.pstore-ribbon { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--white); }
.pstore-ribbon > div { padding: 14px 12px; border-left: 1px solid var(--line); min-width: 0; }
.pstore-ribbon > div:first-child { border-left: 0; }
.pstore-ribbon dt { font-size: 18px; font-weight: 500; }
.pstore-ribbon dd { margin: 2px 0 0; font-size: 12px; color: var(--ink-500); }
.pstore-tabs { display: flex; gap: 4px; margin-top: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scroll-margin-top: calc(var(--nav-h) + 8px); }
.pstore-tabs button { padding: 13px 18px; font-weight: 600; font-size: 14px; color: var(--ink-500); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pstore-tabs button.on { color: var(--ink-900); border-bottom-color: var(--ink-900); }
.pstore-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-top: 4px; align-items: start; }
.pstore-body-full { grid-template-columns: minmax(0, 1fr); }
.pstore-main { min-width: 0; }
.pstore-groups { margin-top: 44px; position: sticky; top: calc(var(--nav-h) + 16px); }
.pstore-groups-h { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pstore-groups > button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 14px; font-size: 14px; text-align: left; border-top: 1px solid var(--line); }
.pstore-groups > button:first-of-type { border-top: 0; }
.pstore-groups > button.on { font-weight: 600; box-shadow: inset 3px 0 0 var(--ink-900); }
.pstore-groups > button .mono { color: var(--ink-500); font-size: 12px; }
.pstore-search { padding: 12px 14px; border-top: 1px solid var(--line); }
.pstore-pgrid { grid-template-columns: repeat(3, 1fr); }
.pstore-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pstore-photo { position: relative; display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r-min); overflow: hidden; background: var(--paper-2); }
.pstore-photo img { width: 100%; height: 100%; object-fit: cover; }
.pstore-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 12px; background: var(--white); border-top: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstore-gallery .pstore-photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pstore-certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pstore-cert { display: flex; flex-direction: column; overflow: hidden; }
.pstore-cert:hover { border-color: var(--ink-900); }
.pstore-cert-doc { aspect-ratio: 3 / 4; background: var(--paper-2); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.pstore-cert-doc img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.pstore-cert-bd { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pstore-cert-name { font-weight: 600; font-size: 14px; }
.pstore-cert-by { font-size: 12px; }
.pstore-stated { margin-top: 12px; }
.pstore-brochure { margin-top: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pstore-brochure-ic { width: 44px; height: 56px; border: 1px solid var(--line); border-radius: var(--r-min); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.pstore-brochure-bd { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.pstore-rating { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 16px; }
.pstore-avg { font-size: 40px; line-height: 1; }
.pstore-avg-k { font-size: 13px; margin-top: 6px; }
.pstore-bars { display: grid; gap: 6px; font-size: 12px; max-width: 420px; }
.pstore-bars > div { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; }
.pstore-bars i { display: block; height: 6px; background: var(--line); border-radius: var(--r-min); overflow: hidden; }
.pstore-bars b { display: block; height: 100%; background: var(--navy-800); }
.pstore-why { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; max-width: 72ch; list-style: square; }
.pstore-contact-phone { margin-top: 14px; }
@media (max-width: 960px) {
  .pstore-body { grid-template-columns: 1fr; }
  .pstore-groups { position: static; margin-top: 24px; }
  .pstore-pgrid { grid-template-columns: repeat(2, 1fr); }
  .pstore-certs { grid-template-columns: repeat(2, 1fr); }
  .pstore-gallery { grid-template-columns: repeat(2, 1fr); }
  .pstore-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .pstore-ribbon > div:nth-child(3n+1) { border-left: 0; }
  .pstore-ribbon > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .pstore-banner { min-height: 72px; }
  .pstore-banner img { max-height: 200px; }
  .pstore-head { margin-top: -36px; }
  .pstore-head.pstore-head-nobanner { margin-top: 20px; }
  .pstore-logo { width: 76px; height: 76px; font-size: 24px; }
  .pstore-id { padding-top: 0; min-width: 100%; }
  .pstore-id .fstore-title h1 { font-size: 24px; }
  .pstore-cta { width: 100%; }
  .pstore-cta > .btn-gold { flex: 1; }
  .pstore-rating { grid-template-columns: 1fr; }
  .pstore-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pstore-ribbon > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .pstore-ribbon > div:nth-child(2n) { border-left: 1px solid var(--line) !important; }
  .pstore-ribbon > div:nth-child(-n+2) { border-top: 0; }
}

/* Store page › Photos & files lists (storefront v2, phase 2) */
.sted-media { margin: 0; padding: 0; list-style: none; }
.sted-media li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.sted-media li:first-child { border-top: 0; }
.sted-media-thumb { width: 64px; height: 48px; border: 1px solid var(--line); border-radius: var(--r-min); background: var(--paper-2); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.sted-media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sted-media-cert .sted-media-thumb { height: 64px; }
.sted-media-fields { display: grid; gap: 8px; min-width: 0; }
@media (max-width: 720px) {
  .sted-media li { grid-template-columns: 48px minmax(0, 1fr); }
  .sted-media li .sted-arrows { grid-column: 2; }
}

/* ---------- A product inside a supplier's store (store-product.jsx) ----------
   Free and Pro stores use the AfricaMart tokens; inside a Brand store the --sp-* values take
   the store's palette (below), so the page reads as part of the supplier's site. */
.sprod { --sp-line: var(--line); --sp-muted: var(--ink-500); --sp-surface: var(--white); --sp-ink: var(--ink-900); --sp-accent: var(--ink-900); padding: 20px 0 48px; color: var(--sp-ink); }
.sprod-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--sp-muted); padding: 6px 0; }
.sprod-back:hover, .sprod-back:focus-visible { color: var(--sp-ink); }
.sprod-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 14px; align-items: start; }
.sprod-main { border: 1px solid var(--sp-line); border-radius: var(--r-min); overflow: hidden; background: var(--white); }
.sprod-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.sprod-thumb { flex: 0 0 72px; min-width: 0; border: 1px solid var(--sp-line); border-radius: var(--r-min); overflow: hidden; padding: 0; background: var(--white); }
.sprod-thumb.on { border-color: var(--sp-accent); outline: 1px solid var(--sp-accent); outline-offset: -2px; }
.sprod-name { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
.sprod-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.sprod-muted { color: var(--sp-muted); font-size: 13px; }
.sprod-price { margin-top: 18px; }
.sprod-amount { font-size: 28px; font-weight: 700; }
.sprod-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 20px; margin: 18px 0 0; padding: 16px 0; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sprod-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--sp-muted); }
.sprod-facts dd { margin: 4px 0 0; font-weight: 600; }
.sprod-tiers { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.sprod-tiers caption { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--sp-muted); padding-bottom: 6px; }
.sprod-tiers td { padding: 8px 0; border-bottom: 1px solid var(--sp-line); }
.sprod-tiers td + td { text-align: right; font-weight: 600; }
.sprod-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.sprod-actions .btn { flex: 1 1 160px; }
.sprod-docs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sprod-docs a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sp-ink); text-decoration: underline; }
.sprod-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 44px; }
.sprod-details > section, .sprod-info, .sprod-gallery { min-width: 0; }
/* Long unbroken values (model numbers, URLs, "100m*15m*6m") wrap instead of widening the page. */
.sprod-desc, .sprod-specs td, .sprod-specs th, .sprod-name, .sprod-docs a { overflow-wrap: anywhere; }
.sprod-specs { table-layout: fixed; }
.sprod h2 { font-size: 21px; margin: 0 0 14px; }
.sprod-desc { line-height: 1.7; white-space: pre-line; color: var(--sp-ink); }
.sprod-specs { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 1px solid var(--sp-line); }
.sprod-specs th, .sprod-specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--sp-line); vertical-align: top; }
.sprod-specs th { font-weight: 400; color: var(--sp-muted); width: 45%; padding-right: 12px; }
.sprod-specs td { font-weight: 600; }
.sprod-inq { margin-top: 44px; scroll-margin-top: 90px; }
.sprod-more { margin-top: 44px; }
.sprod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sprod-loading { display: flex; align-items: center; gap: 8px; padding: 48px 0; color: var(--sp-muted); }
.sprod-missing { padding: 48px 0; max-width: 560px; }
.sprod-missing h1 { font-size: 26px; margin: 0 0 10px; }
.sprod-missing p { color: var(--sp-muted); margin: 0 0 18px; line-height: 1.6; }
.bstore .sprod { --sp-line: var(--b-line); --sp-muted: var(--b-muted); --sp-surface: var(--b-surface); --sp-ink: var(--b-ink); --sp-accent: var(--b-accent); }
.bstore .sprod h1, .bstore .sprod h2 { font-family: var(--b-head); }
/* Photo wells take the palette's surface in Brand stores, as product cards do. */
.bstore .sprod-main, .bstore .sprod-thumb, .bstore .sprod .pdp-main-img, .bstore .sprod .pdp-thumb-img { background: var(--b-surface); }
.bstore .sprod .btn-gold { background: var(--b-accent); border-color: var(--b-accent); color: var(--b-on-accent); }
.bstore .sprod .btn-ghost { color: var(--b-ink); border-color: var(--b-line); background: transparent; }
@media (max-width: 920px) {
  .sprod-top, .sprod-details { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sprod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Brand storefront (storefront v2, phase 3) ----------
   The supplier's theme sets the colors and type (--b-*). Hairlines, 3px
   corners and no shadows hold on every theme (DESIGN.md decisions log). */
.bstore { background: var(--b-bg); color: var(--b-ink); font-family: var(--b-body); padding-bottom: 72px; }
.bstore h1, .bstore h2, .bstore h3 { font-family: var(--b-head); font-weight: 700; color: var(--b-ink); }
.bstore-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.bstore-row { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.bstore-between { justify-content: space-between; }
.bstore-muted { color: var(--b-muted); }
.bstore-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 13px; }
.bstore-strip { border-bottom: 1px solid var(--b-line); font-size: 12.5px; color: var(--b-muted); }
.bstore-strip .bstore-wrap { padding-top: 7px; padding-bottom: 7px; }
.bstore-strip b { color: var(--b-ink); font-weight: 600; }
.bstore-verified { display: inline-flex; align-items: center; gap: 5px; color: var(--b-ink); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.bstore-verified svg { color: #E8B84B; }
.bstore-strip-home { margin-left: auto; text-decoration: underline; }
.bstore-nav { border-bottom: 1px solid var(--b-line); position: sticky; top: 0; z-index: 30; background: var(--b-bg); }
.bstore-nav .bstore-wrap { padding-top: 14px; padding-bottom: 14px; flex-wrap: nowrap; }
.bstore-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--b-head); font-weight: 700; font-size: 19px; min-width: 0; }
.bstore-logo { width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--b-line); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-family: var(--b-body); font-size: 13px; overflow: hidden; background: var(--b-surface); }
.bstore-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; background: var(--b-surface); }
/* Inside a Brand store, a photo's well takes the palette's surface, so dark palettes don't get bright white boxes. */
.bstore .ph.has-image { background: var(--b-surface); }
.bstore-menu { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.bstore-menu button { color: var(--b-ink); padding: 4px 0; border-bottom: 1px solid transparent; }
.bstore-menu button:hover, .bstore-menu button:focus-visible { border-bottom-color: var(--b-accent); }
.bstore-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 3px; font-weight: 600; font-size: 14px; border: 1px solid var(--b-line); color: var(--b-ink); background: transparent; white-space: nowrap; font-family: var(--b-body); }
.bstore-btn-acc { background: var(--b-accent); border-color: var(--b-accent); color: var(--b-on-accent); }
.bstore-link { color: var(--b-ink); text-decoration: underline; font-size: 13.5px; }
.bstore-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px; border-bottom: 1px solid var(--b-line); }
.bstore-hero-txt { padding: 56px 32px 40px 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.bstore-hero-txt h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.bstore-hero-txt p { font-size: 17px; color: var(--b-muted); max-width: 48ch; line-height: 1.55; }
.bstore-hero-media { min-height: 300px; background: var(--b-ph); overflow: hidden; }
.bstore-hero-media img, .bstore-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* With no hero photos, the hero shows the supplier's banner, which is wide: shown whole, not cut to a square. */
.bstore-hero-media img.bstore-hero-fit { object-fit: contain; }
/* Banner-only hero: banner full width on top at its own shape, text below in one column. */
.bstore-hero.bstore-hero-banner { grid-template-columns: 1fr; min-height: 0; }
/* The 4:1 box (the size the editor asks for) holds its space before the image loads, so the
   heading and quote button never jump; an off-ratio banner sits on the page, not on grey bands. */
.bstore-hero-banner .bstore-hero-media { min-height: 0; margin-top: 24px; aspect-ratio: 4 / 1; background: transparent; border-radius: 3px; }
.bstore-hero-banner .bstore-hero-txt { padding-top: 40px; padding-right: 0; }
/* No hero media: the first product photo, shown whole on the store surface; or no media at all. */
.bstore-hero-media.bstore-hero-product { background: var(--b-surface); padding: 24px; }
.bstore-hero.bstore-hero-text { grid-template-columns: 1fr; min-height: 0; }
.bstore-dots { display: flex; gap: 6px; }
.bstore-dots button { width: 24px; height: 4px; background: var(--b-line); border-radius: 0; }
.bstore-dots button.on { background: var(--b-ink); }
.bstore-eb { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--b-muted); margin-bottom: 8px; }
.bstore-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--b-line); }
.bstore-figures > div { padding: 22px 20px; border-left: 1px solid var(--b-line); min-width: 0; }
.bstore-figures > div:first-child { border-left: 0; padding-left: 0; }
.bstore-fig-v { font-family: var(--b-head); font-size: 28px; font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.bstore-fig-k { font-size: 12.5px; color: var(--b-muted); margin-top: 6px; }
.bstore-sec { padding: 56px 0; border-bottom: 1px solid var(--b-line); scroll-margin-top: 80px; }
.bstore-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.bstore-hd h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
.bstore-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.bstore-cat { display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--b-ink); padding: 0 0 6px; border-bottom: 2px solid transparent; }
.bstore-cat.on { border-bottom-color: var(--b-accent); }
.bstore-cat .ph { border-radius: 3px; overflow: hidden; }
.bstore-cat-name { font-family: var(--b-head); font-weight: 700; font-size: 18px; }
.bstore-cat-n { font-size: 12.5px; }
.bstore-products-hd { margin-bottom: 14px; }
.bstore-products-hd h3 { font-size: 18px; }
.bstore-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bstore-pcard { display: flex; flex-direction: column; border: 1px solid var(--b-line); border-radius: 3px; background: var(--b-surface); overflow: hidden; color: var(--b-ink); }
.bstore-pcard:hover { border-color: var(--b-ink); }
.bstore-pcard-bd { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.bstore-pname { font-weight: 600; font-size: 14px; line-height: 1.3; }
.bstore-card { border: 1px solid var(--b-line); border-radius: 3px; background: var(--b-surface); color: var(--b-ink); }
.bstore-svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bstore-svc-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bstore-svc-card h3 { font-size: 19px; }
.bstore-svc-card ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.bstore-svc-ft { display: flex; gap: 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--b-line); }
.bstore-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bstore-split-top { align-items: start; }
.bstore-story-media { aspect-ratio: 16 / 10; background: var(--b-ph); border-radius: 3px; overflow: hidden; }
.bstore-story-media img, .bstore-story-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bstore-text { font-size: 16px; line-height: 1.65; max-width: 56ch; white-space: pre-line; }
.bstore-why { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 6px; list-style: square; }
.bstore-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bstore-gallery a { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--b-ph); }
.bstore-gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.bstore-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bstore-gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 12px; background: var(--b-bg); border-top: 1px solid var(--b-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bstore-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 15px; }
.bstore-table th, .bstore-table td { padding: 12px 0; border-bottom: 1px solid var(--b-line); text-align: left; }
.bstore-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--b-muted); font-weight: 600; }
.bstore-table td.bstore-mono, .bstore-table th:last-child { text-align: right; }
.bstore-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--b-line); border-radius: 3px; }
.bstore-steps li { padding: 18px; border-left: 1px solid var(--b-line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bstore-steps li:first-child { border-left: 0; }
.bstore-steps p { font-size: 14px; }
.bstore-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.bstore-cert { padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.bstore-cert b { font-size: 15px; }
a.bstore-cert:hover { border-color: var(--b-ink); }
.bstore-tag { margin-top: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; padding-left: 8px; border-left: 2px solid var(--b-accent); }
.bstore-tag-self { border-left-color: var(--b-line); color: var(--b-muted); }
.bstore-shows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bstore-shows > div { border-top: 1px solid var(--b-ink); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.bstore-quote { margin: 0; font-family: var(--b-head); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; max-width: 36ch; }
.bstore-quote-who { margin-top: 12px; font-size: 14px; }
.bstore-reviews-row { margin-top: 18px; }
.bstore-faq details { border-top: 1px solid var(--b-line); padding: 14px 0; max-width: 760px; }
.bstore-faq details:last-child { border-bottom: 1px solid var(--b-line); }
.bstore-faq summary { cursor: pointer; font-weight: 600; }
.bstore-faq p { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.bstore-contact-list { margin: 18px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.bstore-contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.bstore-contact-list dt { color: var(--b-muted); }
.bstore-contact-list dd { margin: 0; overflow-wrap: anywhere; }
.bstore-contact-list a { text-decoration: underline; }
.bstore-phone { margin-top: 18px; }
/* The inquiry and review forms use the app's form styles, so they sit on a light card on every theme. */
.bstore-formcard { background: #ffffff; color: #0D1B2A; border: 1px solid var(--b-line); border-radius: 3px; padding: 4px; }
.bstore-formcard .card { border: 0; }
form.bstore-formcard { padding: 18px; display: grid; gap: 10px; max-width: 640px; margin-top: 16px; }
.bstore-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--b-bg); border-top: 1px solid var(--b-line); font-size: 13.5px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.bstore-sticky .bstore-wrap { padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
.bstore-sticky-btn { margin-left: auto; min-height: 38px; }
.bstore-foot { padding: 24px 0; font-size: 12.5px; color: var(--b-muted); }
.bstore-foot a { text-decoration: underline; }
@media (max-width: 960px) {
  .bstore-hero, .bstore-split { grid-template-columns: 1fr; }
  .bstore-hero-txt { padding: 36px 0 28px; }
  .bstore-hero-banner .bstore-hero-txt { padding-top: 28px; }
  .bstore-cats, .bstore-pgrid, .bstore-gallery { grid-template-columns: repeat(2, 1fr); }
  .bstore-svc, .bstore-shows { grid-template-columns: 1fr; }
  .bstore-menu { display: none; }
  .bstore-figures > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 620px) {
  .bstore-wrap { padding: 0 16px; }
  .bstore-nav .bstore-btn { display: none; }
  .bstore-figures { grid-template-columns: 1fr 1fr; }
  .bstore-figures > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--b-line); }
  .bstore-sticky .bstore-muted { display: none; }
  .bstore-steps li { border-left: 0; border-top: 1px solid var(--b-line); }
  .bstore-steps li:first-child { border-top: 0; }
}
.bstore-hero-txt p.bstore-delivered { font-size: 14.5px; color: var(--b-ink); }

/* Store page › Brand design (storefront v2, phase 3) */
.sted-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sted-pal button { border: 1px solid var(--line); border-radius: var(--r-min); padding: 10px; text-align: left; font-size: 13px; background: var(--white); display: flex; flex-direction: column; gap: 6px; }
.sted-pal button[aria-pressed="true"] { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-800); }
.sted-sw { display: flex; height: 20px; border: 1px solid var(--line); }
.sted-sw i { flex: 1; }
.sted-secs { margin: 0; padding: 0; list-style: none; }
.sted-secs > li { border-top: 1px solid var(--line); padding: 8px 0; }
.sted-secs > li:first-child { border-top: 0; }
.sted-sec-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.sted-sec-name { flex: 1; min-width: 160px; font-size: 14px; font-weight: 600; }
.sted-sec-edit { padding: 12px 0 6px; }
.sted-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-min); padding: 10px; }
.sted-brand-item { align-items: flex-start; }
/* App buttons and form headings inside a themed Brand store */
.bstore .bstore-phone .btn, .bstore .bstore-phone .pstore-phone { color: var(--b-ink); border-color: var(--b-line); background: transparent; }
.bstore .bstore-phone .pstore-phone .btn { color: var(--b-ink); }
.bstore-formcard h1, .bstore-formcard h2, .bstore-formcard h3, .bstore-formcard h4 { color: #0D1B2A; font-family: var(--font); }
.bstore-fig-v { font-size: clamp(20px, 2.2vw, 28px); }
.bstore-sub { margin-top: 28px; } .bstore-sub h3 { font-size: 19px; margin-bottom: 8px; }
