/* Carole's African Market — shared responsive homepage engine.
   All colour/type comes from CSS variables set per-direction in themes.css.
   Mobile-first; breakpoints at 640px (tablet) and 960px (desktop). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font, 'Work Sans', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[data-page="home"] { padding-bottom: 0; }
body[data-page="home"] .sticky-cart { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }

:root {
  --maxw: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --wa: #1eaa5a;
  --wa-ink: #ffffff;
}
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--topbar-bg, var(--brand));
  color: var(--topbar-ink, #fff);
  font-family: var(--mono-font, 'Space Mono', monospace);
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: .04em;
  text-align: center;
  padding: 8px 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg, var(--surface));
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.nav-inner { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand .mark { width: 34px; height: 40px; color: var(--brand); flex: none; }
.brand .mark svg { width: 100%; height: 100%; }
.brand .name { line-height: 1; }
.brand .name b {
  display: block; font-family: var(--brand-font, var(--headline-font));
  font-weight: 900; letter-spacing: -.01em; text-transform: uppercase;
  font-size: 15px; color: var(--ink);
}
.brand .name span {
  display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-top: 2px;
}
.brand .brand-logo { height: 44px; width: auto; max-width: 210px; object-fit: contain; }
.brand-with-logo { gap: 9px; min-width: 0; }
.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(20,14,8,.15));
}
.nav-links { display: none; gap: 8px; font-weight: 600; font-size: 15px; }
.nav-links a {
  color: var(--ink);
  opacity: .82;
  border: 1px solid transparent;
  border-radius: var(--pill);
  padding: 8px 10px;
  transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.nav-links a:hover { opacity: 1; color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.nav-links a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  color: var(--brand);
  opacity: 1;
}
.nav-links .quiet-link { opacity: .58; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--pill); overflow: hidden; font-size: 12px; font-weight: 800;
  background: var(--surface);
}
.lang button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 6px 10px; font: inherit; letter-spacing: .04em;
}
.lang button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink, #fff); }
.cart {
  display: none; align-items: center; gap: 7px; font-weight: 800; font-size: 13px;
  background: var(--accent); color: var(--accent-ink, #241b12);
  padding: 8px 14px; border-radius: var(--pill);
}
.cart-button {
  display: inline-flex;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--accent-ink, #241b12);
}
.cart-link { display: inline-flex; }
.cart-link[aria-current="page"] {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.cart-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  line-height: 1;
}
.cart-count.bump { animation: cart-count-bump .42s ease; }
@keyframes cart-count-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.24); }
  100% { transform: scale(1); }
}
.hamburger {
  display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); cursor: pointer; padding: 0;
}
.hamburger span { height: 2px; width: 18px; margin-inline: auto; background: var(--ink); border-radius: 2px; }
.mobile-drawer {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mobile-drawer a { padding: 12px 8px; font-weight: 700; border-radius: 10px; }
.mobile-drawer a:hover { background: var(--surface-2); }
.mobile-drawer a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 13%, var(--surface));
  color: var(--brand);
}
body.nav-open .mobile-drawer { display: flex; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ticker-bg, var(--brand));
  color: var(--ticker-ink, #fff);
  overflow: hidden; position: relative;
  font-family: var(--brand-font, var(--headline-font));
  border-block: 1px solid color-mix(in srgb, var(--ticker-ink, #fff) 18%, transparent);
}
.ticker-track {
  display: inline-flex; gap: 0; white-space: nowrap; padding-block: 9px;
  animation: ticker 34s linear infinite; will-change: transform;
}
.ticker:hover .ticker-track, body.motion-off .ticker-track { animation-play-state: paused; }
.ticker-track span { font-weight: 700; font-size: 13px; letter-spacing: .02em; padding-inline: 4px; }
.ticker-track i { color: var(--accent); font-style: normal; padding-inline: 14px; opacity: .9; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(30px, 7vw, 70px); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: clamp(22px, 5vw, 48px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono-font, 'Space Mono', monospace);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--eyebrow-ink, var(--brand)); margin-bottom: 16px;
}
.eyebrow.pill { background: var(--surface-2); padding: 7px 13px; border-radius: var(--pill); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wa) 26%, transparent); }
h1.headline {
  font-family: var(--headline-font);
  font-weight: var(--headline-weight, 800);
  font-size: clamp(31px, 7.6vw, 76px);
  line-height: 1.04; letter-spacing: -.02em; color: var(--ink);
  overflow-wrap: break-word; text-wrap: balance;
}
h1.headline em { font-style: var(--accent-style, italic); color: var(--accent); font-weight: inherit; }
h1.headline b { color: var(--brand); font-weight: inherit; }
.hero p.sub {
  margin: 18px 0 0; max-width: 42ch; color: var(--muted);
  font-size: clamp(15px, 2.4vw, 18px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Hero visual (map or product) */
