/* ============================================================================
   G+ Market — "Accra Editorial Luxe"
   Standalone app match: ink blue · champagne · focal pink · compact controls
   Display: Fraunces · UI: Hanken Grotesk
   ----------------------------------------------------------------------------
   NOTE: class/ID names are the contract shared with app.js. Do not rename
   structural hooks; restyle freely.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: dark;

  --paper:    #07131A;   /* ink blue — base */
  --paper-2:  #0B1820;   /* raised */
  --card:     #102530;   /* card surface */
  --ink:      #F6F3EC;   /* primary text (cream on ink) */
  --ink-2:    #CBD7DB;
  --muted:    #8FA3AA;
  --faint:    #5E747C;
  --line:     rgba(246, 243, 236, 0.12);
  --line-2:   rgba(246, 243, 236, 0.06);

  --pink:      #FF006B;  /* focal CTA — used sparingly */
  --pink-deep: #D60057;
  --pink-ink:  #FF6AA0;  /* pink as text on dark */
  --pink-soft: rgba(255, 0, 107, 0.15);

  --gold:        #D4B885; /* champagne — premium + positive */
  --gold-bright: #E7D2A6;
  --gold-soft:   rgba(212, 184, 133, 0.15);

  --emerald:      #D4B885; /* positive folds into champagne (brand has no green) */
  --emerald-soft: rgba(212, 184, 133, 0.15);

  /* Functional commerce signals — Amazon-parity, brand-safe (never CTA colours) */
  --deal:     #E5484D; /* discount % / deal */
  --star:     #F5C451; /* rating stars only */
  --stock-ok: #3BA776; /* in-stock / delivery status — functional only */

  --burgundy:        #8C1A2E; /* deep accent / bands / alerts */
  --burgundy-bright: #C8455C;
  --burgundy-soft:   rgba(140, 26, 46, 0.30);

  --espresso:   #050D12;  /* deeper ink for dark bands */
  --espresso-2: #0A151C;
  --cream:      #F6F3EC;  /* text on dark */
  --cream-mut:  rgba(246, 243, 236, 0.64);

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.42);
  --shadow:    0 26px 60px -30px rgba(0, 0, 0, 0.72);
  --shadow-lg: 0 50px 110px -46px rgba(0, 0, 0, 0.82);

  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 28px;
  --pill:      999px;

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  background:
    radial-gradient(circle at 18% -8%, rgba(212, 184, 133, 0.12), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(255, 0, 107, 0.08), transparent 28rem),
    linear-gradient(180deg, #061117 0%, var(--paper) 42%, #050D12 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Tactile paper grain — sits above the page wash, beneath all content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; min-width: 0; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

[hidden] { display: none !important; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

::selection { background: var(--pink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.04;
}
h1 { font-size: clamp(40px, 6.4vw, 74px); }
h2 { font-size: clamp(27px, 3.3vw, 41px); letter-spacing: -0.02em; }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.18; }
h4 { font-size: 16px; }

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* ── Top bar (sticky, 70px tall — toolbar offset depends on this) ─────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 19, 26, 0.88);
  border-bottom: 1px solid rgba(212, 184, 133, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.topbar > *, .brand, .account-slot, .store-toolbar > *, .store-controls { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold-bright);
}
.brand span { min-width: 0; overflow-wrap: anywhere; }
.brand img {
  width: 38px; height: 38px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.topbar > .brand {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 86px;
  line-height: 1;
}
.topbar > .brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}
.topbar > .brand img {
  width: 36px;
  height: 36px;
}

body.merchant-portal .topnav { display: none; }
body.merchant-portal .shell { width: min(1180px, calc(100% - 36px)); }

.topnav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid rgba(212, 184, 133, 0.18);
  border-radius: var(--pill);
  background: rgba(16, 37, 48, 0.86);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.topnav::-webkit-scrollbar { display: none; }

/* Edge fade on horizontally-scrolling pill/chip rows — a visual cue that
   there's more content off-screen, since these rows have no scrollbar.
   Scoped to the width where these rows actually become scroll-y (desktop
   layouts either wrap or fit, so the fade would otherwise dim a row that
   isn't overflowing). */
@media (max-width: 860px) {
  .topnav,
  .hero-quick-links,
  .category-browser,
  body.market-landing .hero-trust {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent 100%);
  }
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-tab:hover { color: var(--ink); }
.nav-tab.is-active {
  background: var(--gold);
  color: var(--paper);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}

.merchant-site-nav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.05);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.merchant-site-nav::-webkit-scrollbar { display: none; }
.merchant-site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 15px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.merchant-site-nav a:hover,
.merchant-site-nav a:focus-visible { color: var(--ink); background: rgba(246, 243, 236, 0.06); }
.merchant-site-nav a.is-active { background: var(--gold); color: var(--paper); }
.nav-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--burgundy-bright);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.merchant-site-nav a.is-active .nav-unread-badge { background: #fff; color: var(--burgundy-bright); }

.header-sell-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--pill);
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(255, 0, 107, 0.7);
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.header-sell-cta svg { flex: 0 0 auto; }
.header-sell-cta:hover,
.header-sell-cta:focus-visible {
  background: var(--pink-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(255, 0, 107, 0.82);
}
.header-sell-cta.is-active { background: var(--pink-deep); }
body.merchant-portal .header-sell-cta { display: none; }

.account-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 180px;
}
.account-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 11px 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cart-button:hover { border-color: var(--ink); transform: translateY(-1px); }
.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--pill);
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.saved-button {
  font-size: 17px;
  min-width: 58px;
}
.saved-button[aria-label*='0 item'] strong,
.saved-button strong:empty { opacity: 0.5; }

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  max-width: 280px;
  padding: 5px 6px 5px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.account-pill span {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 96px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.button, .ghost-button, .link-button, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 0;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), border-color 0.18s var(--ease), filter 0.18s var(--ease);
}
.button {
  border: 0;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(255, 0, 107, 0.55);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(255, 0, 107, 0.6); }
.button:active { transform: translateY(0); }

.ghost-button, .link-button {
  border: 1.5px solid rgba(212, 184, 133, 0.34);
  background: rgba(16, 37, 48, 0.66);
  color: var(--cream);
}
.ghost-button:hover, .link-button:hover {
  background: rgba(212, 184, 133, 0.16);
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-1px);
}

.danger-button {
  border: 1.5px solid var(--burgundy-bright);
  background: var(--burgundy-soft);
  color: var(--burgundy-bright);
}
.danger-button:hover { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }

.button:disabled, .ghost-button:disabled, .danger-button:disabled,
.link-button:disabled { cursor: not-allowed; opacity: 0.5; transform: none; box-shadow: none; }

.small-button { min-height: 40px; padding: 0 14px; font-size: 12.5px; }

/* ── Pills ────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.pill.good { background: var(--emerald-soft); color: var(--emerald); }
.pill.bad  { background: var(--burgundy-soft); color: var(--burgundy-bright); }
.pill.warn { background: var(--gold-soft); color: var(--gold); }

/* ── Marketing hero (NEW, customer site) ──────────────────────────────── */
.market-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 184, 133, 0.12);
  isolation: isolate;
  background: #07131A;
}
.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 19, 26, 0.97) 0%, rgba(7, 19, 26, 0.9) 34%, rgba(7, 19, 26, 0.52) 70%, rgba(7, 19, 26, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 19, 26, 0.2) 0%, rgba(6, 17, 23, 0.94) 100%),
    url("/assets/market-hero-bg.jpg?v=visual-refresh-20260603") center / cover no-repeat;
  transform: scale(1.01);
}
.market-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 18%, rgba(212, 184, 133, 0.16), transparent 30rem),
    radial-gradient(circle at 20% 18%, rgba(255, 0, 107, 0.09), transparent 24rem);
}
.market-hero[data-hero-view="stage"]::after {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 0, 107, 0.18), transparent 30rem),
    radial-gradient(circle at 24% 20%, rgba(212, 184, 133, 0.14), transparent 22rem);
}
.market-hero[data-hero-view="merchant"]::after {
  background:
    radial-gradient(circle at 74% 18%, rgba(212, 184, 133, 0.2), transparent 31rem),
    radial-gradient(circle at 20% 22%, rgba(140, 26, 46, 0.18), transparent 25rem);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) 0 clamp(40px, 6vw, 84px);
}
.hero-copy { display: grid; gap: 20px; }
.hero-logo {
  width: min(292px, 72vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 2px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.05);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: var(--pill);
  background: var(--gold);
}
.hero-title {
  font-size: clamp(42px, 6.1vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-bright);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.hero-sub {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}
.market-search-hero .hero-inner {
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
  padding: clamp(24px, 4vw, 46px) 0 clamp(24px, 4vw, 42px);
}
.market-search-hero::before {
  background:
    linear-gradient(180deg, rgba(7, 19, 26, 0.92), rgba(6, 17, 23, 0.96)),
    url("/assets/market-hero-bg.jpg?v=visual-refresh-20260603") center / cover no-repeat;
}
.market-search-hero::after {
  background:
    radial-gradient(circle at 18% 12%, rgba(212, 184, 133, 0.16), transparent 22rem),
    radial-gradient(circle at 86% 22%, rgba(255, 0, 107, 0.1), transparent 25rem);
}
body.market-landing .market-search-hero {
  border-bottom-color: rgba(212, 184, 133, 0.18);
  box-shadow: inset 0 -1px 0 rgba(246, 238, 221, 0.05);
}
body.market-landing .market-search-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 19, 26, 0.98) 0%, rgba(7, 19, 26, 0.92) 34%, rgba(7, 19, 26, 0.48) 68%, rgba(7, 19, 26, 0.24) 100%),
    linear-gradient(180deg, rgba(7, 19, 26, 0.28) 0%, rgba(6, 17, 23, 0.92) 100%),
    url("/assets/market-commerce-hero.webp?v=20260701-commerce-gemini") 62% center / cover no-repeat;
}
body.market-landing .market-search-hero::after {
  background:
    linear-gradient(105deg, rgba(212, 184, 133, 0.13) 0%, transparent 27%),
    linear-gradient(180deg, transparent 0%, rgba(5, 13, 18, 0.35) 100%);
  opacity: 1;
}
body.market-landing .market-search-hero .hero-inner {
  min-height: 232px;
  justify-content: center;
  padding: clamp(20px, 2.8vw, 34px) 0 clamp(16px, 2.2vw, 26px);
}
body.market-landing .search-hero-copy {
  max-width: 760px;
  gap: 8px;
}
body.market-landing .hero-title {
  font-size: clamp(25px, 3.3vw, 40px);
  max-width: 22ch;
  text-wrap: balance;
}
body.market-landing .hero-sub {
  max-width: 55ch;
}
body.market-landing .hero-search-form {
  width: min(100%, 720px);
  padding: 7px;
  border: 1px solid rgba(246, 238, 221, 0.16);
  border-radius: 26px;
  background: rgba(246, 238, 221, 0.08);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
body.market-landing .hero-search-row {
  gap: 8px;
}
body.market-landing .hero-search-row input {
  min-height: 52px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #07131A;
  box-shadow: none;
}
body.market-landing .hero-search-button {
  min-height: 52px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 0, 107, 0.18);
}
body.market-landing .hero-quick-links {
  max-width: min(100%, 740px);
}
body.market-landing .hero-trust {
  display: flex;
  max-width: min(100%, 760px);
}
body.market-landing .hero-quick-links a,
body.market-landing .hero-join-cta,
body.market-landing .hero-trust span {
  border-color: rgba(246, 238, 221, 0.16);
  background: rgba(6, 17, 23, 0.54);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body.market-landing .hero-join-cta.is-primary {
  border-color: rgba(212, 184, 133, 0.7);
  background: rgba(212, 184, 133, 0.92);
  color: #07131A;
}
body.market-landing .hero-trust span {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(246, 238, 221, 0.16);
  border-radius: var(--pill);
  color: var(--cream);
  font-weight: 800;
}
.market-search-hero[data-hero-view="groceries"]::after,
.market-search-hero[data-hero-category="food_grocery"]::after,
.market-search-hero[data-hero-category="food-grocery"]::after {
  background:
    radial-gradient(circle at 18% 14%, rgba(53, 184, 107, 0.2), transparent 24rem),
    radial-gradient(circle at 84% 24%, rgba(212, 184, 133, 0.12), transparent 25rem);
}
.market-search-hero[data-hero-view="meds"]::after,
.market-search-hero[data-hero-category="health_pharmacy"]::after,
.market-search-hero[data-hero-category="health-pharmacy"]::after {
  background:
    radial-gradient(circle at 18% 14%, rgba(15, 159, 110, 0.2), transparent 24rem),
    radial-gradient(circle at 84% 24%, rgba(255, 0, 107, 0.1), transparent 25rem);
}
.market-search-hero[data-hero-view="rent"]::after,
.market-search-hero[data-hero-category="property"]::after {
  background:
    radial-gradient(circle at 18% 14%, rgba(111, 193, 142, 0.18), transparent 24rem),
    radial-gradient(circle at 84% 24%, rgba(79, 157, 247, 0.12), transparent 25rem);
}
.market-search-hero[data-hero-category="phones_tablets"]::after,
.market-search-hero[data-hero-category="phones-tablets"]::after,
.market-search-hero[data-hero-category="electronics"]::after {
  background:
    radial-gradient(circle at 18% 14%, rgba(79, 157, 247, 0.18), transparent 24rem),
    radial-gradient(circle at 84% 24%, rgba(255, 138, 92, 0.14), transparent 25rem);
}
body:not(.market-landing) .market-search-hero[data-hero-category="phones_tablets"]::before,
body:not(.market-landing) .market-search-hero[data-hero-category="phones-tablets"]::before,
body:not(.market-landing) .market-search-hero[data-hero-category="electronics"]::before {
  background:
    linear-gradient(180deg, rgba(7, 19, 26, 0.92), rgba(6, 17, 23, 0.96)),
    url("/assets/market-commerce-hero.webp?v=20260701-commerce-gemini") 62% center / cover no-repeat;
}
.market-search-hero[data-hero-category="fashion"]::after,
.market-search-hero[data-hero-category="beauty_personal_care"]::after,
.market-search-hero[data-hero-category="beauty-personal-care"]::after {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 111, 165, 0.16), transparent 24rem),
    radial-gradient(circle at 84% 24%, rgba(212, 184, 133, 0.14), transparent 25rem);
}
.market-route-page .how-band,
.market-route-page .sell-band,
.market-route-page .brand-store-promo-band,
.market-route-page .value-band {
  display: none;
}
.market-view-food .commerce-assurance-band,
body[data-market-view="food"] .commerce-assurance-band {
  display: none;
}
.market-view-food .shell,
body[data-market-view="food"] .shell {
  padding-top: clamp(14px, 2vw, 24px);
}
.market-view-food .market-search-hero .hero-inner,
body[data-market-view="food"] .market-search-hero .hero-inner {
  padding: clamp(20px, 3vw, 34px) 0 clamp(18px, 2.6vw, 30px);
}
.market-view-food .market-search-hero .hero-search-form,
.market-view-food .market-search-hero .hero-quick-links,
.market-view-food .market-search-hero .hero-join,
.market-view-food .market-search-hero .hero-trust,
body[data-market-view="food"] .market-search-hero .hero-search-form,
body[data-market-view="food"] .market-search-hero .hero-quick-links,
body[data-market-view="food"] .market-search-hero .hero-join,
body[data-market-view="food"] .market-search-hero .hero-trust,
.market-view-food .store-toolbar,
body[data-market-view="food"] .store-toolbar,
.market-view-food #view-food > .section-head,
body[data-market-view="food"] #view-food > .section-head {
  display: none;
}
.market-view-food .market-search-hero .hero-title,
body[data-market-view="food"] .market-search-hero .hero-title {
  max-width: 18ch;
  font-size: clamp(32px, 4.4vw, 52px);
}
.market-view-food .market-search-hero .hero-sub,
body[data-market-view="food"] .market-search-hero .hero-sub {
  max-width: 52ch;
}
.search-hero-copy {
  justify-items: start;
  gap: 12px;
}
.market-search-hero .hero-logo,
.market-search-hero .hero-eyebrow {
  display: none;
}
.market-search-hero .hero-title {
  max-width: 14ch;
  font-size: clamp(34px, 4.8vw, 58px);
}
.market-search-hero .hero-sub {
  max-width: 64ch;
  font-size: clamp(15px, 1.35vw, 17px);
}
.hero-search-form {
  width: 100%;
  margin-top: 4px;
}
.hero-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(212, 184, 133, 0.28);
  border-radius: var(--radius);
  background: rgba(246, 243, 236, 0.1);
  box-shadow: 0 30px 80px -48px rgba(0, 0, 0, 0.78);
}
.hero-search-row input {
  min-height: 54px;
  border-color: rgba(246, 243, 236, 0.16);
  background: #fff;
  color: #07131A;
  font-size: 17px;
  font-weight: 650;
}
.hero-search-row input::placeholder { color: #66747a; }
.hero-search-button {
  min-width: 130px;
  min-height: 54px;
  padding: 0 26px;
}
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
}
.hero-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(246, 243, 236, 0.14);
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.07);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
}
.hero-quick-links a:hover {
  border-color: rgba(212, 184, 133, 0.42);
  background: rgba(212, 184, 133, 0.14);
}
.market-search-hero .hero-trust { display: none; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta-row .button, .hero-cta-row .ghost-button { min-height: 52px; padding: 0 28px; font-size: 15.5px; }
.hero-join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}
.hero-join-label { color: var(--ink-2); font-size: 13.5px; font-weight: 700; margin-right: 2px; }
.hero-join-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(246, 243, 236, 0.16);
  background: rgba(246, 243, 236, 0.06);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 800;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.18s var(--ease);
}
.hero-join-cta:hover { border-color: rgba(212, 184, 133, 0.42); background: rgba(212, 184, 133, 0.14); color: var(--cream); }
.hero-join-cta.is-primary {
  background: var(--gold);
  border-color: transparent;
  color: var(--paper);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5);
}
.hero-join-cta.is-primary:hover { background: var(--gold-bright); color: var(--paper); transform: translateY(-1px); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 4px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.hero-trust span::before {
  content: "✓";
  display: grid; place-items: center;
  width: 20px; height: 20px;
  flex: 0 0 20px;
  border-radius: var(--pill);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11px; font-weight: 900;
}

.commerce-assurance-band {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(212, 184, 133, 0.18);
  border-bottom: 1px solid rgba(212, 184, 133, 0.14);
  background:
    linear-gradient(90deg, rgba(212, 184, 133, 0.16), rgba(255, 0, 107, 0.08), rgba(11, 24, 32, 0.92)),
    rgba(11, 24, 32, 0.92);
}
.commerce-assurance-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(246, 243, 236, 0.08);
}
.commerce-assurance-inner span {
  display: grid;
  gap: 3px;
  min-height: 78px;
  align-content: center;
  padding: 14px 18px;
  background: rgba(7, 19, 26, 0.82);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
}
.commerce-assurance-inner strong {
  display: block;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero art — editorial collage panel (no product imagery required) */
.hero-art {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #061117;
  border: 1px solid rgba(212, 184, 133, 0.16);
  box-shadow: var(--shadow-lg);
}
.hero-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 19, 26, 0.12), rgba(7, 19, 26, 0.78)),
    linear-gradient(90deg, rgba(7, 19, 26, 0.38), transparent 46%);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(246, 243, 236, 0.04);
}
.hero-phone-card {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  width: min(34%, 176px);
  min-width: 132px;
  aspect-ratio: 0.78;
  overflow: hidden;
  border: 1px solid rgba(212, 184, 133, 0.2);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 24px 50px -28px #000;
}
.hero-phone-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-pills {
  position: absolute;
  z-index: 4;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 58%;
}
.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--pill);
  background: rgba(16, 37, 48, 0.82);
  border: 1px solid rgba(212, 184, 133, 0.18);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-pills span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--pill);
  background: var(--pink);
}

/* Category marquee ticker */
.cat-marquee {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  contain: paint;
  border-bottom: 1px solid rgba(212, 184, 133, 0.12);
  background: rgba(16, 37, 48, 0.72);
  color: var(--cream);
}
.cat-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding: 13px 0;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.cat-marquee:hover .cat-marquee-track { animation-play-state: paused; }
.cat-marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.cat-marquee-track span::after {
  content: "✦";
  margin: 0 28px;
  color: var(--gold-bright);
  font-size: 12px;
}
.cat-marquee-track small {
  margin-left: 8px;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-marquee-track { animation: none; }
}

