/* ═══════════════════════════════════════════════════════════════════════════
   MERGE Mall — storefront
   ───────────────────────────────────────────────────────────────────────────
   Brand blue (#2563eb) carries structure and trust; a warm coral-orange
   carries every call to act, so "buy" is never confused with "navigate".
   Type pairs Plus Jakarta Sans (display, geometric and confident) with Inter
   (UI and body, quiet and legible at small sizes).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* brand */
  --brand-50:  #eef4ff;
  --brand-100: #dbe6fe;
  --brand-200: #bfd3fe;
  --brand-400: #6096fa;
  --brand:     #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1a3faf;
  --brand-900: #14245c;

  /* action */
  --pop-50:  #fff4ed;
  --pop-100: #ffe5d3;
  --pop:     #f97316;
  --pop-600: #e35d09;

  /* neutrals, biased very slightly cool toward the brand */
  --ink:     #0b1220;
  --ink-2:   #46536b;
  --ink-3:   #7d8aa0;
  --ink-4:   #a8b3c4;
  --line:    #e4e9f1;
  --line-2:  #eef1f6;
  --surface: #ffffff;
  --raised:  #f7f9fc;
  --bg:      #f4f7fb;

  /* semantic, deliberately separate from the accent */
  --ok:     #047857;
  --ok-bg:  #e7f8f1;
  --warn:   #a35b06;
  --warn-bg:#fdf3e3;
  --bad:    #c72d20;
  --bad-bg: #fdeeec;

  --head: #0b1f3f;

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(11,18,32,.05);
  --sh-2: 0 2px 6px rgba(11,18,32,.06), 0 8px 20px rgba(11,18,32,.05);
  --sh-3: 0 10px 34px rgba(11,18,32,.12);
  --sh-pop: 0 6px 20px rgba(249,115,22,.30);

  --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 124px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-50:  #111d38;
    --brand-100: #16294d;
    --brand-200: #1d3566;
    --brand-400: #5b8ef0;
    --brand:     #4d8bf5;
    --brand-600: #6ba0f8;
    --brand-700: #8fb8fa;
    --brand-900: #cfe0fd;

    --pop-50:  #2c1608;
    --pop-100: #3d1f0a;
    --pop:     #fb8034;
    --pop-600: #fd9550;

    --ink:     #e9eef7;
    --ink-2:   #b3bed1;
    --ink-3:   #8492a8;
    --ink-4:   #616f85;
    --line:    #26313f;
    --line-2:  #1e2733;
    --surface: #151c26;
    --raised:  #1b2331;
    --bg:      #0d131b;

    --ok:     #34d3a0;
    --ok-bg:  #0f2b23;
    --warn:   #e6a84e;
    --warn-bg:#2d2213;
    --bad:    #f08579;
    --bad-bg: #2f1a18;

    --sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sh-2: 0 2px 6px rgba(0,0,0,.4), 0 8px 20px rgba(0,0,0,.3);
    --sh-3: 0 10px 34px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.021em; margin: 0; text-wrap: balance; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 18px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ── header ─────────────────────────────────────────────────────────────── */

/*
 * Two tiers: a dark bar carrying the brand, the search and the account, and a
 * light bar carrying navigation. The dark tier is what makes the marketplace
 * read as a marketplace rather than as one more shop.
 */
.site-header { position: sticky; top: 0; z-index: 60; }