.hero-visual { position: relative; min-height: 200px; display: grid; place-items: center; }
.hero-map { width: min(78%, 340px); color: var(--map-ink, var(--brand)); opacity: var(--map-opacity, 1); }
.hero-map.gradient path { fill: url(#mapgrad); }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px);
  border: 1px solid var(--line); position: relative;
}
.hero-photo::after {
  content: attr(data-label); position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono-font, monospace); font-size: 11px; color: var(--muted);
  background: var(--surface); padding: 4px 9px; border-radius: 7px; opacity: .92;
}
.hero-logo {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 4vw, 30px); display: grid; place-items: center;
  box-shadow: 0 24px 50px -30px rgba(30,20,10,.35);
}
.hero-logo img { width: 100%; max-width: 460px; height: auto; }
.hero-photo-real {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(30,20,10,.45);
}
.hero-photo-real img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Full-bleed cover hero: big food photo + scrim + light overlaid copy */
.hero.hero-cover { position: relative; min-height: min(72vh, 600px); display: flex; align-items: flex-end; padding: 0; overflow: hidden; }
.hero-cover .hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-cover .scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,12,7,.12) 0%, rgba(18,12,7,.30) 42%, rgba(18,12,7,.88) 100%),
    linear-gradient(90deg, rgba(18,12,7,.58) 0%, rgba(18,12,7,.14) 56%, transparent 100%);
}
.hero-cover > .wrap { position: relative; z-index: 2; width: 100%; }
.hero-cover .hero-copy { color: #fff; padding-block: clamp(34px, 7vw, 66px); max-width: 620px; }
.hero-cover .eyebrow { color: #fff; }
.hero-cover .eyebrow.pill { background: rgba(255,255,255,.16); }
.hero-cover h1.headline { color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.4); }
.hero-cover h1.headline em, .hero-cover h1.headline b { color: var(--accent); }
.hero-cover p.sub { color: rgba(255,255,255,.92); max-width: 46ch; }
.hero-cover .btn-ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.hero-cover .btn-ghost:hover { background: #fff; color: var(--ink); }

/* Mosaic hero: a wall of Carole's real product photos filling the hero */
.hero-mosaic .mosaic { position: absolute; inset: 0; z-index: 0; display: grid; gap: 3px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
.hero-mosaic .mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 640px) { .hero-mosaic .mosaic { grid-template-columns: repeat(3, 1fr); } }
.hero-mosaic .scrim {
  background:
    linear-gradient(180deg, rgba(16,11,6,.34) 0%, rgba(16,11,6,.5) 40%, rgba(16,11,6,.92) 100%),
    linear-gradient(90deg, rgba(16,11,6,.72) 0%, rgba(16,11,6,.30) 56%, rgba(16,11,6,.10) 100%);
}

/* Commerce hero: selected 2a direction with product collage + centered logo */
.hero-commerce {
  padding-block: clamp(34px, 7vw, 84px);
  min-height: clamp(560px, 72vh, 760px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 20%, transparent) 0 22%, transparent 43%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--surface) 72%, var(--bg)) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-commerce .hero-grid {
  display: grid;
  gap: clamp(28px, 6vw, 68px);
  align-items: center;
  min-width: 0;
}
.hero-commerce .hero-copy {
  max-width: 650px;
  min-width: 0;
  opacity: 1;
  transform: translateY(0);
}
.hero-commerce h1.headline { max-width: 12ch; }
.hero-commerce p.sub {
  width: 100%;
  max-width: min(50ch, 100%);
  overflow-wrap: break-word;
}
.product-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 14px);
  width: min(100%, 560px);
  margin-inline: auto;
  aspect-ratio: 1;
  opacity: 1;
  transform: translateY(0);
}
.product-tile {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  background: var(--surface);
  box-shadow: 0 18px 44px -32px rgba(20,14,8,.5);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  box-shadow: 0 26px 54px -36px rgba(20,14,8,.72);
}
.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease, filter .24s ease;
}
.product-tile:hover img {
  transform: scale(1.045);
  filter: saturate(1.06);
}
.collage-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: clamp(118px, 38%, 190px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 30px rgba(20,14,8,.32));
  pointer-events: none;
}