/* ── Store toolbar (sticky search/sort, pinned below 70px topbar) ──────── */
.store-toolbar {
  position: sticky;
  top: 70px;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
  padding: 16px 0 12px;
  background: linear-gradient(180deg, rgba(7, 19, 26, 0.96) 72%, rgba(7, 19, 26, 0.84));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.store-toolbar.is-stuck { border-bottom-color: var(--line); }
.store-toolbar h1, .store-toolbar h2 { font-size: clamp(30px, 4vw, 48px); }

.store-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 10px;
  align-items: end;
}
.searchbox {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Inputs & forms ───────────────────────────────────────────────────── */
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  /* Explicit 16px floor so inputs never inherit a wrapper label's smaller
     font-size (e.g. .searchbox's 11px uppercase label leaking onto its
     nested <input>) — anything under 16px triggers iOS Safari's
     auto-zoom-on-focus, which is jarring on mobile. */
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
input, select { padding: 0 14px; }
textarea { min-height: 104px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(212, 184, 133, 0.22);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select option { color: #07131A; }

.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span, .file-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.field-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.field-checks input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.form { display: grid; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); }
.consent-row a { font-weight: 800; color: inherit; }
.inline-field-action { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.inline-field-action .muted { font-size: 12.5px; line-height: 1.4; }
.provider-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.panel-copy { margin: 0 0 16px; color: var(--muted); line-height: 1.58; }

/* ── Phone sign-in / OTP ──────────────────────────────────────────────── */
.phone-input-row {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card);
}
.phone-input-row:focus-within { border-color: var(--accent, #D4B885); box-shadow: 0 0 0 3px rgba(212, 184, 133, 0.22); }
.phone-prefix {
  display: flex; align-items: center; padding: 0 14px;
  font-weight: 700; color: var(--ink); background: rgba(0, 0, 0, 0.18);
  border-right: 1px solid var(--line);
}
.phone-input-row input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.phone-otp-row { display: flex; gap: 8px; margin: 4px 0 6px; }
.phone-otp-box {
  width: 100%; max-width: 52px; height: 56px; text-align: center;
  font-size: 22px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.phone-otp-box:focus { outline: none; border-color: var(--accent, #D4B885); box-shadow: 0 0 0 3px rgba(212, 184, 133, 0.22); }

.auth-message {
  margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.45;
  background: rgba(140, 100, 220, 0.16); border: 1px solid rgba(180, 150, 255, 0.4); color: #D8C9FF;
}
.auth-message.is-error { background: rgba(255, 107, 107, 0.14); border-color: rgba(255, 107, 107, 0.4); color: #FF9B9B; }
.action-dialog { max-width: 540px; margin: 0 auto; }
.action-dialog.is-danger { border-color: rgba(255, 107, 107, 0.35); }
.action-dialog-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.inline-report-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.inline-report-form textarea { min-height: 68px; }

/* ── Brand Store editor (Seller Centre) ───────────────────────────────── */
.brand-store-editor .seller-status { margin-bottom: 16px; }
.brand-store-live-row { display: grid; gap: 12px; margin-top: 6px; }
.store-url-chip {
  display: inline-block; align-self: start; padding: 8px 14px; border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.18); border: 1px solid var(--line);
  font-weight: 700; color: var(--ink); text-decoration: none; word-break: break-all;
}
.store-url-chip:hover { background: rgba(0, 0, 0, 0.28); }
.brand-store-section-title { margin: 18px 0 4px; font-size: 17px; color: var(--ink); }
.brand-store-toggle {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer;
}
.brand-store-toggle input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--accent, #8C1A2E); }
.brand-store-toggle span { display: grid; gap: 2px; color: var(--ink); }
.brand-store-toggle small { color: var(--muted); }
.brand-store-status {
  padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.45;
  background: rgba(140, 100, 220, 0.16); border: 1px solid rgba(180, 150, 255, 0.4); color: #D8C9FF;
}
.brand-store-status.is-error { background: rgba(255, 107, 107, 0.14); border-color: rgba(255, 107, 107, 0.4); color: #FF9B9B; }
.brand-store-status.is-good { background: rgba(46, 160, 100, 0.16); border-color: rgba(46, 160, 100, 0.4); color: #7EE0AC; }
.collection-row {
  display: grid; grid-template-columns: 1.4fr 0.9fr 1fr auto; gap: 8px;
  align-items: center; margin-bottom: 8px;
}
.collection-row input, .collection-row select { width: 100%; min-width: 0; }
.bs-hero-upload {
  border: 1px dashed var(--line); border-radius: 14px; padding: 14px; background: var(--card);
  display: grid; gap: 10px; color: var(--ink);
}
.bs-hero-preview {
  width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; background: rgba(0, 0, 0, 0.18);
}
.brand-store-upgrade .brand-store-perks {
  list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 8px;
}
.brand-store-upgrade .brand-store-perks li {
  position: relative; padding-left: 26px; color: var(--ink); font-weight: 600;
}
.brand-store-upgrade .brand-store-perks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: var(--pill);
  background: var(--emerald, #086A3B); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
input[type="color"] { height: 46px; padding: 4px; cursor: pointer; }
@media (max-width: 560px) {
  .collection-row { grid-template-columns: 1fr 1fr; }
  .collection-row [data-collection-category] { grid-column: 1 / -1; }
}

/* ── Status strip / notices ───────────────────────────────────────────── */
.status-strip { display: none; margin: 0 0 22px; }
.status-strip.is-visible { display: grid; gap: 10px; }
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--emerald);
  border-radius: var(--radius-sm);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 14px;
  font-weight: 600;
}
.notice.error { border-color: var(--burgundy-bright); background: var(--burgundy-soft); color: var(--burgundy-bright); }
.notice.warn  { border-color: var(--gold-bright); background: var(--gold-soft); color: var(--gold); }

/* ── Shop brief / featured / merchant hero band ───────────────────────── */
.shop-brief {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}
.shop-brief.is-visible { display: grid; }
.shop-brief.is-featured, .shop-brief.is-merchant-hero { grid-template-columns: 1fr; }

.brief-card {
  display: grid;
  gap: 7px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.brief-card.strong { border-color: rgba(212, 184, 133, 0.4); background: var(--emerald-soft); }
.brief-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brief-card small {
  max-width: 36ch;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.brief-card strong { color: var(--ink); font-family: var(--font-display); font-size: 22px; line-height: 1.1; }

.assisted-buy-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 26px;
  padding: 22px 0;
  border-block: 1px solid rgba(212, 184, 133, 0.2);
}
.assisted-buy-entry[hidden] { display: none; }

/* Master gate — while Assisted Buy is pre-launch (site_config/
   gplus_market_features.assistedBuyEnabled !== true) hide every assisted
   sourcing entry point. Toggled by applyMarketControl() adding
   `assisted-buy-off` to <body>. Onboarder Network stays visible for recruiting. */
body.assisted-buy-off #assisted-buy-band,
body.assisted-buy-off #assisted-buy-entry,
body.assisted-buy-off .assisted-buy-entry,
body.assisted-buy-off [data-assisted-start],
body.assisted-buy-off [data-assisted-item],
body.assisted-buy-off [data-action="assisted-request"],
body.assisted-buy-off .food-assisted-entry {
  display: none !important;
}
.assisted-buy-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.assisted-buy-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
}
.assisted-buy-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.assisted-buy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 440px;
}
.assisted-buy-actions .button,
.assisted-buy-actions .ghost-button {
  min-height: 42px;
}
.assisted-buy-actions small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
}

.preference-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(212, 184, 133, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(212, 184, 133, 0.13), rgba(255, 0, 107, 0.07)),
    var(--card);
  box-shadow: var(--shadow-sm);
}
.preference-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.preference-copy h3 { font-size: clamp(22px, 2.8vw, 32px); }
.preference-copy p {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-2);
  line-height: 1.55;
}
.preference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.preference-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(212, 184, 133, 0.2);
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.05);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}
.preference-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.preference-visual {
  width: 100%;
  min-height: 132px;
  border: 1px solid rgba(212, 184, 133, 0.2);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(7, 19, 26, 0.18), rgba(7, 19, 26, 0.38)),
    url("/assets/market-hero-bg.jpg?v=visual-refresh-20260603") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(246, 243, 236, 0.035);
}
.preference-visual.mode-fashion { background-image: linear-gradient(90deg, rgba(7, 19, 26, 0.1), rgba(7, 19, 26, 0.34)), url("/assets/market-vertical-fashion.jpg?v=visual-refresh-20260603"); }
.preference-visual.mode-tech { background-image: linear-gradient(90deg, rgba(7, 19, 26, 0.1), rgba(7, 19, 26, 0.34)), url("/assets/market-vertical-tech.jpg?v=visual-refresh-20260603"); }
.preference-visual.mode-motors { background-image: linear-gradient(90deg, rgba(7, 19, 26, 0.1), rgba(7, 19, 26, 0.34)), url("/assets/market-vertical-motors.jpg?v=visual-refresh-20260603"); }
.preference-visual.mode-home { background-image: linear-gradient(90deg, rgba(7, 19, 26, 0.1), rgba(7, 19, 26, 0.34)), url("/assets/market-vertical-home.jpg?v=visual-refresh-20260603"); }
.preference-visual.mode-work { background-image: linear-gradient(90deg, rgba(7, 19, 26, 0.1), rgba(7, 19, 26, 0.34)), url("/assets/market-vertical-work.jpg?v=visual-refresh-20260603"); }
.preference-visual.mode-lifestyle { background-image: linear-gradient(90deg, rgba(7, 19, 26, 0.1), rgba(7, 19, 26, 0.34)), url("/assets/market-vertical-lifestyle.jpg?v=visual-refresh-20260603"); }
.preference-panel.mode-fashion {
  background:
    linear-gradient(135deg, rgba(255, 0, 107, 0.13), rgba(212, 184, 133, 0.09)),
    var(--card);
}
.preference-panel.mode-tech {
  background:
    linear-gradient(135deg, rgba(81, 176, 210, 0.13), rgba(212, 184, 133, 0.1)),
    var(--card);
}
.preference-panel.mode-home {
  background:
    linear-gradient(135deg, rgba(212, 184, 133, 0.15), rgba(246, 243, 236, 0.05)),
    var(--card);
}
.preference-panel.mode-work,
.preference-panel.mode-motors {
  background:
    linear-gradient(135deg, rgba(140, 26, 46, 0.22), rgba(212, 184, 133, 0.11)),
    var(--card);
}

.experience-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(246, 243, 236, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 14%, rgba(212, 184, 133, 0.16), transparent 20rem),
    rgba(246, 243, 236, 0.035);
  box-shadow: var(--shadow-sm);
}
.experience-panel.mode-fashion {
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 0, 107, 0.16), transparent 20rem),
    rgba(246, 243, 236, 0.035);
}
.experience-panel.mode-tech {
  background:
    radial-gradient(circle at 92% 14%, rgba(81, 176, 210, 0.17), transparent 20rem),
    rgba(246, 243, 236, 0.035);
}
.experience-panel.mode-home,
.experience-panel.mode-lifestyle {
  background:
    radial-gradient(circle at 92% 14%, rgba(212, 184, 133, 0.18), transparent 20rem),
    rgba(246, 243, 236, 0.035);
}
.experience-panel.mode-work,
.experience-panel.mode-motors {
  background:
    radial-gradient(circle at 92% 14%, rgba(140, 26, 46, 0.2), transparent 20rem),
    rgba(246, 243, 236, 0.035);
}
.experience-head {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.experience-head h3 { font-size: clamp(21px, 2.4vw, 30px); }
.experience-head p {
  max-width: 74ch;
  margin: 0;
  color: var(--ink-2);
  line-height: 1.55;
}
.experience-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.experience-feature-grid span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(212, 184, 133, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(5, 13, 18, 0.26);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}
.experience-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.experience-check-grid span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(246, 243, 236, 0.1);
  border-radius: var(--pill);
  background: rgba(5, 13, 18, 0.22);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.experience-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.experience-chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(212, 184, 133, 0.2);
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.04);
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
}
.experience-chip:hover,
.experience-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}

/* Merchant route hero (dark premium) */
.merchant-route-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(212, 184, 133, 0.16), transparent 24rem),
    linear-gradient(150deg, #102530, var(--espresso) 62%);
  border: 1px solid rgba(212, 184, 133, 0.14);
  box-shadow: var(--shadow-lg);
}
.merchant-route-copy { display: grid; align-content: center; gap: 18px; padding: clamp(26px, 4vw, 48px); }
.merchant-route-copy h2 { color: var(--cream); font-size: clamp(32px, 4.4vw, 58px); line-height: 0.98; max-width: 14ch; }
.merchant-route-copy p { margin: 0; max-width: 54ch; color: var(--cream-mut); font-size: 16px; line-height: 1.6; }
.merchant-hero-pills, .merchant-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.merchant-route-hero .ghost-button, .merchant-route-hero .link-button {
  border-color: rgba(212, 184, 133, 0.45); color: var(--cream);
}
.merchant-route-hero .ghost-button:hover, .merchant-route-hero .link-button:hover {
  background: rgba(212, 184, 133, 0.16); color: var(--cream); border-color: var(--gold);
}
.merchant-hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.merchant-hero-metrics span {
  display: grid; gap: 4px; min-height: 76px; padding: 13px;
  border: 1px solid rgba(246, 238, 221, 0.14); border-radius: var(--radius-sm);
  background: rgba(246, 238, 221, 0.06);
}
.merchant-hero-metrics strong { color: var(--cream); font-family: var(--font-display); font-size: 17px; }
.merchant-hero-metrics small { color: var(--cream-mut); font-size: 12px; font-weight: 600; line-height: 1.3; }
.merchant-route-visual { position: relative; min-height: 100%; background: rgba(0, 0, 0, 0.2); }
.merchant-route-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 13, 18, 0.9), rgba(5, 13, 18, 0.12) 42%, transparent);
}
.merchant-route-visual img { width: 100%; height: 100%; min-height: 350px; object-fit: cover; }

/* Featured showcase */
.featured-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 16px;
  min-height: 360px;
}
.featured-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.featured-card-main {
  display: grid; width: 100%; height: 100%; min-height: inherit;
  padding: 0; border: 0; background: transparent; color: inherit; text-align: left;
}
.featured-card-lead { min-height: 360px; }
.featured-card-lead .featured-image { position: absolute; inset: 0; }
.featured-card-lead .featured-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 18, 0.82), rgba(5, 13, 18, 0.14) 56%, transparent),
    linear-gradient(0deg, rgba(5, 13, 18, 0.85), transparent 56%);
}
.featured-image { display: block; overflow: hidden; background: var(--gold-soft); }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.featured-card:hover .featured-image img, .featured-card:focus-within .featured-image img { transform: scale(1.05); }
.featured-overlay {
  position: relative; z-index: 1; display: grid; align-content: end; gap: 9px;
  max-width: 440px; min-height: 360px; padding: 28px 150px 28px 28px;
}
.featured-kicker { color: var(--gold-bright); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.featured-overlay strong { color: var(--cream); font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); line-height: 1; }
.featured-overlay small, .featured-copy small { color: rgba(246, 238, 221, 0.82); font-weight: 700; }
.featured-add { position: absolute; z-index: 2; right: 18px; bottom: 18px; }
.featured-stack { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; }
.featured-head { display: grid; gap: 3px; min-height: 56px; }
.featured-list { display: grid; gap: 12px; }
.featured-card-small { min-height: 86px; }
.featured-card-small .featured-card-main { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 9px 60px 9px 9px; }
.featured-card-small .featured-image { width: 112px; height: 76px; border-radius: var(--radius-sm); }
.featured-copy { display: grid; gap: 4px; min-width: 0; }
.featured-copy strong { color: var(--ink); font-family: var(--font-display); font-size: 17px; line-height: 1.12; overflow-wrap: anywhere; }
.featured-copy small { color: var(--muted); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.featured-card-small .featured-add { right: 11px; bottom: 11px; min-width: 46px; }

/* ── Section head + category browser ──────────────────────────────────── */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 36px 0 20px; }
.simple-results-head { margin-bottom: 12px; }
.category-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 100%; min-width: 0; overflow: hidden; }
.category-row-full {
  display: grid;
  justify-content: stretch;
  gap: 12px;
  margin: 0 0 18px;
}
.category-row > * { min-width: 0; }
.category-browser { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 9px; width: min(100%, 740px); max-width: 100%; }
/* A full category directory redundant with the sidebar's "keeper" tree
   would otherwise tile 3+ rows above the fold — collapse to one scrollable
   row (Amazon's own department-chip pattern) so listings reclaim the space. */
.category-row-full .category-browser {
  display: flex;
  gap: 9px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 5px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.category-row-full .category-tile { flex: 0 0 156px; scroll-snap-align: start; }
.category-tile {
  display: grid; gap: 4px; min-height: 62px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.03), rgba(246, 243, 236, 0) 42%), var(--card);
  color: var(--ink); text-align: left;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.category-tile:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(212, 184, 133, 0.5); box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.55); }
.category-tile span { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; overflow-wrap: anywhere; }
.category-tile strong { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; }
.category-tile.is-active {
  border-color: rgba(212, 184, 133, 0.6);
  background: linear-gradient(135deg, rgba(212, 184, 133, 0.2), rgba(212, 184, 133, 0.05) 70%), var(--card);
}
.category-tile.is-active span { color: var(--gold-bright); }
.category-tile.is-active strong { color: var(--gold); }
.category-tile.is-preferred {
  border-color: rgba(212, 184, 133, 0.32);
  background:
    linear-gradient(135deg, rgba(212, 184, 133, 0.1), rgba(255, 0, 107, 0.04)),
    var(--card);
}
.category-tile.is-preferred strong::after {
  content: " · for you";
  color: var(--gold);
}
.category-tile:disabled { cursor: not-allowed; opacity: 0.5; }
.filter-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 100%; min-width: 0; }
.category-row-full .filter-group { justify-content: flex-start; }
.fulfilment-group { padding-left: 10px; border-left: 1px solid var(--line); }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--card); color: var(--muted); font-size: 13px; font-weight: 700;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-bright); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ── "Picked for you" steering row ───────────────────────────────────── */
.shop-subheading { margin: 4px 0 0; max-width: 62ch; font-size: 13.5px; line-height: 1.5; }
.taste-row { margin: 0 0 14px; }
.taste-chips {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  /* Horizontal scroll on narrow screens instead of a four-line chip wall. */
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.taste-chips::-webkit-scrollbar { display: none; }
/* Chips keep their natural width and scroll out of view instead of being
   squashed until the labels clip. */
.taste-chips > * { flex: 0 0 auto; }
.taste-chips-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; padding-right: 2px;
}
.taste-chip { min-height: 38px; padding: 0 13px; white-space: nowrap; }
/* Lit by behaviour rather than an explicit tap — a hint, not a selection. */
.taste-chip.is-warm { border-color: var(--gold); color: var(--ink); }
.taste-chip-dot { margin-left: 6px; color: var(--gold-bright); font-size: 15px; line-height: 1; }
.taste-reset { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) {
  .taste-chips { flex-wrap: nowrap; }
  .taste-row { margin-bottom: 10px; }
}

/* ── Listings pagination ─────────────────────────────────────────────── */
.market-pager-row { display: flex; justify-content: center; padding: 22px 0 6px; }
.market-pager { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 4px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink-2); font-size: 13.5px; font-weight: 700;
  font-family: var(--font-body);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}
.pager-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--gold); }
.pager-btn.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-bright); }
.pager-btn.pager-arrow { font-size: 17px; font-weight: 400; }
.pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pager-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 38px; color: var(--faint); font-size: 13px; }
@media (max-width: 460px) {
  .pager-btn { min-width: 34px; height: 34px; font-size: 12.5px; }
  .pager-ellipsis { min-width: 18px; height: 34px; }
}

