:root {
  --green: #347521;
  --green-dark: #2a5e1a;
  --green-light: #edf2e4;
  --cream: #faf8f2;
  --ink: #1f1e1b;
  --muted: #6b6a63;
  --line: #e2ded2;
  --white: #ffffff;
  --amber-bg: #f5eedc;
  --amber-ink: #854f0b;
  --red-bg: #fceaea;
  --red-ink: #a32d2d;
  --radius: 8px;
  --bar-h: 62px;
  --tab-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

/* 16px minimum stops mobile Safari zooming when a field is focused */
input, select, textarea, button { font: inherit; font-size: 16px; }
button { background: none; border: none; cursor: pointer; color: inherit; }
.hidden { display: none !important; }

/* ---------- buttons ---------- */

.btn {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:active { background: var(--green-dark); }
.btn:disabled { opacity: 0.5; }
.btn.ghost { background: var(--white); color: var(--green); border: 0.5px solid var(--green); }
.btn.full { width: 100%; }
.btn.lg { padding: 14px 20px; font-size: 16px; }
.btn.sm { padding: 7px 12px; font-size: 14px; }

.msg { padding: 11px 14px; border-radius: var(--radius); margin: 12px 0; font-size: 14px; }
.msg.err { background: var(--red-bg); color: var(--red-ink); }
.msg.ok { background: var(--green-light); color: var(--green-dark); }
.hint { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* ---------- location gate ---------- */

.gate {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Green band at the top, the way delivery apps open */
.gate-art {
  background: var(--green);
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.10) 0 60px, transparent 61px),
    radial-gradient(circle at 82% 68%, rgba(255,255,255,.08) 0 90px, transparent 91px);
  flex: 0 0 auto;
  height: 34dvh;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-art-inner {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}
.gate-art-inner i { font-size: 40px; color: var(--white); }

.gate-card {
  width: 100%;
  max-width: 440px;
  margin: -28px auto 0;
  background: var(--cream);
  border-radius: 20px 20px 0 0;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  flex: 1;
  position: relative;
  z-index: 2;
}
.gate-logo { height: 52px; display: block; margin: 0 auto 16px; }
.gate h1 { font-size: 21px; font-weight: 500; text-align: center; line-height: 1.3; }
.gate-sub { color: var(--muted); text-align: center; margin: 8px 0 20px; font-size: 14px; }

.gate-foot {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 0.5px solid var(--line);
}
.gate-foot span {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.gate-foot i { font-size: 19px; color: var(--green); }

.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 0.5px; background: var(--line); }

.search-row {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
}
.search-row i { color: var(--muted); font-size: 18px; }
.search-row input {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: none;
  outline: none;
}
.search-row:focus-within { border-color: var(--green); }

.result-item {
  background: var(--white);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 14px;
}
.result-item:active { background: var(--green-light); }

.map-box { height: 260px; border-radius: var(--radius); border: 0.5px solid var(--line); margin-bottom: 12px; }

/* ---------- hero: banner behind a transparent header ---------- */

#hero {
  position: relative;
  background: linear-gradient(160deg, #2a5e1a 0%, #347521 45%, #4a8f30 100%);
  padding-bottom: 26px;
  overflow: hidden;
}

/* Soft rings, the way delivery apps decorate a hero without a photo. */
#hero::before,
#hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}
#hero::before { width: 340px; height: 340px; right: -120px; top: -90px; }
#hero::after  { width: 480px; height: 480px; left: -180px; bottom: -230px; }

#topbar {
  position: relative;
  z-index: 3;
  background: transparent;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
}

.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.loc-btn { display: flex; align-items: center; gap: 8px; color: var(--white); text-align: left; min-width: 0; flex: 1; }
.loc-btn > i:first-child { font-size: 19px; flex-shrink: 0; }
.loc-text { min-width: 0; }
.loc-zone { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.loc-shop { display: block; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-chev { font-size: 16px; opacity: .85; flex-shrink: 0; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar i { font-size: 19px; }

.search-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 0 13px;
  backdrop-filter: blur(6px);
}
.search-pill > i { color: rgba(255,255,255,.85); font-size: 18px; }
.search-pill input {
  flex: 1; border: none; background: none; padding: 12px 0; outline: none;
  color: var(--white);
}
.search-pill input::placeholder { color: rgba(255,255,255,.72); }
.search-pill button { color: rgba(255,255,255,.9); padding: 4px; }
.mic { color: rgba(255,255,255,.9) !important; }

/* ---------- hero slides ---------- */

#hero-slides { position: relative; z-index: 2; padding: 6px 14px 0; }

.hero-slide {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: var(--white);
  animation: heroIn .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } }

.hero-kicker {
  display: inline-block;
  background: #f5e663;
  color: #1f1e1b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 6px;
  transform: rotate(-1.5deg);
}
.hero-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.hero-sub { font-size: 13.5px; opacity: .92; max-width: 300px; }
.hero-cta {
  margin-top: 4px;
  background: var(--white);
  color: var(--green-dark);
  border-radius: 22px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#hero-dots { position: relative; z-index: 2; display: flex; gap: 5px; justify-content: center; padding-top: 12px; }
#hero-dots span {
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,.4);
  transition: width .3s, background .3s;
}
#hero-dots span.on { background: var(--white); }

/* ---------- promo strip ---------- */

#promo { padding: 14px 14px 0; }

.promo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(100deg, var(--green) 0%, #4a8f30 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
}
.promo-card i { font-size: 26px; opacity: .95; flex-shrink: 0; }
.promo-title { font-size: 15px; font-weight: 600; }
.promo-sub { font-size: 12.5px; opacity: .88; margin-top: 2px; }

/* ---------- category tiles ---------- */

#cat-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 14px 6px;
  scrollbar-width: none;
}
#cat-strip::-webkit-scrollbar { display: none; }

.cat-tile {
  flex: 0 0 auto;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cat-thumb {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid transparent;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile.active .cat-thumb { border-color: var(--green); }
.cat-label {
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-tile.active .cat-label { color: var(--green); font-weight: 600; }

/* ---------- catalogue ---------- */

#catalogue { padding: 4px 14px 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 20px 0 11px;
}
.sec-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.sec-head .sec-count { font-size: 12px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 11px;
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(31,30,27,.06);
  position: relative;
}
.card.out { opacity: .55; }

.thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--green-light);
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .initial { font-size: 26px; font-weight: 600; color: var(--green); opacity: .5; }

.badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 3px 6px;
  border-radius: 5px;
  z-index: 2;
}
.badge.amber { background: #d98a30; }

.p-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-local { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.p-unit { font-size: 11.5px; color: var(--muted); margin: 3px 0 6px; }

.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}
.p-price { font-size: 14px; font-weight: 600; }
.p-mrp { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-left: 4px; }

.add-btn {
  background: var(--white);
  color: var(--green);
  border: 1.2px solid var(--green);
  border-radius: 7px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
}
.add-btn:active { background: var(--green-light); }

.stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--green);
  border-radius: 7px;
  padding: 3px;
}
.stepper button {
  color: var(--white);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.stepper .qty { font-size: 11.5px; font-weight: 700; color: var(--white); min-width: 40px; text-align: center; }

.out-tag {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border-radius: 7px;
  padding: 5px;
  font-size: 11px;
  text-align: center;
  font-weight: 600;
  width: 100%;
}

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 34px; display: block; margin-bottom: 10px; opacity: .4; }