.header-top { background: var(--head); color: #fff; }
.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.034em;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 55%, var(--pop) 190%);
  display: grid; place-items: center;
  color: #fff; font-size: .95rem; font-weight: 800;
  box-shadow: var(--sh-1);
  flex: none;
}
.logo em { font-style: normal; color: var(--brand); }
.header-top .logo { color: #fff; }
.header-top .logo em { color: #7eacff; }

.head-search { flex: 1; max-width: 660px; }
.head-search input {
  height: 44px;
  padding: 0 58px 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  width: 100%;
  font: inherit;
  font-size: .9rem;
}
.head-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(96,146,255,.45); }
.head-search button {
  right: 5px;
  width: 42px; height: 34px;
  padding: 0;
  border-radius: 999px;
  display: grid; place-items: center;
}

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.icon-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: rgba(255,255,255,.86);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.icon-btn .glyph { font-size: 1.05rem; line-height: 1; }
.icon-btn b { color: #fff; font-weight: 750; }
.cart-count {
  position: absolute;
  top: 2px; left: 26px;
  background: var(--pop);
  color: #fff;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  display: inline-grid;
  place-items: center;
  box-shadow: var(--sh-1);
}

.header-bar {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-bar-row { display: flex; align-items: center; gap: 16px; padding-block: 8px; }

.all-cats {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 650;
  font-size: .875rem;
  cursor: pointer;
  transition: background .15s;
}
.all-cats:hover { background: var(--brand-600); }
.bars {
  width: 15px; height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.site-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 12px 15px;
  font-size: .885rem;
  font-weight: 650;
  color: var(--ink-3);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

.location-btn {
  flex: none;
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s;
}
.location-btn:hover { background: var(--brand-100); border-color: var(--brand-200); }
.location-btn:active { transform: scale(.975); }
.location-btn .pin { font-size: .95em; }
.location-btn .chev { color: var(--ink-4); font-size: .8em; }

.cat-menu {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-3);
  z-index: 55;
}
.cat-menu-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px;
  padding-block: 14px 20px;
}
.cat-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: .875rem;
}
.cat-menu a:hover { background: var(--raised); text-decoration: none; }
.cat-menu a > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.cat-menu a strong { font-weight: 650; }
.cat-menu a span span { color: var(--ink-4); font-size: .78rem; }
.cat-menu .chev { margin-left: auto; color: var(--ink-4); }
.cat-menu .ci, .cat-rail .ci {
  width: 34px; height: 34px;
}
.cat-rail .ci {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1rem;
  flex: none;
}


/* Beats every display: rule in this sheet, so [hidden] always hides. */
[hidden] { display: none !important; }

/* ── search field ───────────────────────────────────────────────────────── */

.search-form { flex: 1; min-width: 150px; position: relative; display: flex; }
.search-form input {
  width: 100%;
  height: 44px;
  padding: 0 58px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-form input::placeholder { color: var(--ink-4); }
.search-form input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand-200);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.search-form .search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  pointer-events: none;
}
.search-form button {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 8px 17px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  font-size: .85rem;
  transition: background .15s;
}
.search-form button:hover { background: var(--brand-600); }

/* ── main ───────────────────────────────────────────────────────────────── */

main { padding-block: 26px 80px; min-height: 64vh; }

/* ── hero: category rail + carousel ─────────────────────────────────────── */

.hero-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  margin-block: 18px 22px;
}
.hero-col { min-width: 0; }

.cat-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 8px;
  align-self: start;
  overflow: hidden;
}
.cr-head {
  font-weight: 750;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 8px 12px 6px;
}
.cat-rail a {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 10px;
  border-radius: 11px;
  color: var(--ink);
  font-size: .87rem;
  font-weight: 500;
}
.cat-rail a:hover { background: var(--raised); text-decoration: none; }
.cat-rail .chev { margin-left: auto; color: var(--ink-4); }
/* Hairlines between rows, the way the rail reads in the design. */
.cat-rail a + a { box-shadow: 0 -1px 0 var(--line-2); }

/*
 * Expanded, the list scrolls rather than running the column past the rest of
 * the page — a region can carry two dozen categories once several shops are
 * live. The toggle sits outside the scroller so it never scrolls away.
 */