.hero-product-wall {
  isolation: isolate;
  min-height: clamp(650px, 75vh, 820px);
  padding-block: clamp(56px, 8vw, 96px);
  background: #143421;
  color: #fff;
}
.hero-product-wall::before,
.hero-product-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-product-wall::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 26, 16, .92) 0%, rgba(8, 26, 16, .72) 42%, rgba(8, 26, 16, .24) 68%, rgba(8, 26, 16, .08) 100%),
    linear-gradient(180deg, rgba(8, 26, 16, .16) 0%, rgba(8, 26, 16, .04) 46%, rgba(8, 26, 16, .40) 100%);
}
.hero-product-wall::after {
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, transparent 78%, color-mix(in srgb, var(--bg) 86%, transparent) 100%);
}
.hero-market-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.hero-product-wall .hero-grid {
  position: relative;
  z-index: 3;
  grid-template-columns: 1fr;
}
.hero-product-wall .hero-copy {
  padding-block: clamp(24px, 4vw, 42px);
  max-width: 620px;
}
.hero-product-wall .eyebrow,
.hero-product-wall h1.headline {
  color: #fff;
}
.hero-product-wall h1.headline {
  max-width: 11.5ch;
  text-shadow: 0 4px 34px rgba(0,0,0,.48);
}
.hero-product-wall p.sub {
  color: rgba(255,255,255,.88);
  text-shadow: 0 2px 18px rgba(0,0,0,.38);
}
.hero-product-wall .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.72);
}
.hero-product-wall .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}
.hero-media-wall { display: none; }
.hero-logo-stage {
  justify-self: end;
  align-self: center;
  width: clamp(146px, 18vw, 238px);
  opacity: 1;
  transform: translateY(0);
}
.hero-feature-logo {
  width: 100%;
  height: auto;
  border-radius: 50%;
  padding: clamp(6px, .8vw, 10px);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 42px -22px rgba(0,0,0,.62);
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.26));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--body-font); font-weight: 800; font-size: 16px;
  padding: 15px 22px; border-radius: var(--pill); border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--wa) 80%, transparent); }