/* ---------- basket bar ---------- */

#basket-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(var(--tab-h) + 10px);
  z-index: 30;
  background: var(--green);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(52,117,33,.32);
}
.basket-thumbs { display: flex; flex-shrink: 0; }
.basket-thumbs img {
  width: 30px; height: 30px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--white);
  border: 1.5px solid var(--green);
  margin-left: -9px;
}
.basket-thumbs img:first-child { margin-left: 0; }
.basket-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.basket-info span:first-child { font-size: 11.5px; opacity: .85; }
.basket-info span:last-child { font-weight: 700; font-size: 15px; }
.basket-cta { color: var(--white); font-weight: 700; display: flex; align-items: center; gap: 5px; font-size: 13.5px; white-space: nowrap; }

/* ---------- tab bar ---------- */

#tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 25;
  height: var(--tab-h);
  background: var(--white);
  border-top: 0.5px solid var(--line);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10.5px;
}
.tab i { font-size: 21px; }
.tab.active { color: var(--green); font-weight: 600; }

/* ---------- bottom sheet ---------- */

.sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
  display: flex;
  align-items: flex-end;
}
.sheet {
  background: var(--cream);
  width: 100%;
  max-height: 92dvh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}
.sheet-head {
  padding: 16px 18px 12px;
  border-bottom: 0.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-head h2 { font-size: 17px; font-weight: 500; }
.sheet-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.sheet-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 0.5px solid var(--line); background: var(--white); }