.cat-rail.open .cr-list {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cr-more {
  width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  margin-top: 4px;
  border: 0;
  border-top: 1px solid var(--line-2);
  border-radius: 0 0 12px 12px;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: .86rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.cr-more:hover { background: var(--raised); }
.ci-more {
  background: var(--brand-50);
  color: var(--brand);
  font-size: 1.05rem;
}
.cr-more-n {
  margin-left: auto;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 750;
  min-width: 22px;
  padding: 2px 7px;
  text-align: center;
}
.cr-more.open .cr-more-n { display: none; }

/*
 * The carousel.
 *
 * One track translated by whole slides, so there is no layout thrash per
 * frame and a slide that fails to load a picture still occupies its place.
 */
.hero-carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--head);
  box-shadow: var(--sh-2);
  height: clamp(260px, 30vw, 380px);
}
.hc-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,.05,.2,1);
}
.hc-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 52px);
  background: linear-gradient(115deg, #0b1f3f 0%, #143a72 45%, #1d63c9 100%);
  color: #fff;
  overflow: hidden;
}
.hc-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* A photograph cannot be trusted to keep white text legible on its own. */
.hc-slide.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,17,37,.88) 0%, rgba(6,17,37,.66) 45%, rgba(6,17,37,.15) 100%);
}
.hc-copy { position: relative; z-index: 2; max-width: 560px; }
.hc-eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fb8ff;
  margin-bottom: 10px;
}
.hc-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 10px;
}
.hc-copy p {
  margin: 0 0 18px;
  font-size: clamp(.9rem, 1.3vw, 1rem);
  line-height: 1.5;
  color: rgba(255,255,255,.86);
  max-width: 44ch;
}
.hc-cta { border-radius: 999px; padding-inline: 22px; }
.hc-badge {
  position: absolute;
  top: 22px; right: 24px;
  z-index: 2;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  text-align: center;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--sh-2);
  transition: background .15s, transform .12s;
}
.hc-arrow:hover { background: #fff; }
.hc-arrow:active { transform: translateY(-50%) scale(.94); }
.hc-prev { left: 14px; }
.hc-next { right: 14px; }

.hc-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  z-index: 3;
  display: flex; justify-content: center; gap: 8px;
}
.hc-dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.hc-dot.on { width: 26px; background: #fff; }

/* ── trust bar ──────────────────────────────────────────────────────────── */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 14px 10px;
  margin-bottom: 26px;
}
.tb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 14px;
  border-right: 1px solid var(--line-2);
}
.tb-item:last-child { border-right: 0; }
.tb-item > span:last-child { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.tb-item strong { font-size: .875rem; font-weight: 700; }
.tb-item span span { font-size: .78rem; color: var(--ink-3); }
.tb-ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand-50);
  display: grid; place-items: center;
  font-size: 1.15rem;
  flex: none;
}

/* ── big category tiles ─────────────────────────────────────────────────── */

.cat-bigs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.cat-big {
  position: relative;
  border-radius: var(--r-lg);
  padding: 18px;
  min-height: 130px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s;
}
.cat-big:hover { transform: translateY(-3px); box-shadow: var(--sh-2); text-decoration: none; }
.cat-big strong { font-size: 1.02rem; font-weight: 750; letter-spacing: -.01em; }
.cb-icon {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 2.4rem;
  opacity: .28;
  line-height: 1;
}
.cb-go { font-size: .8rem; font-weight: 600; opacity: .92; }


/* ── category tiles (categories pages) ──────────────────────────────────── */

.cat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  color: var(--ink);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, border-color .18s;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--brand-200);
  text-decoration: none;
}
.cat-tile .ci {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cat-tile strong { font-size: .885rem; font-weight: 650; }
.cat-tile > span:last-child { font-size: .78rem; color: var(--ink-4); }

/* ── section headings ───────────────────────────────────────────────────── */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.18rem, 2.4vw, 1.52rem); font-weight: 800; }
.section-head .sub { font-size: .885rem; color: var(--ink-3); margin: 3px 0 0; }
.section-head .count {
  font-size: .8rem;
  font-weight: 650;
  color: var(--ink-3);
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── grids ──────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 18px; }
.grid-stores { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }

/* ── store card ─────────────────────────────────────────────────────────── */