/* ── Filter rail (Amazon-style price/rating facets) ─────────────────────── */
.market-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 22px; align-items: start; }
.filter-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.filter-rail-group { display: flex; flex-direction: column; gap: 3px; }
.filter-rail-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); }
.filter-rail-option {
  display: flex; align-items: center; gap: 9px;
  min-height: 36px; padding: 0 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
  text-align: left; width: 100%; cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.filter-rail-option:hover { background: var(--card); color: var(--ink); }
.filter-rail-option.is-active { background: var(--gold-soft); color: var(--gold-bright); border-color: rgba(212, 184, 133, 0.35); }
.filter-rail-option .rail-check {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid var(--line); font-size: 11px; line-height: 14px; text-align: center;
  color: var(--paper);
}
.filter-rail-option.is-active .rail-check { background: var(--gold); border-color: var(--gold); }
.filter-rail-clear { align-self: flex-start; margin-top: -4px; }
@media (max-width: 760px) {
  .market-layout { display: block; }
  .filter-rail {
    position: static; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; gap: 8px; padding: 0 0 8px;
    margin-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .filter-rail-group { flex-direction: row; flex: 0 0 auto; gap: 6px; }
  .filter-rail-title { display: none; }
  .filter-rail-option {
    width: auto; white-space: nowrap; flex: 0 0 auto;
    border: 1px solid var(--line); border-radius: var(--pill); padding: 0 12px;
  }
  .filter-rail-clear { flex: 0 0 auto; }
}

/* ── Product + stage grids ────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

/* ── "Shop by department" cards (home landing) — refined editorial grid ───────
   A premium department-store home in the ink + gold + pink palette: each card
   is a mini category storefront (2×2 of live product tiles with a frosted price
   tag + image hover-zoom); Food/Groceries/Meds/Rent lead as essentials feature
   cards. Amazon's information architecture, executed with G+'s own craft. */
.dept-cards-wrap { margin: 6px 0 16px; }
.dept-cards-wrap[hidden] { display: none; }
.dept-cards-head { margin: 12px 0 20px; align-items: start; }
.dept-cards-head .eyebrow { color: var(--gold); }
.dept-cards-head h2 { margin: 0; }
.dept-cards-sub {
  margin: 8px 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.dept-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(246, 243, 236, 0.035), rgba(246, 243, 236, 0) 34%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px 17px 15px;
  min-height: 278px;
  isolation: isolate;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), border-color .28s ease, box-shadow .28s ease;
}
.dept-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 184, 133, 0.55);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 184, 133, 0.10);
}
.dept-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.dept-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
  transition: color .2s ease;
}
.dept-card-head:hover .dept-card-title { color: var(--gold-bright); }
.dept-card-count {
  flex: none;
  align-self: start;
  margin-top: 1px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dept-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  flex: 1;
}
.dept-tile {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dept-tile:hover { border-color: rgba(212, 184, 133, 0.5); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6); }
.dept-tile-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
}
.dept-tile-media .deferred-image,
.dept-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.dept-tile:hover .dept-tile-img { transform: scale(1.06); }
.dept-tile-price {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  background: rgba(7, 19, 26, 0.82);
  border: 1px solid rgba(246, 243, 236, 0.14);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dept-card-cta {
  margin-top: 15px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  transition: color .2s ease;
}
.dept-card-cta > span { display: inline-block; transition: transform .2s ease; }
.dept-card-cta:hover { color: var(--gold-bright); }
.dept-card-cta:hover > span { transform: translateX(4px); }
/* Bottom-of-home verticals band — the essentials cards after the listing grid.
   Needs a rule of its own only because it now closes the page instead of
   sitting mid-grid: a hairline + breathing room separate it from the pager. */
.explore-verticals {
  margin: 34px 0 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.explore-verticals .dept-cards-head { margin: 0 0 18px; }
/* Essentials feature cards (Food / Groceries / Meds / Rent) */
.dept-card--essential {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(212, 184, 133, 0.16), rgba(212, 184, 133, 0) 55%),
    linear-gradient(168deg, rgba(255, 0, 107, 0.06), rgba(16, 37, 48, 0.2) 60%),
    var(--card);
}
.dept-card--essential .dept-card-head { justify-content: flex-start; gap: 13px; margin-bottom: 12px; }
.dept-essential-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  font-size: 24px;
  line-height: 1;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(212, 184, 133, 0.2), rgba(212, 184, 133, 0.06));
  border: 1px solid rgba(212, 184, 133, 0.28);
  box-shadow: inset 0 1px 0 rgba(246, 243, 236, 0.08);
}
.dept-essential-blurb {
  flex: 1;
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
/* Keyboard focus — visible rings on the interactive card controls */
.dept-card-head:focus-visible,
.dept-tile:focus-visible,
.dept-card-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
/* One-time staggered reveal (added on the first render that has products) */
@media (prefers-reduced-motion: no-preference) {
  .dept-cards--reveal .dept-card { opacity: 0; animation: deptReveal .55s cubic-bezier(.22,.61,.36,1) both; }
  .dept-cards--reveal .dept-card:nth-child(1) { animation-delay: .03s; }
  .dept-cards--reveal .dept-card:nth-child(2) { animation-delay: .07s; }
  .dept-cards--reveal .dept-card:nth-child(3) { animation-delay: .11s; }
  .dept-cards--reveal .dept-card:nth-child(4) { animation-delay: .15s; }
  .dept-cards--reveal .dept-card:nth-child(5) { animation-delay: .19s; }
  .dept-cards--reveal .dept-card:nth-child(6) { animation-delay: .23s; }
  .dept-cards--reveal .dept-card:nth-child(7) { animation-delay: .27s; }
  .dept-cards--reveal .dept-card:nth-child(8) { animation-delay: .31s; }
  .dept-cards--reveal .dept-card:nth-child(9) { animation-delay: .35s; }
  .dept-cards--reveal .dept-card:nth-child(10) { animation-delay: .39s; }
  .dept-cards--reveal .dept-card:nth-child(11) { animation-delay: .43s; }
  .dept-cards--reveal .dept-card:nth-child(12) { animation-delay: .47s; }
}
@keyframes deptReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
/* On the home landing the rich department cards ARE the department nav, so the
   plain category-tile row is redundant — hide it there (it returns on category
   and vertical views where it filters). */
body.market-landing #category-row { display: none; }

@media (max-width: 720px) {
  .dept-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dept-card { min-height: 0; padding: 13px; border-radius: 16px; }
  .dept-card-title { font-size: 15.5px; }
  .dept-tiles { gap: 8px; }
  .dept-cards-sub { font-size: 13px; }
  .dept-essential-blurb { font-size: 13px; }
  .dept-essential-badge { width: 40px; height: 40px; font-size: 21px; border-radius: 11px; }
}
@media (max-width: 400px) {
  .dept-cards { grid-template-columns: 1fr; }
}

.stage-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

.product-card, .stage-card, .seller-panel, .auth-panel, .empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.product-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.product-card.is-preferred {
  border-color: rgba(212, 184, 133, 0.38);
  box-shadow: 0 24px 50px -34px rgba(212, 184, 133, 0.38);
}
.product-card:hover, .product-card:focus-within { transform: translateY(-5px); border-color: rgba(212, 184, 133, 0.45); box-shadow: var(--shadow); }
.product-card .product-open { display: block; width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--gold-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
body.shop-mode-fashion .product-media,
.product-card.vertical-fashion .product-media { aspect-ratio: 4 / 5; }
body.shop-mode-tech .product-media { aspect-ratio: 1 / 0.88; }
body.shop-mode-motors .product-card.vertical-motors .product-media,
body.shop-mode-home .product-card.vertical-home .product-media { aspect-ratio: 4 / 3; }

.deferred-image { opacity: 0; transition: opacity 0.4s var(--ease); }
.deferred-image.is-loaded, .deferred-image.is-loading { opacity: 1; }

.badge {
  display: inline-flex; align-items: center; min-height: 25px; padding: 0 10px;
  border-radius: var(--pill); background: rgba(5, 13, 18, 0.74); color: var(--cream);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.product-media .badge { position: absolute; left: 12px; top: 12px; }
.promo-badge {
  position: absolute;
  left: 12px;
  top: 44px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--pink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px -18px rgba(255, 0, 107, 0.8);
}
.stock-badge {
  position: absolute; right: 12px; top: 64px; display: inline-flex; align-items: center;
  min-height: 25px; padding: 0 10px; border-radius: var(--pill);
  background: var(--gold); color: var(--paper); font-size: 11.5px; font-weight: 800;
}
.card-save {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pill); border: 1px solid var(--line);
  background: rgba(5, 13, 18, 0.7); color: var(--cream); font-size: 18px; line-height: 1;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform 0.14s var(--ease), background 0.14s var(--ease);
}
.card-save:hover { transform: scale(1.08); }
.card-save[aria-pressed="true"] { background: var(--pink); color: #fff; border-color: var(--pink); }
.trend-badge {
  position: absolute; left: 12px; top: 76px; display: inline-flex; align-items: center; gap: 4px;
  background: var(--burgundy); color: #fff; padding: 4px 10px; border-radius: var(--pill);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}

.product-body { display: grid; gap: 9px; padding: 15px; }
.product-title { min-height: 44px; color: var(--ink); font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.product-signal {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.05);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
body.shop-mode-tech .product-signal,
.product-card.vertical-tech .product-signal { color: #A5D5E8; }
body.shop-mode-fashion .product-signal,
.product-card.vertical-fashion .product-signal { color: var(--pink-ink); }
.product-proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.product-proof-tags span,
.product-spec-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(212, 184, 133, 0.16);
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.product-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.product-spec-tags span {
  border-color: rgba(212, 184, 133, 0.26);
  background: rgba(212, 184, 133, 0.1);
  color: var(--gold);
  font-weight: 800;
}
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.price { color: var(--ink); font-family: var(--font-body); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.price-was { color: var(--muted); font-weight: 600; font-size: 14px; margin-right: 4px; }
.product-meta.price-row { justify-content: flex-start; gap: 8px; }
.deal-badge {
  background: var(--deal);
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 7px;
  letter-spacing: 0.2px;
}
.listing-delivery-summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(119, 237, 184, 0.2);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(23, 113, 80, 0.18), rgba(8, 35, 33, 0.22));
}
.listing-delivery-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(119, 237, 184, 0.14);
  color: #77edb8;
  font-size: 15px;
  font-weight: 900;
}
.listing-delivery-copy { display: grid; gap: 1px; min-width: 0; }
.listing-delivery-copy small {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.listing-delivery-copy strong {
  color: #8af2c5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
.listing-shipping-note {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.listing-shipping-note.is-included { color: #b7dfcf; }
.listing-shipping-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(119, 237, 184, 0.12);
  color: #77edb8;
  font-size: 11px;
  font-weight: 900;
}
.product-proof-tags--signals span {
  min-height: 21px;
  padding: 2px 7px;
  border-color: rgba(212, 184, 133, 0.22);
  background: rgba(212, 184, 133, 0.08);
  color: var(--gold-bright);
  font-size: 10px;
}
/* Why smart search surfaced this listing. Semantic matches often do not
   contain the typed words, so without a stated reason they read as noise. */
.product-match-reason {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold);
  opacity: 0.86;
}
.product-match-reason span[aria-hidden] { color: var(--gold-bright); font-size: 9px; }
.view-link { color: var(--gold); font-weight: 700; font-size: 12px; }
.merchant-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.verified-tick { display: inline-block; color: var(--gold-bright); font-weight: 900; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: -2px 0; }
.rating-stars { color: var(--gold-bright); letter-spacing: 0.5px; }
.rating-text { color: var(--gold); font-weight: 700; }
.rating-text .muted { color: var(--muted); font-weight: 500; margin-left: 2px; }
.product-actions { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 9px; padding: 0 15px 15px; }
.product-actions .button, .product-actions .ghost-button { width: 100%; }
.product-actions .button, .product-actions .ghost-button {
  padding-right: 10px;
  padding-left: 10px;
  white-space: nowrap;
}
.detail-actions.commerce-actions {
  grid-template-columns: 100px repeat(3, minmax(0, 1fr));
}
.product-card.is-rental {
  border-color: rgba(212, 184, 133, 0.34);
  box-shadow: 0 24px 48px -34px rgba(212, 184, 133, 0.42);
}
.detail-actions.rental-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.detail-actions.rental-actions .button,
.detail-actions.rental-actions .ghost-button {
  width: 100%;
}

/* Stage cards */
.stage-card { overflow: hidden; }
.stage-cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--espresso); }
.stage-card.is-video-only .stage-cover,
.stage-cover.has-video { aspect-ratio: 9 / 16; }
.stage-cover img, .stage-cover video, .stage-cover iframe { width: 100%; height: 100%; object-fit: cover; }
.stage-cover iframe { display: block; border: 0; background: #050D12; }
.stage-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 56%, rgba(5, 13, 18, 0.62)); }
.stage-cover.has-video::after { display: none; }
.stage-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: rgba(255, 255, 255, 0.96); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); pointer-events: none; }
.stage-trend {
  position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 4px;
  background: var(--burgundy); color: #fff; padding: 4px 11px; border-radius: var(--pill);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.stage-body { display: grid; gap: 12px; padding: 15px; }
.stage-head { display: grid; gap: 7px; }
.stage-head .badge { width: fit-content; background: var(--gold); color: var(--paper); }
.stage-head h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.stage-proof { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stage-products { display: grid; gap: 9px; }
.stage-video-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}
.stage-video-note > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.stage-video-note .ghost-button {
  flex: 0 0 auto;
  min-height: 34px;
}
.drop-row-wrap { position: relative; display: flex; align-items: stretch; gap: 7px; }
.drop-row-wrap .drop-row { flex: 1; }
.drop-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 11px; align-items: center;
  min-height: 60px; padding: 7px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-2); transition: border-color 0.16s var(--ease);
}
.drop-row:hover { border-color: var(--ink); }
.drop-row img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; }
.drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop-title { min-width: 0; color: var(--ink); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.drop-price { color: var(--gold-bright); font-weight: 800; }
.drop-save {
  width: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--card); color: var(--pink); font-size: 16px; line-height: 1;
  flex: 0 0 40px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s var(--ease), background 0.12s var(--ease);
}
.drop-save:hover { transform: scale(1.06); }
.drop-save[aria-pressed="true"] { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Empty + loaders */
.empty-state { display: grid; place-items: center; min-height: 280px; padding: 32px; color: var(--muted); text-align: center; }
.empty-state h3 { margin-bottom: 8px; }
.empty-inline {
  display: grid;
  gap: 5px;
  min-height: 96px;
  align-content: center;
  padding: 16px;
  border: 1px dashed rgba(212, 184, 133, 0.28);
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.empty-inline strong { color: var(--ink); }
.loading-row { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.market-search-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.market-search-loading > span:last-child { display: grid; gap: 3px; }
.market-search-loading strong { line-height: 1.3; }
.market-search-loading small { color: var(--muted); line-height: 1.4; }
.market-search-loading .spinner { flex: 0 0 auto; width: 22px; height: 22px; }
.market-search-error .button { margin-top: 14px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--pink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.assisted-buy-fallback {
  display: grid;
  gap: 16px;
  max-width: 760px;
  min-height: 360px;
  align-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.assisted-buy-fallback h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
}
.assisted-buy-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.assisted-buy-ref-grid div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.assisted-buy-ref-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.assisted-buy-ref-grid strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}
.assisted-review-list,
.assisted-quote-lines {
  display: grid;
  gap: 10px;
}
.assisted-review-line {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.attachment-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(212, 184, 133, 0.09);
}
.attachment-summary span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}
.assisted-quote-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.assisted-quote-line span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.assisted-quote-line small {
  color: var(--muted);
}
.assisted-quote-line b {
  white-space: nowrap;
  color: var(--ink);
}
.assisted-quote-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Food, Groceries + Meds ─────────────────────────────────────────── */
.market-vertical-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 16px;
  margin-bottom: 18px;
}
.market-vertical-panel,
.market-vertical-products {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(212, 184, 133, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 0, 107, 0.09), transparent 17rem),
    var(--card);
  box-shadow: var(--shadow-sm);
}
.market-vertical-panel-hero {
  background:
    radial-gradient(circle at 82% 8%, rgba(212, 184, 133, 0.15), transparent 18rem),
    var(--card);
}
.market-vertical-panel h3 { font-size: clamp(22px, 2.7vw, 34px); }
.vertical-quick-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}
.vertical-quick-strip div,
.vertical-quick-strip .button,
.vertical-quick-strip .ghost-button {
  min-height: 70px;
  border-radius: var(--radius-sm);
}
.vertical-quick-strip div {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(212, 184, 133, 0.18);
  background: var(--card);
}
.vertical-quick-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vertical-quick-strip strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}
.vertical-quick-strip .button,
.vertical-quick-strip .ghost-button {
  align-self: stretch;
  min-width: 150px;
  padding-inline: 16px;
}
.vertical-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.vertical-stat-grid div {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(212, 184, 133, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(246, 243, 236, 0.04);
}
.vertical-stat-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vertical-stat-grid strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
}
.vertical-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vertical-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(212, 184, 133, 0.18);
  border-radius: var(--pill);
  color: var(--gold-bright);
  background: rgba(246, 243, 236, 0.04);
  font-size: 12px;
  font-weight: 800;
}
.vertical-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.vertical-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.vertical-card.is-grocery { border-color: rgba(212, 184, 133, 0.28); }
.vertical-card.is-pharmacy { border-color: rgba(255, 0, 107, 0.24); }
.vertical-card.is-service {
  border-color: rgba(21, 122, 99, 0.34);
  background:
    linear-gradient(180deg, rgba(21, 122, 99, 0.08), rgba(255, 255, 255, 0) 42%),
    var(--card);
}
.vertical-card-main {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.vertical-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gold-soft);
}
.vertical-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.42s var(--ease); }
.vertical-card:hover .vertical-card-media img { transform: scale(1.04); }
.vertical-card-media .badge { position: absolute; top: 12px; left: 12px; }
.vertical-card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}
.vertical-card-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vertical-card-body strong {
  min-height: 42px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.vertical-card-body small {
  min-height: 42px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.service-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}
.service-card-facts span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(21, 122, 99, 0.18);
  border-radius: 999px;
  background: rgba(21, 122, 99, 0.08);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vertical-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.vertical-card-meta b { color: var(--gold-bright); font-size: 15px; }
.vertical-card-actions {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 9px;
  padding: 0 15px 15px;
}
.vertical-card-actions .button,
.vertical-card-actions .ghost-button { width: 100%; }
.assisted-request-form textarea { min-height: 118px; }

/* ── G+ Food delivery section, styled inside the G+ Market system ─────── */
.food-app-panel {
  --food-ink: var(--paper);
  --food-ink-2: var(--espresso);
  --food-card: rgba(5, 13, 18, 0.68);
  --food-card-hi: rgba(212, 184, 133, 0.08);
  --food-text: var(--ink);
  --food-muted: var(--muted);
  --food-line: rgba(246, 243, 236, 0.12);
  --food-green: var(--gold);
  --food-pink: var(--pink);
  --food-gold: var(--gold-bright);
  margin: 0 0 28px;
  color: var(--food-text);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
}
.food-app-shell {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid rgba(212, 184, 133, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 37, 48, 0.94), rgba(7, 19, 26, 0.98) 48%, rgba(5, 13, 18, 0.98)),
    var(--paper);
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, 0.5);
}
.food-coming-soon-panel {
  margin-top: -4px;
}
.food-coming-soon-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(16px, 2.8vw, 28px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(212, 184, 133, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 20, 27, 0.98), rgba(5, 13, 18, 0.98) 54%, rgba(17, 12, 8, 0.94)),
    var(--paper);
  box-shadow: 0 32px 80px -44px rgba(0, 0, 0, 0.66);
}
.food-coming-soon-copy {
  display: grid;
  align-content: center;
  gap: clamp(12px, 1.8vw, 18px);
  min-height: 438px;
  padding: clamp(24px, 4vw, 46px);
}
.food-coming-soon-kicker {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(212, 184, 133, 0.34);
  border-radius: 999px;
  background: rgba(212, 184, 133, 0.1);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.food-coming-soon-copy h2 {
  max-width: 10.5ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}
.food-coming-soon-copy p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 700;
  line-height: 1.55;
}
.food-coming-soon-promise,
.food-coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.food-coming-soon-promise span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(246, 243, 236, 0.12);
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.05);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}
.food-coming-soon-actions {
  margin-top: 6px;
}
.food-coming-soon-art {
  position: relative;
  min-height: 438px;
  margin: 0;
  overflow: hidden;
  background: rgba(5, 13, 18, 0.62);
}
.food-coming-soon-art img {
  width: 100%;
  height: 100%;
  min-height: 438px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.food-coming-soon-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 18, 0.22), rgba(5, 13, 18, 0.04)),
    linear-gradient(0deg, rgba(5, 13, 18, 0.32), transparent 46%);
  pointer-events: none;
}
.food-coming-soon-art figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  max-width: min(330px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(212, 184, 133, 0.24);
  border-radius: 8px;
  background: rgba(5, 13, 18, 0.76);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  backdrop-filter: blur(14px);
}
.food-app-panel .button {
  background: var(--gold);
  color: var(--paper);
  box-shadow: 0 18px 34px -20px rgba(212, 184, 133, 0.7);
}
.food-app-panel .button:hover { box-shadow: 0 20px 38px -20px rgba(212, 184, 133, 0.78); }
.food-app-panel .ghost-button,
.food-app-panel .link-button {
  border-color: var(--food-line);
  background: rgba(246, 243, 236, 0.04);
  color: var(--food-text);
}
.food-app-panel .ghost-button:hover,
.food-app-panel .link-button:hover {
  border-color: rgba(212, 184, 133, 0.36);
  background: rgba(212, 184, 133, 0.12);
  color: var(--food-text);
}
.food-app-header,
.food-restaurant-title-row,
.food-section-mini-head,
.food-card-actions,
.food-meta-line,
.food-tag-row,
.food-header-actions,
.food-menu-row,
.food-menu-main {
  display: flex;
  align-items: center;
}
.food-app-header { justify-content: space-between; gap: 14px; }
.food-brand-lockup { display: flex; align-items: center; min-width: 0; gap: 12px; }
.food-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--food-green);
  color: var(--paper);
  font-weight: 950;
  box-shadow: 0 14px 26px -16px rgba(212, 184, 133, 0.8);
}
.food-brand-lockup p,
.food-section-mini-head p,
.food-app-hero p,
.food-assisted-entry p,
.food-restaurant-title-row p {
  margin: 0;
  color: var(--food-gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.food-brand-lockup h2,
.food-section-mini-head h3,
.food-app-hero h3,
.food-assisted-entry h3,
.food-restaurant-title-row h3 {
  margin: 0;
  color: var(--food-text);
  font-family: var(--font-display);
  letter-spacing: 0;
}
.food-brand-lockup h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.02; }
.food-brand-lockup span,
.food-app-hero span,
.food-assisted-entry span {
  color: var(--food-muted);
  font-size: 13px;
  font-weight: 700;
}
.food-header-actions { gap: 8px; }
.food-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: rgba(246, 243, 236, 0.04);
  color: var(--food-text);
  font-size: 19px;
  font-weight: 950;
}
.food-search-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: rgba(5, 13, 18, 0.52);
}
.food-search-card > span { color: var(--food-muted); font-weight: 950; }
.food-search-card input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--food-text);
  font-size: 15px;
  font-weight: 800;
}
.food-search-card input::placeholder { color: var(--food-muted); }
.food-clear-search {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: rgba(246, 243, 236, 0.05);
  color: var(--food-text);
  font-size: 12px;
  font-weight: 900;
}
.food-mode-row,
.food-filter-rail,
.food-cuisine-rail,
.food-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.food-mode-row::-webkit-scrollbar,
.food-filter-rail::-webkit-scrollbar,
.food-cuisine-rail::-webkit-scrollbar,
.food-rail::-webkit-scrollbar { display: none; }
.food-mode-row button,
.food-filter-rail button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: rgba(246, 243, 236, 0.04);
  color: var(--food-text);
  font-size: 13px;
  font-weight: 950;
}
.food-mode-row button.is-active,
.food-filter-rail button.is-active {
  border-color: var(--food-gold);
  background: var(--gold);
  color: var(--paper);
}
.food-filter-rail button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.food-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.food-promise-grid div {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 11px;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: rgba(246, 243, 236, 0.04);
}
.food-promise-grid span {
  color: var(--food-green);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.04em;
}
.food-promise-grid strong {
  color: var(--food-text);
  font-size: 13px;
  line-height: 1.1;
}
.food-promise-grid small { color: var(--food-muted); font-size: 11px; font-weight: 800; }
.food-assisted-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 0, 107, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 0, 107, 0.11), rgba(212, 184, 133, 0.1)),
    rgba(5, 13, 18, 0.44);
}
.food-assisted-entry h3 { font-size: 20px; line-height: 1.08; }
.food-assisted-entry .ghost-button {
  border-color: var(--food-line);
  color: var(--food-text);
  background: rgba(246, 243, 236, 0.04);
}
.food-section-mini-head {
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.food-section-mini-head h3 { font-size: clamp(20px, 2.2vw, 27px); }
.food-section-mini-head > span {
  flex: 0 0 auto;
  color: var(--food-muted);
  font-size: 12px;
  font-weight: 900;
}
.food-cuisine-tile {
  display: grid;
  flex: 0 0 82px;
  gap: 7px;
  justify-items: center;
  border: 0;
  background: transparent;
  color: var(--food-text);
  font-weight: 900;
}
.food-cuisine-tile img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: var(--food-card);
  box-shadow: 0 12px 24px -20px rgba(212, 184, 133, 0.6);
  filter: brightness(0.78) saturate(0.9);
}
.food-cuisine-tile span {
  max-width: 100%;
  overflow: hidden;
  color: var(--food-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.food-app-hero {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: var(--food-card);
}
.food-app-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) saturate(0.88);
}
.food-app-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 13, 18, 0.94), rgba(7, 19, 26, 0.72), rgba(7, 19, 26, 0.1));
}
.food-app-hero > div {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 9px;
  width: min(420px, 68%);
  min-height: 236px;
  padding: 22px;
}
.food-app-hero h3 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.02; }
.food-app-hero .button { justify-self: start; margin-top: 4px; }
.food-rail-card {
  flex: 0 0 210px;
  overflow: hidden;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: var(--food-card);
}
.food-rail-card button {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.food-rail-image {
  display: block;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: var(--food-card-hi);
}
.food-rail-image img,
.food-restaurant-media img,
.food-menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.94);
}
.food-rail-copy {
  display: grid;
  gap: 3px;
  padding: 11px;
}
.food-rail-copy strong {
  color: var(--food-text);
  font-size: 14px;
  line-height: 1.15;
}
.food-rail-copy small {
  color: var(--food-muted);
  font-size: 12px;
  font-weight: 800;
}
.food-restaurant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.food-restaurant-card {
  overflow: hidden;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: var(--food-card);
  box-shadow: 0 16px 36px -28px rgba(0, 0, 0, 0.7);
}
.food-restaurant-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.95 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--food-card-hi);
}
.food-media-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(5, 13, 18, 0.84);
  color: var(--food-text);
  font-size: 12px;
  font-weight: 950;
}
.food-restaurant-body {
  display: grid;
  gap: 11px;
  padding: 14px;
}
.food-restaurant-title-row { justify-content: space-between; gap: 12px; align-items: flex-start; }
.food-restaurant-title-row h3 {
  font-size: clamp(21px, 2.4vw, 29px);
  line-height: 1.03;
  overflow-wrap: anywhere;
}
.food-rating {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--food-card-hi);
  color: var(--food-text);
  font-size: 13px;
  font-weight: 950;
}
.food-meta-line,
.food-tag-row {
  flex-wrap: wrap;
  gap: 7px;
}
.food-meta-line span,
.food-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: rgba(246, 243, 236, 0.05);
  color: var(--food-muted);
  font-size: 12px;
  font-weight: 900;
}
.food-menu-preview {
  display: grid;
  gap: 8px;
}
.food-menu-row {
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--food-line);
  border-radius: 8px;
  background: rgba(5, 13, 18, 0.34);
}
.food-menu-main {
  flex: 1 1 auto;
  min-width: 0;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.food-menu-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--food-card-hi);
}
.food-menu-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.food-menu-copy strong {
  overflow: hidden;
  color: var(--food-text);
  font-size: 13px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.food-menu-copy small {
  overflow: hidden;
  color: var(--food-muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.food-menu-price {
  flex: 0 0 auto;
  color: var(--food-gold);
  font-size: 13px;
  font-weight: 950;
}
.food-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--food-pink);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}
.food-card-actions {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 9px;
}
.food-card-actions .button,
.food-card-actions .ghost-button {
  width: 100%;
}
.food-empty-state {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 28px;
  border: 1px dashed var(--food-line);
  border-radius: 8px;
  background: rgba(246, 243, 236, 0.04);
  text-align: center;
}
.food-empty-state img {
  width: min(220px, 60vw);
  border-radius: 8px;
}
.food-empty-state h3 {
  color: var(--food-text);
  font-family: var(--font-display);
  font-size: 24px;
}
.food-empty-state p {
  max-width: 48ch;
  margin: 0;
  color: var(--food-muted);
}

@media (max-width: 900px) {
  .food-restaurant-grid { grid-template-columns: 1fr; }
  .food-app-hero > div { width: min(460px, 74%); }
  .food-coming-soon-shell { grid-template-columns: 1fr; }
  .food-coming-soon-copy { min-height: auto; }
  .food-coming-soon-copy h2 { max-width: 12ch; }
  .food-coming-soon-art,
  .food-coming-soon-art img {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .food-app-shell { padding: 12px; }
  .food-app-header { align-items: flex-start; }
  .food-brand-lockup { align-items: flex-start; }
  .food-header-actions { flex-direction: column; }
  .food-promise-grid { grid-template-columns: 1fr; }
  .food-assisted-entry { align-items: stretch; flex-direction: column; }
  .food-assisted-entry .ghost-button { width: 100%; }
  .food-app-hero { min-height: 260px; }
  .food-app-hero::after {
    background: linear-gradient(180deg, rgba(5, 13, 18, 0.95), rgba(7, 19, 26, 0.78), rgba(7, 19, 26, 0.2));
  }
  .food-app-hero > div {
    width: 100%;
    min-height: 260px;
  }
  .food-coming-soon-copy {
    padding: 22px;
  }
  .food-coming-soon-copy h2 {
    max-width: 100%;
    font-size: clamp(34px, 14vw, 48px);
  }
  .food-coming-soon-actions .button,
  .food-coming-soon-actions .ghost-button {
    width: 100%;
  }
  .food-coming-soon-art,
  .food-coming-soon-art img {
    min-height: 280px;
  }
  .food-rail-card { flex-basis: 178px; }
  .food-card-actions { grid-template-columns: 1fr; }
  .food-menu-row {
    grid-template-columns: 1fr auto;
    flex-wrap: wrap;
  }
  .food-menu-main { flex-basis: calc(100% - 48px); }
  .food-menu-price { order: 3; margin-left: 57px; }
  .food-add-button { margin-left: auto; }
}

/* ── Rent Manager ─────────────────────────────────────────────────────── */
.rent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
  margin-bottom: 18px;
}
.rent-hero-panel,
.rent-listing-section,
.rent-tool-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(212, 184, 133, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 184, 133, 0.14), transparent 18rem),
    var(--card);
  box-shadow: var(--shadow-sm);
}
.rent-hero-panel h3,
.rent-tool-card h3 { font-size: clamp(22px, 2.8vw, 34px); }
.rent-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rent-flow-step {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 13px;
  border: 1px solid rgba(246, 243, 236, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(5, 13, 18, 0.22);
}
.rent-flow-step strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--pill);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-family: var(--font-display);
}
.rent-flow-step span { color: var(--ink); font-weight: 800; }
.rent-flow-step small { color: var(--muted); line-height: 1.35; }
.rent-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rent-kpi-grid div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(212, 184, 133, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(246, 243, 236, 0.04);
}
.rent-kpi-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rent-kpi-grid strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
}
.rent-listing-section { margin: 18px 0; }
.rent-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.rent-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.rent-card-main {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.rent-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gold-soft);
}
.rent-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.42s var(--ease); }
.rent-card:hover .rent-card-media img { transform: scale(1.04); }
.rent-card-media .badge { position: absolute; top: 12px; left: 12px; }
.rent-card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}
.rent-card-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rent-card-body strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.12;
}
.rent-card-body small {
  color: var(--muted);
  line-height: 1.45;
}
.rent-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.rent-card-meta b { color: var(--gold-bright); font-size: 15px; }
.rent-card-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9px;
  padding: 0 15px 15px;
}
.rent-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}
.rent-tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.merchant-rent-tools .rent-tool-card {
  align-content: start;
}
.rent-pro-card {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 0, 107, 0.1), transparent 16rem),
    var(--card);
}

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px;
  background: rgba(2, 8, 12, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: min(940px, 100%); max-height: min(90svh, 880px); overflow: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2);
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: sticky; top: 14px; left: calc(100% - 58px); z-index: 4;
  width: 44px; height: 44px; margin: 14px 14px -58px auto;
  border: 1px solid var(--line); border-radius: var(--pill); background: var(--card);
  color: var(--ink); font-size: 24px; line-height: 1; box-shadow: var(--shadow-sm);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.modal-close:hover { background: var(--gold); color: var(--paper); }