.btn-wa:hover { background: color-mix(in srgb, var(--wa) 90%, #000 10%); }
.btn-wa svg { width: 19px; height: 19px; }
.btn-primary { background: var(--brand); color: var(--brand-ink, #fff); }
.btn-primary:hover { box-shadow: 0 12px 28px -14px var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Categories ---------- */
.cats { padding-block: 4px clamp(20px, 5vw, 36px); }
.cats-row {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cats-row::-webkit-scrollbar { display: none; }
.cat {
  flex: none; font-weight: 800; font-size: 14px; padding: 12px 20px;
  border-radius: var(--pill); color: #fff; white-space: nowrap;
}

/* ---------- Featured ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-family: var(--headline-font); font-weight: 800; font-size: clamp(22px, 4vw, 30px); color: var(--ink); }
.section-head a { font-weight: 700; color: var(--brand); font-size: 14px; }
.featured { padding-block: clamp(8px, 3vw, 24px) clamp(34px, 7vw, 64px); }
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: transform .14s ease, box-shadow .2s ease;
}
.card .pname { overflow-wrap: anywhere; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20,14,8,.5); }
.card .thumb {
  aspect-ratio: 5 / 4;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px);
  position: relative;
}
.card .thumb::after {
  content: 'photo produit'; position: absolute; left: 10px; bottom: 8px;
  font-family: var(--mono-font, monospace); font-size: 9.5px; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 86%, transparent); padding: 2px 6px; border-radius: 5px;
}
.card .thumb.has-img { background: var(--surface-2); }
.card .thumb.has-img::after { content: none; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .pname { font-family: var(--brand-font, var(--headline-font)); font-weight: 800; font-size: 15px; color: var(--ink); line-height: 1.15; }
.card .pcat { font-size: 11px; color: var(--muted); font-weight: 600; }
.card .prow { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.card .price { font-weight: 800; font-size: 14px; color: var(--ink); }
.card .price.ask { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.card .price.real { color: var(--accent-strong, var(--accent)); }
/* Commerce catalog */
.shop-panel { padding-block: clamp(24px, 5vw, 58px) clamp(36px, 7vw, 78px); }
.shop-intro { display: grid; gap: 14px; margin-bottom: 20px; }
.shop-intro p { color: var(--muted); margin: 0; max-width: 68ch; }
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--pill);
  padding: 10px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.category-tabs button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 44px -34px rgba(20,14,8,.52);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  box-shadow: 0 26px 54px -34px rgba(20,14,8,.72);
}
.product-card.in-cart {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 42%),
    var(--surface);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent), 0 22px 50px -34px rgba(20,14,8,.58);
}
.product-card.in-cart:hover,
.product-card.in-cart:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 28px 58px -34px rgba(20,14,8,.76);
}
.product-card.product-added {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent), 0 26px 54px -34px rgba(20,14,8,.72);
  animation: cart-confirm .55s ease;
}
.product-media { aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface-2); }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease, filter .24s ease;
}
.product-card:hover .product-media img,
.product-card:focus-within .product-media img {
  transform: scale(1.045);
  filter: saturate(1.06);
}
.product-info { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 13px; }
.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}
.product-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 18px; }
.product-category {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-meta-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}
.product-badge {
  flex: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 20%, var(--surface));
  color: var(--accent-strong, var(--accent));
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
}
.cart-state {
  flex: none;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .02em;
  padding: 3px 7px;
  box-shadow: 0 8px 18px -14px var(--brand);
}
.product-info h3 {
  font-family: var(--brand-font, var(--headline-font));
  font-size: 15px;
  line-height: 1.18;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.product-info h3 a:hover { color: var(--brand); }
.product-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.product-price { font-weight: 900; color: var(--accent-strong, var(--accent)); }
.product-price.pending { color: var(--muted); font-size: 12.5px; }
.qty-control {
  display: inline-grid;
  grid-template-columns: 32px 30px 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  overflow: hidden;
  flex: none;
}
.qty-control button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}
.qty-control span { text-align: center; font-size: 13px; font-weight: 900; }
.qty-control.small { grid-template-columns: 28px 26px 28px; }
.qty-control.small button { width: 28px; height: 28px; }
.add-cart {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 11px 12px;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
}
.add-cart:hover {
  background: color-mix(in srgb, var(--brand) 88%, #000 12%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -18px var(--brand);
}
.add-cart.is-added {
  background: var(--accent);
  color: var(--accent-ink, #241b12);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}
.add-cart.in-cart {
  background: color-mix(in srgb, var(--accent) 78%, var(--surface));
  color: var(--accent-ink, #241b12);
  border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 34%, transparent);
}
.add-cart.in-cart:hover {
  background: var(--accent);
  box-shadow: 0 12px 24px -18px var(--accent);
}
.btn.in-cart {
  background: var(--accent);
  color: var(--accent-ink, #241b12);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -18px var(--accent);
}
.product-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.detail-link {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 10px 11px;
  white-space: nowrap;
}
.detail-link:hover { background: var(--surface-2); }
.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 22px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
}
.shop-toolbar {
  display: grid;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.search-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.search-box input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 11px 13px;
  text-transform: none;
  letter-spacing: 0;
}
.result-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.pagination button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
  cursor: pointer;
}
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination span { color: var(--muted); font-size: 13px; font-weight: 900; }

/* Cart drawer + checkout */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(20,14,8,.46);
}
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 75;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  background: var(--surface);
  color: var(--ink);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .2s ease;
  box-shadow: -24px 0 60px -42px rgba(0,0,0,.7);
}
body.cart-open .cart-overlay { display: block; }
body.cart-open .cart-drawer { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-family: var(--headline-font); font-size: 22px; }
.cart-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.cart-body { overflow: auto; padding: 18px 20px 22px; }
.cart-empty { color: var(--muted); margin: 0 0 14px; }
.cart-lines { display: grid; gap: 12px; }
.cart-line {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.cart-line img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.cart-line b { display: block; font-size: 13px; line-height: 1.18; }
.cart-line span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.cart-summary {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}
.checkout-form { display: grid; gap: 11px; padding-top: 4px; }
.checkout-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}
.checkout-form textarea { min-height: 76px; resize: vertical; }
.checkout-submit {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 13px 14px;
}
.checkout-submit:disabled { opacity: .48; cursor: not-allowed; }
.checkout-status { min-height: 20px; color: var(--brand); font-size: 13px; font-weight: 800; }