.store-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  box-shadow: var(--sh-1);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--brand-200);
  text-decoration: none;
}
.store-cover {
  height: 118px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(128deg, var(--brand-100), var(--brand-50) 60%, var(--pop-50));
}
/* Patterned fallback so a shop with no cover photo still looks finished. */
.store-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(37,99,235,.16) 1px, transparent 0);
  background-size: 15px 15px;
}
.store-cover img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.store-avatar {
  position: absolute;
  left: 18px; bottom: -26px;
  width: 58px; height: 58px;
  border-radius: 15px;
  background: var(--surface);
  border: 3px solid var(--surface);
  box-shadow: var(--sh-2);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800; font-size: 1.22rem;
  color: var(--brand);
  overflow: hidden;
}
.store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-body { padding: 36px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.store-body h3 { font-size: 1.04rem; font-weight: 750; }
.store-meta {
  font-size: .83rem;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.store-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.store-pill {
  font-size: .775rem;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.store-cta { font-size: .855rem; font-weight: 700; color: var(--brand); display: inline-flex; gap: 5px; align-items: center; }
.store-card:hover .store-cta .arr { transform: translateX(3px); }
.store-cta .arr { transition: transform .18s; }

/* ── product card ───────────────────────────────────────────────────────── */

.p-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--sh-1);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, border-color .18s;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-200); }
.p-thumb {
  aspect-ratio: 1;
  background: var(--raised);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.p-card:hover .p-thumb img { transform: scale(1.055); }

/* Most POS products have no photo, so the no-image state is the common case.
   A tinted monogram reads as a deliberate design, where a faded icon reads as
   a broken image. */
.p-thumb .ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--brand);
  opacity: .34;
  background:
    radial-gradient(circle at 30% 24%, var(--brand-50), transparent 58%),
    linear-gradient(140deg, var(--raised), var(--brand-50) 130%);
  letter-spacing: -.03em;
  user-select: none;
}
.p-flag {
  position: absolute;
  top: 9px; left: 9px;
  z-index: 2;
}
.p-body { padding: 13px 13px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.p-cat { font-size: .715rem; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; }
.p-name {
  font-size: .895rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.45em;
}
.p-desc {
  margin: -2px 0 0;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-price {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: auto;
}
.p-store { font-size: .78rem; color: var(--ink-3); }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  text-align: center;
  transition: background .16s, border-color .16s, transform .12s, box-shadow .16s, color .16s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.982); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-pop { background: var(--pop); color: #fff; box-shadow: var(--sh-pop); }
.btn-pop:hover:not(:disabled) { background: var(--pop-600); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover:not(:disabled) { background: var(--brand-600); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.btn-soft:hover:not(:disabled) { background: var(--brand-100); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--raised); border-color: var(--ink-4); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: .835rem; border-radius: 9px; }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: var(--r); }

.btn-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,.32);
  font-size: 1.02rem;
  padding: 16px 24px;
}
.btn-wa:hover { background: #1fbb59; }

/* ── badges ─────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .715rem;
  font-weight: 750;
  padding: 4px 9px;
  border-radius: 7px;
  letter-spacing: .012em;
  white-space: nowrap;
}
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-best { background: var(--ok); color: #fff; box-shadow: 0 2px 8px rgba(4,120,87,.28); }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }

/* ── notices ────────────────────────────────────────────────────────────── */

.notice {
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: .89rem;
  margin-bottom: 12px;
  border: 1px solid transparent;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.notice .ni { flex: none; font-size: 1rem; line-height: 1.3; }
.notice-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 24%, transparent); }
.notice-bad  { background: var(--bad-bg);  color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 24%, transparent); }
.notice-ok   { background: var(--ok-bg);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 24%, transparent); }
.notice-info { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }

/* ── panels ─────────────────────────────────────────────────────────────── */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--sh-1);
}
.panel h3 { font-size: 1.04rem; font-weight: 750; margin-bottom: 14px; }

/* ── empty & skeleton ───────────────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 64px 22px;
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
}
.empty .emoji { font-size: 2.6rem; margin-bottom: 10px; opacity: .8; }
.empty h3 { font-size: 1.14rem; font-weight: 750; margin-bottom: 7px; }
.empty p { margin: 0 auto 20px; color: var(--ink-3); max-width: 42ch; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@keyframes shimmer { 100% { background-position-x: -200%; } }
.sk {
  background: linear-gradient(90deg, var(--line-2) 8%, var(--line) 20%, var(--line-2) 34%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: 8px;
}
.sk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sk-thumb { aspect-ratio: 1; }
.sk-lines { padding: 13px; display: flex; flex-direction: column; gap: 8px; }
.sk-line { height: 11px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }

@media (prefers-reduced-motion: reduce) {
  .sk { animation-duration: 6s; }
  * { transition-duration: .01ms !important; }
}

/* ── modal ──────────────────────────────────────────────────────────────── */