.interest-onboarding {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
}
.interest-onboarding h2 {
  max-width: 12ch;
  font-size: clamp(32px, 5vw, 56px);
}
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.interest-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.interest-card::before,
.interest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.interest-card::before {
  background: url("/assets/market-hero-bg.jpg?v=visual-refresh-20260603") center / cover no-repeat;
  opacity: 0.26;
  transform: scale(1.03);
}
.interest-card::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 37, 48, 0.92), rgba(16, 37, 48, 0.78) 54%, rgba(16, 37, 48, 0.46)),
    linear-gradient(180deg, rgba(7, 19, 26, 0.15), rgba(7, 19, 26, 0.7));
}
.interest-card.mode-fashion::before { background-image: url("/assets/market-vertical-fashion.jpg?v=visual-refresh-20260603"); }
.interest-card.mode-tech::before { background-image: url("/assets/market-vertical-tech.jpg?v=visual-refresh-20260603"); }
.interest-card.mode-motors::before { background-image: url("/assets/market-vertical-motors.jpg?v=visual-refresh-20260603"); }
.interest-card.mode-home::before { background-image: url("/assets/market-vertical-home.jpg?v=visual-refresh-20260603"); }
.interest-card.mode-work::before { background-image: url("/assets/market-vertical-work.jpg?v=visual-refresh-20260603"); }
.interest-card.mode-lifestyle::before { background-image: url("/assets/market-vertical-lifestyle.jpg?v=visual-refresh-20260603"); }
.interest-card input,
.interest-card-copy {
  position: relative;
  z-index: 1;
}
.interest-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 184, 133, 0.44);
}
.interest-card input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--pink);
}
.interest-card strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.1;
}
.interest-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.interest-card.is-selected {
  border-color: var(--gold);
  background:
    linear-gradient(135deg, rgba(212, 184, 133, 0.16), rgba(255, 0, 107, 0.08)),
    var(--card);
}
.interest-preview {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 184, 133, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(246, 243, 236, 0.04);
}
.interest-preview strong {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.interest-preview span {
  color: var(--ink-2);
  font-size: 14px;
}
.interest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Product detail ───────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 0; }
.detail-media { min-width: 0; min-height: 540px; background: #000; align-self: start; position: sticky; top: 0; }
.detail-media-stage {
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.detail-media-asset { width: 100%; }
.detail-media-image { align-self: stretch; }
.detail-media-image img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.detail-media-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(76vh, 760px);
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}
.detail-media-picker {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  scrollbar-width: thin;
}
.detail-media-choice {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--ink-2);
  cursor: pointer;
}
.detail-media-choice:hover { border-color: rgba(212, 184, 133, 0.55); }
.detail-media-choice.is-active { border-color: var(--gold); }
.detail-media-choice img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(.22,.61,.36,1); }
.detail-media-choice:hover img { transform: scale(1.06); }

/* Tap the main photo to open it full screen */
.detail-media-zoomable { cursor: zoom-in; }

/* Per-SKU option thumbnails (each variant's photo) */
.variant-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}
.variant-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 148px;
  padding: 0 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.variant-thumb:hover { transform: translateY(-2px); border-color: rgba(212, 184, 133, 0.5); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55); }
.variant-thumb-media img { transition: transform 0.45s cubic-bezier(.22,.61,.36,1); }
.variant-thumb:hover .variant-thumb-media img { transform: scale(1.06); }
.variant-thumb.is-active { border-color: var(--gold); }
.variant-thumb:disabled { opacity: 0.45; cursor: not-allowed; }
.variant-thumb-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.2);
}
.variant-thumb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.variant-thumb-noimg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 11px; color: var(--muted, #9aa);
}
.variant-thumb-label {
  padding: 8px 8px 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
  /* No clamp, no ellipsis: the whole option name wraps and stays readable
     (owner report 2026-07-23 - clamped labels were cutting off the detail
     that actually distinguishes each SKU). */
  white-space: normal;
  overflow-wrap: anywhere;
}
.variant-thumb-price { padding: 4px 8px 0; font-size: 12px; font-weight: 700; text-align: center; color: var(--gold); }

/* Full-screen image lightbox */
.gm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 12, 0.94);
  padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom);
}
.gm-lightbox-stage {
  margin: 0;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .2s ease;
  touch-action: pinch-zoom;
}
.gm-lightbox-img.is-zoomed { transform: scale(2); cursor: zoom-out; }
.gm-lightbox-close,
.gm-lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}
.gm-lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 20px; }
.gm-lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.gm-lightbox-prev { left: 10px; }
.gm-lightbox-next { right: 10px; }
.gm-lightbox-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.detail-video-chip {
  position: absolute;
  inset: auto 5px 5px;
  padding: 3px 6px;
  border-radius: var(--pill);
  background: rgba(7, 19, 26, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.detail-body { display: grid; align-content: start; gap: 20px; padding: 38px; }
.detail-body h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1.08; }
.detail-body p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.detail-pills, .detail-tags, .assurance-list { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-price-row, .checkout-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-price-row > div, .checkout-summary > div, .checkout-note {
  display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.035), rgba(246, 243, 236, 0) 40%), var(--card);
}
.detail-price-row span, .checkout-summary span, .checkout-note span,
.assurance-list span, .qty-field > span {
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.checkout-note span { letter-spacing: 0; line-height: 1.5; text-transform: none; font-weight: 600; color: var(--muted); }
.detail-price-row strong, .checkout-summary strong, .checkout-note strong { color: var(--ink); font-family: var(--font-display); font-size: 20px; }
.checkout-stepper { display:flex; align-items:center; gap:10px; margin:2px 0 4px; padding:12px 14px; border:1px solid var(--line); border-radius:16px; background:var(--paper-2); }
.checkout-stepper span { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; font-weight:800; white-space:nowrap; }
.checkout-stepper span.is-active { color:var(--ink); }
.checkout-stepper b { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--line); color:var(--muted); font-size:11px; }
.checkout-stepper span.is-active b { background:var(--gold); color:var(--espresso); }
.checkout-stepper i { height:1px; flex:1; background:var(--line); }
.assurance-list span {
  min-height: 32px; padding: 8px 13px; border: 1px solid rgba(212, 184, 133, 0.35); border-radius: var(--pill);
  background: var(--emerald-soft); color: var(--emerald); letter-spacing: 0; text-transform: none; font-weight: 700;
}
.detail-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.03);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
}
.compact-status { padding: 14px; }
.detail-actions { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 11px; }
.detail-actions.commerce-actions { grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr); }
.qty-field { display: grid; gap: 7px; }
.related-section { display: grid; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-product {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center;
  min-height: 74px; padding: 9px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.03), rgba(246, 243, 236, 0) 42%), var(--card);
  color: inherit; text-align: left;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mini-product:hover, .mini-product:focus-visible { border-color: rgba(212, 184, 133, 0.5); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55); }
.mini-product-media { width: 74px; height: 74px; border-radius: 11px; overflow: hidden; background: var(--paper-2); }
.mini-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s cubic-bezier(.22,.61,.36,1); }
.mini-product:hover .mini-product-media img { transform: scale(1.08); }
.mini-product img { width: 74px; height: 74px; border-radius: 11px; object-fit: cover; }
.mini-product strong, .mini-product small { display: block; overflow-wrap: anywhere; }
.mini-product strong { color: var(--ink); font-weight: 700; }
.mini-product small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.related-section { gap: 14px; padding-top: 16px; }
.related-section .section-mini-head h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.related-section .section-mini-head .muted { font-size: 12.5px; }
.related-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ── Cart ─────────────────────────────────────────────────────────────── */
.cart-view { display: grid; gap: 18px; padding: 38px; }
.cart-title-row, .cart-group-head, .cart-summary-bar, .cart-group-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.cart-title-row > strong, .cart-group-head > strong, .cart-summary-bar > strong {
  color: var(--ink); font-family: var(--font-display); font-size: 19px;
}
.cart-groups, .cart-lines { display: grid; gap: 12px; }
.cart-group { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(246, 243, 236, 0.035), rgba(246, 243, 236, 0) 40%), var(--card); }
.cart-row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) 90px auto auto; gap: 11px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cart-row:hover { border-color: rgba(212, 184, 133, 0.4); transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5); }
.cart-thumb { width: 74px; height: 74px; padding: 0; overflow: hidden; border: 0; border-radius: 11px; background: var(--gold-soft); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(.22,.61,.36,1); }
.cart-row:hover .cart-thumb img { transform: scale(1.06); }
.cart-row-body { display: grid; gap: 4px; min-width: 0; }
.cart-row-body strong { color: var(--ink); overflow-wrap: anywhere; }
.cart-row-body span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.cart-row > strong { color: var(--ink); font-family: var(--font-display); white-space: nowrap; }
.cart-qty { display: grid; gap: 5px; }
.cart-qty span, .cart-summary-bar span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-qty input { min-height: 36px; padding: 0 9px; }
.cart-summary-bar { position: sticky; bottom: 0; padding: 14px 0 0; border-top: 1px solid var(--line); background: var(--paper-2); }

/* ── Checkout / places ────────────────────────────────────────────────── */
.checkout-lines { display: grid; gap: 7px; }
.checkout-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.035), rgba(246, 243, 236, 0) 40%), var(--card);
}
.checkout-line span { min-width: 0; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.checkout-line strong { color: var(--ink); font-family: var(--font-display); }
.checkout-line-qty {
  display: grid; gap: 4px; min-width: 78px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.checkout-line-qty input {
  width: 78px; min-height: 34px; padding: 0 8px; font-size: 14px; letter-spacing: 0; text-transform: none;
}
.places-results { display: grid; gap: 7px; margin-top: 7px; }
.places-row {
  display: grid; gap: 2px; width: 100%; min-height: 50px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-align: left;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.places-row:hover { border-color: rgba(212, 184, 133, 0.5); background: linear-gradient(180deg, rgba(212, 184, 133, 0.06), transparent), var(--card); }
.places-row span { color: var(--muted); font-size: 13px; }
.map-preview { width: 100%; min-height: 180px; max-height: 240px; border: 1px solid var(--line); border-radius: var(--radius-sm); object-fit: cover; background: var(--gold-soft); }

/* ── Auth + seller panels ─────────────────────────────────────────────── */
.auth-panel, .seller-panel { padding: 22px; }
.auth-layout, .seller-layout {
  display: grid; grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr); gap: 18px; align-items: start;
}
.auth-panel h3, .seller-panel h3 { margin-bottom: 8px; }
.modal:has(.seller-training-panel) {
  width: min(760px, calc(100vw - 40px));
  background: #0b2230;
  border-color: rgba(212, 184, 133, 0.32);
}
.modal:has(.seller-training-panel) .modal-close {
  background: rgba(246, 243, 236, 0.08);
  color: #f8fafc;
}
.seller-training-panel {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 38px);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 0, 107, 0.12), transparent 16rem),
    #0b2230;
  color: #f8fafc;
}
.seller-training-panel .eyebrow {
  color: #f6d28d;
  font-size: 12px;
}
.seller-training-panel h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}
.seller-training-panel .panel-copy {
  max-width: 64ch;
  margin: 0;
  color: rgba(248, 250, 252, 0.84);
  font-size: 16px;
  line-height: 1.6;
}
.seller-training-question {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}
.seller-training-options {
  display: grid;
  gap: 12px;
}
.seller-training-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 64px;
  padding: 15px 16px;
  border: 1.5px solid rgba(246, 243, 236, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.seller-training-option:hover,
.seller-training-option:focus-within {
  border-color: rgba(246, 210, 141, 0.72);
  background: rgba(246, 210, 141, 0.11);
}
.seller-training-option.is-selected,
.seller-training-option:has(input:checked) {
  border-color: #ff2d6f;
  background: rgba(255, 45, 111, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 45, 111, 0.18);
}
.seller-training-option input {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 999px;
  accent-color: #ff2d6f;
}
.seller-training-option-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.seller-training-panel .form-actions {
  gap: 12px;
}
.seller-training-panel .button,
.seller-training-panel .ghost-button {
  min-height: 46px;
}
.seller-guide, .onboarding-steps {
  display: grid; gap: 9px; margin: 16px 0; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card);
}
.seller-guide strong { color: var(--ink); }
.seller-guide span { color: var(--muted); font-size: 13px; font-weight: 600; }
.seller-guide span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: var(--pill); background: var(--emerald); }
.onboarding-steps div { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: center; }
.onboarding-steps strong { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--pill); background: var(--gold-soft); color: var(--gold); font-family: var(--font-display); }
.onboarding-steps span { color: var(--ink); font-weight: 600; }
.merchant-onboarding-copy { display: grid; gap: 6px; align-content: start; }

.seller-status { display: grid; gap: 11px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(246, 243, 236, 0.035), rgba(246, 243, 236, 0) 40%), var(--card); }
.seller-status strong { color: var(--ink); }
.order-return-view {
  width: min(100%, 1000px);
  margin: 0 auto;
}
.order-return-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 16px;
  padding: 22px;
}
.order-return-card,
.order-return-help {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.order-return-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
}
.order-return-reference {
  margin: 0;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.order-return-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.order-return-status-grid div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 13, 18, 0.32);
}
.order-return-status-grid span,
.order-return-steps span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.order-return-status-grid strong {
  color: var(--ink);
  font-size: 20px;
  text-transform: capitalize;
}
.order-return-help h3 { margin: 0; }
.order-return-steps {
  display: grid;
  gap: 10px;
}
.order-return-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.order-return-steps strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--pill);
  background: rgba(246, 243, 236, 0.08);
  color: var(--muted);
}
.order-return-steps .is-done strong {
  background: var(--gold-soft);
  color: var(--gold-bright);
}
.orders-view { width: min(100%, 900px); margin: 0 auto; padding: 22px; }
.orders-page { display: grid; gap: 16px; }
.orders-grid { display: grid; gap: 12px; }
.account-view { width: min(100%, 1040px); margin: 0 auto; padding: 22px; }
.account-page { display: grid; gap: 18px; }
.account-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 191, 71, 0.34);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(255, 191, 71, 0.16), rgba(255, 255, 255, 0.035) 48%, rgba(255, 0, 107, 0.10));
  box-shadow: var(--shadow-sm);
}
.account-profile-hero h1 { margin: 3px 0 4px; font-size: clamp(25px, 4vw, 38px); }
.account-profile-hero p { margin: 0; color: var(--muted); }
.account-avatar {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}
.account-section {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.account-section .section-mini-head h2 { margin: 2px 0 0; }
.account-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.account-action-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.account-action-card:hover, .account-action-card:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.account-action-card.is-primary { border-color: rgba(21, 122, 99, 0.34); background: linear-gradient(145deg, rgba(21, 122, 99, 0.12), var(--paper-2)); }
.account-action-card.is-gold { border-color: rgba(255, 191, 71, 0.38); background: linear-gradient(145deg, rgba(255, 191, 71, 0.13), var(--paper-2)); }
.account-action-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,0.06); font-size: 21px; }
.account-action-copy { display: grid; gap: 4px; min-width: 0; }
.account-action-copy strong { color: var(--ink); font-size: 14px; }
.account-action-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.account-action-arrow { color: var(--muted); font-size: 25px; }
.account-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-profile-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.account-profile-address, .account-profile-actions { grid-column: 1 / -1; }
.account-profile-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-help-links { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.account-help-links a { color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.account-help-links a:hover, .account-help-links a:focus-visible { color: var(--ink); text-decoration: underline; }
@media (max-width: 680px) {
  .account-view { padding: 14px; }
  .account-profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .account-profile-hero > button { grid-column: 1 / -1; width: 100%; }
  .account-action-grid, .account-profile-form { grid-template-columns: 1fr; }
  .account-profile-address, .account-profile-actions { grid-column: auto; }
}
.messages-view { width: min(100%, 1180px); margin: 0 auto; padding: 22px; }
.messages-page { display: grid; gap: 18px; height: 100%; }

/* ── Messages screen: real two-pane inbox (list ↔ thread), not a popup ──── */
.messages-shell {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: min(74vh, 720px);
}
.seller-panel-block .messages-shell { max-width: none; }
.messages-list-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  max-height: min(74vh, 720px);
  overflow-y: auto;
  padding-right: 2px;
}
.messages-thread-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  max-height: min(74vh, 720px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
}
.messages-thread-empty {
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 44px 24px;
  text-align: center;
}
.messages-thread-empty h3, .messages-thread-empty p { margin: 0; }
.thread-back-button {
  display: none;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 760px) {
  .messages-shell { grid-template-columns: 1fr; }
  .messages-shell[data-panel="thread"] .messages-list-pane { display: none; }
  .messages-shell:not([data-panel="thread"]) .messages-thread-pane { display: none; }
  .messages-list-pane, .messages-thread-pane { max-height: none; }
  .thread-back-button { display: inline-grid; place-items: center; }
}

.buyer-message-list { display: grid; gap: 10px; }
.buyer-message-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.buyer-message-row:hover,
.buyer-message-row:focus-visible { border-color: var(--ink); transform: translateY(-1px); }
.buyer-message-row.has-unread { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-soft), var(--card) 54%); }
.buyer-message-row.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.buyer-message-thumb {
  display: block;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper);
}
.buyer-message-thumb img { width: 100%; height: 100%; object-fit: cover; }
.buyer-message-copy { display: grid; gap: 3px; min-width: 0; }
.buyer-message-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.buyer-message-title strong,
.buyer-message-title small,
.buyer-message-item,
.buyer-message-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-message-title strong { color: var(--ink); }
.buyer-message-title small,
.buyer-message-item { color: var(--muted); font-size: 11.5px; }
.buyer-message-item { color: var(--gold-bright); font-weight: 750; }
.buyer-message-preview { color: var(--muted); font-size: 13px; }
.buyer-message-row.has-unread .buyer-message-preview { color: var(--ink); font-weight: 750; }
.buyer-message-arrow { color: var(--muted); font-size: 28px; line-height: 1; }
.messages-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.messages-empty h3,
.messages-empty p { margin: 0; }
.messages-empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--gold-soft); font-size: 26px; }
.order-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.order-card:hover { border-color: var(--gold); }
.order-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; }
.order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-detail { display: grid; gap: 16px; padding: 22px; max-width: 720px; margin: 0 auto; }
.order-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-detail-steps { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); display: grid; gap: 8px; }
.order-detail .cart-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-detail .cart-line:last-child { border-bottom: none; }
.order-detail .cart-line div { display: grid; gap: 3px; }
.order-summary-breakdown { display: grid; gap: 6px; padding: 16px; }
.order-summary-breakdown > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.order-summary-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; display: flex; justify-content: space-between; color: var(--ink) !important; font-size: 16px; font-weight: 800; }
.merchant-approval-card { min-height: 220px; align-content: center; }
.merchant-dashboard-head { display: grid; grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr); gap: 16px; align-items: stretch; }
.merchant-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.merchant-stat-card { display: grid; gap: 6px; min-height: 120px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.merchant-stat-card span, .merchant-stat-card small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.merchant-stat-card strong { color: var(--ink); font-family: var(--font-display); font-size: 27px; line-height: 1; }
.merchant-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.merchant-secondary-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px; }
.merchant-secondary-links a { color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.merchant-secondary-links a:hover, .merchant-secondary-links a:focus-visible { color: var(--ink); text-decoration: underline; }
.merchant-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 18px 0 0; }
.merchant-action-card { display: grid; gap: 6px; min-height: 108px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: inherit; text-align: left; transition: border-color 0.16s var(--ease), transform 0.16s var(--ease); }
.merchant-action-card:hover, .merchant-action-card:focus-visible { border-color: var(--ink); transform: translateY(-2px); }
.merchant-action-card span, .merchant-action-card small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.merchant-action-card small { letter-spacing: 0; line-height: 1.4; text-transform: none; font-weight: 600; }
.merchant-action-card strong { color: var(--ink); font-family: var(--font-display); font-size: 19px; }
.merchant-action-card.is-primary-action { border-color: rgba(21, 122, 99, 0.34); background: linear-gradient(160deg, rgba(21, 122, 99, 0.12), var(--card)); }
.merchant-action-card.is-primary-action span { color: var(--emerald); }
.merchant-action-card.is-featured { border-color: rgba(255, 0, 107, 0.34); background: linear-gradient(160deg, rgba(255, 0, 107, 0.15), var(--card)); }
.merchant-action-card.is-featured span { color: var(--pink-ink); }
.merchant-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.merchant-money-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); }
.merchant-money-row strong { color: var(--ink); font-family: var(--font-display); font-size: 18px; }
.section-mini-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.merchant-filter-row { justify-content: flex-start; margin-bottom: 14px; }
.merchant-products { display: grid; gap: 11px; }
.merchant-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.service-request-row {
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto) minmax(220px, auto);
  align-items: start;
  border-color: rgba(21, 122, 99, 0.22);
}
.service-request-money {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.service-request-money small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.service-quote-details {
  min-width: min(420px, 100%);
}
.service-quote-details summary {
  cursor: pointer;
  color: var(--emerald);
  font-weight: 900;
}
.service-quote-form {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(21, 122, 99, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(21, 122, 99, 0.06);
}
.merchant-row-loose { align-items: start; }
.merchant-row strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.merchant-row small { display: block; color: var(--muted); font-size: 12.5px; }
.merchant-row-reason { color: #e0a458; margin-top: 4px; }
.notify-ok { color: #6fbf73 !important; margin-top: 4px; }
.notify-bad { color: #e0a458 !important; margin-top: 4px; }
.merchant-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; min-width: 0; }
.merchant-row-actions .small-button { min-height: 34px; padding: 8px 10px; }
.quick-product-form { gap: 16px; border-color: rgba(21, 122, 99, 0.28); background: linear-gradient(180deg, rgba(21, 122, 99, 0.08), var(--card)); }
.quick-form-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.quick-form-head h3 { margin: 6px 0 4px; }
.quick-listing-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick-listing-steps span {
  display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px;
  border: 1px solid rgba(21, 122, 99, 0.24); border-radius: var(--radius-sm);
  background: rgba(21, 122, 99, 0.08); color: var(--ink); font-size: 13px; font-weight: 800;
}
.quick-listing-steps strong {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--emerald); color: #fff; font-size: 12px;
}
.quick-field-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(120px, 0.55fr)); }
.image-dropzone {
  margin-top: 6px; display: flex; align-items: center; gap: 14px; min-height: 108px; padding: 16px;
  border: 1.5px dashed rgba(246, 238, 221, 0.26); border-radius: 14px;
  background: rgba(246, 243, 236, 0.04); cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.image-dropzone:hover, .image-dropzone:focus-visible { border-color: var(--gold); background: rgba(212, 184, 133, 0.08); outline: none; }
.image-dropzone-preview { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: rgba(0, 0, 0, 0.22); }
.image-dropzone strong { display: block; color: var(--ink); font-size: 15px; }
.image-dropzone span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.field-error { color: #ff6b6b; font-size: 12.5px; margin-top: 6px; }
.image-progress { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.image-progress > div { height: 100%; width: 0%; background: var(--pink); border-radius: 4px; transition: width 0.15s var(--ease); }
.simple-details, .nested-details {
  padding: 11px 12px; border: 1px dashed rgba(246, 243, 236, 0.2);
  border-radius: var(--radius-sm); background: rgba(246, 243, 236, 0.05);
}
.simple-details summary, .nested-details summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 900; }
.simple-details > .field-grid, .simple-details > .bulk-advanced-grid, .nested-details > .bulk-advanced-grid { margin-top: 12px; }
.promotion-launch-card { align-content: start; }
.promotion-products { display: grid; gap: 9px; margin-top: 4px; }
.promotion-package-grid { display: grid; gap: 10px; }
.promotion-package-card {
  display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--paper-2);
}
.promotion-package-card span { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.promotion-package-card strong { color: var(--ink); font-family: var(--font-display); font-size: 28px; line-height: 1; }
.promotion-package-card small, .promotion-package-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ad-create-form { border-color: rgba(255, 0, 107, 0.26); background: linear-gradient(180deg, rgba(255, 0, 107, 0.08), var(--card)); }
.ad-package-options { display: grid; gap: 9px; }
.ad-package-option {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(246, 243, 236, 0.05); cursor: pointer;
}
.ad-package-option:has(input:checked) { border-color: var(--pink); background: rgba(255, 0, 107, 0.12); }
.ad-package-option input { width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: var(--pink); }
.ad-package-option strong, .ad-package-option small { display: block; }
.ad-package-option small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.merchant-order-card { display: grid; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.merchant-order-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.merchant-order-actions strong { color: var(--ink); font-family: var(--font-display); font-size: 18px; }
.merchant-order-actions select { width: min(220px, 100%); min-height: 36px; }
.merchant-order-actions .settlement-resolution {
  flex: 1 0 100%; width: 100%; margin-top: 4px; text-align: left;
  border-color: rgba(220, 78, 78, 0.45); background: rgba(220, 78, 78, 0.08);
}
.vendor-payout-resolution-form { display: grid; gap: 12px; margin-top: 8px; }
.vendor-payout-resolution-form .field-grid { width: 100%; gap: 10px; }
.merchant-order-actions .vendor-payout-resolution-form select { width: 100%; min-height: 44px; }
.vendor-payout-resolution-form small, .settlement-resolution > small {
  color: var(--muted); font-size: 12px; line-height: 1.45;
}
.managed-procurement-panel { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(212, 184, 133, 0.42); border-radius: var(--radius-sm); background: rgba(212, 184, 133, 0.08); }
.managed-procurement-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.managed-procurement-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding-top: 10px; border-top: 1px solid var(--line); }
.managed-procurement-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.managed-procurement-copy { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.managed-procurement-copy span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.vendor-quote-form { display: flex; gap: 8px; align-items: center; }
.vendor-quote-form input { width: 150px; min-height: 36px; }
.seller-layout-wide { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); align-items: start; }
.seller-stack { display: grid; gap: 16px; align-content: start; }
.merchant-bulk-page { align-items: start; }
.bulk-help-panel { position: sticky; top: 92px; }
.bulk-help-list { display: grid; gap: 9px; margin: 12px 0 16px; }
.bulk-help-list span { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(246, 243, 236, 0.06); color: var(--muted); font-size: 13px; line-height: 1.35; }
.bulk-help-list strong { display: block; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.merchant-bulk-form { border-color: rgba(21, 122, 99, 0.28); background: linear-gradient(180deg, rgba(21, 122, 99, 0.08), var(--card)); }
.merchant-bulk-wizard { gap: 14px; }
.merchant-bulk-form textarea { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; }
.simple-bulk-form textarea { min-height: 260px; }
.bulk-upload-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(246, 243, 236, 0.05); }
.compact-bulk-step { padding: 12px; }
.bulk-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bulk-stepper span { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(246, 243, 236, 0.06); color: var(--muted); font-size: 13px; font-weight: 800; }
.bulk-stepper strong { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(7, 19, 26, 0.08); color: var(--ink); font-size: 12px; }
.bulk-stepper span.is-done { border-color: rgba(212, 184, 133, 0.34); background: rgba(212, 184, 133, 0.1); color: var(--ink); }
.bulk-stepper span.is-done strong { background: var(--gold); color: var(--paper); }
.bulk-step { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(246, 243, 236, 0.06); }
.bulk-step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bulk-step-head h4 { margin: 4px 0 0; color: var(--ink); font-family: var(--font-display); font-size: 20px; line-height: 1.12; }
.bulk-step-head p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.bulk-step-number { color: var(--gold-bright); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.bulk-advanced { padding: 11px 12px; border: 1px dashed rgba(246, 243, 236, 0.2); border-radius: var(--radius-sm); background: rgba(246, 243, 236, 0.05); }
.bulk-advanced summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 900; }
.bulk-advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.bulk-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.bulk-rows-field { display: grid; gap: 6px; }
.bulk-upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 12px 0; }
.bulk-preview { display: grid; gap: 10px; margin-top: 8px; }
.bulk-preview-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7, 19, 26, 0.04); }
.bulk-preview-head strong { color: var(--ink); }
.bulk-preview-head span { color: var(--muted); font-size: 12.5px; }
.bulk-preview-list { display: grid; gap: 7px; }
.bulk-preview-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.bulk-preview-row strong, .bulk-preview-row small { display: block; overflow-wrap: anywhere; }
.bulk-preview-row strong { color: var(--ink); font-size: 13.5px; }
.bulk-preview-row small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.bulk-preview-row > span { color: var(--ink); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.instagram-connect-card { min-height: 100%; align-content: start; }
.instagram-manual-form textarea { min-height: 148px; }
.instagram-imports-panel { margin-top: 16px; }
.instagram-import-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.instagram-import-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 37, 48, 0.72);
}
.instagram-import-media {
  position: relative;
  min-height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--espresso);
}
.instagram-import-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.instagram-import-media .pill {
  position: absolute;
  left: 10px;
  top: 10px;
  box-shadow: var(--shadow-sm);
}
.import-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 0, 107, 0.12), transparent 42%),
    linear-gradient(145deg, var(--espresso), var(--card));
}
.instagram-import-form { display: grid; gap: 12px; min-width: 0; }
.instagram-import-form strong { display: block; overflow-wrap: anywhere; }
.instagram-import-form small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.instagram-import-form .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.instagram-import-form textarea { min-height: 110px; }