.line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--line);
}
.line:last-child { border-bottom: none; }
.line-main { flex: 1; min-width: 0; }
.line-name { font-size: 14px; font-weight: 500; }
.line-sub { font-size: 12px; color: var(--muted); }
.line-price { font-size: 14px; font-weight: 500; white-space: nowrap; }

.totals { margin-top: 14px; padding-top: 14px; border-top: 0.5px solid var(--line); }
.total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--muted); }
.total-row.grand { font-size: 16px; font-weight: 500; color: var(--ink); padding-top: 10px; margin-top: 6px; border-top: 0.5px solid var(--line); }

.progress { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 8px 0 4px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width 0.25s; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }

.shop-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: var(--white);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 9px;
  width: 100%;
  text-align: left;
}
.shop-option.current { border-color: var(--green); background: var(--green-light); }
.shop-option .so-main { flex: 1; min-width: 0; }
.shop-option .so-name { font-weight: 500; font-size: 14px; }
.shop-option .so-meta { font-size: 12px; color: var(--muted); }

.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.pill.green { background: var(--green-light); color: var(--green-dark); }
.pill.amber { background: var(--amber-bg); color: var(--amber-ink); }
.pill.grey { background: #f1efe8; color: #5f5e5a; }

.step-list { list-style: none; }
.step-list li { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.step-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.step-list li.done .step-dot { background: var(--green); border-color: var(--green); color: var(--white); font-size: 12px; }
.step-list li.done .step-label { color: var(--ink); }
.step-label { font-size: 14px; color: var(--muted); }
.step-time { font-size: 12px; color: var(--muted); }

.otp-box { text-align: center; background: var(--white); border: 0.5px solid var(--green); border-radius: 12px; padding: 16px; margin: 14px 0; }
.otp-box .code { font-size: 30px; font-weight: 500; letter-spacing: 6px; color: var(--green); }
.otp-box .label { font-size: 12px; color: var(--muted); }

@media (min-width: 720px) {
  #topbar, #cat-strip, #catalogue { max-width: 900px; margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  #basket-bar { max-width: 500px; left: auto; right: 24px; }
  .sheet { max-width: 560px; margin: 0 auto; border-radius: 16px; }
  .sheet-bg { align-items: center; padding: 24px; }
}

/* ---------- coming soon banner ---------- */

.soon-banner {
  margin: 12px 14px 4px;
  background: var(--white);
  border: 0.5px solid var(--green);
  border-radius: 12px;
  padding: 14px;
}
.soon-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.soon-head i { font-size: 24px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.soon-title { font-weight: 500; font-size: 15px; }
.soon-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.soon-near {
  font-size: 12px;
  color: var(--muted);
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 8px 11px;
  margin-bottom: 11px;
}
.soon-done {
  display: flex; align-items: center; gap: 9px;
  color: var(--green-dark); font-size: 14px; font-weight: 500;
}
.soon-done i { font-size: 21px; }

/* ---------- splash ---------- */

#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: splashOut .45s ease .95s forwards;
}
#splash img {
  height: 90px;
  filter: brightness(0) invert(1);
  animation: splashIn .6s cubic-bezier(.2,.8,.2,1);
}
.splash-tag {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  letter-spacing: .3px;
  animation: splashIn .6s cubic-bezier(.2,.8,.2,1) .12s backwards;
}
@keyframes splashIn { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------- voice search ---------- */

.mic { color: var(--green) !important; padding: 4px 2px !important; }
.mic i { font-size: 19px; }
.mic.listening { color: #c0392b !important; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.14); } }

.voice-toast {
  position: fixed;
  left: 50%; bottom: calc(var(--tab-h) + 80px);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 11px 20px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 60;
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
  max-width: 90vw;
}

/* ---------- filter chips ---------- */

#filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 14px 10px;
  scrollbar-width: none;
}
#filter-chips::-webkit-scrollbar { display: none; }

.fchip {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 13px;
  border-radius: 20px;
  background: var(--white);
  border: 0.5px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.fchip i { font-size: 14px; }
.fchip.on { background: var(--green-light); border-color: var(--green); color: var(--green-dark); font-weight: 600; }

/* ---------- horizontal row ---------- */

.hrow {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.hrow::-webkit-scrollbar { display: none; }
.hrow .card { flex: 0 0 128px; }

/* ---------- AI tab button ---------- */

.tab-ai {
  flex: 0 0 58px;
}
.tab-ai i {
  background: linear-gradient(135deg, var(--green) 0%, #5faa3a 100%);
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  box-shadow: 0 3px 10px rgba(52,117,33,.35);
}
.tab-ai.active i { transform: scale(1.05); }

/* ---------- order list & tracking ---------- */

.ord-group {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 18px 0 8px;
}
.ord-group:first-child { margin-top: 0; }

.ord-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 9px;
  text-align: left;
}
.ord-main { flex: 1; min-width: 0; }
.ord-shop { font-size: 14.5px; font-weight: 600; }
.ord-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.ord-status { font-size: 12.5px; color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.ord-status.live { color: var(--green); font-weight: 600; }
.blip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: blip 1.3s ease-in-out infinite;
}
@keyframes blip { 50% { opacity: .25; transform: scale(1.5); } }
.ord-right { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.ord-total { font-size: 15px; font-weight: 700; color: var(--ink); }

.step-now {
  font-size: 11px; font-weight: 700; color: var(--green);
  background: var(--green-light); padding: 1px 8px; border-radius: 10px; margin-left: 8px;
}
.line.struck .line-name { text-decoration: line-through; color: var(--muted); }

/* ---------- cooking assistant ---------- */

.serve-row { display: flex; gap: 7px; align-items: center; }
.serve {
  width: 44px; height: 42px;
  border-radius: var(--radius);
  background: var(--white);
  border: 0.5px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted);
  flex-shrink: 0;
}
.serve.on { background: var(--green); color: var(--white); border-color: var(--green); }
.serve-row input { flex: 1; min-width: 60px; text-align: center; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-wrap .fchip { flex: 0 0 auto; }

.cook-line {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 0.5px solid var(--line);
  cursor: pointer;
}
.cook-line:last-of-type { border-bottom: none; }
.cook-line input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.cook-line img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--green-light); flex-shrink: 0; }
.cook-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cook-name { font-size: 14px; font-weight: 600; }
.cook-sub { font-size: 12px; color: var(--muted); }
.cook-price { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- shop list ---------- */

.shop-option { align-items: flex-start; }
.so-thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.so-thumb img { width: 100%; height: 100%; object-fit: cover; }
.so-thumb i { font-size: 22px; color: var(--green); opacity: .55; }
.so-main { display: flex; flex-direction: column; gap: 3px; }
.so-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.so-check { color: var(--green); font-size: 20px; align-self: center; }

/* ---------- addresses & slots ---------- */

.addr-row, .slot-row, .pick-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1.2px solid transparent;
  border-radius: 12px; padding: 13px 14px; margin-bottom: 9px; text-align: left;
}
.addr-row.current, .slot-row.current { border-color: var(--green); background: var(--green-light); }
.addr-row > i, .slot-row > i, .pick-row > i { font-size: 21px; color: var(--green); flex-shrink: 0; }
.addr-main, .slot-main, .pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.addr-title, .slot-title, .pick-title { font-size: 14.5px; font-weight: 600; }
.addr-line, .slot-sub, .pick-sub { font-size: 12.5px; color: var(--muted); }
.addr-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.addr-del { color: var(--muted); padding: 6px; flex-shrink: 0; }
.pick-change { color: var(--green); font-size: 13px; font-weight: 600; flex-shrink: 0; }

.addr-readout {
  font-size: 12.5px; color: var(--muted);
  background: var(--white); border-radius: var(--radius);
  padding: 9px 12px; margin-bottom: 14px;
}

.label-row { display: flex; gap: 8px; }
.lbl {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: var(--radius);
  background: var(--white); border: 0.5px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.lbl.on { background: var(--green); color: var(--white); border-color: var(--green); font-weight: 600; }
.map-tools { margin-bottom: 10px; }

/* ---------- shop bar: which shop is serving this basket ---------- */

.shop-bar {
  width: calc(100% - 28px);
  margin: 14px 14px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--white);
  border-radius: 12px;
  padding: 11px 13px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(31,30,27,.06);
}
.sb-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-icon i { font-size: 19px; color: var(--green); }
.sb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sb-name { font-size: 14px; font-weight: 600; }
.sb-meta { font-size: 12px; color: var(--muted); }
.sb-change { color: var(--green); font-size: 12.5px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 2px; }

/* ---------- address form ---------- */

.map-box.small { height: 190px; margin-bottom: 8px; }

.pin-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 4px 0 8px;
  font-size: 13px; color: var(--muted);
}

.req {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  color: var(--amber-ink); background: var(--amber-bg);
  padding: 1px 6px; border-radius: 8px; margin-left: 5px;
}
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.field input.bad { border-color: var(--red-ink); background: var(--red-bg); }

/* The sheet must never be taller than the screen, or the fields fall below
   the fold and the customer cannot reach them. */
.sheet { max-height: 88dvh; }
.sheet-body { -webkit-overflow-scrolling: touch; }

/* ---------- live tracking map ---------- */

.track-map {
  height: 220px;
  border-radius: 12px;
  margin: 14px 0 0;
  z-index: 1;
}
.track-note {
  background: var(--white);
  border-radius: 10px;
  padding: 10px 13px;
  margin-top: 8px;
  font-size: 13.5px;
}

.pin {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.pin i { font-size: 17px; color: var(--white); }
.pin-home { background: var(--ink); }
.pin-rider { background: var(--green); animation: riderPulse 2s ease-in-out infinite; }
@keyframes riderPulse {
  50% { box-shadow: 0 2px 8px rgba(0,0,0,.28), 0 0 0 9px rgba(52,117,33,.18); }
}

/* ---------- hero slot ---------- */

.hero-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  /* 4:5 as asked, but capped: the search bar sits above this and the
     categories below, so it must not swallow the whole screen. */
  aspect-ratio: 4 / 5;
  max-height: 46vh;
  display: flex;
  align-items: flex-end;
  background: rgba(255, 255, 255, .08);
}

/* A text slide sits on the green header already, so it needs no box of its
   own — just room to breathe. */
.hero-frame.text {
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 0;
  background: none;
  text-align: center;
  justify-content: center;
}
.hero-frame.text .hero-text { padding: 18px 8px 30px; }
.hero-frame.text .hero-sub { margin-left: auto; margin-right: auto; }

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text over a photo needs a floor to sit on, or it disappears into a bright
   patch of the image. */
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
              rgba(20,24,16,.82) 0%,
              rgba(20,24,16,.45) 42%,
              rgba(20,24,16,.08) 72%,
              transparent 100%);
}

.hero-text {
  position: relative;
  padding: 22px 20px 26px;
  color: #fff;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.9);
  color: #2a5e1a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 11px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.hero-head {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 14px;
  line-height: 1.5;
  opacity: .93;
  margin-top: 8px;
  max-width: 30ch;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #2a5e1a;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 24px;
  margin-top: 15px;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.hero-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: width .25s;
}
.hero-dots span.on { width: 20px; border-radius: 3px; background: #fff; }

@media (min-width: 640px) {
  .hero-frame { aspect-ratio: 16 / 9; max-height: 420px; border-radius: 16px; }
}

/* ---------- what should I make ---------- */

.dish-group {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #6b6a63;
  margin: 20px 0 10px;
}
.dish-group:first-of-type { margin-top: 4px; }

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 9px;
}

.dish-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  border: 0.5px solid #e2ded2;
  border-radius: 13px;
  padding: 14px;
  min-height: 78px;
}
.dish-card:active { border-color: #347521; background: #edf2e4; }

/* A dish the shop can only half-make is still worth showing, quietly. */
.dish-card.thin { opacity: .55; }

.dish-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}
.dish-meta {
  font-size: 11.5px;
  color: #6b6a63;
}