@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.62);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 120;
  animation: fadeIn .18s ease-out;
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  width: 100%;
  max-width: 452px;
  max-height: min(92vh, 780px);
  overflow-y: auto;
  padding: 30px;
  animation: popIn .22s cubic-bezier(.2,.8,.3,1);
}
.modal h2 { font-size: 1.36rem; font-weight: 800; margin-bottom: 7px; }
.modal .sub { color: var(--ink-2); font-size: .91rem; margin: 0 0 22px; }

/* ── forms ──────────────────────────────────────────────────────────────── */

.field { margin-bottom: 15px; }
.field label { display: block; font-size: .825rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field label .opt { font-weight: 500; color: var(--ink-4); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .93rem;
  background: var(--raised);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.field textarea { resize: vertical; min-height: 82px; }
.field .hint { font-size: .785rem; color: var(--ink-3); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.seg {
  display: flex;
  gap: 4px;
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.seg button {
  flex: 1;
  border: none;
  background: none;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

/* ── chips ──────────────────────────────────────────────────────────────── */

.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: .86rem;
  font-weight: 650;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.chip:hover { border-color: var(--brand-200); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.25); }

/* ── store hero ─────────────────────────────────────────────────────────── */

/* ── shop page ──────────────────────────────────────────────────────────── */

/*
 * The banner is the shop's own artwork and carries the brand, so it stands on
 * its own above the identity card rather than being cropped inside it.
 */
.shop-banner {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--sh-1);
  background: linear-gradient(128deg, var(--brand-100), var(--brand-50) 55%, var(--pop-50));
}
.shop-banner img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  display: block;
}
.shop-banner.is-empty { height: clamp(140px, 24vw, 250px); position: relative; }
.shop-banner.is-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(37,99,235,.16) 1px, transparent 0);
  background-size: 18px 18px;
}

.shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
  padding: 0 22px;
  margin-bottom: 22px;
}
.shop-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 0 14px; }
.shop-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin-top: -46px;
  border: 4px solid var(--surface);
  background: var(--surface);
  box-shadow: var(--sh-2);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800; font-size: 1.7rem; color: var(--brand);
  overflow: hidden;
  flex: none;
}
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-text { flex: 1; min-width: 220px; }
.shop-text h1 { font-size: clamp(1.32rem, 3.2vw, 1.85rem); font-weight: 800; margin-bottom: 6px; }
.shop-text p { margin: 0 0 8px; color: var(--ink-2); font-size: .93rem; }
.shop-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .84rem; color: var(--ink-3); }
.shop-facts span { display: inline-flex; align-items: center; gap: 6px; }
.shop-actions { margin-left: auto; display: flex; gap: 10px; }

.shop-tabs { display: flex; gap: 26px; border-top: 1px solid var(--line); overflow-x: auto; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 2px;
  font: inherit;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  cursor: pointer;
}
.shop-tab:hover { color: var(--brand); }
.shop-tab.on { color: var(--brand); border-bottom-color: var(--brand); }

.shop-search { max-width: 440px; margin-bottom: 16px; }
.shop-search button {
  right: 6px;
  padding: 0;
  width: 44px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 22px;
}
.panel-muted { margin: 0; color: var(--ink-3); font-size: .92rem; }
.facts-list { display: grid; gap: 10px; margin: 14px 0 0; }
.facts-list > div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.facts-list dt { min-width: 140px; color: var(--ink-3); font-size: .86rem; }
.facts-list dd { margin: 0; font-weight: 600; }
.panel-card > .facts-list + .panel-muted { margin-top: 18px; }

@media (max-width: 560px) {
  .shop-actions { margin-left: 0; width: 100%; }
  .facts-list dt { min-width: 110px; }
}


/* ── offer groups (price comparison) ────────────────────────────────────── */