.support-band {
  padding-block: clamp(26px, 5vw, 46px);
  background: var(--brand);
  color: var(--brand-ink);
}
.support-inner {
  display: grid;
  gap: 16px;
  align-items: center;
}
.support-band h2 { font-family: var(--headline-font); font-size: clamp(22px, 4vw, 32px); }
.support-band p { margin: 6px 0 0; color: color-mix(in srgb, var(--brand-ink) 82%, transparent); }
.support-band .btn-ghost { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 75%, transparent); }
.support-band .btn-ghost:hover { background: var(--brand-ink); color: var(--brand); }

/* ---------- Multi-page storefront ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(42px, 7vw, 86px);
  background:
    linear-gradient(90deg, rgba(8, 26, 16, .90) 0%, rgba(8, 26, 16, .68) 48%, rgba(8, 26, 16, .26) 76%, rgba(8, 26, 16, .16) 100%),
    linear-gradient(180deg, rgba(8, 26, 16, .20) 0%, rgba(8, 26, 16, .24) 100%),
    url("/assets/hero-market-generated.jpg?v=commerce-20260705k") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
  color: #fff;
  overflow: hidden;
}
.page-hero.compact { padding-block: clamp(42px, 7vw, 86px); }
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  min-height: clamp(216px, 25vw, 300px);
}
.page-hero-grid::after {
  content: "";
  justify-self: center;
  width: clamp(118px, 16vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    url("/assets/logo-caroles-african-market.png?v=commerce-20260705") center / contain no-repeat,
    rgba(255,255,255,.88);
  box-shadow: 0 22px 46px -26px rgba(0,0,0,.64);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.28));
}
.page-hero h1 {
  font-family: var(--headline-font);
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 12ch;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.48);
}
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.account-copy h2,
.contact-copy h2,
.product-detail-copy h1 {
  font-family: var(--headline-font);
  font-size: clamp(30px, 5.2vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}
.page-hero p,
.account-copy p,
.contact-copy p,
.product-detail-copy p,
.panel-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 58ch;
}
.page-hero p {
  color: rgba(255,255,255,.88);
  text-shadow: 0 2px 18px rgba(0,0,0,.38);
}
.page-logo {
  width: min(190px, 42vw);
  margin-inline: auto;
  filter: drop-shadow(0 18px 28px rgba(20,14,8,.2));
}
.page-hero-visual {
  position: relative;
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .88fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  justify-self: center;
  isolation: isolate;
}
.page-hero-visual img { display: none; }
.page-hero-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 42px -34px rgba(20,14,8,.62);
}
.page-hero-photo.hero-photo-main {
  grid-row: 1 / 3;
}
.page-hero-badge {
  position: absolute;
  right: 50%;
  top: 50%;
  z-index: 3;
  width: clamp(86px, 34%, 138px);
  height: auto;
  transform: translate(50%, -50%);
  filter: drop-shadow(0 18px 28px rgba(20,14,8,.35));
}
.commerce-strip {
  padding-block: 18px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.strip-grid {
  display: grid;
  gap: 12px;
}
.strip-grid div {
  border-left: 4px solid var(--accent);
  padding: 5px 0 5px 12px;
}
.strip-grid b { display: block; color: var(--ink); font-weight: 900; }
.strip-grid span { display: block; color: var(--muted); font-size: 13px; }
.soft-panel {
  padding-block: clamp(34px, 7vw, 78px);
  background: color-mix(in srgb, var(--surface) 74%, var(--bg));
}
.two-col,
.story-grid,
.account-shell,
.contact-shell,
.checkout-grid,
.product-detail {
  display: grid;
  gap: clamp(22px, 5vw, 46px);
  align-items: center;
}
.panel-copy h2,
.story-grid h2,
.cart-page-panel h2,
.checkout-card h2 {
  font-family: var(--headline-font);
  font-size: clamp(24px, 4.2vw, 38px);
  line-height: 1.08;
}
.panel-logo {
  width: min(280px, 68vw);
  margin-inline: auto;
  filter: drop-shadow(0 18px 28px rgba(20,14,8,.2));
}
.story-grid article,
.cart-page-panel,
.checkout-card,
.account-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 44px -34px rgba(20,14,8,.52);
}
.story-grid article { padding: clamp(18px, 4vw, 28px); align-self: stretch; }
.story-grid p { margin: 10px 0 0; color: var(--muted); }
.account-shell,
.contact-shell,
.product-detail {
  padding-block: clamp(34px, 7vw, 82px);
}
.account-card,
.contact-card,
.checkout-card,
.cart-page-panel { padding: clamp(18px, 4vw, 28px); }
.account-card {
  display: grid;
  gap: 11px;
}
.account-card img {
  width: 118px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 18px rgba(20,14,8,.18));
}
.account-card button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 13px 14px;
}
.account-card button:hover { background: var(--surface-2); }
.account-card p,
.fineprint { color: var(--muted); font-size: 13px; font-weight: 800; margin: 0; }
.contact-shell { align-items: start; }
.contact-card {
  display: grid;
  gap: 12px;
}
.contact-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}
.contact-card textarea { min-height: 120px; resize: vertical; }
.quiet-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.quiet-contact a,
.understated-link {
  display: inline-flex;
  border-bottom: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand);
  font-weight: 900;
}
.checkout-page { padding-block: clamp(28px, 6vw, 68px); }
.checkout-grid { align-items: start; }
.cart-page-panel .cart-line { background: var(--surface-2); }
.checkout-card { align-self: start; }
.product-detail {
  align-items: start;
}
.product-detail-media {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 54px -36px rgba(20,14,8,.52);
}
.product-detail-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-facts {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.product-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}
.product-facts dt { color: var(--muted); font-weight: 800; }
.product-facts dd { margin: 0; font-weight: 900; text-align: right; }
.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.qty-control.large { grid-template-columns: 42px 42px 42px; }
.qty-control.large button { width: 42px; height: 42px; }
.related-products { padding-top: 0; }
.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: rise-in .36s ease both;
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cart-confirm {
  0% { transform: translateY(-2px) scale(1); }
  45% { transform: translateY(-6px) scale(1.015); }
  100% { transform: translateY(-6px) scale(1); }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--footer-bg, var(--surface)); }
.footer-grid { display: grid; gap: 18px; padding-block: clamp(26px, 5vw, 40px); text-align: center; }
.footer .fcol b { display: block; font-family: var(--brand-font, var(--headline-font)); font-weight: 800; font-size: 16px; color: var(--ink); }
.footer .fcol span, .footer .fcol a { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.footer .fcol a:hover { color: var(--brand); }
.footer .fcol a.phone { font-size: 20px; font-weight: 800; color: var(--brand); }
.footer-brand img {
  width: 58px;
  margin: 0 auto 8px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 14px rgba(20,14,8,.16));
}
.footer .legal { border-top: 1px solid var(--line); padding-block: 16px; font-size: 11px; color: var(--muted); text-align: center; }

/* ---------- Sticky mobile order bar ---------- */
.sticky-order {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.sticky-order .btn-wa { flex: 1; justify-content: center; padding-block: 14px; }
.sticky-order .call {
  width: 52px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: var(--pill); color: var(--ink); background: var(--surface);
}
.sticky-order .call svg { width: 20px; height: 20px; }
body { padding-bottom: 76px; }
.sticky-cart .cart-mini {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--pill);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 900;
  padding: 14px 16px;
  cursor: pointer;
}
.sticky-cart .call { color: var(--brand); }
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: min(360px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  border: 2px solid color-mix(in srgb, var(--accent) 65%, var(--brand));
  border-radius: 18px;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 24px 70px -30px rgba(20,14,8,.9);
  padding: 13px 16px 13px 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}