/* ── Saved drawer ─────────────────────────────────────────────────────── */
.saved-drawer { padding: 4px; }
.saved-drawer h2 { margin: 0 0 16px; }
.saved-drawer.empty-saved { padding: 30px 6px; text-align: center; }
.saved-grid { display: grid; gap: 11px; }
.saved-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.saved-row-open { display: grid; grid-template-columns: 64px 1fr; gap: 13px; align-items: center; background: none; border: 0; color: inherit; text-align: left; padding: 0; }
.saved-thumb { width: 64px; height: 64px; border-radius: 11px; overflow: hidden; background: var(--gold-soft); }
.saved-thumb img { width: 100%; height: 100%; object-fit: cover; }
.saved-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.saved-meta strong { font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.saved-meta .price { color: var(--gold-bright); font-size: 14px; font-weight: 800; }

/* ── Express 1-tap sheet ──────────────────────────────────────────────── */
.express-sheet { max-width: 500px; padding: 34px; }
.express-sheet h2 { margin: 0 0 14px; }
.express-summary { display: flex; gap: 13px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.express-summary .saved-thumb { width: 56px; height: 56px; }
.express-defaults { margin-top: 13px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 9px; font-size: 13px; color: var(--ink-2); }
.express-defaults strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.express-cta { margin-top: 15px; width: 100%; }
.express-hint { margin-top: 9px; color: var(--muted); font-size: 11.5px; text-align: center; }

/* ── Skeletons ────────────────────────────────────────────────────────── */
@keyframes skeletonShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skeleton-box, .skeleton-line {
  background: linear-gradient(90deg, rgba(246, 243, 236, 0.05) 0%, rgba(246, 243, 236, 0.12) 40%, rgba(246, 243, 236, 0.05) 80%);
  background-size: 200% 100%; animation: skeletonShimmer 1.4s ease-in-out infinite; border-radius: 10px;
}
.is-skeleton { box-shadow: var(--shadow-sm); }
.is-skeleton .product-media, .is-skeleton .stage-cover { aspect-ratio: 1 / 1; height: auto; min-height: 180px; border-radius: 0; }
.skeleton-line { height: 12px; margin: 9px 15px; }
.skeleton-line--title { height: 16px; width: 70%; }
.skeleton-line--meta { height: 11px; width: 55%; }
.skeleton-line--price { height: 14px; width: 40%; }
.skeleton-line--row { height: 40px; margin: 7px 15px; border-radius: 12px; }
.is-skeleton .product-body, .is-skeleton .stage-body { padding: 9px 0 15px; }

/* ── View panel toggling ──────────────────────────────────────────────── */
.view-panel { display: none; }
.view-panel.is-active { display: block; }

/* ════════════════════════════════════════════════════════════════════════
   MARKETING BANDS (added in HTML around the app shell)
   ════════════════════════════════════════════════════════════════════════ */
.section-inner { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section-head-block { display: grid; gap: 13px; max-width: 720px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head-block p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; }

/* Featured market video */
.featured-video-band {
  position: relative;
  z-index: 1;
  color: var(--cream);
  border-top: 1px solid rgba(212, 184, 133, 0.14);
  border-bottom: 1px solid rgba(212, 184, 133, 0.1);
  background: linear-gradient(180deg, rgba(6, 18, 24, 0.94), rgba(11, 24, 32, 0.78));
}
.featured-video-band .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 6vw, 82px) 0;
}
.featured-video-copy {
  display: grid;
  gap: 16px;
  max-width: 640px;
}
.featured-video-copy h2 {
  max-width: 580px;
  color: var(--cream);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
}
.featured-video-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--cream-mut);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}
.featured-video-copy .button {
  justify-self: start;
  min-height: 48px;
}
.featured-video-frame {
  justify-self: end;
  width: min(100%, 390px);
  overflow: hidden;
  border: 1px solid rgba(246, 243, 236, 0.16);
  background: #050D12;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.34);
}
.featured-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(72svh, 660px);
  object-fit: cover;
  background: #050D12;
}

/* How it works (customer) */
.how-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(212, 184, 133, 0.12);
  background: rgba(11, 24, 32, 0.64);
}
.how-band .section-inner { padding: clamp(38px, 4.5vw, 60px) 0; }
.how-band .section-head-block { margin-bottom: clamp(20px, 2.6vw, 32px); }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-cta { margin-top: clamp(18px, 2.4vw, 28px); }
/* Compact the home "Get started" steps so the band reads in one screen-third. */
.how-band .how-step { padding: 20px 22px; gap: 9px; }
.how-band .how-step-n { width: 38px; height: 38px; font-size: 18px; }
.how-band .how-step h3 { font-size: 18px; }
.how-band .how-step p { font-size: 14.5px; line-height: 1.5; }
.how-step {
  position: relative; overflow: hidden; display: grid; gap: 13px; padding: 32px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-sm);
}
.how-step-n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--pill);
  background: var(--gold-soft); color: var(--gold); font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.how-step h3 { font-size: 22px; }
.how-step p { margin: 0; color: var(--muted); line-height: 1.58; }
.how-step::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px;
  border-radius: var(--pill); background: var(--gold-soft);
}

.app-download-band {
  border-top: 1px solid rgba(212, 184, 133, 0.12);
  border-bottom: 1px solid rgba(212, 184, 133, 0.12);
  color: var(--cream);
  background:
    linear-gradient(120deg, rgba(5, 13, 18, 0.96), rgba(11, 32, 40, 0.88) 54%, rgba(140, 26, 46, 0.72)),
    url("/assets/market-app-download-hero.jpg?v=20260702-gemini-mobility") center / cover no-repeat,
    var(--espresso);
}
.app-download-inner {
  padding: clamp(52px, 6vw, 84px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.app-download-copy {
  display: grid;
  gap: 16px;
  max-width: 680px;
}
.app-download-copy .eyebrow { color: var(--gold-bright); }
.app-download-copy h2 {
  color: var(--cream);
  font-size: clamp(32px, 4.6vw, 62px);
  max-width: 15ch;
}
.app-download-copy p {
  margin: 0;
  color: var(--cream-mut);
  font-size: 17px;
  line-height: 1.62;
  max-width: 56ch;
}
.app-platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(246, 238, 221, 0.2);
  border-radius: var(--pill);
  background: rgba(246, 238, 221, 0.08);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
}
.platform-pill.is-live {
  border-color: rgba(212, 184, 133, 0.46);
  background: rgba(212, 184, 133, 0.16);
  color: #FFF6DE;
}
.app-download-actions { margin-top: 6px; }
.app-device-preview {
  display: flex;
  justify-content: center;
}
.app-device-shell {
  width: min(100%, 292px);
  aspect-ratio: 0.52;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(246, 238, 221, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(246, 238, 221, 0.08), rgba(246, 238, 221, 0.02)),
    #07131A;
  box-shadow: 0 34px 80px -38px rgba(0, 0, 0, 0.8);
}
.app-device-top {
  justify-self: center;
  width: 86px;
  height: 8px;
  border-radius: var(--pill);
  background: rgba(246, 238, 221, 0.2);
}
/* Real G+ Market app screenshot filling the mockup screen (was an abstract
   grid of empty placeholder squares — never showed the actual app). */
.app-device-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #07131A;
  min-height: 0;
}
.app-device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.app-sync-band {
  border-top: 1px solid rgba(212, 184, 133, 0.12);
  border-bottom: 1px solid rgba(212, 184, 133, 0.12);
  background:
    linear-gradient(135deg, rgba(212, 184, 133, 0.12), rgba(255, 0, 107, 0.05) 44%, rgba(5, 13, 18, 0.56)),
    linear-gradient(90deg, rgba(5, 13, 18, 0.86), rgba(5, 13, 18, 0.58)),
    url("/assets/market-commerce-hero.webp?v=20260701-commerce-gemini") right center / cover no-repeat,
    var(--espresso);
}
.app-sync-band .section-inner { padding: clamp(52px, 6vw, 86px) 0; }
.app-sync-grid .value-card {
  background: rgba(11, 24, 32, 0.78);
  border-color: rgba(212, 184, 133, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Seller CTA band (customer) */
.sell-band {
  position: relative; z-index: 1; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 107, 0.12), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(212, 184, 133, 0.14), transparent 28rem),
    linear-gradient(150deg, #0B2028, var(--espresso) 62%);
}
.sell-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sell-band .section-inner {
  position: relative; z-index: 1; padding: clamp(54px, 7vw, 92px) 0;
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.sell-copy { display: grid; gap: 16px; }
.sell-copy .eyebrow { color: var(--gold-bright); }
.sell-copy h2 { color: var(--cream); font-size: clamp(30px, 4.2vw, 56px); max-width: 16ch; }
.sell-copy p { margin: 0; color: var(--cream-mut); max-width: 52ch; font-size: 17px; line-height: 1.6; }
.sell-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sell-stats { display: grid; gap: 14px; }
.sell-stat {
  display: grid; gap: 3px; padding: 18px 22px; min-width: 190px;
  border: 1px solid rgba(246, 238, 221, 0.16); border-radius: var(--radius); background: rgba(246, 238, 221, 0.06);
}
.sell-stat strong { font-family: var(--font-display); font-size: 30px; color: var(--cream); line-height: 1; }
.sell-stat span { color: var(--cream-mut); font-size: 13px; font-weight: 600; }

/* Value band (merchant "why sell") */
.value-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(212, 184, 133, 0.12);
  background: rgba(11, 24, 32, 0.64);
}
.value-band .section-inner { padding: clamp(58px, 7vw, 100px) 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value-card { display: grid; gap: 12px; align-content: start; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.value-card .vc-ic {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: var(--gold-soft); color: var(--gold); font-size: 22px; line-height: 1;
}
.value-card.is-pink .vc-ic { background: var(--pink-soft); color: var(--pink-ink); }
.value-card.is-green .vc-ic { background: var(--emerald-soft); color: var(--emerald); }
.value-card h3 { font-size: 19px; }
.value-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.56; }

/* Assisted Buy band (customer) */
.assisted-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(212, 184, 133, 0.12);
  background: rgba(11, 24, 32, 0.64);
}
.assisted-band .section-inner { padding: clamp(58px, 7vw, 100px) 0; }
.assisted-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.assisted-grid .how-step { padding: 26px 22px; }
.assisted-grid .how-step h3 { font-size: 19px; }
.assisted-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.assisted-actions { margin-top: 24px; }
.assisted-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.assisted-trust span {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.assisted-trust span::before {
  content: "✓";
  display: grid; place-items: center;
  width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: var(--pill);
  background: var(--gold-soft); color: var(--gold);
  font-size: 11px; font-weight: 900;
}

/* Onboarder network band (customer) */
.onboarder-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(212, 184, 133, 0.12);
  background: var(--card);
}
.onboarder-band .section-inner { padding: clamp(58px, 7vw, 100px) 0; }
.onboarder-grid .value-card { background: rgba(11, 24, 32, 0.64); }
.onboarder-note { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; max-width: 60ch; }

/* Market-wide announcement banner (driven by the shared control doc) */
.market-announcement {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  padding: 9px 18px; text-align: center;
  background: var(--gold); color: var(--espresso);
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  position: relative; z-index: 60;
}
.market-announcement a {
  color: var(--espresso); font-weight: 800; text-decoration: underline; text-underline-offset: 2px;
  white-space: nowrap;
}

.free-shipping-campaign {
  position: relative;
  z-index: 59;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 16px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(116, 255, 205, .24), transparent 34%),
    linear-gradient(105deg, #064936, #0b8159 52%, #064936);
  border-bottom: 1px solid rgba(143, 255, 216, .25);
  box-shadow: 0 10px 30px -20px rgba(0, 230, 150, .75);
  font-size: 12.5px;
  line-height: 1.25;
}
.free-shipping-campaign strong { font-weight: 900; letter-spacing: .09em; }
.free-shipping-campaign > span:not(:first-child):not(:last-child) { color: rgba(255,255,255,.83); }

.free-shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(137, 255, 215, .48);
  border-radius: var(--pill);
  color: #fff;
  background: linear-gradient(120deg, #159663, #075b43);
  box-shadow: 0 12px 30px -17px rgba(0, 237, 155, .95);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.product-media > .free-shipping-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
}
.free-shipping-badge.is-large {
  min-height: 30px;
  padding: 0 13px;
  font-size: 11px;
}
.free-shipping-inline { color: #77edb8 !important; font-weight: 900 !important; }
.free-shipping-panel {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(119, 237, 184, .3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 237, 184, .16), transparent 42%),
    linear-gradient(145deg, rgba(10, 84, 62, .45), rgba(8, 34, 35, .8));
  box-shadow: 0 22px 55px -38px rgba(38, 232, 154, .85);
}
.free-shipping-panel strong { color: var(--cream); font-family: var(--font-display); font-size: 19px; }
.free-shipping-panel > span:last-child { color: var(--cream-mut); line-height: 1.45; }
.checkout-free-shipping { grid-column: 1 / -1; }

/* How onboarders earn */
.onboarder-how { margin-top: clamp(30px, 4vw, 52px); }
.onboarder-how-head { max-width: 720px; margin-bottom: clamp(20px, 2.6vw, 34px); }
.onboarder-how-head h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.onboarder-how-head p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.onboarder-how-head strong { color: var(--gold); }
.onboarder-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.onboarder-steps .how-step { padding: 22px 18px; background: rgba(11, 24, 32, 0.64); }
.onboarder-steps .how-step h3 { font-size: 17px; }
.onboarder-steps .how-step::after { width: 96px; height: 96px; right: -30px; bottom: -30px; }
.onboarder-earn-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.onboarder-earn-facts span {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px;
}
.onboarder-earn-facts strong { color: var(--cream); font-weight: 700; }
.onboarder-earn-facts span::before {
  content: "₵"; display: grid; place-items: center;
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: var(--pill);
  background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 900;
}

/* Band artwork rows (Assisted Buy + Onboarder Network) */
.assisted-art-row, .onboarder-band-art-row {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 44px); align-items: center; margin-top: clamp(26px, 3.4vw, 44px);
}
.assisted-band-art, .onboarder-band-art {
  width: 100%; height: auto; display: block;
  border: 1px solid rgba(212, 184, 133, 0.22); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.assisted-art-copy h3, .onboarder-band-art-copy h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.assisted-art-copy p, .onboarder-band-art-copy p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; max-width: 48ch; }

/* Meet the network */
.onboarder-network-row { margin-top: clamp(30px, 4vw, 52px); }
.onboarder-network-title {
  margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.onboarder-network-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.onboarder-network-card {
  display: grid; justify-items: center; gap: 6px; padding: 20px 14px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(11, 24, 32, 0.64);
}
.onboarder-network-card img { width: 72px; height: 72px; border-radius: var(--pill); object-fit: cover; border: 2px solid rgba(212, 184, 133, 0.4); }
.onboarder-network-card strong { font-size: 15px; }
.onboarder-network-area { color: var(--muted); font-size: 12.5px; }
.onboarder-network-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 12.5px; font-weight: 700; }
.onboarder-online-dot { width: 8px; height: 8px; border-radius: var(--pill); background: var(--emerald, #2ecc71); display: inline-block; }

/* Onboarder dashboard */
#view-onboarder .section-head { margin-bottom: 18px; }
.onboarder-gate {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: clamp(34px, 5vw, 60px) 20px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--card);
}
.onboarder-gate img { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius-lg); }
.onboarder-gate p { margin: 0; color: var(--muted); max-width: 46ch; }
.onboarder-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 24px; border: 1px solid rgba(212, 184, 133, 0.26); border-radius: var(--radius-lg);
  background: rgba(11, 24, 32, 0.72);
}
.onboarder-identity { display: flex; align-items: center; gap: 14px; }
.onboarder-identity h3 { font-size: 21px; }
.onboarder-identity p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.onboarder-avatar {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--pill);
  background: var(--gold-soft); color: var(--gold); font-family: var(--font-display);
  font-size: 21px; font-weight: 600; flex: 0 0 56px;
}
.onboarder-stats { display: flex; gap: 22px; }
.onboarder-stat { display: grid; gap: 2px; text-align: center; }
.onboarder-stat strong { font-family: var(--font-display); font-size: 21px; color: var(--gold); }
.onboarder-stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.onboarder-availability { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.onboarder-availability.is-on { color: var(--emerald, #2ecc71); }
.onboarder-availability input { position: absolute; opacity: 0; pointer-events: none; }
.onboarder-switch {
  width: 42px; height: 24px; border-radius: var(--pill); background: rgba(246, 238, 221, 0.16);
  position: relative; transition: background 0.18s var(--ease); flex: 0 0 42px;
}
.onboarder-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: var(--pill); background: var(--cream); transition: transform 0.18s var(--ease);
}
.onboarder-availability.is-on .onboarder-switch { background: var(--emerald, #2ecc71); }
.onboarder-availability.is-on .onboarder-switch::after { transform: translateX(18px); }
.onboarder-earnings {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 16px;
  padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card);
}
.onboarder-earning { display: grid; gap: 2px; min-width: 110px; }
.onboarder-earning span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.onboarder-earning strong { font-family: var(--font-display); font-size: 23px; }
.onboarder-earnings .button { margin-left: auto; }
.onboarder-referral {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 14px 20px; border: 1px dashed rgba(212, 184, 133, 0.4);
  border-radius: var(--radius-lg); background: var(--gold-soft);
}
.onboarder-head-controls { display: grid; gap: 10px; justify-items: end; }
.onboarder-leads { display: grid; gap: 8px; }
.onboarder-lead-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.onboarder-lead-main { display: grid; gap: 2px; min-width: 0; }
.onboarder-lead-main strong { font-size: 14.5px; }
.onboarder-lead-main span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onboarder-referral div { display: grid; gap: 2px; }
.onboarder-referral strong { font-size: 14.5px; }
.onboarder-referral span { color: var(--muted); font-size: 13px; max-width: 56ch; }
.onboarder-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.onboarder-section-head h3 { font-size: 20px; }
.onboarder-grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.onboarder-card {
  display: grid; gap: 10px; align-content: start; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-sm);
}
.onboarder-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.onboarder-vertical-pill {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px;
  border-radius: var(--pill); font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--gold-soft); color: var(--gold);
}
.onboarder-vertical-pill.is-medicine { background: var(--pink-soft); color: var(--pink-ink); }
.onboarder-vertical-pill.is-general { background: var(--emerald-soft); color: var(--emerald); }
.onboarder-status-pill {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--pill); font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: capitalize;
}
.onboarder-status-pill.is-done { border-color: var(--emerald, #2ecc71); color: var(--emerald, #2ecc71); }
.onboarder-card-time { color: var(--muted); font-size: 12px; }
.onboarder-card-items { margin: 0; font-size: 14.5px; line-height: 1.5; }
.onboarder-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.onboarder-card-meta a { color: var(--gold); font-weight: 700; }
.onboarder-card-address { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.onboarder-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.onboarder-card-amount { font-family: var(--font-display); font-size: 18px; }
.onboarder-order-steps { display: flex; gap: 5px; }
.onboarder-step { flex: 1 1 0; height: 5px; border-radius: var(--pill); background: rgba(246, 238, 221, 0.14); }
.onboarder-step.is-done { background: var(--gold); }
.onboarder-delivered-note { color: var(--emerald, #2ecc71); font-size: 13px; font-weight: 700; }
.onboarder-empty {
  grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 30px 18px; border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.onboarder-empty img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius); opacity: 0.85; }
.onboarder-empty p { margin: 0; color: var(--muted); max-width: 44ch; font-size: 14px; }
.onboarder-ledger { display: grid; gap: 8px; }
.onboarder-ledger-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 13.5px;
}
.onboarder-ledger-status { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.onboarder-ledger-status.is-available { color: var(--emerald, #2ecc71); }
.onboarder-ledger-status.is-pending { color: var(--gold); }
.onboarder-quote-lines { display: grid; gap: 8px; margin: 14px 0; }
.onboarder-quote-line { display: grid; grid-template-columns: minmax(0, 2.2fr) 70px 96px auto; gap: 8px; align-items: center; }
.onboarder-quote-line input { min-height: 42px; }
.onboarder-nav-button { gap: 7px; }

/* Rating modal */
.onboarder-rating-stars { display: flex; gap: 6px; margin: 8px 0 14px; }
.onboarder-star {
  background: none; border: none; cursor: pointer; font-size: 36px; line-height: 1;
  color: rgba(246, 238, 221, 0.22); transition: color 0.14s var(--ease), transform 0.14s var(--ease);
  padding: 4px; min-width: 44px; min-height: 44px;
}
.onboarder-star.is-on { color: var(--gold); }
.onboarder-star:hover { transform: scale(1.12); }
.onboarder-rating-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.onboarder-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--pill); background: none; color: var(--muted);
  font-size: 13px; font-weight: 700; transition: all 0.15s var(--ease);
}
.onboarder-chip.is-on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

/* Shared footer */
.site-footer { position: relative; z-index: 1; background: var(--espresso); color: var(--cream-mut); border-top: 1px solid rgba(246, 238, 221, 0.08); }
.footer-inner { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; padding: clamp(54px, 7vw, 82px) 0 0; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, auto)); gap: 44px; }
.footer-brand { display: grid; gap: 17px; align-content: start; max-width: 36ch; }
.footer-brand .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--cream);
}
.footer-brand .brand img { width: 44px; height: 44px; }
.footer-tagline { margin: 0; color: var(--cream-mut); line-height: 1.62; }
.footer-social { display: flex; flex-wrap: wrap; gap: 9px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px;
  border: 1px solid rgba(246, 238, 221, 0.2); border-radius: var(--pill); color: var(--cream);
  font-size: 13px; font-weight: 700; transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.footer-social a:hover { background: var(--cream); color: var(--espresso); }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { color: var(--cream); font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col a { color: var(--cream-mut); font-size: 14.5px; transition: color 0.16s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  width: min(var(--container), calc(100% - 40px)); margin: clamp(44px, 5vw, 68px) auto 0; padding: 24px 0;
  border-top: 1px solid rgba(246, 238, 221, 0.1); display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; color: var(--cream-mut); font-size: 13px;
}
.footer-bottom strong { color: var(--cream); font-family: var(--font-display); font-weight: 600; }

/* Ghost buttons on dark surfaces */
.sell-band .ghost-button, .site-footer .ghost-button {
  border-color: rgba(212, 184, 133, 0.42); color: var(--cream);
}
.sell-band .ghost-button:hover, .site-footer .ghost-button:hover {
  background: rgba(212, 184, 133, 0.16); color: var(--cream); border-color: var(--gold);
}

.brand-store-promo-band {
  position: relative;
  overflow: hidden;
  background: #07131A;
  border-block: 1px solid rgba(212, 184, 133, 0.16);
}
.brand-store-promo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 26, 0.96) 0%, rgba(7, 19, 26, 0.82) 42%, rgba(7, 19, 26, 0.2) 100%),
    url("/assets/brand-stores/brand_store_hero.jpg") right center / cover no-repeat;
}
.brand-store-promo-band .section-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.42fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  padding: clamp(54px, 7vw, 96px) 0;
}
.brand-store-promo-copy {
  display: grid;
  gap: 18px;
  max-width: 660px;
}
.brand-store-promo-copy h2 { max-width: 12ch; }
.brand-store-promo-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
}
.brand-store-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-store-promo-list {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(212, 184, 133, 0.22);
  background: rgba(5, 13, 18, 0.72);
}
.brand-store-promo-list span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(246, 243, 236, 0.1);
  background: rgba(246, 243, 236, 0.05);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
}