.offer-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.offer-head { display: flex; gap: 15px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.offer-head .thumb {
  width: 62px; height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--raised);
  display: grid; place-items: center;
  color: var(--ink-4); font-size: 1.5rem;
  flex: none;
  overflow: hidden;
}
.offer-head h3 { font-size: 1.04rem; font-weight: 750; margin-bottom: 3px; }
.offer-head .meta { font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.offer-spread {
  margin-left: auto;
  text-align: right;
  flex: none;
}
.offer-spread .lbl { font-size: .72rem; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; }
.offer-spread .val { font-family: var(--display); font-size: 1.12rem; font-weight: 800; color: var(--ok); }

.offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
  transition: background .15s;
}
.offer-row:last-child { border-bottom: none; }
.offer-row:hover { background: var(--raised); }
.offer-row.best { background: linear-gradient(90deg, var(--ok-bg), transparent 72%); }
.offer-row.best:hover { background: linear-gradient(90deg, var(--ok-bg), transparent 60%); }
.offer-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.offer-store { font-weight: 700; font-size: .93rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer-link { font-size: .8rem; color: var(--ink-3); }
.offer-link:hover { color: var(--brand); }
.offer-right { display: flex; align-items: center; gap: 14px; }
.offer-price { font-family: var(--display); font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; }

/* ── cart ───────────────────────────────────────────────────────────────── */

.cart-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 14px); }

.cart-store-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 4px;
}
.cart-store-head h3 { margin: 0; font-size: .99rem; font-weight: 750; display: flex; align-items: center; gap: 9px; }
.cart-store-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

.cart-line {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.cart-line:last-of-type { border-bottom: none; }
.cart-line .ct {
  width: 66px; height: 66px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--raised);
  display: grid; place-items: center;
  color: var(--ink-4); font-size: 1.4rem;
  overflow: hidden;
}
.cart-line-name { font-weight: 650; font-size: .93rem; line-height: 1.35; }
.cart-line-sub { font-size: .825rem; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cart-line-right { display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 32px; height: 32px;
  background: none; border: none;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 700; font-size: 1rem;
  display: grid; place-items: center;
  transition: background .14s, color .14s;
}
.qty button:hover { background: var(--brand-50); color: var(--brand); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: .89rem; font-variant-numeric: tabular-nums; }

.totals-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-2); padding-block: 5px; }
.totals-row.grand {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink);
  padding-top: 13px;
  margin-top: 8px;
  border-top: 1.5px solid var(--line);
  letter-spacing: -.02em;
}
.totals-row.sub { font-weight: 700; color: var(--ink); }

/* ── order confirmation ─────────────────────────────────────────────────── */

.ok-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 42px 26px;
  text-align: center;
  box-shadow: var(--sh-2);
}
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(4,120,87,.34); } 70% { box-shadow: 0 0 0 20px rgba(4,120,87,0); } 100% { box-shadow: 0 0 0 0 rgba(4,120,87,0); } }
.ok-mark {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 2rem;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  animation: pulseRing 2s ease-out 2;
}
.ok-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.ok-card .lead { color: var(--ink-2); margin: 0 0 20px; }
.ref-plate {
  display: inline-block;
  background: var(--brand-50);
  border: 1.5px dashed var(--brand-200);
  color: var(--brand-700);
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: .01em;
  padding: 13px 28px;
  border-radius: var(--r);
  font-variant-numeric: tabular-nums;
}

/* ── toast ──────────────────────────────────────────────────────────────── */

@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 13px 20px;
  border-radius: 999px;
  font-size: .89rem;
  font-weight: 650;
  z-index: 200;
  box-shadow: var(--sh-3);
  max-width: calc(100vw - 36px);
  display: flex; align-items: center; gap: 9px;
  animation: toastUp .24s cubic-bezier(.2,.8,.3,1);
}

