:root {
  --primary:#0b7a3b;
  --primary-dark:#064d2a;
  --dark:#061512;
  --background:#f7f8fa;
  --card:#ffffff;
  --border:#e5e7eb;
  --text:#111827;
  --muted:#6b7280;
  --danger:#ef4444;
  --warning:#f59e0b;
  --success:#16a34a;
  --blue:#2563eb;
  --shadow:0 18px 50px rgba(6,21,18,.10);
}

* { box-sizing:border-box; }
body {
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:var(--background);
}
button, input, select { font:inherit; }
button {
  border:0;
  border-radius:14px;
  padding:12px 16px;
  background:var(--primary);
  color:white;
  cursor:pointer;
  font-weight:800;
  box-shadow:0 10px 24px rgba(11,122,59,.18);
}
button:disabled { opacity:.55; cursor:not-allowed; }
button.secondary { background:var(--dark); }
button.soft { background:#eaf7ef; color:var(--primary-dark); box-shadow:none; }
button.soft-dark { background:#eef2f6; color:var(--text); box-shadow:none; }
button.ghost { background:transparent; border:1px solid rgba(255,255,255,.45); box-shadow:none; }
button.ghost-dark { background:white; color:var(--text); border:1px solid var(--border); box-shadow:none; }
button:not(:disabled):hover {
  transform:translateY(-1px);
}
button:not(:disabled):active {
  transform:translateY(0) scale(.98);
}
button:focus-visible,
a:focus-visible {
  outline:3px solid rgba(11,122,59,.32);
  outline-offset:3px;
}
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:2px; font-size:22px; }
h2 { font-size:clamp(34px,5vw,62px); letter-spacing:-.05em; line-height:.95; margin-bottom:16px; max-width:780px; }
h3 { font-size:22px; margin-bottom:0; }
p { color:var(--muted); line-height:1.6; }
input, select {
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  background:white;
  outline:none;
}
input:focus, select:focus { border-color:rgba(11,122,59,.45); box-shadow:0 0 0 4px rgba(11,122,59,.08); }
label { display:grid; gap:7px; color:var(--muted); font-weight:700; font-size:13px; }
.app { min-height:100vh; }
.topbar {
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:16px 28px;
  background:rgba(6,21,18,.94);
  color:white;
  backdrop-filter:blur(12px);
}
.brand { display:flex; align-items:center; gap:12px; }
.brand span { color:rgba(255,255,255,.68); font-size:13px; }
.brand-mark {
  width:48px;
  height:48px;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#18b866,#0b7a3b);
  font-weight:900;
}
.top-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.session, .pill, .address-pill {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:8px 12px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-weight:800;
  font-size:13px;
}
.cart-button span {
  display:inline-grid;
  place-items:center;
  min-width:22px;
  height:22px;
  margin-left:6px;
  border-radius:999px;
  background:white;
  color:var(--primary-dark);
}
main {
  width:min(1440px, calc(100% - 34px));
  margin:22px auto 54px;
  display:grid;
  gap:18px;
}
.hero {
  min-height:420px;
  border-radius:34px;
  padding:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  color:white;
  background:
    linear-gradient(90deg, rgba(6,21,18,.96), rgba(6,21,18,.58)),
    url("https://images.unsplash.com/photo-1598514983318-2f64f8f4796c?auto=format&fit=crop&w=1800&q=80") center/cover;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero p { color:rgba(255,255,255,.78); max-width:680px; }
.eyebrow {
  margin:0 0 8px;
  color:#6ee7a4;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-weight:900;
}
.hero-search {
  max-width:720px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin:24px 0 14px;
}
.hero-search input { min-height:56px; border-radius:18px; }
.hero-card {
  min-width:230px;
  min-height:190px;
  display:grid;
  align-content:center;
  justify-items:center;
  border-radius:28px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
}
.hero-card strong { font-size:42px; }
.hero-card span { color:rgba(255,255,255,.72); font-weight:800; }
.dashboard {
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:14px;
}
.metric {
  padding:18px;
  border-radius:24px;
  background:white;
  border:1px solid var(--border);
  box-shadow:0 12px 28px rgba(6,21,18,.06);
}
.metric strong { display:block; font-size:30px; }
.metric span { color:var(--muted); font-weight:800; font-size:13px; }
.mode-strip {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.mode-card {
  min-height:132px;
  display:grid;
  align-content:end;
  justify-items:start;
  gap:6px;
  padding:20px;
  border:1px solid var(--border);
  border-radius:26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.74)),
    url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?auto=format&fit=crop&w=900&q=80") center/cover;
  color:var(--text);
  box-shadow:0 12px 30px rgba(6,21,18,.07);
  text-align:left;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mode-card:nth-child(2) { background-image:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.74)), url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=900&q=80"); }
.mode-card:nth-child(3) { background-image:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.74)), url("https://images.unsplash.com/photo-1514432324607-a09d9b4aefdd?auto=format&fit=crop&w=900&q=80"); }
.mode-card:nth-child(4) { background-image:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.74)), url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=900&q=80"); }
.mode-card:hover {
  transform:translateY(-3px);
  box-shadow:0 20px 44px rgba(6,21,18,.12);
}
.mode-card.active {
  border-color:rgba(11,122,59,.55);
  box-shadow:0 18px 42px rgba(11,122,59,.16);
}
.mode-card span {
  padding:6px 10px;
  border-radius:999px;
  background:var(--dark);
  color:white;
  font-size:12px;
  font-weight:900;
}
.mode-card strong { font-size:21px; }
.mode-card small { color:var(--muted); font-weight:800; }
.customer-account-panel { padding:20px; }
.customer-account-grid {
  display:grid;
  grid-template-columns:1fr 1.45fr 1fr;
  gap:14px;
}
.account-card {
  display:grid;
  align-content:start;
  gap:12px;
  min-width:0;
  padding:16px;
  border:1px solid var(--border);
  border-radius:22px;
  background:#fbfcfd;
}
.account-card h4 {
  margin:0;
  font-size:17px;
}
.mini-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.profile-details {
  display:grid;
  gap:8px;
  color:var(--muted);
  font-weight:700;
  line-height:1.45;
}
.profile-line {
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px;
  align-items:start;
  padding:9px 0;
  border-bottom:1px solid var(--border);
}
.profile-line span { color:var(--muted); font-size:12px; font-weight:900; text-transform:uppercase; }
.profile-line strong { color:var(--text); overflow-wrap:anywhere; }
.category-strip {
  display:flex;
  gap:10px;
  overflow:auto;
  padding:4px 0;
}
.chip {
  white-space:nowrap;
  background:white;
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:none;
}
.chip.active { background:var(--dark); color:white; }
.content-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  gap:18px;
  align-items:start;
  min-width:0;
}
.main-column, .side-column {
  display:grid;
  gap:18px;
  min-width:0;
}
.side-column { position:sticky; top:92px; }
.panel {
  min-width:0;
  background:white;
  border:1px solid var(--border);
  border-radius:28px;
  padding:18px;
  box-shadow:0 14px 36px rgba(6,21,18,.06);
}
.panel-note {
  margin:-8px 0 14px;
  padding:10px 12px;
  border-radius:16px;
  background:#f7fbf8;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}
.filter-row {
  display:grid;
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:12px;
  margin-bottom:16px;
}
.merchant-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px;
}
.merchant-card {
  border:1px solid var(--border);
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
  transition:.18s ease;
}
.merchant-card:hover, .merchant-card.selected { transform:translateY(-3px); box-shadow:var(--shadow); border-color:rgba(11,122,59,.32); }
.merchant-img {
  height:138px;
  background:linear-gradient(135deg,#0b7a3b,#f59e0b);
  background-size:cover;
  background-position:center;
}
.merchant-body { padding:14px; }
.merchant-body h4 { margin:0 0 8px; font-size:18px; }
.meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:13px; font-weight:700; }
.badge {
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#fff7e6;
  color:#7a4b07;
  font-size:12px;
  font-weight:900;
}
.product-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}
.product-card {
  display:grid;
  grid-template-columns:82px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid var(--border);
  border-radius:22px;
  padding:12px;
  background:#fbfcfd;
}
.product-img {
  width:82px;
  height:82px;
  border-radius:18px;
  background:linear-gradient(135deg,#f0b35b,#0b7a3b);
  background-size:cover;
  background-position:center;
}
.product-card h4 { margin:0 0 4px; }
.product-card p { margin-bottom:8px; font-size:13px; }
.product-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; }
#leafletMap {
  width:100%;
  height:390px;
  border-radius:22px;
  border:1px solid var(--border);
  background:#dce8e2;
  overflow:hidden;
}
.map-fallback {
  margin-top:10px;
  min-height:180px;
  border:1px dashed var(--border);
  border-radius:22px;
  padding:16px;
  background:#fbfcfd;
}
.notice {
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:16px;
  background:#eaf7ef;
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}
.notice.error { background:#fff5f5; color:var(--danger); }
.cart-list, .orders-panel, .activity-feed { display:grid; gap:10px; }
.cart-row, .order-card, .activity-item {
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
  background:#fbfcfd;
}
.cart-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.place-order { width:100%; margin-top:12px; min-height:52px; }
.checkout-panel { display:grid; gap:12px; }
.checkout-stepper {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:20px;
  background:#f8faf9;
}
.checkout-stepper span {
  display:grid;
  place-items:center;
  min-height:40px;
  border-radius:15px;
  color:var(--muted);
  font-size:12px;
  font-weight:1000;
  text-align:center;
}
.checkout-stepper span.active {
  background:var(--primary);
  color:#fff;
}
.checkout-note {
  padding:11px 12px;
  border-radius:18px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:13px;
  font-weight:900;
  line-height:1.4;
}
.order-card strong { display:block; margin-bottom:4px; }
.status-timeline {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.status-step {
  padding:6px 9px;
  border-radius:999px;
  background:#eef2f6;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.status-step.active { background:#e8f7ee; color:var(--primary-dark); }
.activity-item { border-left:4px solid var(--primary); font-size:14px; color:var(--muted); }
#toast {
  position:fixed;
  right:18px;
  bottom:18px;
  background:var(--dark);
  color:white;
  padding:14px 16px;
  border-radius:16px;
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(8px);
  transition:.2s;
  z-index:80;
}
#toast.show { opacity:1; transform:translateY(0); }
.action-status {
  position:fixed;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:70;
  max-height:230px;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:20px;
  background:white;
  box-shadow:var(--shadow);
  padding:14px;
  font-size:13px;
}
.action-status.success { border-color:rgba(22,163,74,.4); }
.action-status.error { background:#fff7f7; border-color:rgba(239,68,68,.4); }
.action-status pre { white-space:pre-wrap; color:var(--muted); }
.drawer {
  position:fixed;
  inset:0;
  z-index:90;
}
.drawer-backdrop {
  position:absolute;
  inset:0;
  background:rgba(6,21,18,.45);
}
.drawer-panel {
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:min(460px,100%);
  padding:20px;
  background:white;
  box-shadow:var(--shadow);
  overflow:auto;
}
button.profile-button {
  width:44px;
  height:44px;
  padding:0;
  border-radius:999px;
  background:#ffffff;
  color:var(--primary-dark);
  box-shadow:none;
  font-size:0;
}
button.profile-button::before { content:"Profile"; font-size:12px; font-weight:900; }
.delivery-controls {
  display:grid;
  grid-template-columns:minmax(220px,340px) auto;
  gap:10px;
  align-items:end;
  max-width:640px;
  margin-bottom:12px;
}
.delivery-controls label { color:rgba(255,255,255,.78); }
.delivery-controls select { min-height:48px; }
.promo-banner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:22px;
  border-radius:28px;
  background:linear-gradient(135deg,#e8f7ee,#fff7e6);
  border:1px solid rgba(11,122,59,.12);
  box-shadow:0 14px 36px rgba(6,21,18,.06);
}
.promo-banner h3 { margin-bottom:6px; }
.promo-banner span { color:var(--muted); font-weight:700; }
.experience-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.experience-card {
  min-height:260px;
  position:relative;
  overflow:hidden;
  display:grid;
  align-content:end;
  gap:8px;
  padding:20px;
  border:1px solid rgba(255,255,255,.36);
  border-radius:28px;
  color:white;
  background:
    linear-gradient(180deg, rgba(6,21,18,.05), rgba(6,21,18,.82)),
    url("https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1000&q=82") center/cover;
  box-shadow:var(--shadow);
}
.experience-card.grocery {
  background-image:linear-gradient(180deg, rgba(6,21,18,.05), rgba(6,21,18,.82)), url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1000&q=82");
}
.experience-card.coffee {
  background-image:linear-gradient(180deg, rgba(6,21,18,.05), rgba(6,21,18,.82)), url("https://images.unsplash.com/photo-1514432324607-a09d9b4aefdd?auto=format&fit=crop&w=1000&q=82");
}
.experience-card.care {
  background-image:linear-gradient(180deg, rgba(6,21,18,.05), rgba(6,21,18,.82)), url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=1000&q=82");
}
.experience-card span {
  width:max-content;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
}
.experience-card strong { font-size:24px; line-height:1.1; }
.experience-card p { color:rgba(255,255,255,.82); margin:0; }
.experience-card a {
  width:max-content;
  margin-top:4px;
  padding:10px 13px;
  border-radius:999px;
  color:var(--dark);
  background:white;
  text-decoration:none;
  font-weight:900;
}
.promise-panel {
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(280px,1.2fr);
  gap:18px;
  align-items:center;
  padding:24px;
  border-radius:30px;
  background:#071d13;
  color:white;
  box-shadow:var(--shadow);
}
.promise-panel p { color:rgba(255,255,255,.76); }
.promise-panel h3 { font-size:32px; }
.promise-steps {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.promise-steps button {
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
  color:#fff;
  cursor:pointer;
  font-weight:900;
  text-align:center;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.promise-steps button:hover,
.promise-steps button:focus-visible {
  transform:translateY(-2px);
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.32);
  outline:none;
}
.marketplace-assurance {
  padding:24px;
  border:1px solid var(--border);
  border-radius:30px;
  background:
    linear-gradient(135deg, rgba(4,120,66,.08), rgba(255,255,255,.96) 42%),
    #fff;
  box-shadow:0 18px 46px rgba(14,58,37,.08);
}
.marketplace-assurance .section-head {
  margin-bottom:18px;
}
.assurance-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.assurance-grid article {
  min-height:190px;
  padding:18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.assurance-grid article:hover {
  transform:translateY(-3px);
  border-color:rgba(4,120,66,.22);
  box-shadow:0 18px 42px rgba(4,120,66,.12);
}
.assurance-grid span {
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:14px;
  border-radius:14px;
  color:#fff;
  background:var(--green);
  font-weight:950;
}
.assurance-grid strong {
  display:block;
  margin-bottom:8px;
  font-size:18px;
  color:var(--dark);
}
.assurance-grid p {
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
.neighborhood-panel {
  padding:22px;
  border:1px solid var(--border);
  border-radius:30px;
  background:white;
  box-shadow:0 14px 36px rgba(6,21,18,.06);
}
.neighborhood-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.neighborhood-grid a {
  display:grid;
  gap:5px;
  min-height:110px;
  align-content:end;
  padding:16px;
  border:1px solid var(--border);
  border-radius:22px;
  color:var(--text);
  background:linear-gradient(135deg,#f7fbf8,#ffffff);
  text-decoration:none;
  box-shadow:0 10px 22px rgba(6,21,18,.05);
}
.neighborhood-grid strong { font-size:20px; }
.neighborhood-grid span { color:var(--muted); font-size:13px; font-weight:800; }
.marketplace-tools-panel,
.quality-panel {
  padding:22px;
  border:1px solid var(--border);
  border-radius:30px;
  background:white;
  box-shadow:0 14px 36px rgba(6,21,18,.06);
}
.tool-card-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.tool-card {
  display:grid;
  gap:8px;
  min-height:156px;
  align-content:start;
  padding:16px;
  border:1px solid var(--border);
  border-radius:22px;
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(11,122,59,.12), transparent 34%),
    linear-gradient(135deg,#ffffff,#f7fbf8);
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover {
  transform:translateY(-2px);
  border-color:rgba(11,122,59,.35);
  box-shadow:0 18px 38px rgba(6,21,18,.10);
}
.tool-card span {
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
}
.tool-card strong { font-size:20px; }
.tool-card p { margin:0; font-size:14px; }
.quality-panel {
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(280px,1.18fr);
  gap:18px;
  align-items:center;
  background:
    linear-gradient(135deg, rgba(6,21,18,.96), rgba(6,21,18,.84)),
    url("https://images.unsplash.com/photo-1526367790999-0150786686a2?auto=format&fit=crop&w=1300&q=82") center/cover;
  color:white;
}
.quality-panel p { color:rgba(255,255,255,.78); }
.quality-panel h3 { font-size:32px; }
.quality-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.quality-list button {
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.14);
  color:white;
  cursor:pointer;
  font:inherit;
  font-weight:900;
  text-align:left;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.quality-list button:hover,
.quality-list button:focus-visible {
  transform:translateY(-2px);
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.34);
  outline:none;
}
.card-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.open-badge {
  padding:5px 9px;
  border-radius:999px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
}
.merchant-promo {
  margin:10px 0 0;
  color:var(--primary-dark);
  font-size:13px;
  font-weight:900;
}
.merchant-detail-hero {
  display:grid;
  grid-template-columns:180px 1fr;
  gap:16px;
  align-items:center;
  padding:12px;
  margin-bottom:14px;
  border:1px solid var(--border);
  border-radius:24px;
  background:#fbfcfd;
}
.merchant-hero-img {
  min-height:132px;
  border-radius:20px;
  background:linear-gradient(135deg,#0b7a3b,#f59e0b);
  background-size:cover;
  background-position:center;
}
.merchant-detail-hero h4 { margin:0 0 6px; font-size:24px; }
.merchant-trust-panel {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px;
}
.trust-card {
  display:grid;
  gap:8px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff,#f7fbf8);
}
.trust-card strong { font-size:16px; }
.trust-card span {
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  line-height:1.4;
}
.reviews-mini span {
  padding-bottom:7px;
  border-bottom:1px solid var(--border);
}
.product-tag-row,
.modifier-row,
.availability-row {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:7px 0;
}
.product-tag-row span,
.modifier-row span,
.availability-row span {
  padding:5px 8px;
  border-radius:999px;
  background:#eef7f1;
  color:var(--primary-dark);
  font-size:11px;
  font-weight:900;
}
.modifier-row span {
  background:#fff7e6;
  color:#7a4b07;
}
.availability-row span {
  background:#eef2f6;
  color:var(--muted);
}
.quantity-control,
.cart-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.quantity-control span {
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.special-request {
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:12px;
  align-items:end;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--border);
}
.cart-row { align-items:center; }
.cart-row.total { background:#e8f7ee; color:var(--primary-dark); font-weight:900; }
.cart-controls button {
  min-width:34px;
  min-height:34px;
  padding:8px 10px;
  border-radius:12px;
}
.cart-summary { display:grid; gap:8px; margin:12px 0; }
.order-receipt-panel {
  display:grid;
  gap:14px;
  margin:0 0 16px;
  padding:18px;
  border:1px solid rgba(11,122,59,.22);
  border-radius:24px;
  background:
    radial-gradient(circle at top right, rgba(11,122,59,.12), transparent 180px),
    #ffffff;
  box-shadow:0 16px 38px rgba(6,21,18,.08);
}
.order-receipt-panel[hidden] { display:none; }
.receipt-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.receipt-top h4 {
  margin:0 0 4px;
  font-size:28px;
}
.receipt-status {
  padding:9px 12px;
  border-radius:999px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
}
.receipt-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.receipt-grid span {
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fbfcfd;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.receipt-grid strong {
  color:var(--text);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.receipt-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.skeleton-card {
  pointer-events:none;
  overflow:hidden;
}
.skeleton-block,
.skeleton-line {
  position:relative;
  overflow:hidden;
  background:#edf2ef;
}
.skeleton-line {
  display:block;
  height:14px;
  margin:8px 0;
  border-radius:999px;
}
.skeleton-line.short { width:52%; }
.skeleton-line.tiny { width:34%; }
.skeleton-block::after,
.skeleton-line::after {
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  animation:skeletonShimmer 1.4s infinite;
}
@keyframes skeletonShimmer {
  to { transform:translateX(100%); }
}
.checkout-confidence,
.foundation-list {
  display:grid;
  gap:8px;
}
.checkout-confidence span,
.foundation-list span {
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fbfcfd;
  color:var(--muted);
  font-size:13px;
  font-weight:900;
}
.foundation-list span[data-state="ready"] {
  border-color:rgba(22,163,74,.28);
  background:#eefaf2;
  color:var(--primary-dark);
}
.foundation-list span[data-state="pending"] {
  border-color:rgba(245,158,11,.28);
  background:#fff7e6;
  color:#7a4b07;
}
.production-foundation-panel {
  background:
    radial-gradient(circle at top right, rgba(11,122,59,.10), transparent 190px),
    #fff;
}
.bottom-nav {
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  z-index:60;
  display:none;
  grid-template-columns:repeat(6,1fr);
  gap:6px;
  width:min(520px,calc(100% - 24px));
  padding:8px;
  border:1px solid var(--border);
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow);
}
.bottom-nav a,
.bottom-nav button {
  display:grid;
  place-items:center;
  min-height:42px;
  border-radius:16px;
  color:var(--text);
  background:#eef2f6;
  text-decoration:none;
  box-shadow:none;
  font-weight:900;
}
@media (max-width:1100px) {
  .content-grid { grid-template-columns:1fr; }
  .side-column { position:static; }
  .experience-grid, .neighborhood-grid, .tool-card-grid, .assurance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .topbar, .hero, .section-head { align-items:stretch; flex-direction:column; }
  .dashboard, .mode-strip, .filter-row, .content-grid, .delivery-controls, .special-request, .merchant-detail-hero, .merchant-trust-panel, .customer-account-grid, .mini-grid, .profile-line, .experience-grid, .promise-panel, .promise-steps, .neighborhood-grid, .tool-card-grid, .quality-panel, .quality-list, .receipt-grid, .assurance-grid { grid-template-columns:1fr; }
  .hero { padding:26px; min-height:auto; }
  .hero-search { grid-template-columns:1fr; }
  .marketplace-assurance { padding:18px; border-radius:24px; }
  .assurance-grid article { min-height:auto; }
  main { width:min(100% - 22px,1440px); }
  .bottom-nav { display:grid; }
  body { padding-bottom:80px; }
}


.image-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 20px;
}
.image-modal.show { display: grid; }
.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 18, .72);
  backdrop-filter: blur(6px);
}
.image-modal-card {
  position: relative;
  width: min(760px, 96vw);
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
}
.image-modal-photo {
  height: min(62vh, 520px);
  background-size: cover;
  background-position: center;
}
.image-modal-card h3 {
  margin: 0;
  padding: 18px 20px;
}
.image-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: #061512;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* Premium customer homepage layer */
body {
  background:
    radial-gradient(circle at top left, rgba(11,122,59,.10), transparent 340px),
    radial-gradient(circle at top right, rgba(245,158,11,.14), transparent 320px),
    #f7f8fa;
}
main {
  width:min(1440px, calc(100vw - 34px));
  max-width:1440px;
  overflow:hidden;
  grid-template-columns:minmax(0,1fr);
}
.topbar {
  display:grid;
  grid-template-columns:auto auto minmax(260px,1fr) auto auto;
  background:rgba(255,255,255,.92);
  color:var(--text);
  border-bottom:1px solid rgba(229,231,235,.9);
  box-shadow:0 12px 30px rgba(17,24,39,.06);
}
.brand span { color:var(--muted); }
.brand-mark { border-radius:16px; }
.primary-nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.primary-nav a,
.location-selector,
.icon-button,
.menu-toggle {
  color:var(--text);
  background:#fff;
  border:1px solid var(--border);
  box-shadow:none;
  text-decoration:none;
  border-radius:999px;
  padding:10px 13px;
  font-weight:900;
}
.primary-nav a:hover,
.location-selector:hover,
.icon-button:hover {
  background:#eaf7ef;
  color:var(--primary-dark);
}
.menu-toggle { display:none; }
.location-selector {
  justify-self:end;
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.top-actions .ghost { color:var(--text); border-color:var(--border); }
.session { background:#f3f4f6; color:var(--text); }
.hero {
  position:relative;
  min-height:560px;
  border-radius:32px;
  color:#fff;
  background:
    linear-gradient(90deg, rgba(6,21,18,.94), rgba(6,21,18,.62) 48%, rgba(6,21,18,.18)),
    url("https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero::after {
  content:"";
  position:absolute;
  inset:auto 34px 34px auto;
  width:230px;
  height:230px;
  border-radius:50%;
  background:radial-gradient(circle,#f59e0b 0 30%,rgba(245,158,11,.18) 31% 58%,transparent 59%);
  opacity:.82;
}
.hero-copy { position:relative; z-index:1; }
.hero-search {
  grid-template-columns:minmax(220px,1fr) auto;
  padding:8px;
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 20px 60px rgba(0,0,0,.22);
}
.hero-search button { min-width:120px; }
.delivery-controls {
  grid-template-columns:minmax(220px,330px) auto;
  padding:8px;
  border-radius:22px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
}
.hero-actions,
.trust-row {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.secondary-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.26);
  color:#fff;
  text-decoration:none;
  font-weight:900;
}
.trust-row span {
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.12);
  color:#eefcf3;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}
.hero-card {
  position:relative;
  z-index:1;
  min-width:310px;
  min-height:360px;
  border-radius:32px;
  overflow:hidden;
  align-content:end;
  padding:24px;
  background:
    linear-gradient(180deg, transparent, rgba(6,21,18,.82)),
    url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=900&q=80") center/cover;
}
.food-collage {
  position:absolute;
  inset:20px 20px auto auto;
  display:grid;
  gap:8px;
}
.food-collage span {
  background:rgba(255,255,255,.9);
  color:var(--primary-dark);
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.category-section {
  display:grid;
  gap:12px;
  padding:18px;
  border-radius:28px;
  background:white;
  border:1px solid var(--border);
  box-shadow:0 14px 36px rgba(6,21,18,.06);
}
.section-head.compact { margin-bottom:0; }
.category-strip {
  padding:4px 2px 10px;
  scrollbar-width:thin;
}
.chip {
  border-radius:999px;
  min-height:44px;
  padding:10px 14px;
}
.chip.active { background:var(--primary); }
.search-quick-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border-radius:22px;
  background:#f8faf9;
  border:1px solid var(--border);
}
.search-quick-panel span {
  display:block;
  color:var(--muted);
  font-weight:700;
  margin-top:3px;
}
.filter-chips { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.filter-chips .chip {
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.filter-chips .chip:hover,
.filter-chips .chip:focus-visible {
  transform:translateY(-2px);
  border-color:rgba(11,122,59,.24);
  box-shadow:0 12px 26px rgba(6,21,18,.08);
}
.merchant-grid {
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:4px 2px 14px;
}
.merchant-card {
  position:relative;
  flex:0 0 300px;
  border-radius:22px;
  scroll-snap-align:start;
  box-shadow:0 14px 34px rgba(17,24,39,.08);
}
.merchant-img {
  position:relative;
  height:170px;
}
.merchant-img .open-badge {
  position:absolute;
  left:12px;
  top:12px;
  background:#fff;
}
.favorite-btn {
  position:absolute;
  right:12px;
  top:12px;
  min-width:54px;
  min-height:38px;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--primary-dark);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.favorite-btn.active {
  background:var(--primary);
  color:white;
}
.avatar {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#eaf7ef;
  color:var(--primary-dark);
  font-weight:900;
}
.merchant-body h4 {
  font-size:20px;
  margin-top:8px;
}
.product-grid {
  display:flex;
  gap:14px;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:12px;
}
.product-card {
  flex:0 0 min(320px, calc(100vw - 48px));
  max-width:min(320px, calc(100vw - 48px));
  grid-template-columns:104px 1fr;
  border-radius:22px;
  background:white;
  box-shadow:0 12px 26px rgba(17,24,39,.06);
  scroll-snap-align:start;
}
.product-img {
  width:104px;
  height:104px;
}
.empty-state {
  flex:1 0 100%;
  padding:22px;
  border:1px dashed #bdd6c7;
  border-radius:22px;
  background:#f8faf9;
  color:var(--muted);
  font-weight:800;
}
.merchant-detail-hero {
  background:
    linear-gradient(135deg, rgba(11,122,59,.08), rgba(245,158,11,.08)),
    #fff;
}
.order-card {
  border-radius:22px;
}
.drawer-panel {
  border-radius:28px 0 0 28px;
}
.cart-button { position:relative; }
.bottom-nav {
  grid-template-columns:repeat(6,1fr);
}
.live-order-card {
  display:grid;
  gap:16px;
  background:
    linear-gradient(135deg, rgba(11,122,59,.08), rgba(245,158,11,.06)),
    #fff;
}
.live-order-card.watching {
  border-color:rgba(11,122,59,.34);
  box-shadow:0 18px 60px rgba(11,122,59,.14);
}
.live-order-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.live-label {
  display:inline-flex;
  width:max-content;
  margin-bottom:8px;
  padding:6px 10px;
  border-radius:999px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.live-stage-badge {
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 13px;
  border-radius:999px;
  background:var(--primary);
  color:white;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 12px 28px rgba(11,122,59,.22);
}
.live-process-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.live-process-step {
  display:grid;
  gap:5px;
  min-height:112px;
  padding:12px;
  border-radius:18px;
  border:1px solid var(--border);
  background:#f8faf9;
  color:var(--muted);
}
.live-process-step span {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background:#e5e7eb;
  color:#667085;
  font-weight:900;
}
.live-process-step strong {
  color:var(--text);
  font-size:14px;
}
.live-process-step small {
  color:var(--muted);
  font-weight:800;
}
.live-process-step.done {
  background:#e8f7ee;
  border-color:rgba(11,122,59,.18);
}
.live-process-step.done span {
  background:var(--primary);
  color:white;
}
.live-process-step.current {
  outline:3px solid rgba(245,158,11,.28);
  background:#fff8eb;
}
.live-progress {
  height:12px;
  overflow:hidden;
  border-radius:999px;
  background:#e5e7eb;
}
.live-progress div {
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),#22c55e,var(--warning));
  transition:width .35s ease;
}
.live-next-step {
  padding:12px 14px;
  border-radius:16px;
  background:#061512;
  color:#f8fff9;
  font-weight:900;
}
@media (max-width:1180px) {
  .topbar { grid-template-columns:auto auto 1fr; }
  .menu-toggle { display:inline-flex; justify-content:center; }
  .primary-nav {
    display:none;
    grid-column:1 / -1;
    justify-content:flex-start;
    overflow:auto;
  }
  .primary-nav.open { display:flex; }
  .location-selector { justify-self:start; }
}
@media (max-width:760px) {
  .topbar { grid-template-columns:1fr auto; padding:12px; }
  .brand span, .location-selector, .top-actions .soft, .session { display:none; }
  .primary-nav.open { grid-column:1 / -1; }
  .top-actions { justify-content:flex-start; }
  main { width:calc(100vw - 22px); }
  .hero { width:100%; min-height:auto; border-radius:24px; padding:24px; max-width:100%; overflow:hidden; }
  .hero,
  .hero-copy,
  .hero-actions,
  .trust-row,
  .hero-search,
  .delivery-controls {
    width:100%;
    min-width:0;
    max-width:100%;
  }
  .hero h2,
  .hero p,
  .eyebrow {
    max-width:100%;
  }
  .hero::after { display:none; }
  .hero-card { min-width:0; width:100%; min-height:240px; }
  .delivery-controls { grid-template-columns:1fr; }
  .trust-row span { flex:0 1 auto; max-width:100%; }
  .search-quick-panel { align-items:flex-start; flex-direction:column; }
  .merchant-card { flex-basis:86%; }
  .product-card { flex-basis:88%; grid-template-columns:92px 1fr; }
  .product-img { width:92px; height:92px; }
  .bottom-nav { grid-template-columns:repeat(6,1fr); width:calc(100% - 14px); border-radius:18px; gap:4px; padding:6px; }
  .bottom-nav a, .bottom-nav button { min-height:40px; font-size:11px; border-radius:14px; }
  .live-order-top { flex-direction:column; }
  .live-process-grid { grid-template-columns:1fr; }
  .live-stage-badge { white-space:normal; }
}

/* Header stabilization: keep responsive menu polished instead of raw links. */
.topbar {
  grid-template-columns:auto auto minmax(0,1fr) auto auto;
  align-items:center;
  background:rgba(6,21,18,.96);
  color:#fff;
}
.topbar .brand span { color:rgba(255,255,255,.72); }
.primary-nav {
  min-width:0;
  overflow-x:auto;
  padding:7px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  background:rgba(255,255,255,.06);
  scrollbar-width:none;
}
.primary-nav::-webkit-scrollbar { display:none; }
.primary-nav a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 13px;
  border-radius:999px;
  color:#f6fff9 !important;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.10);
  text-decoration:none !important;
  white-space:nowrap;
}
.primary-nav a:hover,
.primary-nav a:focus {
  color:#063f22 !important;
  background:#ffffff;
}
.menu-toggle,
.location-selector,
.icon-button {
  min-height:44px;
  border-color:rgba(255,255,255,.14);
  color:#fff;
  background:rgba(255,255,255,.10);
}
.menu-toggle {
  min-width:96px;
  background:var(--primary);
}
.location-selector {
  max-width:280px;
  background:var(--primary);
  color:#fff;
  box-shadow:0 18px 44px rgba(11,122,59,.22);
}
.top-actions {
  min-width:0;
  flex-wrap:nowrap;
}
.top-actions .soft,
.top-actions .cart-button {
  white-space:nowrap;
}
.top-actions .ghost { color:#fff; }
@media (max-width:1180px) {
  .topbar {
    grid-template-columns:auto auto minmax(0,1fr);
    gap:12px;
  }
  .menu-toggle {
    display:inline-flex;
    justify-content:center;
    justify-self:start;
  }
  .primary-nav {
    display:none;
    grid-column:1 / -1;
    order:6;
    width:100%;
    justify-content:flex-start;
  }
  .primary-nav.open {
    display:flex;
  }
  .location-selector {
    justify-self:start;
    max-width:240px;
  }
  .top-actions {
    grid-column:1 / -1;
    justify-content:flex-start;
    order:7;
  }
}
@media (max-width:760px) {
  .topbar {
    grid-template-columns:1fr auto;
    gap:10px;
  }
  .menu-toggle {
    justify-self:end;
    min-width:82px;
  }
  .primary-nav.open {
    grid-column:1 / -1;
  }
  .top-actions {
    grid-column:1 / -1;
    overflow-x:auto;
    padding-bottom:3px;
  }
  .top-actions .cart-button,
  .top-actions .profile-button,
  .top-actions .icon-button {
    flex:0 0 auto;
  }
}

/* Premium real-image customer polish: no abstract blobs, just useful app cards. */
body {
  background:#f6f8f7;
}
.hero {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(340px,.72fr);
  align-items:center;
  gap:32px;
  min-height:560px;
  border-radius:24px;
  padding:44px;
  background:
    linear-gradient(90deg, rgba(4,31,22,.96), rgba(6,56,34,.84)),
    url("https://images.unsplash.com/photo-1606787366850-de6330128bfc?auto=format&fit=crop&w=1800&q=84") center/cover;
  box-shadow:0 28px 80px rgba(6,21,18,.18);
}
.hero::after,
.food-collage {
  display:none !important;
}
.hero h2 {
  letter-spacing:0;
  line-height:1.02;
  max-width:760px;
}
.hero-card {
  min-width:0;
  width:100%;
  min-height:420px;
  align-content:end;
  justify-items:stretch;
  border-radius:24px;
  padding:18px;
  border:1px solid rgba(255,255,255,.28);
  background:
    linear-gradient(180deg, rgba(6,21,18,.02) 38%, rgba(6,21,18,.86)),
    url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?auto=format&fit=crop&w=1100&q=84") center/cover;
  box-shadow:0 26px 70px rgba(0,0,0,.24);
}
.hero-card-badge {
  position:absolute;
  top:18px;
  left:18px;
  display:inline-flex;
  width:max-content;
  max-width:calc(100% - 36px);
  padding:9px 12px;
  border-radius:999px;
  background:#fff;
  color:var(--primary-dark);
  font-weight:900;
  box-shadow:0 12px 32px rgba(0,0,0,.16);
}
.hero-card-panel {
  display:grid;
  gap:4px;
  padding:16px;
  border-radius:20px;
  background:rgba(6,21,18,.82);
  backdrop-filter:blur(10px);
}
.hero-card-panel strong {
  font-size:42px;
  line-height:1;
}
.hero-card-panel span {
  color:#ecfff4;
}
.hero-search,
.delivery-controls {
  box-shadow:0 18px 44px rgba(0,0,0,.16);
}
.trust-row span {
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.28);
}
.category-section,
.panel,
.promo-banner,
.metric {
  border-radius:24px;
}
.chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:8px 14px 8px 8px;
  border-radius:18px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.chip:hover {
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(17,24,39,.08);
}
.chip-icon {
  display:inline-grid;
  place-items:center;
  min-width:34px;
  height:34px;
  padding:0 6px;
  border-radius:14px;
  background:#eaf7ef;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
}
.chip.active .chip-icon {
  background:rgba(255,255,255,.2);
  color:#fff;
}
.section-link-row {
  display:flex;
  gap:10px;
  overflow:auto;
  padding:2px 0 6px;
}
.section-link-row a {
  flex:0 0 auto;
  padding:10px 13px;
  border-radius:999px;
  background:#f8faf9;
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  font-weight:900;
}
.section-link-row a:hover {
  background:#eaf7ef;
  color:var(--primary-dark);
}
.merchant-card {
  flex-basis:322px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(229,231,235,.92);
  box-shadow:0 16px 38px rgba(17,24,39,.08);
}
.merchant-card:hover,
.merchant-card.selected {
  transform:translateY(-5px);
  box-shadow:0 24px 58px rgba(6,21,18,.14);
}
.merchant-img {
  height:188px;
  background-color:#edf2f0;
  background-size:cover;
  background-position:center;
}
.merchant-body {
  display:grid;
  gap:10px;
  padding:15px;
}
.merchant-body h4 {
  margin:0;
  line-height:1.16;
}
.verified-badge {
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
}
.rating-star {
  color:#f59e0b;
}
.merchant-footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding-top:8px;
  border-top:1px solid var(--border);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:900;
}
.favorite-btn {
  min-width:46px;
  font-size:12px;
}
.product-card {
  flex-basis:340px;
  grid-template-columns:118px 1fr;
  min-height:156px;
  border-radius:24px;
  border:1px solid rgba(229,231,235,.94);
  background:#fff;
  box-shadow:0 16px 34px rgba(17,24,39,.07);
  transition:transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform:translateY(-4px);
  box-shadow:0 22px 48px rgba(6,21,18,.12);
}
.product-img {
  width:118px;
  height:118px;
  border-radius:20px;
  background-color:#edf2f0;
  background-size:cover;
  background-position:center;
}
.product-card h4 {
  line-height:1.18;
}
.product-actions button,
.quantity-control button {
  border-radius:16px;
}
.merchant-detail-hero {
  border-radius:24px;
  background:#fff;
}
.merchant-hero-img {
  min-height:168px;
  border-radius:22px;
  background-color:#edf2f0;
  background-size:cover;
  background-position:center;
}
@media (max-width:980px) {
  .hero {
    grid-template-columns:1fr;
    min-height:auto;
  }
  .hero-card {
    min-height:320px;
  }
}
@media (max-width:760px) {
  .hero {
    padding:22px;
    border-radius:22px;
  }
  .hero h2 {
    font-size:38px;
  }
  .hero-card {
    min-height:260px;
  }
  .hero-card-panel strong {
    font-size:34px;
  }
  .merchant-card,
  .product-card {
    flex-basis:88%;
  }
  .product-card {
    grid-template-columns:96px 1fr;
  }
  .product-img {
    width:96px;
    height:96px;
  }
}

/* Desktop header layout: prevent nav, location, and account controls from colliding. */
@media (min-width:1181px) {
  .topbar {
    grid-template-columns:minmax(270px,auto) minmax(360px,1fr) minmax(420px,max-content);
    grid-template-areas:
      "brand nav actions"
      "brand location actions";
    gap:10px 18px;
    align-items:center;
    padding:16px 28px;
  }
  .topbar .brand {
    grid-area:brand;
  }
  .primary-nav {
    grid-area:nav;
    justify-self:start;
    max-width:100%;
  }
  .location-selector {
    grid-area:location;
    justify-self:start;
    width:min(100%, 440px);
    max-width:440px;
    text-align:center;
  }
  .top-actions {
    grid-area:actions;
    justify-self:end;
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    max-width:560px;
  }
  .top-actions button {
    min-height:44px;
  }
  .top-actions .soft {
    padding-inline:14px;
  }
  .cart-button {
    min-width:110px;
  }
  .session {
    max-width:170px;
    min-height:44px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:left;
  }
  button.profile-button {
    flex:0 0 44px;
  }
  #logoutBtn {
    min-width:100px;
  }
}
@media (min-width:1181px) and (max-width:1440px) {
  .topbar {
    grid-template-columns:minmax(250px,auto) minmax(320px,1fr) minmax(360px,max-content);
    padding-inline:20px;
  }
  .primary-nav a {
    padding-inline:11px;
  }
  .location-selector {
    width:min(100%, 360px);
  }
  .top-actions {
    max-width:460px;
  }
  .top-actions .soft,
  #headerSearchBtn {
    display:none;
  }
  .session {
    max-width:150px;
  }
}

/* Category row polish: app chips instead of merged text and browser-default links. */
.category-strip {
  gap:12px;
  align-items:center;
  padding:6px 2px 12px;
}
.category-strip .chip {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:50px;
  padding:7px 16px 7px 8px;
  border-radius:22px;
  line-height:1;
}
.category-strip .chip > span:not(.chip-icon) {
  display:inline-block;
}
.category-strip .chip-icon {
  display:inline-grid !important;
  place-items:center;
  min-width:36px;
  height:36px;
  border-radius:16px;
  background:#eef8f2;
  color:var(--primary-dark);
  font-size:17px;
  line-height:1;
}
.category-strip .chip.active .chip-icon {
  background:rgba(255,255,255,.18);
  color:#fff;
}
.section-link-row {
  display:flex !important;
  flex-wrap:wrap;
  gap:10px;
  padding:4px 0 10px;
}
.section-link-row a {
  display:inline-flex !important;
  align-items:center;
  cursor:pointer;
  min-height:40px;
  padding:9px 13px !important;
  border:1px solid var(--border) !important;
  border-radius:999px !important;
  background:#f8faf9 !important;
  color:var(--primary-dark) !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:900;
  box-shadow:none !important;
}
.section-link-row a:hover,
.section-link-row a:focus {
  background:#e8f7ee !important;
  border-color:rgba(11,122,59,.24) !important;
  color:var(--primary-dark) !important;
  transform:translateY(-2px);
}

/* Category menus: real delivery-app product cards with images, badges, prep time. */
#productGrid {
  align-items:stretch;
  min-width:0;
}
.menu-product-card {
  display:grid;
  grid-template-columns:1fr;
  flex:0 0 min(340px, calc(100vw - 48px));
  max-width:min(340px, calc(100vw - 48px));
  align-content:start;
  gap:0;
  min-height:0;
  overflow:hidden;
  border-radius:24px;
  background:#fff;
}
.menu-product-card .product-img {
  width:100%;
  height:178px;
  border-radius:0;
}
.product-card-body {
  display:grid;
  gap:10px;
  padding:14px;
}
.product-badge-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.prep-badge {
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  background:#eef2f6;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.menu-product-card h4 {
  margin:0;
  font-size:20px;
}
.menu-product-card p {
  min-height:44px;
  margin:0;
}
.menu-product-card .product-actions {
  justify-content:flex-start;
  flex-wrap:wrap;
  color:var(--muted);
  font-weight:900;
}
.menu-product-card .product-actions button {
  margin-left:auto;
  min-height:42px;
  padding-inline:14px;
}
.product-dot {
  color:#c0c7d0;
}
.menu-category-pills {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.menu-category-pills span {
  padding:7px 10px;
  border-radius:999px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
}

/* Premium customer experience pack: onboarding, personalization, reviews, tracking. */
.onboarding-modal,
.tracking-overlay {
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(2, 16, 12, .58);
  backdrop-filter:blur(10px);
}
.onboarding-modal[hidden],
.tracking-overlay[hidden] {
  display:none;
}
.onboarding-card,
.tracking-card {
  position:relative;
  width:min(940px, 100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.45);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,248,242,.98)),
    #fff;
  box-shadow:0 34px 90px rgba(2,16,12,.32);
}
.onboarding-card {
  padding:34px;
}
.onboarding-card h2 {
  max-width:680px;
  margin:8px 0 12px;
  color:var(--ink);
  font-size:clamp(34px, 5vw, 64px);
  line-height:.98;
}
.onboarding-card p {
  max-width:620px;
  color:var(--muted);
  font-size:18px;
}
.onboarding-close {
  position:absolute;
  top:18px;
  right:18px;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  background:#eef2f6;
  color:var(--ink);
}
.onboarding-steps {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin:24px 0;
}
.onboarding-steps div,
.rail-card,
.review-card {
  border:1px solid var(--border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 38px rgba(11, 26, 43, .08);
}
.onboarding-steps div {
  display:grid;
  gap:10px;
  padding:18px;
}
.onboarding-steps strong {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:16px;
  background:var(--primary);
  color:#fff;
}
.onboarding-steps span {
  color:var(--muted);
  font-weight:800;
}
.onboarding-actions {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.onboarding-actions span {
  color:var(--muted);
  font-weight:900;
}
.premium-rails {
  background:linear-gradient(135deg, #ffffff, #f3fbf6);
}
.rail-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.rail-card {
  display:grid;
  gap:10px;
  align-content:space-between;
  min-height:190px;
  padding:18px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rail-card:hover {
  transform:translateY(-3px);
  border-color:rgba(11,122,59,.26);
  box-shadow:0 20px 48px rgba(11, 122, 59, .12);
}
.rail-label {
  width:max-content;
  padding:7px 10px;
  border-radius:999px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.rail-card h4,
.review-card strong {
  margin:0;
  color:var(--ink);
  font-size:20px;
}
.rail-card p,
.review-card p {
  margin:0;
  color:var(--muted);
  line-height:1.45;
}
.rail-card button {
  justify-self:start;
  min-height:42px;
}
.review-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.review-card {
  display:grid;
  gap:12px;
  padding:18px;
}
.review-top {
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.review-top span {
  color:#f59e0b;
  font-weight:1000;
  letter-spacing:2px;
}
.review-card small {
  color:var(--primary-dark);
  font-weight:900;
}
.order-actions,
.tracking-footer {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.order-actions button {
  min-height:40px;
}
.order-actions button,
.tracking-footer button,
.merchant-trust-panel button {
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.order-actions button:hover,
.tracking-footer button:hover,
.merchant-trust-panel button:hover,
.order-actions button:focus-visible,
.tracking-footer button:focus-visible,
.merchant-trust-panel button:focus-visible {
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(6,21,18,.12);
}
.merchant-trust-panel button.soft-dark,
.tracking-footer button.secondary {
  background:var(--dark);
  color:#fff;
}
.tracking-card {
  padding:0;
}
.tracking-header {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:26px;
  border-bottom:1px solid var(--border);
}
.tracking-header h3 {
  margin:5px 0;
  font-size:34px;
}
.tracking-header p {
  margin:0;
  color:var(--muted);
}
.tracking-body {
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  padding:24px;
}
.tracking-map-preview {
  position:relative;
  display:grid;
  align-content:end;
  min-height:360px;
  overflow:hidden;
  padding:26px;
  border-radius:28px;
  background:
    linear-gradient(90deg, rgba(11,122,59,.15) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11,122,59,.15) 1px, transparent 1px),
    linear-gradient(135deg, #e9f7ef, #ffffff);
  background-size:52px 52px, 52px 52px, auto;
}
.tracking-map-preview:before,
.tracking-map-preview:after {
  content:"";
  position:absolute;
  border-radius:999px;
  background:rgba(11,122,59,.12);
}
.tracking-map-preview:before {
  width:220px;
  height:220px;
  top:34px;
  left:46px;
}
.tracking-map-preview:after {
  width:150px;
  height:150px;
  right:52px;
  bottom:72px;
}
.driver-dot {
  position:absolute;
  width:22px;
  height:22px;
  left:48%;
  top:42%;
  border:5px solid #fff;
  border-radius:999px;
  background:var(--primary);
  box-shadow:0 0 0 12px rgba(11,122,59,.16), 0 16px 30px rgba(11,122,59,.3);
  animation:driverPulse 1.5s ease-in-out infinite;
}
@keyframes driverPulse {
  0%, 100% { transform:translate(0, 0) scale(1); }
  50% { transform:translate(18px, -10px) scale(1.08); }
}
.tracking-map-preview strong,
.tracking-map-preview span {
  position:relative;
  z-index:1;
}
.tracking-map-preview strong {
  font-size:24px;
}
.tracking-map-preview span {
  color:var(--muted);
  font-weight:900;
}
.tracking-timeline {
  display:grid;
  gap:10px;
}
.tracking-step {
  display:grid;
  grid-template-columns:46px 1fr;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
}
.tracking-step.done {
  border-color:rgba(11,122,59,.22);
  background:#f2fbf5;
}
.tracking-step span {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:16px;
  background:#eef2f6;
  color:var(--muted);
  font-weight:1000;
}
.tracking-step.done span {
  background:var(--primary);
  color:#fff;
}
.tracking-step strong,
.tracking-step small {
  display:block;
}
.tracking-step small {
  margin-top:3px;
  color:var(--muted);
  font-weight:800;
}
.tracking-footer {
  padding:0 24px 24px;
}
.competitive-panel {
  background:linear-gradient(135deg, #ffffff, #f6fbf8);
}
.competitive-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.competitive-card {
  display:grid;
  gap:10px;
  min-height:190px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 42px rgba(11,26,43,.08);
}
.competitive-card span {
  width:max-content;
  padding:7px 10px;
  border-radius:999px;
  background:#e8f7ee;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.competitive-card strong {
  color:var(--ink);
  font-size:24px;
}
.competitive-card p {
  margin:0;
  color:var(--muted);
  line-height:1.45;
}
.menu-toolbar {
  position:sticky;
  top:0;
  z-index:10;
  display:grid;
  gap:12px;
  padding:12px;
  margin:12px 0 18px;
  border:1px solid var(--border);
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 45px rgba(11,26,43,.08);
  backdrop-filter:blur(12px);
}
.menu-toolbar input {
  width:100%;
  min-height:48px;
  border-radius:18px;
}
.menu-tabs {
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:2px;
}
.menu-tabs button {
  flex:0 0 auto;
  min-height:40px;
  padding:8px 13px;
  border-radius:999px;
  background:#eef2f6;
  color:var(--ink);
}
.menu-tabs button.active {
  background:var(--primary);
  color:#fff;
}
.merchant-premium-summary {
  grid-column:1 / -1;
  display:grid;
  gap:12px;
  padding:16px;
  border-radius:22px;
  background:#f8fbf9;
  border:1px solid var(--border);
}
.merchant-sticky-row,
.merchant-service-grid {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.merchant-service-grid span {
  padding:8px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.product-img {
  position:relative;
}
.product-favorite-btn {
  position:absolute;
  top:10px;
  right:10px;
  min-height:34px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--primary-dark);
  box-shadow:0 10px 24px rgba(2,16,12,.16);
}
.product-favorite-btn.active {
  background:var(--primary);
  color:#fff;
}
.offline-banner {
  position:fixed;
  left:50%;
  bottom:92px;
  z-index:90;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:12px;
  width:min(760px, calc(100% - 28px));
  padding:12px 14px;
  border:1px solid rgba(11,122,59,.22);
  border-radius:20px;
  background:#fff;
  box-shadow:0 22px 60px rgba(2,16,12,.2);
}
.offline-banner[hidden] {
  display:none;
}
.offline-banner strong {
  color:var(--ink);
}
.offline-banner span {
  color:var(--muted);
  font-weight:800;
}
.customization-modal {
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:20px;
}
.customization-modal[hidden] {
  display:none;
}
.customization-backdrop {
  position:absolute;
  inset:0;
  background:rgba(2,16,12,.58);
  backdrop-filter:blur(8px);
}
.customization-card {
  position:relative;
  z-index:1;
  width:min(760px, 100%);
  max-height:calc(100vh - 40px);
  overflow:auto;
  display:grid;
  gap:16px;
  padding:22px;
  border-radius:28px;
  background:#fff;
  box-shadow:0 32px 90px rgba(2,16,12,.34);
}
.customization-head {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
#customizationProductPreview {
  display:grid;
  grid-template-columns:130px 1fr;
  gap:16px;
  align-items:center;
}
.custom-preview-image {
  width:130px;
  aspect-ratio:1;
  border-radius:22px;
  background-size:cover;
  background-position:center;
  box-shadow:0 18px 36px rgba(2,16,12,.16);
}
.customization-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.custom-option-block {
  display:grid;
  gap:10px;
}
.custom-checks {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.custom-checks label,
.check-row {
  display:flex;
  align-items:center;
  gap:8px;
  width:auto;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#f8faf9;
  font-weight:900;
}
.custom-checks input,
.check-row input {
  width:auto;
}
.cart-row > span {
  display:grid;
  gap:4px;
}
.cart-item-options {
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
[data-language="am"] .address-pill:after {
  content:"  -  አማርኛ ሁነታ";
  font-weight:1000;
}
@media (max-width:760px) {
  main {
    width:min(100% - 20px, 100%);
    margin-top:12px;
    padding-bottom:86px;
  }
  .topbar {
    gap:10px;
    padding:12px;
  }
  .hero-search {
    position:sticky;
    top:74px;
    z-index:18;
    grid-template-columns:1fr;
    padding:8px;
    border-radius:22px;
    background:rgba(255,255,255,.94);
    box-shadow:0 20px 48px rgba(2,16,12,.22);
    backdrop-filter:blur(12px);
  }
  .hero-search button {
    min-height:48px;
  }
  .checkout-stepper {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .content-grid,
  .dashboard,
  .mode-strip,
  .experience-grid,
  .tool-card-grid,
  .merchant-trust-panel,
  .quality-panel,
  .promise-panel,
  .neighborhood-grid {
    grid-template-columns:1fr;
  }
  .side-column {
    position:static;
  }
  .panel,
  .promo-banner,
  .marketplace-tools-panel,
  .quality-panel,
  .promise-panel,
  .neighborhood-panel {
    border-radius:22px;
    padding:16px;
  }
  .bottom-nav a,
  .bottom-nav button,
  button {
    min-height:48px;
  }
  .menu-product-card {
    flex-basis:88%;
  }
  .menu-product-card .product-img {
    height:150px;
  }
  .menu-product-card .product-actions button {
    width:100%;
    margin-left:0;
  }
  .onboarding-modal,
  .tracking-overlay {
    padding:12px;
  }
  .onboarding-card {
    padding:24px;
    border-radius:24px;
  }
  .onboarding-steps,
  .rail-grid,
  .review-grid,
  .tracking-body,
  .competitive-grid {
    grid-template-columns:1fr;
  }
  .tracking-header {
    flex-direction:column;
  }
  .tracking-map-preview {
    min-height:260px;
  }
  .order-actions button,
  .tracking-footer button {
    flex:1 1 150px;
  }
  .offline-banner {
    bottom:84px;
    align-items:flex-start;
    flex-direction:column;
  }
  #customizationProductPreview,
  .customization-grid {
    grid-template-columns:1fr;
  }
  .custom-preview-image {
    width:100%;
    aspect-ratio:16/9;
  }
}