.brand-store-marketing-page {
  background: #07131A;
}
.brand-store-marketing-page .topbar {
  position: sticky;
}
.brand-store-marketing-hero {
  position: relative;
  min-height: min(78svh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 184, 133, 0.16);
  isolation: isolate;
}
.brand-store-marketing-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.brand-store-marketing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 19, 26, 0.98) 0%, rgba(7, 19, 26, 0.88) 34%, rgba(7, 19, 26, 0.38) 72%, rgba(7, 19, 26, 0.72) 100%),
    linear-gradient(180deg, rgba(7, 19, 26, 0.18) 0%, rgba(7, 19, 26, 0.92) 100%);
}
.brand-store-marketing-hero__copy {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 19px;
  padding: clamp(46px, 7vw, 92px) 0;
}
.brand-store-marketing-hero__copy h1 {
  max-width: 10ch;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
}
.brand-store-marketing-hero__copy p:not(.eyebrow) {
  max-width: 45ch;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 20px);
}
.brand-store-marketing-shell {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) 0 96px;
}
.brand-store-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(54px, 8vw, 96px);
}
.brand-store-snapshot article {
  min-height: 218px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(212, 184, 133, 0.18);
  background: rgba(16, 37, 48, 0.78);
}
.brand-store-snapshot span {
  color: var(--gold);
  font-weight: 800;
}
.brand-store-snapshot h2 {
  font-size: clamp(24px, 2.5vw, 34px);
}
.brand-store-snapshot p,
.brand-store-tutorial-card p,
.brand-store-control-list span,
.brand-store-pricing-band p {
  margin: 0;
  color: var(--ink-2);
}
.brand-store-tutorial {
  display: grid;
  gap: 28px;
}
.brand-store-tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.brand-store-tutorial-card {
  overflow: hidden;
  border: 1px solid rgba(212, 184, 133, 0.16);
  background: rgba(16, 37, 48, 0.72);
}
.brand-store-tutorial-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}
.brand-store-tutorial-card div {
  display: grid;
  gap: 9px;
  padding: 20px;
}
.brand-store-tutorial-card h3 {
  font-size: 24px;
}
.brand-store-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(58px, 8vw, 96px);
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(212, 184, 133, 0.18);
  background: rgba(5, 13, 18, 0.58);
}
.brand-store-control-list {
  display: grid;
  gap: 10px;
}
.brand-store-control-list span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(246, 243, 236, 0.1);
  background: rgba(246, 243, 236, 0.05);
  font-weight: 800;
}
.brand-store-pricing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 0, 107, 0.24);
  background: rgba(255, 0, 107, 0.08);
}
.brand-store-pricing-band div {
  max-width: 720px;
}
.brand-store-pricing-band h2 {
  margin-bottom: 10px;
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .product-grid, .stage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .merchant-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .instagram-import-grid { grid-template-columns: 1fr; }
  .instagram-import-card { grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1fr); }
  .vertical-card-grid, .rent-card-grid, .rent-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vertical-stat-grid, .rent-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assisted-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assisted-art-row, .onboarder-band-art-row { grid-template-columns: 1fr; }
  .onboarder-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarder-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarder-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { min-height: 320px; order: 2; }
  .hero-pills { max-width: 66%; }
  .vertical-quick-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vertical-quick-strip .button,
  .vertical-quick-strip .ghost-button { grid-column: 1 / -1; width: 100%; }
  .market-vertical-layout, .rent-layout { grid-template-columns: 1fr; }
  .merchant-dashboard-head, .merchant-dashboard-grid { grid-template-columns: 1fr; }
  .featured-video-band .section-inner { grid-template-columns: 1fr; }
  .featured-video-frame { justify-self: start; width: min(100%, 360px); }
  .app-download-inner { grid-template-columns: 1fr; }
  .app-device-preview { justify-content: flex-start; }
  .sell-band .section-inner { grid-template-columns: 1fr; }
  .brand-store-promo-band .section-inner,
  .brand-store-control-panel { grid-template-columns: 1fr; }
  .sell-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  /* Multi-row header gets tall on mobile; un-stick it so it scrolls away instead of occluding a quarter of the viewport. */
  .topbar { position: static; grid-template-columns: 1fr auto auto; row-gap: 12px; }
  .brand { grid-row: 1; grid-column: 1; min-height: 44px; }
  .header-sell-cta { grid-row: 1; grid-column: 2; }
  .account-slot { grid-row: 1; grid-column: 3; min-width: 0; }
  .topnav, .merchant-site-nav { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .topnav .nav-tab { flex: 0 0 auto; min-height: 44px; }
  /* Topbar reflows taller on mobile, so drop sticky offset math entirely. */
  .store-toolbar { position: static; top: auto; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 4px 0 8px; }
  .store-toolbar, .store-controls, .auth-layout, .seller-layout, .merchant-route-hero,
  .merchant-action-grid, .featured-showcase, .product-detail, .how-grid,
  .instagram-import-card, .preference-panel, .experience-feature-grid,
  .market-vertical-layout, .rent-tool-grid, .detail-actions.rental-actions,
  .assisted-buy-entry, .assisted-choice, .order-return-page {
    grid-template-columns: 1fr;
  }
  .bulk-help-panel { position: static; top: auto; }
  .bulk-stepper, .bulk-advanced-grid, .quick-listing-steps, .quick-field-grid { grid-template-columns: 1fr; }
  .bulk-step-head { display: grid; }
  .bulk-preview-row { grid-template-columns: 1fr; align-items: start; }
  .assisted-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assisted-buy-actions {
    justify-content: flex-start;
    max-width: none;
  }
  .assisted-buy-actions small {
    text-align: left;
  }
  .preference-actions { justify-content: flex-start; }
  .interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-brief { grid-template-columns: 1fr; }
  .merchant-route-visual { order: -1; min-height: 220px; }
  .merchant-route-visual::before { background: linear-gradient(180deg, rgba(22, 15, 8, 0.1), rgba(22, 15, 8, 0.55)); }
  .merchant-route-visual img { min-height: 220px; max-height: 320px; }
  .featured-card-lead, .featured-overlay { min-height: 300px; }
  .section-head { align-items: start; flex-direction: column; }
  .category-row, .filter-group { justify-content: flex-start; }
  .category-browser { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .category-row-full .category-browser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-store-snapshot,
  .brand-store-tutorial-grid { grid-template-columns: 1fr; }
  .detail-media, .detail-media-stage { min-height: 0; }
  .detail-media { position: static; align-self: stretch; }
  .detail-media-stage { aspect-ratio: 1 / 1; }
  .detail-media-image, .detail-media-image img { min-height: 0; height: 100%; }
  .detail-media-video { max-height: 72vh; }
}

@media (max-width: 760px) {
  .product-grid, .stage-grid, .vertical-card-grid, .rent-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .field-grid, .provider-row, .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 26px, var(--container)); padding-top: 26px; }
  .hero-inner, .section-inner { width: calc(100% - 26px); }
  .order-return-page { padding: 0; }
  .order-return-card,
  .order-return-help { padding: 18px; }
  .order-return-status-grid { grid-template-columns: 1fr; }
  .market-hero::before {
    background:
      linear-gradient(90deg, rgba(7, 19, 26, 0.98) 0%, rgba(7, 19, 26, 0.91) 44%, rgba(7, 19, 26, 0.7) 100%),
      linear-gradient(180deg, rgba(7, 19, 26, 0.32) 0%, rgba(6, 17, 23, 0.96) 100%),
      url("/assets/market-hero-bg.jpg?v=visual-refresh-20260603") 58% center / cover no-repeat;
  }
  body.market-landing .market-search-hero::before {
    background:
      linear-gradient(90deg, rgba(7, 19, 26, 0.98) 0%, rgba(7, 19, 26, 0.92) 46%, rgba(7, 19, 26, 0.72) 100%),
      linear-gradient(180deg, rgba(7, 19, 26, 0.24) 0%, rgba(6, 17, 23, 0.95) 100%),
      url("/assets/market-commerce-hero.webp?v=20260701-commerce-gemini") 58% center / cover no-repeat;
  }
  body.market-landing .market-search-hero .hero-inner {
    min-height: 210px;
    padding: 22px 0 20px;
  }
  body.market-landing .hero-title {
    max-width: 16ch;
  }
  body.market-landing .hero-search-form {
    border-radius: 22px;
    padding: 7px;
  }
  body.market-landing .hero-search-row input,
  body.market-landing .hero-search-button {
    min-height: 52px;
  }
  body.market-landing .app-sync-band {
    background:
      linear-gradient(180deg, rgba(5, 13, 18, 0.9), rgba(5, 13, 18, 0.78)),
      url("/assets/market-commerce-hero.webp?v=20260701-commerce-gemini") center / cover no-repeat,
      var(--espresso);
  }
  .commerce-assurance-inner {
    width: calc(100% - 26px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .commerce-assurance-inner span {
    min-height: 86px;
    padding: 13px 14px;
  }
  .hero-art { min-height: 360px; border-radius: 22px; }
  .hero-art-img { object-position: right center; }
  .hero-art::before {
    background:
      linear-gradient(90deg, #07131A 0%, rgba(7, 19, 26, 0.96) 13%, rgba(7, 19, 26, 0.36) 38%, transparent 72%),
      linear-gradient(180deg, rgba(7, 19, 26, 0.08), rgba(7, 19, 26, 0.78));
  }
  .hero-phone-card {
    top: 16px;
    right: 16px;
    bottom: auto;
    width: 112px;
    min-width: 112px;
    border-radius: 18px;
  }
  .hero-pills {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .hero-pills span { min-height: 34px; font-size: 12px; }
  .hero-cta-row .button, .hero-cta-row .ghost-button { width: 100%; }
  .hero-search-row { grid-template-columns: 1fr; }
  .hero-search-button { width: 100%; }
  .hero-quick-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .hero-quick-links a { flex: 0 0 auto; }
  body.market-landing .hero-trust {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  body.market-landing .hero-trust span { flex: 0 0 auto; }
  .brand-store-marketing-hero { min-height: 74svh; }
  .brand-store-marketing-shell,
  .brand-store-marketing-hero__copy,
  .brand-store-promo-band .section-inner { width: calc(100% - 26px); }
  .brand-store-promo-actions .button,
  .brand-store-promo-actions .ghost-button,
  .brand-store-pricing-band .button { width: 100%; }
  .brand-store-pricing-band { align-items: stretch; flex-direction: column; }
  .account-actions { max-width: 100%; }
  .account-pill { max-width: 160px; }
  .featured-showcase { min-height: 0; }
  .featured-overlay { align-content: end; padding: 22px 18px 74px; }
  .featured-card-lead > .featured-add { right: 18px; bottom: 18px; left: 18px; width: auto; }
  .merchant-hero-metrics { grid-template-columns: 1fr; }
  .detail-body, .cart-view, .express-sheet { padding: 22px; }
  .detail-actions, .detail-actions.commerce-actions, .detail-price-row, .checkout-summary { grid-template-columns: 1fr; }
  .vertical-stat-grid, .rent-flow-grid, .rent-kpi-grid { grid-template-columns: 1fr; }
  .vertical-card-actions, .rent-card-actions { grid-template-columns: 1fr; }
  .checkout-line { align-items: stretch; flex-direction: column; }
  .checkout-line-qty, .checkout-line-qty input { width: 100%; }
  .cart-title-row, .cart-group-head, .cart-group-actions, .cart-summary-bar { align-items: stretch; flex-direction: column; }
  .cart-row { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-qty, .cart-row > strong, .cart-row .ghost-button { grid-column: 1 / -1; width: 100%; }
  .merchant-row, .merchant-stat-grid { grid-template-columns: 1fr; }
  .instagram-import-form .field-grid { grid-template-columns: 1fr; }
  .instagram-import-media,
  .instagram-import-media img,
  .import-placeholder { min-height: 210px; }
  .merchant-row-actions { justify-content: stretch; }
  .merchant-row-actions .small-button { flex: 1 1 120px; }
  .merchant-order-actions { justify-content: stretch; }
  .merchant-order-actions > * { width: 100%; }
  .value-grid, .sell-stats, .assisted-grid, .onboarder-grid-cards, .onboarder-steps { grid-template-columns: 1fr; }
  .app-download-copy h2 { max-width: 12ch; }
  .app-download-actions .button,
  .app-download-actions .ghost-button { width: 100%; }
  .app-device-shell { width: min(100%, 240px); border-radius: 28px; }
  .onboarder-head { flex-direction: column; align-items: flex-start; }
  .onboarder-earnings .button { margin-left: 0; width: 100%; }
  .onboarder-quote-line { grid-template-columns: minmax(0, 1.6fr) 58px 84px auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .topbar { width: 100%; max-width: 100vw; min-height: 62px; gap: 10px; padding: 10px 14px; overflow: hidden; grid-template-columns: 1fr auto; }
  .account-slot { grid-row: 1; grid-column: 2; }
  .header-sell-cta { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; padding: 0 14px; min-height: 44px; font-size: 14px; gap: 7px; }
  .topnav, .merchant-site-nav { grid-row: 3; }
  .brand { gap: 8px; font-size: 19px; }
  .topbar > .brand { gap: 4px; min-width: 72px; }
  .topbar > .brand span { font-size: 12px; }
  .brand span { white-space: nowrap; }
  .brand img { width: 32px; height: 32px; }
  .topbar > .brand img { width: 32px; height: 32px; }
  .account-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; width: 100%; }
  .cart-button, .account-actions > .button, .account-pill { min-height: 40px; width: 100%; }
  .account-pill { max-width: none; padding-left: 11px; }
  body.merchant-portal .account-slot { min-width: 86px; }
  body.merchant-portal .account-actions { grid-template-columns: 1fr; width: auto; min-width: 86px; }
  body.merchant-portal .account-actions > .button { padding: 0 16px; white-space: nowrap; }
  .shell, body.merchant-portal .shell { width: calc(100% - 22px); padding-top: 20px; padding-bottom: 60px; }
  body.market-landing .hero-trust {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
  body.market-landing .hero-trust span {
    flex: 1 1 160px;
  }
  .commerce-assurance-inner {
    width: calc(100% - 22px);
    grid-template-columns: 1fr;
  }
  .commerce-assurance-inner span {
    min-height: 68px;
  }
  /* Sort was disappearing along with the (correctly, separately hidden)
     duplicate search box, because this used to hide the WHOLE toolbar —
     kept as a single-column, full-width layout so Sort stays reachable. */
  body:not(.merchant-portal) .store-toolbar { grid-template-columns: 1fr; top: auto; position: static; padding: 4px 0 10px; }
  .category-row { overflow: hidden; }
  .category-browser { display: flex; gap: 9px; width: 100%; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .category-tile { flex: 0 0 156px; scroll-snap-align: start; }
  .vertical-quick-strip { grid-template-columns: 1fr; }
  .vertical-quick-strip .button,
  .vertical-quick-strip .ghost-button { grid-column: auto; }
  .filter-group { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
  .filter-group .chip { flex: 0 0 auto; }
  .experience-filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
  .experience-chip { flex: 0 0 auto; }
  .fulfilment-group { padding-left: 0; border-left: 0; }
  .product-card:hover, .product-card:focus-within { transform: none; }
  .product-body { gap: 7px; padding: 12px; }
  .product-title { min-height: 40px; font-size: 15px; }
  .price { font-size: 16px; }
  /* Both actions kept reachable on phones (a ghost-button display:none rule
     used to hide "Add to cart"/rental "Details", leaving only Buy now /
     Request viewing) — 2-col grid keeps the compact card height. */
  .product-actions { grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 12px 12px; }
  .product-actions .button, .product-actions .ghost-button { font-size: 12.5px; padding-left: 8px; padding-right: 8px; }
  .stage-grid, .vertical-card-grid, .rent-card-grid { grid-template-columns: 1fr; }
  .modal-backdrop { align-items: end; padding: 10px 0 0; }
  .modal { width: 100%; max-height: calc(100svh - 10px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .interest-onboarding { padding: 28px 18px 24px; }
  .interest-grid { grid-template-columns: 1fr; }
  .interest-card { min-height: 112px; }
  .interest-actions .button,
  .interest-actions .ghost-button,
  .preference-actions .button,
  .preference-actions .ghost-button { width: 100%; }
  .merchant-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }
  .merchant-tabs .chip {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    white-space: normal;
    line-height: 1.12;
  }
  .merchant-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merchant-site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: center;
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    overflow: visible;
    border-radius: 26px;
  }
  .merchant-site-nav a {
    flex: initial;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    white-space: normal;
    line-height: 1.15;
  }
  .how-step, .value-card { padding: 24px 22px; }
}

@media (max-width: 400px) {
  .brand span { max-width: 120px; }
  .account-pill span { display: none; }
  .product-grid, .merchant-action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .account-actions {
    width: 160px;
    grid-template-columns: 52px minmax(0, 1fr);
  }
  body.merchant-portal .account-actions { width: 132px; }
  .account-actions > .button,
  .account-pill { grid-column: 1 / -1; }
  .cart-button {
    min-height: 44px;
    gap: 6px;
    padding: 0 8px;
  }
  .cart-button strong {
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
  }
}

/* Anchor offsets so smooth-scroll targets clear the sticky topbar */
#shop { scroll-margin-top: 92px; }
.market-section { scroll-margin-top: 80px; }

/* ── Seller Centre as a focused page ──────────────────────────────────────
   The /sell view should feel like a dedicated Seller Centre, not the seller
   form embedded in the shop. Hide the shop search hero, the "Shop" toolbar,
   the shop brief and every marketing band; keep the topnav for navigation. */
body.seller-page .market-hero,
body.seller-page .store-toolbar,
body.seller-page .shop-brief,
body.seller-page .cat-marquee,
body.seller-page .market-section { display: none !important; }
body.seller-page .shell { padding-top: 22px; }
body.seller-page #view-merchant .section-head { margin-bottom: 6px; }
body.seller-page #view-merchant .section-head h2 { font-size: clamp(26px, 3.4vw, 40px); }

/* ── Public Brand Store foundation ─────────────────────────────────────── */
body.brand-store-page {
  color: #181512;
  background:
    linear-gradient(180deg, #F7F1E6 0%, #EFE3D3 46%, #111820 46%, #111820 100%);
}
body.brand-store-page .market-hero,
body.brand-store-page .cat-marquee,
body.brand-store-page .how-band,
body.brand-store-page .sell-band,
body.brand-store-page .value-band { display: none !important; }
body.brand-store-page .topnav { display: none; }
body.brand-store-page .shell {
  width: min(1360px, calc(100% - 40px));
  padding-top: 24px;
}
body.brand-store-page .store-toolbar {
  margin-bottom: 18px;
  border-color: rgba(17, 24, 32, 0.12);
  background: rgba(247, 241, 230, 0.86);
}
body.brand-store-page .store-toolbar h1,
body.brand-store-page .store-toolbar h2,
body.brand-store-page .store-toolbar .eyebrow { color: #181512; }
body.brand-store-page .searchbox {
  border-color: rgba(17, 24, 32, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: #181512;
}
.brand-store-view { display: none; }
.brand-store-view.is-active { display: block; }
.brand-store-shell { display: grid; gap: 30px; }
.brand-store-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  color: #181512;
}
.brand-back-link {
  color: #5C5247;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.brand-store-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}
.brand-store-mark img,
.brand-store-mark span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #111820;
  color: #F7F1E6;
  display: grid;
  place-items: center;
}
.brand-store-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.brand-store-nav {
  position: sticky;
  top: 70px;
  z-index: 9;
  display: flex;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  background: rgba(247, 241, 230, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand-store-nav button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(17, 24, 32, 0.15);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.55);
  color: #181512;
  font-size: 13px;
  font-weight: 800;
}
.brand-store-nav button.is-active {
  background: #111820;
  color: #F7F1E6;
}
.brand-store-nav button:disabled { opacity: 0.38; cursor: not-allowed; }
.brand-store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: min(72vh, 760px);
  background: #111820;
  color: #F7F1E6;
  overflow: hidden;
}
.brand-hero-image { min-height: 520px; }
.brand-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-hero-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(30px, 5vw, 70px);
}
.brand-hero-copy h1 {
  color: #F7F1E6;
  font-size: clamp(48px, 7vw, 96px);
  max-width: 8ch;
}
.brand-hero-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 38ch;
  color: rgba(247, 241, 230, 0.78);
  font-size: 18px;
}
.brand-store-actions,
.brand-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-store-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(17, 24, 32, 0.14);
}
.brand-store-feature-strip span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #F7F1E6;
  color: #3E352B;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.brand-store-section,
.brand-store-info {
  color: #F7F1E6;
}
.brand-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.brand-section-head h2 { color: #F7F1E6; }
.brand-section-head > span { color: rgba(247, 241, 230, 0.62); font-weight: 700; }
.brand-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.brand-product-card {
  position: relative;
  min-width: 0;
  background: #F7F1E6;
  color: #181512;
}
.brand-product-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.brand-product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #D8C8B4;
}
.brand-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.brand-product-card:hover .brand-product-media img { transform: scale(1.035); }
.brand-product-media span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--pill);
  background: rgba(17, 24, 32, 0.82);
  color: #F7F1E6;
  font-size: 11px;
  font-weight: 800;
}
.brand-product-body {
  display: grid;
  gap: 6px;
  padding: 16px;
}
.brand-product-body small {
  color: #746657;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand-product-body strong {
  min-height: 44px;
  font-size: 18px;
  line-height: 1.18;
}
.brand-product-body b { font-size: 17px; }
.brand-product-actions {
  padding: 0 16px 16px;
}
.brand-store-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(247, 241, 230, 0.18);
}
.brand-store-info article,
.brand-store-empty,
.brand-store-loading {
  padding: clamp(24px, 4vw, 44px);
  background: #111820;
}
.brand-store-info h3,
.brand-store-empty h1,
.brand-store-empty h3 { color: #F7F1E6; }
.brand-store-info p:not(.eyebrow),
.brand-store-empty .muted { color: rgba(247, 241, 230, 0.68); }
.brand-store-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 280px;
  color: #F7F1E6;
}

@media (max-width: 960px) {
  .brand-store-top,
  .brand-store-hero,
  .brand-store-info { grid-template-columns: 1fr; }
  .brand-store-mark { justify-content: flex-start; }
  .brand-store-quick { justify-content: flex-start; }
  .brand-store-feature-strip { grid-template-columns: 1fr; }
  .brand-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-store-nav { top: 0; }
}

@media (max-width: 560px) {
  body.brand-store-page .shell { width: calc(100% - 22px); }
  .brand-hero-image { min-height: 360px; }
  .brand-hero-copy { padding: 24px; }
  .brand-product-grid { grid-template-columns: 1fr; }
  .brand-section-head { align-items: flex-start; flex-direction: column; }
}

/* ── Focused pages ────────────────────────────────────────────────────────
   Dedicated routes (/onboarder, /rate/:id, assisted-buy quote review) show
   ONLY their own content under the minimal topbar: no hero, no search, no
   marketing bands, no footer columns. html.focused-page-html is set by an
   inline head script before first paint; body.focused-page is kept in sync
   by renderAll() so SPA navigation in or out behaves. */
html.focused-page-html .market-hero,
html.focused-page-html .topnav,
html.focused-page-html .merchant-site-nav,
html.focused-page-html .store-toolbar,
html.focused-page-html .commerce-assurance-band,
html.focused-page-html .shop-brief,
html.focused-page-html .assisted-buy-entry,
html.focused-page-html .how-band,
html.focused-page-html .assisted-band,
html.focused-page-html .onboarder-band,
html.focused-page-html .sell-band,
html.focused-page-html .brand-store-promo-band,
html.focused-page-html .value-band,
html.focused-page-html .app-ecosystem,
html.focused-page-html .site-footer .footer-inner,
body.focused-page .market-hero,
body.focused-page .topnav,
body.focused-page .merchant-site-nav,
body.focused-page .store-toolbar,
body.focused-page .commerce-assurance-band,
body.focused-page .shop-brief,
body.focused-page .assisted-buy-entry,
body.focused-page .how-band,
body.focused-page .assisted-band,
body.focused-page .onboarder-band,
body.focused-page .sell-band,
body.focused-page .brand-store-promo-band,
body.focused-page .value-band,
body.focused-page .app-ecosystem,
body.focused-page .site-footer .footer-inner { display: none !important; }
body.focused-page .shell { min-height: 62vh; padding-top: clamp(20px, 3.4vw, 40px); }
html.focused-page-html .account-slot .cart-button:not(.onboarder-nav-button),
html.focused-page-html .account-slot .saved-button,
body.focused-page .account-slot .cart-button:not(.onboarder-nav-button),
body.focused-page .account-slot .saved-button { display: none !important; }
body[data-market-view="account"] .account-slot .account-pill { display: none !important; }
body.rating-page .view-panel { display: none !important; }
body.rating-page #view-rate { display: block !important; }
.onboarder-rate-page { max-width: 560px; margin: 0 auto; }
body.confirm-delivery-page .view-panel { display: none !important; }
body.confirm-delivery-page #view-confirm-delivery { display: block !important; }
.confirm-delivery-page-inner { max-width: 560px; margin: 0 auto; }
body.delivery-quote-page .view-panel { display: none !important; }
body.delivery-quote-page #view-delivery-quote { display: block !important; }
.delivery-quote-page-inner { max-width: 560px; margin: 0 auto; }
body.vendor-order-page .view-panel { display: none !important; }
body.vendor-order-page #view-vendor-order { display: block !important; }
.vendor-order-page-inner { max-width: 600px; margin: 0 auto; }
.confirm-delivery-card { max-width: 420px; width: 100%; margin: 40px auto; background: var(--surface, #102530); border-radius: 18px; padding: 24px; }
.confirm-delivery-card ul { margin: 12px 0; padding-left: 20px; }
.confirm-delivery-report textarea { width: 100%; min-height: 80px; margin: 12px 0; }
.vendor-order-card { max-width: 520px; }
.vendor-token-form { display: grid; gap: 12px; margin-top: 18px; }
.vendor-token-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.vendor-token-form input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--cream); padding: 12px; }
.vendor-time-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.vendor-time-form input { border: 1px solid var(--line); border-radius: 10px; background: var(--ink); color: var(--cream); padding: 9px; }

/* ── Audience gating ──────────────────────────────────────────────────────
   The merchant domain serves index.html at root (static wins over rewrite);
   app.js sets body.merchant-portal by hostname. Hide customer marketing there,
   and surface the seller value band only in merchant mode. */
.value-band { display: none; }
body.merchant-portal .market-hero,
body.merchant-portal .cat-marquee,
body.merchant-portal .how-band,
body.merchant-portal .app-download-band,
body.merchant-portal .assisted-band,
body.merchant-portal .onboarder-band,
body.merchant-portal .sell-band { display: none !important; }
body.merchant-portal .value-band { display: block; }

/* ── Page model: marketing bands are home-landing content only ───────────────
   G+ Market spans Shop / Food / Groceries / Meds / Rent / Spotlight / Sell /
   Onboarder. The how-it-works, assisted-buy, onboarder, sell and brand-store
   marketing bands are the HOME landing pitch. Without this they trail every
   section and the whole site reads as one endless page. app.js sets
   body.market-landing on the home shop view (all categories) only; every other
   view is a focused page that shows just its own content. The :not([hidden])
   guards keep the site_config feature flags (applyMarketControl) authoritative. */
.how-band,
.app-download-band,
.app-sync-band,
.featured-video-band,
.assisted-band,
.onboarder-band,
.sell-band,
.brand-store-promo-band { display: none; }
body.market-landing .how-band,
body.market-landing .app-download-band,
body.market-landing .app-sync-band,
body.market-landing .sell-band,
body.market-landing .brand-store-promo-band { display: block; }
body.market-landing .featured-video-band:not([hidden]) { display: block; }
body.market-landing .assisted-band:not([hidden]) { display: block; }
body.market-landing .onboarder-band:not([hidden]) { display: block; }

/* ── Page transitions (Amazon-style) ─────────────────────────────────────────
   Each navigation eases in at the top of a fresh page instead of snapping. Two
   layers, both keyed to the same cross-fade keyframes:
   • client-side view swaps (nav tabs, Sell, categories, back/forward) call
     document.startViewTransition() in app.js — see runPageTransition();
   • full-document navigations (hero quick links, footer, Brand Stores, direct
     entry) opt in via @view-transition below — no JS needed.
   .gm-page-enter is the fallback for browsers without the View Transitions API.
   All of it is gated on prefers-reduced-motion. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: gm-page-out 170ms ease both; }
  ::view-transition-new(root) { animation: gm-page-in 320ms cubic-bezier(0.22, 0.72, 0.2, 1) both; }
  .gm-page-enter { animation: gm-page-in 320ms cubic-bezier(0.22, 0.72, 0.2, 1) both; }
}
@keyframes gm-page-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes gm-page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

/* FAQ band — homepage only (matches how-band/sell-band visibility pattern) */
.faq-band { display: none; }
body.market-landing .faq-band { display: block; }
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 28px auto 0;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(246, 243, 236, 0.03);
  padding: 0 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(212, 184, 133, 0.4);
  background: rgba(212, 184, 133, 0.06);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
  color: var(--ink);
  padding: 18px 32px 18px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}
.faq-item > p {
  margin: 0 0 18px;
  color: var(--cream-mut);
  font-size: clamp(15px, 1.8vw, 16.5px);
  line-height: 1.6;
  max-width: 70ch;
}

/* QA 2026-06-23 — de-duplicate the catalog search. The hero search is the single
   search (and the ONLY one on mobile, where .store-toolbar is hidden <=560px); on
   desktop the store toolbar keeps just its Sort control, dropping the duplicate
   search box. */
body:not(.merchant-portal) .store-toolbar .searchbox:not(.sortbox) { display: none !important; }

/* ── Seller ops 2026-07-03: "How selling works" guide + reviews + Q&A ──── */

/* Full-screen seller onboarding walkthrough */
body.sg-lock { overflow: hidden; }
.sg-overlay {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px;
  background: rgba(7, 19, 26, 0.9); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.sg-card {
  position: relative; width: min(460px, 100%); max-height: min(92svh, 720px); overflow: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #07131a;
  box-shadow: var(--shadow-lg);
}
.sg-close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--pill);
  background: rgba(7, 19, 26, 0.72); color: var(--ink); font-size: 19px; cursor: pointer;
}
.sg-close:hover { background: var(--gold); color: var(--paper); }
.sg-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.sg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 19, 26, 0.08) 38%, rgba(7, 19, 26, 0.62) 78%, #07131a 100%);
}
.sg-step-label {
  position: absolute; left: 16px; bottom: 12px; z-index: 2; padding: 4px 11px;
  border: 1px solid rgba(212, 184, 133, 0.55); border-radius: var(--pill);
  background: rgba(7, 19, 26, 0.72); color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sg-body { display: grid; gap: 10px; padding: 18px 20px 22px; }
.sg-body h3 { color: var(--ink); margin: 0; }
.sg-body p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.sg-dots { display: flex; gap: 7px; justify-content: center; padding: 2px 0; }
.sg-dot { width: 7px; height: 7px; border-radius: var(--pill); background: rgba(212, 184, 133, 0.28); transition: background .15s, transform .15s; }
.sg-dot.is-active { background: var(--gold); transform: scale(1.25); }
.sg-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Compact 6-card "How selling works" strip (merchant dashboard) */
.sg-strip-card .section-mini-head { align-items: start; }
.sg-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sg-strip-item {
  display: grid; gap: 6px; align-content: start; padding: 13px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02);
  transition: border-color .15s, background .15s;
}
.sg-strip-item:hover { border-color: var(--gold); background: rgba(212, 184, 133, 0.07); }
.sg-strip-num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--pill);
  background: var(--gold-soft); color: var(--gold); font-family: var(--font-display); font-size: 13px;
}
.sg-strip-item strong { color: var(--ink); font-size: 14px; }
.sg-strip-copy {
  color: var(--muted); font-size: 12.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Product reviews (modal) */
.product-reviews, .product-qna { display: grid; gap: 11px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-reviews h3, .product-qna h3 { margin: 0; }
.review-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.review-average { display: grid; gap: 3px; justify-items: center; }
.review-average strong { font-size: 28px; color: var(--ink); font-family: var(--font-display); line-height: 1; }
.review-average .rating-stars { color: var(--gold); letter-spacing: 1px; }
.review-bars { display: grid; gap: 4px; }
.review-bar-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 26px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.review-bar { height: 7px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.review-bar i { display: block; height: 100%; border-radius: var(--pill); background: var(--gold); }
.review-list { display: grid; gap: 10px; }
.review-row { display: grid; gap: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.review-row-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.review-row-head strong { color: var(--ink); font-size: 14px; }
.review-row-head .rating-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.review-row p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.review-seller-reply { display: grid; gap: 4px; padding: 9px 12px; border-left: 2px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(212, 184, 133, 0.07); }
.review-seller-reply strong { color: var(--gold); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.review-row-actions { display: flex; gap: 12px; align-items: center; }
.review-row-actions .link-button { font-size: 12.5px; }
.review-list-actions { flex-wrap: wrap; }
.review-write-form { gap: 10px; }
.review-write-form h4 { margin: 0; color: var(--ink); }
.review-star-picker { display: flex; gap: 4px; }
.star-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; font-size: 22px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--muted);
  transition: color .12s, border-color .12s;
}
.star-btn:hover, .star-btn.is-on { color: var(--gold); border-color: var(--gold); }

/* Product Q&A (modal) + seller inbox panels */
.qna-list { display: grid; gap: 9px; }
.qna-row { display: grid; gap: 5px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.qna-q { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.qna-a { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.qna-a strong { color: var(--gold); }
.qna-pending { font-size: 12.5px; }
.qna-row-actions { display: flex; gap: 12px; align-items: center; }
.qna-row-actions .link-button { font-size: 12.5px; }
.qna-ask-form { gap: 8px; }
.qna-ask-form textarea, .qna-answer-form textarea { min-height: 56px; }
.seller-inbox-panel { margin-top: 16px; }
.qna-inbox-group { display: grid; gap: 9px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.qna-inbox-group > strong { color: var(--gold); }
.qna-answer-form { display: grid; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.02); }
.seller-review-row { background: rgba(255, 255, 255, 0.02); }

@media (max-width: 560px) {
  .review-summary { grid-template-columns: 1fr; justify-items: start; }
  .review-average { justify-items: start; }
  .sg-strip { grid-template-columns: 1fr; }
  .field-checks { grid-template-columns: 1fr; }
}

/* ── Market chat (buyer ↔ seller thread + Seller Centre inbox) ─────────── */
/* The thread renders INLINE inside .messages-thread-pane (see the two-pane
   Messages screen rules above) — it is never a floating/fixed overlay. */
.chat-panel-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  background: var(--paper-2);
  overflow: hidden;
}
.chat-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.chat-panel-head-info { min-width: 0; flex: 1 1 auto; }
.chat-panel-head strong { display: block; color: var(--ink); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel-head small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel-head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.chat-panel-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  overflow-y: auto;
  min-height: 180px;
}
.chat-empty { font-size: 13px; line-height: 1.5; }
.chat-msg {
  max-width: 82%;
  align-self: flex-start;
  display: grid;
  gap: 3px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 5px;
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat-msg.is-mine {
  align-self: flex-end;
  border: none;
  border-radius: 14px 14px 5px 14px;
  background: var(--gold);
  color: #221a0c;
}
.chat-msg small { font-size: 10px; color: var(--muted); }
.chat-msg.is-mine small { color: rgba(34, 26, 12, 0.65); }
.chat-panel-composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.chat-panel-composer input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
}
.chat-panel-composer input:focus { outline: none; border-color: var(--gold); }
.chat-panel-note { display: block; padding: 0 14px 10px; font-size: 11px; background: var(--card); }
.chat-seller-button { justify-self: start; }
.chat-inbox-list { margin-top: 12px; }
.chat-inbox-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
}
.chat-inbox-row.has-unread { border-color: var(--gold); }
.chat-inbox-row.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.chat-inbox-side { display: grid; gap: 5px; justify-items: end; flex: 0 0 auto; }
.chat-unread-pill { background: var(--pink-soft); color: var(--pink-ink); }
.next-action-chip { background: var(--gold-soft); color: var(--gold-bright); border: 1px solid var(--gold); font-weight: 700; }

/* G+ app ecosystem — real app previews near the page footer. */
.app-ecosystem {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #07131a 0%, #0b1c25 55%, #07131a 100%);
  color: #fff;
}
.eco-head {
  position: relative;
  max-width: 820px;
  margin: 0 auto 44px;
  padding: 0 22px;
  text-align: center;
}
.eco-kicker { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.eco-title { margin: 12px 0 14px; color: #fff; font-size: clamp(38px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.055em; }
.eco-sub { max-width: 680px; margin: 0 auto; color: #afbdc2; font-size: clamp(16px, 2vw, 20px); line-height: 1.6; }
.eco-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1440px;
  margin: auto;
  padding: 0 24px;
}
.eco-card {
  --accent: var(--gold);
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 28px;
  background: #102530;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.eco-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.eco-card > img { display: block; width: 100%; height: 245px; object-fit: cover; object-position: top; filter: saturate(1.04); }
.eco-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 150px 0 auto;
  height: 130px;
  background: linear-gradient(transparent, #102530);
  pointer-events: none;
}
.eco-body { position: relative; z-index: 1; padding: 22px; }
.eco-role { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.eco-body h3 { margin: 8px 0; color: #fff; font-size: 25px; line-height: 1.05; letter-spacing: -0.03em; }
.eco-body p { min-height: 66px; margin: 0 0 18px; color: #afbdc2; font-size: 14px; line-height: 1.55; }
.eco-platforms { display: grid; gap: 9px; }
.eco-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.eco-btn:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.eco-ios { border-color: var(--gold); color: #171106 !important; background: var(--gold); }
.eco-ios:hover { background: var(--gold-bright); }
.eco-pending { color: #afbdc2 !important; cursor: default; }
.eco-market { --accent: #d4b885; }
.eco-driver { --accent: #9c63ff; }
.eco-onboarder { --accent: #d84b70; }
.eco-merchant { --accent: #ff5b9d; }
.eco-market-food { grid-column: span 2; }
.eco-dual-media { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 245px; gap: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.eco-dual-media figure { position: relative; min-width: 0; height: 245px; margin: 0; overflow: hidden; background: #07131a; }
.eco-dual-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(1.04); }
.eco-dual-media figcaption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pill);
  background: rgba(7, 19, 26, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eco-merged-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  min-width: max-content;
  padding: 7px 11px;
  border-radius: var(--pill);
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
@media (max-width: 1180px) {
  .eco-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eco-card { min-height: 480px; }
  .eco-market-food { grid-column: span 2; }
}
@media (max-width: 760px) {
  .checkout-stepper { gap: 5px; padding: 10px 8px; }
  .checkout-stepper span { gap: 4px; font-size: 9px; }
  .checkout-stepper b { width: 21px; height: 21px; font-size: 10px; }
  .eco-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 18px; }
  .eco-card { min-width: min(82vw, 340px); scroll-snap-align: center; }
  .eco-market-food { min-width: min(92vw, 540px); }
  .eco-head { margin-bottom: 30px; text-align: left; }
  .eco-title { font-size: 44px; }
}

/* Import from Website (URL-to-catalog) — Seller Centre. */
.pill.mini { padding: 2px 8px; font-size: 10.5px; letter-spacing: .04em; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; color: var(--ink); font-size: 14px; line-height: 1.4; cursor: pointer; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 1px; accent-color: var(--gold); }
.check-row-inline { margin: 0; white-space: nowrap; }
.import-error { border: 1px solid var(--burgundy); background: var(--burgundy-soft); color: var(--burgundy-bright); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; margin: 4px 0 12px; }
.catalog-import-form { display: block; }
.catalog-import-scanning { text-align: center; }
.catalog-import-progress { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 8px; }
.catalog-import-progress-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: var(--muted); font-size: 13.5px; }
.catalog-import-progress-stats strong { color: var(--gold-bright); font-family: var(--font-display); font-size: 20px; display: inline-block; margin-right: 4px; }
.catalog-import-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.catalog-import-card { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.catalog-import-card.needs-review { border-color: var(--gold); }
.catalog-import-select { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(7, 19, 26, 0.72); border-radius: 8px; padding: 4px; display: inline-flex; }
.catalog-import-select input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); cursor: pointer; }
.catalog-import-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--line-2); }
.catalog-import-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-import-media .import-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 12.5px; }
.catalog-import-body { display: grid; gap: 7px; align-content: start; }
.catalog-import-body strong { color: var(--ink); font-size: 15px; line-height: 1.25; }
.catalog-import-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.catalog-import-price { color: var(--gold-bright); font-weight: 700; font-size: 14px; }
.catalog-import-chip { justify-self: start; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.catalog-import-edit-form { display: grid; gap: 9px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.catalog-import-commit-bar { justify-content: space-between; margin-top: 16px; }
@media (max-width: 560px) {
  .catalog-import-grid { grid-template-columns: 1fr; }
}

/* Focused 2026 storefront: the home page is for finding products. Keep the
   deeper marketing destinations reachable from the header/footer without
   stacking every campaign underneath the catalogue. */
body.market-landing .hero-join,
body.market-landing .hero-trust,
body.market-landing .commerce-assurance-band,
body.market-landing .shop-brief,
body.market-landing .featured-video-band,
body.market-landing .how-band,
body.market-landing .app-download-band,
body.market-landing .app-sync-band,
body.market-landing .assisted-band,
body.market-landing .onboarder-band,
body.market-landing .sell-band,
body.market-landing .brand-store-promo-band,
body.market-landing .faq-band,
body.market-landing .app-ecosystem {
  display: none !important;
}

/* Seller Centre is an operating tool, not a second marketing homepage. */
body.merchant-portal .shop-brief,
body.merchant-portal #view-merchant > .section-head,
body.merchant-portal .value-band,
body.merchant-portal .site-footer .footer-inner,
body.merchant-portal .store-toolbar {
  display: none !important;
}

body.merchant-portal .shell {
  padding-top: 24px;
}

body.merchant-portal .seller-panel {
  gap: 18px;
}

body.merchant-portal #merchant-panel {
  display: grid;
  gap: 18px;
  view-transition-name: merchant-page;
}

::view-transition-old(merchant-page) {
  animation: gm-merchant-page-out 140ms ease both;
}

::view-transition-new(merchant-page) {
  animation: gm-merchant-page-in 260ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

@keyframes gm-merchant-page-out {
  to { opacity: 0; transform: translateX(-12px); }
}

@keyframes gm-merchant-page-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

.merchant-page-header {
  --merchant-page-accent: 212, 184, 133;
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(var(--merchant-page-accent), 0.36);
  border-radius: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--merchant-page-accent), 0.19), transparent 34%),
    linear-gradient(145deg, rgba(var(--merchant-page-accent), 0.09), rgba(5, 13, 18, 0.72));
  box-shadow: 0 22px 60px -42px rgba(var(--merchant-page-accent), 0.78);
}

.merchant-page-header--dashboard { --merchant-page-accent: 21, 122, 99; }
.merchant-page-header--items,
.merchant-page-header--bulk-upload,
.merchant-page-header--import-website { --merchant-page-accent: 69, 139, 255; }
.merchant-page-header--orders { --merchant-page-accent: 235, 176, 66; }
.merchant-page-header--messages { --merchant-page-accent: 255, 91, 157; }
.merchant-page-header--payouts,
.merchant-page-header--discounts { --merchant-page-accent: 71, 190, 145; }
.merchant-page-header--promotions,
.merchant-page-header--brand-store { --merchant-page-accent: 185, 108, 255; }

.merchant-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.merchant-breadcrumb a { color: var(--muted); }
.merchant-breadcrumb a:hover { color: var(--ink); }
.merchant-breadcrumb strong { color: rgb(var(--merchant-page-accent)); }

.merchant-page-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 26px);
}

.merchant-page-icon {
  display: grid;
  place-items: center;
  width: clamp(54px, 7vw, 72px);
  height: clamp(54px, 7vw, 72px);
  border: 1px solid rgba(var(--merchant-page-accent), 0.44);
  border-radius: 20px;
  background: rgba(var(--merchant-page-accent), 0.14);
  color: rgb(var(--merchant-page-accent));
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.merchant-page-heading .eyebrow { margin: 0 0 6px; color: rgb(var(--merchant-page-accent)); }
.merchant-page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.merchant-page-heading p:last-child {
  max-width: 680px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.merchant-page-action { border-color: rgba(var(--merchant-page-accent), 0.42); white-space: nowrap; }

.merchant-session-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 122, 99, 0.38);
  border-radius: 16px;
  background: rgba(21, 122, 99, 0.12);
  color: var(--ink);
}
.merchant-session-welcome div { display: grid; gap: 3px; }
.merchant-session-welcome strong { color: var(--emerald); }
.merchant-session-welcome span { color: var(--muted); font-size: 13px; }

.merchant-dashboard-summary .merchant-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .merchant-page-heading { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .merchant-page-action { grid-column: 2; justify-self: start; }
  .merchant-dashboard-summary .merchant-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .merchant-page-header { padding: 22px 18px; border-radius: 20px; }
  .merchant-page-heading { grid-template-columns: 1fr; }
  .merchant-page-icon { width: 52px; height: 52px; border-radius: 16px; }
  .merchant-page-action { grid-column: 1; }
  .merchant-dashboard-summary .merchant-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(merchant-page),
  ::view-transition-new(merchant-page) { animation: none !important; }
}

/* Mobile storefront ------------------------------------------------------
   On phones the customer homepage behaves like a shopping surface, not a
   desktop landing page squeezed into several header rows. */
.mobile-market-dock { display: none; }

@media (max-width: 640px) {
  body.market-landing {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.market-landing .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(74px, 1fr) auto;
    gap: 10px;
    min-height: 60px;
    padding: 8px 12px;
    overflow: visible;
    background: rgba(7, 19, 26, 0.96);
  }
  body.market-landing .topbar > .brand {
    grid-row: 1;
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  body.market-landing .topbar > .brand img { width: 34px; height: 34px; }
  body.market-landing .topbar > .brand span { font-size: 13px; }
  body.market-landing .topnav,
  body.market-landing .header-sell-cta { display: none; }
  body.market-landing .account-slot {
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
  }
  body.market-landing .account-actions {
    display: flex;
    width: auto;
    gap: 6px;
  }
  body.market-landing .saved-button { display: none; }
  body.market-landing .onboarder-nav-button,
  body.market-landing .account-actions > a[data-view-tab="orders"],
  body.market-landing .account-actions > a[data-view-tab="messages"] { display: none; }
  body.market-landing .cart-button,
  body.market-landing .account-actions > .button {
    width: auto;
    min-height: 40px;
    padding: 0 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  body.market-landing .cart-button { gap: 6px; }
  body.market-landing .cart-button strong {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
  }
  body.market-landing .account-pill { max-width: 118px; min-height: 40px; padding-left: 10px; }
  body.market-landing .account-pill span { display: none; }

  body.market-landing .market-search-hero .hero-inner {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 16px 0 16px;
  }
  body.market-landing .search-hero-copy { gap: 8px; }
  body.market-landing .hero-logo { display: none; }
  body.market-landing .hero-sub { display: none; }
  body.market-landing .hero-trust { display: none; }
  body.market-landing .hero-eyebrow {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  body.market-landing .hero-title {
    max-width: 12ch;
    font-size: clamp(34px, 10.6vw, 44px);
    line-height: 0.98;
  }
  body.market-landing .hero-sub {
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.42;
  }
  body.market-landing .hero-search-form {
    margin-top: 4px;
    padding: 5px;
    border-radius: 18px;
  }
  body.market-landing .hero-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
  }
  body.market-landing .hero-search-row input,
  body.market-landing .hero-search-button {
    min-height: 48px;
  }
  body.market-landing .hero-search-row input {
    padding: 0 13px;
    font-size: 16px;
  }
  body.market-landing .hero-search-button {
    width: auto;
    min-width: 78px;
    padding: 0 15px;
    border-radius: 14px;
  }
  body.market-landing .hero-quick-links {
    width: calc(100vw - 24px);
    margin-right: -12px;
    gap: 7px;
    padding: 2px 20px 2px 0;
    scroll-snap-type: x proximity;
  }
  body.market-landing .hero-quick-links a {
    min-height: 38px;
    padding: 0 13px;
    scroll-snap-align: start;
  }

  body.market-landing .shell {
    width: calc(100% - 20px);
    padding-top: 16px;
    padding-bottom: 36px;
  }
  body.market-landing .store-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 12px;
  }
  body.market-landing .store-toolbar h2 { font-size: 30px; }
  body.market-landing .store-controls { width: auto; }
  body.market-landing .store-controls .searchbox:not(.sortbox) { display: none; }
  body.market-landing .store-controls .sortbox {
    width: auto;
    min-width: 124px;
  }
  body.market-landing .store-controls .sortbox span { display: none; }
  body.market-landing .store-controls .sortbox select {
    min-height: 42px;
    padding-left: 12px;
    padding-right: 30px;
  }
  body.market-landing .simple-results-head { margin: 2px 2px 12px; }
  body.market-landing .simple-results-head .eyebrow { display: none; }
  body.market-landing .simple-results-head h2 { font-size: 23px; }
  body.market-landing .category-row { margin-bottom: 16px; }
  body.market-landing .category-browser {
    margin-right: -10px;
    padding-right: 18px;
  }
  body.market-landing .category-tile { flex-basis: 132px; }

  body.market-landing .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  body.market-landing .product-card { border-radius: 13px; }
  body.market-landing .product-media .badge,
  body.market-landing .product-media .stock-badge {
    max-width: calc(100% - 18px);
    min-height: 22px;
    padding: 0 7px;
    overflow: hidden;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.market-landing .product-media .badge { top: 8px; left: 8px; }
  body.market-landing .product-media .stock-badge { right: 8px; top: 54px; bottom: auto; }
  body.market-landing .card-save {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }
  body.market-landing .promo-badge { left: 8px; top: 37px; }
  body.market-landing .trend-badge { display: none; }
  body.market-landing .product-body { gap: 6px; padding: 10px; }
  body.market-landing .product-title {
    min-height: 36px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body.market-landing .product-meta {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.market-landing .product-meta > span:not(.merchant-name):not(.price) { display: none; }
  body.market-landing .price { font-size: 15px; }
  body.market-landing .rating-row { font-size: 10px; }
  body.market-landing .product-proof-tags { display: none; }
  body.market-landing .listing-delivery-summary {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px;
    border-radius: 9px;
  }
  body.market-landing .listing-delivery-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 13px;
  }
  body.market-landing .listing-delivery-copy small { font-size: 8px; }
  body.market-landing .listing-delivery-copy strong { font-size: 10.5px; }
  body.market-landing .listing-shipping-note {
    align-items: flex-start;
    gap: 6px;
    font-size: 9.5px;
  }
  body.market-landing .listing-shipping-check {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    border-radius: 5px;
    font-size: 9px;
  }
  body.market-landing .product-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 10px 10px;
  }
  body.market-landing .product-actions .button,
  body.market-landing .product-actions .ghost-button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 11.5px;
  }

  body.market-landing .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  body.market-landing .mobile-market-dock {
    position: fixed;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 62px;
    padding: 6px;
    border: 1px solid rgba(212, 184, 133, 0.24);
    border-radius: 21px;
    background: rgba(5, 13, 18, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
  }
  body.market-landing .mobile-market-dock a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 50px;
    border-radius: 15px;
    color: var(--muted);
  }
  body.market-landing .mobile-market-dock a span { font-size: 20px; line-height: 1; }
  body.market-landing .mobile-market-dock a strong { font-size: 10.5px; }
  body.market-landing .mobile-market-dock a.is-active { background: var(--gold-soft); color: var(--gold-bright); }
  body.market-landing .mobile-market-dock .mobile-market-dock-sell {
    background: var(--pink);
    color: #fff;
  }
}

@media (max-width: 350px) {
  body.market-landing .topbar > .brand span { display: none; }
  body.market-landing .hero-search-button { min-width: 70px; padding: 0 11px; }
  body.market-landing .product-grid { grid-template-columns: 1fr; }
}

/* My-listings: search + category groups (2026-07-21) */
.merchant-item-search{width:100%;margin:10px 0 14px;padding:11px 14px;border-radius:10px;border:1px solid rgba(212,184,133,.25);background:rgba(255,255,255,.04);color:inherit;font-size:.95rem}
.merchant-item-search:focus{outline:none;border-color:#D4B885}
.merchant-cat-group{margin-bottom:18px}
.merchant-cat-head{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding-bottom:6px;border-bottom:1px solid rgba(212,184,133,.18)}
.merchant-cat-head strong{font-size:.95rem;letter-spacing:.02em}

/* Live cart-weight indicator for air freight batching (2026-07-21) */
.cart-weight-indicator{margin-top:10px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(212,184,133,.18)}
.cart-weight-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.85rem}
.cart-weight-row strong{color:#D4B885;font-weight:700}
.cart-weight-bar{margin-top:8px;height:6px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.cart-weight-bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#D4B885,#FF006B)}
.cart-weight-note{margin:8px 0 0;font-size:.78rem;line-height:1.4;color:rgba(255,255,255,.6)}
.cart-weight-note-ready{color:#7ee787}

/* Dedicated commerce pages: an Amazon-like page boundary instead of modal shells. */
.commerce-page{width:min(var(--container),calc(100% - 40px));margin:0 auto;padding:30px 0 80px}
.commerce-page[hidden]{display:none}
.commerce-page-inner{display:grid;gap:16px}
.commerce-page-heading{display:grid;gap:13px}
.commerce-breadcrumbs{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.commerce-breadcrumbs a{color:var(--gold);font-weight:800;text-decoration:none}
.commerce-breadcrumbs strong{color:var(--ink)}
.commerce-breadcrumbs a{transition:color .18s ease}
.commerce-breadcrumbs a:hover{text-decoration:underline;text-underline-offset:3px;color:var(--gold-bright)}
.commerce-page-title-row{display:flex;align-items:end;justify-content:space-between;gap:20px}
.commerce-page-title-row h1{margin:0;font-family:var(--font-display);font-size:clamp(30px,4vw,52px);line-height:1.02;letter-spacing:-.03em}
.commerce-page-surface{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--paper-2);box-shadow:var(--shadow)}
.commerce-page .product-detail{border:0;border-radius:0;box-shadow:none}
.commerce-page .detail-media{top:90px}
.commerce-page .cart-view,.commerce-page .checkout-view{padding:clamp(24px,4vw,48px)}
.commerce-loading{display:grid;place-items:center;gap:12px;min-height:280px;padding:40px;color:var(--muted);text-align:center}
body.commerce-page-active .market-hero,
body.commerce-page-active .commerce-assurance-band,
body.commerce-page-active .store-toolbar,
body.commerce-page-active .status-strip,
body.commerce-page-active .shop-brief,
body.commerce-page-active .view-panel,
body.commerce-page-active .featured-video-band,
body.commerce-page-active .how-band,
body.commerce-page-active .mobile-market-dock{display:none!important}
body.commerce-page-active .shell{min-height:calc(100svh - 82px)}
body.commerce-page-active .site-footer{margin-top:auto}
@media (max-width:760px){
  .commerce-page{width:min(100% - 20px,680px);padding:18px 0 50px}
  .commerce-page-title-row{align-items:flex-start;flex-direction:column;gap:12px}
  .commerce-back-link{align-self:flex-start}
  .commerce-page-surface{border-radius:var(--radius)}
  .commerce-page .detail-media{top:0}
}

/* Amazon-style order-total emphasis in the checkout summary */
.checkout-summary .checkout-order-total span { color: var(--gold-bright); font-weight: 700; }
.checkout-summary .checkout-order-total strong { color: var(--gold-bright); }

/* ============================================================================
   AMAZON-PATTERN CHROME — built by buildMarketChrome() in app.js.
   Scoped to body.market-chrome so the static markup still renders if JS fails.
   ========================================================================== */
body.market-chrome .topbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 9px clamp(12px, 3vw, 28px);
  background: var(--espresso);
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.market-chrome .topbar > .brand { flex: 0 0 auto; }

.header-search {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.18s var(--ease);
}
.header-search:focus-within { box-shadow: 0 0 0 3px var(--gold); }
.header-search-scope {
  flex: 0 0 auto;
  max-width: 148px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid rgba(7, 19, 26, 0.16);
  background: #E7E2D8;
  color: #07131A;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #07131A;
  font-size: 15px;
}
.header-search-input::placeholder { color: #6C7B80; }
.header-search-input:focus { outline: none; }
.header-search-go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 50px;
  border: 0;
  background: var(--gold);
  color: var(--paper);
  transition: background 0.18s var(--ease);
}
.header-search-go:hover { background: var(--gold-bright); }

/* Account cluster — Amazon's two-line blocks */
body.market-chrome .account-slot { flex: 0 0 auto; min-width: 0; }
body.market-chrome .account-actions { gap: 4px; }
.acct-block {
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  transition: border-color 0.18s var(--ease);
}
.acct-block small { color: var(--ink-2); font-size: 11.5px; line-height: 1.15; }
.acct-block strong { font-size: 13.5px; font-weight: 800; line-height: 1.15; }
.acct-block:hover, .acct-block:focus-visible { border-color: var(--line); }
.acct-block.is-active { border-color: rgba(212, 184, 133, 0.5); }

body.market-chrome .cart-button {
  gap: 5px;
  min-height: 40px;
  padding: 0 11px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
body.market-chrome .cart-button:hover { border-color: var(--line); transform: none; }
body.market-chrome .cart-button .cart-icon { color: var(--ink); }
body.market-chrome .cart-button strong {
  min-width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 800;
}
body.market-chrome .cart-button span { font-size: 13.5px; font-weight: 800; }

/* Second row — department nav */
.subbar {
  position: relative;
  z-index: 19;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
}
.subbar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 clamp(8px, 3vw, 24px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subbar-inner::-webkit-scrollbar { display: none; }
.subbar-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.subbar-all:hover, .subbar-all:focus-visible { border-color: var(--line); }
.subbar-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
body.market-chrome .subbar-links .topnav {
  display: contents;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.subbar-link,
body.market-chrome .subbar-links .nav-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}
.subbar-link:hover,
body.market-chrome .subbar-links .nav-tab:hover { border-color: var(--line); color: var(--ink); }
body.market-chrome .subbar-links .nav-tab.is-active {
  background: transparent;
  color: var(--gold-bright);
  border-color: rgba(212, 184, 133, 0.45);
  box-shadow: none;
}
body.market-chrome .subbar-inner .header-sell-cta {
  flex: 0 0 auto;
  min-height: 34px;
  margin-left: auto;
  padding: 0 15px;
  font-size: 13.5px;
}

/* "All" departments drawer */
.dept-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  background: rgba(3, 9, 13, 0.68);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.dept-menu {
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: deptMenuIn 0.24s var(--ease);
}
@keyframes deptMenuIn { from { transform: translateX(-16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dept-menu { animation: none; } }
.dept-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--espresso);
  border-bottom: 1px solid var(--line-2);
}
.dept-menu-head strong { font-family: var(--font-display); font-size: 19px; color: var(--gold-bright); }
.dept-menu-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}
.dept-menu-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 0 28px; }
.dept-menu-group { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.dept-menu-group:last-child { border-bottom: 0; }
.dept-menu-group h3 {
  margin: 6px 18px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.dept-menu-group a,
.dept-menu-group button {
  display: block;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.dept-menu-group a:hover,
.dept-menu-group button:hover { background: rgba(246, 243, 236, 0.06); }

@media (max-width: 880px) {
  body.market-chrome .topbar { flex-wrap: wrap; row-gap: 9px; }
  .header-search { order: 3; flex-basis: 100%; height: 40px; }
  .header-search-scope { display: none; }
  body.market-chrome .account-slot { margin-left: auto; }
  .acct-block small { display: none; }
  body.market-chrome .cart-button span { display: none; }
}
@media (max-width: 640px) {
  body.market-chrome .topbar > .brand span { font-size: 12px; }
  .acct-block { padding: 5px 6px; }
}

/* The header search replaces the toolbar's duplicate search field; the sort
   control stays. Toolbar pins under the 62px chrome header, not the old 70px. */
body.market-chrome .store-toolbar { top: 62px; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); }
body.market-chrome .store-controls .searchbox:not(.sortbox) { display: none; }
@media (max-width: 880px) {
  body.market-chrome .store-toolbar { top: 102px; }
}

/* ── Home hero carousel (Amazon pattern) ──────────────────────────────────
   Replaces the tall marketing hero on the home landing only; every other
   view keeps the existing search-first hero. */
.market-carousel { display: none; }
body.market-chrome.market-landing .market-search-hero { display: none; }
body.market-chrome.market-landing .market-carousel {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--espresso);
}
.carousel-track { position: relative; }
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease);
}
.carousel-slide:first-child { position: relative; }
.carousel-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}
.carousel-img {
  width: 100%;
  height: clamp(230px, 30vw, 380px);
  object-fit: cover;
  object-position: 62% center;
}
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 18, 0.95) 0%, rgba(5, 13, 18, 0.82) 38%, rgba(5, 13, 18, 0.28) 72%, rgba(5, 13, 18, 0.12) 100%),
    linear-gradient(180deg, transparent 52%, var(--paper) 100%);
}
.carousel-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 9px;
  width: min(var(--container), calc(100% - 152px));
  margin: 0 auto;
  padding-bottom: 22px;
}
.carousel-copy .eyebrow { margin: 0; }
.carousel-copy h2 { font-size: clamp(26px, 3.6vw, 44px); max-width: 15ch; text-wrap: balance; }
.carousel-sub { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(14px, 1.4vw, 16.5px); }
.carousel-cta { justify-self: start; margin-top: 5px; min-height: 44px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 60px;
  transform: translateY(-60%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 13, 18, 0.62);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.carousel-arrow:hover { background: rgba(5, 13, 18, 0.86); border-color: rgba(212, 184, 133, 0.5); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.34);
  transition: background 0.18s var(--ease), width 0.18s var(--ease);
}
.carousel-dot.is-active { width: 26px; background: var(--gold); }

@media (max-width: 880px) {
  .carousel-copy { width: calc(100% - 36px); padding-bottom: 30px; }
  .carousel-arrow { display: none; }
  .carousel-sub { display: none; }
}

/* ── Today's Deals rail (Amazon pattern) ─────────────────────────────────── */
.deals-rail-wrap { margin: 0 0 30px; }
.deals-rail-head { align-items: flex-end; }
.deals-rail-nav { display: flex; gap: 8px; }
.deals-rail-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.deals-rail-arrow:hover { border-color: var(--gold); background: var(--paper-2); }
.deals-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 14px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.deals-rail::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .deals-rail { grid-auto-columns: minmax(196px, 1fr); } }
.deal-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.deal-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.deal-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper-2);
}
.deal-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.deal-card:hover .deal-card-media img { transform: scale(1.05); }
.deal-card-badge {
  position: absolute;
  left: 7px;
  top: 7px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--deal);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.deal-card-price { display: flex; align-items: baseline; gap: 7px; }
.deal-card-price strong { font-size: 15.5px; font-weight: 800; }
.deal-card-price s { color: var(--muted); font-size: 12.5px; }
.deal-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
}
@media (prefers-reduced-motion: reduce) {
  .deal-card, .deal-card-media img { transition: none; }
  .deal-card:hover { transform: none; }
  .deal-card:hover .deal-card-media img { transform: none; }
}

/* ── Back-to-top bar (Amazon pattern) ────────────────────────────────────── */
.back-to-top {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-top: 1px solid var(--line-2);
  background: var(--espresso-2);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.back-to-top:hover { background: var(--espresso); color: var(--gold-bright); }

/* ── Stage-1 review fixes ────────────────────────────────────────────────
   `overflow-x` must come OFF body: any non-visible overflow there makes body a
   scroll container, and a sticky child then pins to a box that never scrolls.
   `clip` is not a way out — when the other axis is `visible`, CSS computes
   `clip` back to `hidden`. The root keeps its own `overflow-x: hidden`, which
   propagates to the viewport, so horizontal overflow stays suppressed.
   Toolbar offsets come from measured header height (syncChromeMetrics), never
   a magic number that drifts when the header wraps. */
body.market-chrome { overflow-x: visible; }
body.market-chrome .topbar { position: sticky; top: 0; z-index: 21; }
body.market-chrome .subbar { position: sticky; top: var(--chrome-header-h, 62px); z-index: 20; }
body.market-chrome .store-toolbar,
body.market-chrome.market-landing .store-toolbar { top: var(--chrome-h, 103px); }
@media (max-width: 880px) {
  body.market-chrome .store-toolbar { top: var(--chrome-h, 145px); }
}

/* `.cart-button span` also matches the ♥ glyph inside .saved-button, which
   left that control rendering as a bare count. Only the "Cart" word hides. */
body.market-chrome .saved-button span { display: inline; }

/* The subbar now hosts the seller CTA, but the old landing-page rule still
   hid it there — restoring it inside the chrome's own row. */
body.market-chrome.market-landing .subbar-inner .header-sell-cta { display: inline-flex; }

/* Department scoping is a core Amazon search affordance; keep it down to the
   width where it genuinely stops fitting rather than dropping it at 880px. */
@media (max-width: 880px) and (min-width: 561px) {
  .header-search-scope { display: block; max-width: 116px; font-size: 12px; }
}

/* Seller Centre reuses the same header markup but is not a storefront: the
   buyer search, the department row and its consumer quick-links do not belong
   there. Hiding the whole row also re-hides .topnav, whose display:contents
   inside .subbar-links would otherwise outrank body.merchant-portal .topnav. */
body.merchant-portal .subbar,
body.merchant-portal .header-search { display: none; }

/* ── Stage 2-4 review fixes ─────────────────────────────────────────────── */

/* The department links get their OWN horizontal scroller and the seller CTA
   sits outside it. Previously both shared .subbar-inner's scroller, so the
   CTA's `margin-left:auto` parked it mid-strip and painted over Groceries /
   Meds / Rent at 375px, making them unclickable. */
.subbar-inner { overflow: visible; }
.subbar-links {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subbar-links::-webkit-scrollbar { display: none; }
body.market-chrome .subbar-inner .header-sell-cta { margin-left: 10px; }
@media (max-width: 880px) {
  .subbar-links {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent 100%);
  }
}
/* Current department must be able to highlight — .subbar-link had no active
   rule, so 8 of 13 departments could never show state. */
.subbar-link.is-active {
  color: var(--gold-bright);
  border-color: rgba(212, 184, 133, 0.45);
}

/* Un-hiding the ♥ glyph was not enough: a pre-existing landing rule hides the
   whole .saved-button under 640px, so saved items were unreachable on phones. */
@media (max-width: 640px) {
  body.market-chrome.market-landing .account-actions .saved-button { display: inline-flex; }
}

/* .section-head flips to a column at 375px, where `align-items:flex-end`
   shoved the rail heading against the right edge. */
@media (max-width: 720px) {
  .deals-rail-head { align-items: flex-start; }
}
.deals-rail-nav { align-items: center; }
.deals-rail-seeall {
  align-self: center;
  margin-right: 4px;
  color: var(--gold-bright);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.deals-rail-seeall:hover { text-decoration: underline; }
.deals-rail-arrow:disabled { opacity: 0.35; cursor: default; }
.deals-rail-arrow:disabled:hover { border-color: var(--line); background: var(--card); }

/* Dots were a 9px target — below the 24px minimum — and on phones they were
   the ONLY carousel control. The button is now a 26px hit area with the dot
   drawn inside it, and swipe is handled in buildMarketCarousel(). */
.carousel-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: transparent;
}
.carousel-dot i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.34);
  transition: background 0.18s var(--ease), width 0.18s var(--ease);
}
.carousel-dot.is-active { width: 40px; background: transparent; }
.carousel-dot.is-active i { width: 26px; background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .carousel-dot i { transition: none; } }

/* Mobile kept the headline but dropped every word of body copy. */
@media (max-width: 880px) {
  .carousel-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 34ch;
    font-size: 13px;
  }
}

/* At 375px the brand (101px) + account cluster (241px) came to 356px against
   351px of content box, so the header wrapped to THREE rows and ate 160px of
   viewport. Tightening the gutters lands both on one row; below 420px the
   wordmark drops to the logo alone, as Amazon's mobile header does. */
@media (max-width: 880px) {
  body.market-chrome .topbar { gap: 8px; padding: 8px 10px; }
}
@media (max-width: 420px) {
  body.market-chrome .topbar > .brand span { display: none; }
  body.market-chrome .saved-button { min-width: 0; padding: 0 7px; }
}