/* ── spinner ────────────────────────────────────────────────────────────── */

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 56px auto;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: 44px 26px;
  background: var(--head);
  color: rgba(255,255,255,.66);
  font-size: .86rem;
}
.site-footer .logo { color: #fff; }
.site-footer .logo em { color: #7eacff; }
.site-footer h4 { color: #fff; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer .tagline { color: rgba(255,255,255,.7); }
.site-footer .footer-bottom { border-top-color: rgba(255,255,255,.12); color: rgba(255,255,255,.5); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: 30px 24px;
  align-items: start;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { margin: 0 0 4px; font-size: .855rem; line-height: 1.55; }
.footer-brand .tagline { color: var(--ink-2); font-weight: 600; }
.footer-brand .sub { color: var(--brand); font-weight: 650; }
.footer-social { display: flex; gap: 9px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: .95rem;
  color: var(--ink-2);
}
.footer-social a:hover { background: var(--brand-50); border-color: var(--brand-100); text-decoration: none; }

.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 11px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a, .footer-col button {
  font-size: .835rem;
  color: var(--ink-3);
  background: none; border: none; padding: 0;
  font-family: inherit; text-align: left; cursor: pointer;
}
.footer-col a:hover, .footer-col button:hover { color: var(--brand); text-decoration: none; }

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .8rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 760px) {
  :root { --header-h: 150px; }
  body { font-size: 14.5px; }
  .header-row { flex-wrap: wrap; gap: 10px; }
  .search-form { order: 3; flex-basis: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .grid-stores { grid-template-columns: 1fr; }
  .hero { border-radius: var(--r-lg); }
  .modal { padding: 24px; border-radius: var(--r-lg); }
  .offer-head { flex-wrap: wrap; }
  .offer-spread { margin-left: 0; text-align: left; width: 100%; }
  .cart-line { grid-template-columns: 56px minmax(0,1fr); }
  .cart-line .ct { width: 56px; height: 56px; }
  .cart-line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .shop-avatar { width: 66px; height: 66px; margin-top: -44px; font-size: 1.35rem; }
}


/* ── promo band (the one banner below the listings) ─────────────────────── */

.promo-band {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: linear-gradient(115deg, #06331f 0%, #0b5236 55%, #0d9f63 160%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 34px);
  margin: 34px 0 10px;
  box-shadow: var(--sh-2);
}
.pb-copy { flex: 1; min-width: 260px; }
.pb-eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7fe3b4;
  margin-bottom: 8px;
}
.promo-band h3 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.promo-band p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  max-width: 62ch;
}

/* ── the shop chip on a product card ────────────────────────────────────── */

.p-store {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink-2) !important;
  font-size: .72rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-store:hover { border-color: var(--brand-200); color: var(--brand) !important; text-decoration: none; }

/* ── phone tab bar ──────────────────────────────────────────────────────── */

.tabbar { display: none; }

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .cat-rail { display: none; }
}

@media (max-width: 900px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 10px 4px; }
  .tb-item:nth-child(2) { border-right: 0; }
}

@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 10px; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  /* Labels go; the glyphs and the cart count stay. */
  .header-actions .icon-btn span:not(.glyph):not(.cart-count) { display: none; }
  .header-actions .icon-btn { padding: 8px 10px; }

  .hc-badge { width: 64px; height: 64px; font-size: .66rem; top: 14px; right: 14px; }
  .hc-arrow { width: 32px; height: 32px; font-size: 1.15rem; }

  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px 8px;
    font-size: .68rem;
    font-weight: 600;
    color: var(--ink-3);
  }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.on { color: var(--brand); }
  .tb-icon { font-size: 1.12rem; line-height: 1; }
  .tb-count {
    position: absolute;
    top: 4px;
    left: calc(50% + 4px);
    background: var(--pop);
    color: #fff;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 800;
    min-width: 15px; height: 15px;
    padding-inline: 4px;
    display: grid; place-items: center;
  }
  /* The bar floats over the page; give the page somewhere to end. */
  body { padding-bottom: 62px; }

  /*
   * The top nav would be squeezed to nothing between the categories button and
   * the location pill. The tab bar carries the same destinations at thumb
   * height, so the row keeps only what the tab bar does not.
   */
  .site-nav { display: none; }
  .header-bar-row { gap: 10px; }
  .location-btn { margin-left: auto; }

  /* Arrows would sit on top of the headline at this width; swipe and dots remain. */
  .hc-arrow { display: none; }
  .hero-carousel { height: clamp(300px, 62vw, 360px); }
  .hc-dots { bottom: 10px; }
}

@media (max-width: 560px) {
  .site-nav a { padding: 11px 11px; font-size: .84rem; }
  .all-cats { padding: 9px 12px; font-size: .82rem; }
  .location-btn { padding: 7px 11px; font-size: .78rem; }
  .promo-band { text-align: left; }
}

/* Dark footer: these override the light-theme column rules further up. */
.site-footer .footer-col h4 { color: #fff; }
.site-footer .footer-col a { color: rgba(255,255,255,.7); }
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-col li { color: rgba(255,255,255,.7); }
.site-footer .footer-brand .tagline { color: rgba(255,255,255,.72); }