.cart-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.cart-toast-mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 18%, transparent);
}
.cart-toast-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cart-toast strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}
.cart-toast small {
  display: block;
  overflow: hidden;
  color: color-mix(in srgb, var(--brand-ink) 78%, transparent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Demo ribbon (links back to the showcase) ---------- */
.demo-ribbon {
  display: none;
  position: fixed; top: auto; bottom: 18px; right: 0; z-index: 60; opacity: .82;
}
.demo-ribbon:hover { opacity: 1; }
.demo-ribbon a {
  display: inline-flex; align-items: center; gap: 7px;
  background: #241b12; color: #f7efe3; font-size: 12px; font-weight: 800;
  padding: 9px 13px; border-radius: 12px 0 0 12px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.5);
}

/* ---------- WhatsApp open chooser (desktop: web vs app) ---------- */
.wa-modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(20,14,8,.55); backdrop-filter: blur(3px);
}
.wa-modal.open { display: flex; }
.wa-modal .box {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 18px; max-width: 340px; width: 100%; padding: 22px 22px 16px; text-align: center;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
.wa-modal .box h3 { font-family: var(--headline-font); font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.wa-modal .box p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.wa-modal .opt {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 13px; border-radius: 12px; font-weight: 800; font-size: 15px; margin-bottom: 10px;
}
.wa-modal .opt svg { width: 18px; height: 18px; }
.wa-modal .opt-app { background: var(--wa); color: #fff; }
.wa-modal .opt-web { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.wa-modal .cancel { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px; }

/* ---------- Preview mode (inside the chooser's live thumbnails) ---------- */
body.preview .sticky-order, body.preview .demo-ribbon { display: none !important; }
body.preview { padding-bottom: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cart { display: inline-flex; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .shop-intro { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; }
  .support-inner { grid-template-columns: 1fr auto; }
  .shop-toolbar { grid-template-columns: minmax(260px, 420px) auto; justify-content: space-between; }
  .strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .footer-brand img { margin-inline: 0; }
  .demo-ribbon { display: block; }
}
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .wrap { width: 100%; max-width: 100%; padding-inline: clamp(14px, 4.5vw, 20px); }
  .nav, .topbar, .ticker, .hero, main, section, footer { max-width: 100vw; }
  .nav-inner { width: 100%; min-width: 0; gap: 7px; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .brand .name { min-width: 0; overflow: hidden; }
  .brand .name b,
  .brand .name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand .name b { font-size: 13px; }
  .brand .name span { font-size: 9px; letter-spacing: .14em; }
  .brand-logo-img { width: 36px; height: 36px; flex: 0 0 36px; }
  .nav-actions { flex: 0 0 auto; min-width: 0; gap: 6px; }
  .nav-actions .cart { display: none; }
  .lang button { padding-inline: 8px; }
  .hamburger { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; }
  .cart-label { display: none; }
  .hero-commerce { overflow: hidden; }
  .hero-commerce .hero-copy,
  .hero-commerce h1.headline,
  .hero-commerce p.sub { max-width: 100%; }
  .hero-commerce .hero-grid { gap: 26px; }
  .hero-commerce p.sub { font-size: 15px; line-height: 1.48; }
  .cta-row { width: 100%; }
  .btn { min-width: 0; justify-content: center; text-align: center; }
  h1.headline { font-size: clamp(34px, 11.2vw, 54px); letter-spacing: 0; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-commerce .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(360px, .8fr); }
  .hero-commerce.hero-product-wall .hero-grid { grid-template-columns: minmax(0, .82fr) minmax(190px, .34fr); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); }
  .two-col,
  .account-shell,
  .contact-shell,
  .checkout-grid,
  .product-detail { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); }
  .sticky-order { display: none; }
  body { padding-bottom: 0; }
  body.nav-open .mobile-drawer { display: none; }
}
@media (max-width: 430px) {
  .brand .name b { font-size: 13px; }
  .brand .name span { font-size: 9px; letter-spacing: .16em; }
  .nav-actions { gap: 7px; }
  .lang button { padding-inline: 8px; }
  .cart-button { padding-inline: 10px; }
  .cart-label { display: none; }
  .brand-logo-img { width: 36px; height: 36px; }
  .hero-commerce { min-height: auto; padding-block: 26px 32px; }
  .hero-product-wall {
    min-height: 680px;
    padding-block: 38px 48px;
  }
  .hero-product-wall::before {
    background:
      linear-gradient(180deg, rgba(8, 26, 16, .72) 0%, rgba(8, 26, 16, .42) 44%, rgba(8, 26, 16, .50) 100%),
      linear-gradient(90deg, rgba(8, 26, 16, .88) 0%, rgba(8, 26, 16, .38) 100%);
  }
  .hero-product-wall .hero-grid { gap: 18px; }
  .hero-logo-stage {
    justify-self: start;
    width: min(126px, 34vw);
    margin-top: 0;
  }
  .hero-media-wall {
    inset: -10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 122px;
    gap: 7px;
    opacity: .78;
    transform: rotate(-1deg) scale(1.08);
  }
  .hero-media-tile { border-radius: 12px; }
  .hero-media-tile.tile-large { grid-column: span 2; grid-row: span 2; }
  .hero-media-tile.tile-wide { grid-column: span 2; }
  .hero-media-tile.tile-tall { grid-row: span 1; }
  .page-hero { padding-block: 30px 34px; }
  .page-hero.compact { padding-block: 30px 34px; }
  .page-hero-grid { min-height: auto; gap: 18px; }
  .page-hero-grid::after { justify-self: start; width: min(116px, 34vw); }
  .page-hero h1 { font-size: clamp(36px, 12vw, 50px); max-width: 10.5ch; }
  .page-logo { width: min(126px, 42vw); }
  .page-hero-visual {
    width: min(100%, 336px);
    gap: 7px;
  }
  .page-hero-photo { border-radius: 12px; }
  .page-hero-badge { width: min(106px, 34%); }
  .product-collage { gap: 8px; width: min(100%, 336px); }
  .product-tile { border-radius: 12px; }
  .collage-logo { width: 42%; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 100%; padding-inline: 16px; }
  .product-info h3 { font-size: 14px; }
  .product-buy-row { align-items: flex-start; flex-direction: column; }
  .product-actions { grid-template-columns: 1fr; }
  .cart-toast {
    right: 16px;
    left: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: auto;
    min-width: 0;
    max-width: none;
    transform: translateY(16px) scale(.98);
  }
  .cart-toast.show {
    transform: translateY(0) scale(1);
  }
  body[data-page="home"] .cart-toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
  .card, .btn, .product-card, .product-media img, .product-tile, .product-tile img, .add-cart, .cart-toast { transition: none; }
  .cart-drawer { transition: none; }
  .reveal, .product-card.product-added, .cart-count.bump { animation: none; }
}
