/* Chatorey v2–inspired design system for Jaipur Street Bites */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root,
:root[data-theme='dark'] {
  --bg: #0e0e13;
  --card: #1a1a22;
  --ink: #f2f2f6;
  --muted: #a0a0ae;
  --line: #2a2a34;
  --out: #050508;
  --brand: #ff4d86;
  --brand-soft: #3a1526;
  --green: #34c77b;
  --green-bg: #123524;
  --amber: #f5b942;
  --amber-bg: #3a2d0b;
  --red: #ff6b6b;
  --sh: 0 1px 2px rgba(0, 0, 0, 0.4);
  --soft: #242430;
  --color-bg: var(--bg);
  --color-surface: var(--card);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-border: var(--line);
  --color-primary: var(--brand);
  --color-primary-dark: #e03d74;
  --color-secondary: var(--green);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-w: 430px;
  --header-h: 0px;
  --bottom-nav-h: 72px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--out);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.4;
}

.app-shell {
  position: relative;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 8px #15151b, 0 20px 60px rgba(0, 0, 0, 0.35);
  --bottom-nav-h: 78px;
}

@media (min-width: 520px) {
  body {
    padding: 16px 0;
  }
}

#app-main {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 0 0 calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#app-main::-webkit-scrollbar {
  display: none;
}

.app-shell .loading-overlay:not(.open) {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.site-header {
  display: none;
}

.pad {
  padding-left: 16px;
  padding-right: 16px;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--card);
  border-radius: 0 0 22px 22px;
  box-shadow: var(--sh);
  padding-top: env(safe-area-inset-top, 0px);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.app-top--sub {
  margin-bottom: 14px;
}

.app-top .hdr {
  background: transparent;
}

.app-top .searchrow {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 6px;
  background: var(--card);
}

.hdr--compact {
  padding-bottom: 4px;
}

.loc {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.loc .pinic {
  color: var(--brand);
  display: flex;
}

.loc-text {
  min-width: 0;
  text-align: left;
}

.loc b {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.15;
}

.loc .mut.xs {
  display: block;
  margin-top: 1px;
}

.avb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.searchrow {
  padding: 8px 16px 14px;
  background: var(--card);
  border-radius: 0 0 22px 22px;
  box-shadow: var(--sh);
}

.searchrow form,
.searchrow .sbox {
  width: 100%;
}

.searchrow--with-filter {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.searchrow--with-filter .sbox {
  flex: 1;
  min-width: 0;
}

.comm-filter-btn {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  border: none;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.comm-filter-btn.has-filters {
  box-shadow: inset 0 0 0 2px var(--brand);
  color: var(--brand);
}

.comm-filter-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.search-fake {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.search-fake span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchrow--tight {
  padding-top: 4px;
  padding-bottom: 12px;
}

.sbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: 14px;
  padding: 0 14px;
  margin: 0;
  color: var(--muted);
}

.sbox input {
  flex: 1;
  border: 0;
  background: none;
  padding: 13px 0;
  outline: none;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.sbox input::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.subhdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 14px;
}

.subhdr-titles {
  flex: 1;
  min-width: 0;
}

.subhdr-titles h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subhdr-titles .mut.xs {
  margin: 2px 0 0;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-top--sub {
  border-radius: 0 0 18px 18px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  border: none;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.avb--sm {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.secH {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 16px 10px;
}

.secH h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.secH a,
.secH button.linkish {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.hs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 16px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.hs::-webkit-scrollbar {
  display: none;
}

.cat {
  flex: 0 0 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12.5px;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.cat i {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--soft);
  outline: 2px solid transparent;
  outline-offset: 2px;
  position: relative;
}

.cat i .cat-emoji {
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
}

.cat i .cat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat i.has-fallback .cat-photo {
  display: none;
}

.cat.on i {
  outline-color: var(--brand);
}

.promo {
  flex: 0 0 300px;
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: left;
  border: none;
  cursor: pointer;
  font: inherit;
}

.promo b {
  font-size: 17px;
  line-height: 1.25;
  max-width: 62%;
  display: block;
}

.promo span {
  font-size: 12px;
  opacity: 0.92;
  max-width: 62%;
  line-height: 1.35;
  display: block;
}

.promo .promo-img {
  position: absolute;
  right: 4px;
  bottom: -8px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  transform: rotate(-6deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.bcard {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--sh);
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-align: left;
  color: inherit;
  padding: 0;
  font: inherit;
}

.lcard {
  margin: 0 16px 16px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--sh);
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-align: left;
  color: inherit;
  padding: 0;
  font: inherit;
  width: calc(100% - 32px);
  display: block;
}

.cv {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 140px;
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
}

.cv::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--cover-url);
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.92;
}

.cv.is-loaded::before {
  opacity: 0;
}

.cv.no-cover-img::before {
  opacity: 0;
}

.cv img.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: transparent;
}

.cv.is-loaded .cover-img {
  opacity: 1;
}

.cv.no-cover-img .cover-img {
  display: none;
}

.cv .cover-ph {
  z-index: 0;
  opacity: 0.85;
  font-size: 56px;
}

.cv.is-loaded .cover-ph {
  opacity: 0.25;
}

.cv.no-cover-img .cover-ph {
  opacity: 0.9;
  z-index: 1;
}

.shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.05) 55%);
  pointer-events: none;
}

.hbtn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: #333;
  z-index: 2;
  border: none;
  cursor: pointer;
}

.hbtn.saved {
  color: var(--brand);
}

.ctag {
  position: absolute;
  left: 0;
  top: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 0 6px 6px 0;
  z-index: 2;
}

.cfoot {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.lb {
  padding: 12px 14px 14px;
}

.nm {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.rb {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--soft);
  color: var(--ink);
}

.pill.g {
  background: var(--green-bg);
  color: var(--green);
}

.pill.b {
  background: var(--brand-soft);
  color: var(--brand);
}

.pill.a {
  background: var(--amber-bg);
  color: var(--amber);
}

.cover-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 52px;
  line-height: 1;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.cover-ph--hero {
  font-size: 64px;
  z-index: 0;
}

.cv.no-cover-img .cover-img,
.vendor-cover-wrap.show-ph .vendor-cover,
.food-thumb-wrap.show-ph .food-thumb,
.modal-food-hero.show-ph .modal-food-img {
  display: none;
}

.food-thumb-wrap {
  position: relative;
  width: 100px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
}

.food-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 36px;
  opacity: 0.7;
  z-index: 0;
}

/* —— Tags & badges (readable on dark UI) —— */
.app-shell .badge-sm,
.app-shell .badge-popular {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #3d2e0a;
  color: #ffcc55;
  border: 1px solid rgba(255, 204, 85, 0.5);
  letter-spacing: 0.02em;
}

.app-shell .badge-sm.unavailable {
  background: rgba(198, 40, 40, 0.22);
  color: #ff9b9b;
  border-color: rgba(255, 107, 107, 0.4);
}

.app-shell .tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2c2c38;
  color: #e8e8f0;
  border: 1px solid var(--line);
}

.app-shell .tag.muted {
  color: #b0b0bc;
  background: #252530;
}

.app-shell .tag-call {
  background: var(--amber-bg);
  color: #ffd666;
  border-color: rgba(245, 185, 66, 0.4);
}

.app-shell .status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: capitalize;
  background: #2c2c38;
  color: #e8e8f0;
  border: 1px solid var(--line);
}

.app-shell .status-pill.delivered {
  background: var(--green-bg);
  color: #6ee7a8;
  border-color: rgba(52, 199, 123, 0.45);
}

.app-shell .status-pill.cancelled {
  background: rgba(198, 40, 40, 0.2);
  color: #ff9b9b;
  border-color: rgba(255, 107, 107, 0.4);
}

.app-shell .status-pill.pending,
.app-shell .status-pill.preparing,
.app-shell .status-pill.ready {
  background: var(--brand-soft);
  color: #ff8ab8;
  border-color: rgba(255, 77, 134, 0.35);
}

.app-shell .status.open {
  background: var(--green-bg);
  color: #6ee7a8;
  font-weight: 800;
}

.app-shell .status.closed {
  background: rgba(198, 40, 40, 0.2);
  color: #ff9b9b;
}

.app-shell .badge-gem {
  background: #4a3d6b;
  color: #e8d4ff;
  border: 1px solid rgba(180, 140, 255, 0.35);
}

.app-shell .badge-trend {
  background: #8b1a4a;
  color: #fff;
}

.app-shell .pill {
  background: #2c2c38;
  color: #dddde8;
  border: 1px solid var(--line);
}

.app-shell .pill.g {
  background: var(--green-bg);
  color: #6ee7a8;
  border-color: rgba(52, 199, 123, 0.45);
}

.app-shell .pill.b {
  background: var(--brand-soft);
  color: #ff8ab8;
  border-color: rgba(255, 77, 134, 0.4);
}

.app-shell .pill.a {
  background: var(--amber-bg);
  color: #ffd666;
  border-color: rgba(245, 185, 66, 0.45);
}

.app-shell .meta .pill.g {
  color: #6ee7a8;
}

.app-shell .ctag {
  background: #c2185b;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.fchips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
}

.chip {
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: 7px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

/* Anchored inside .app-shell (same as Chatorey #nav) — not viewport fixed */
.app-shell .bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  background: var(--card);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
  padding: 6px 2px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line);
  min-height: var(--bottom-nav-h);
  pointer-events: auto;
}

.app-shell .bottom-nav a {
  flex: 1;
  min-width: 0;
  max-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 2px 2px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1.1;
}

.app-shell .bottom-nav a span:not(.fab) {
  white-space: nowrap;
}

.app-shell .bottom-nav a svg {
  flex-shrink: 0;
}

.app-shell .bottom-nav a.active {
  color: var(--brand);
}

.app-shell .bottom-nav a.active svg {
  stroke: var(--brand);
}

.app-shell .bottom-nav a.nav-add {
  margin-top: -22px;
  color: var(--muted);
  justify-content: flex-end;
}

.app-shell .bottom-nav a.nav-add.active {
  color: var(--brand);
}

.app-shell .bottom-nav .fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(216, 30, 91, 0.45);
  flex-shrink: 0;
}

.app-shell .bottom-nav .fab svg {
  stroke: #fff;
}

.app-shell .sticky-cart {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: calc(100% - 24px);
  transform: none;
  background: var(--green);
  border-radius: 14px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.app-shell .sticky-cart.show {
  display: flex;
}

.sticky-cart .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  box-shadow: none;
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.app-shell .toast {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(160%);
  background: #1a1a22;
  color: #f2f2f6;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  max-width: calc(100% - 32px);
  z-index: 120;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.app-shell .toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.app-shell .toast.success {
  background: var(--green-bg);
  color: var(--green);
  border-color: rgba(52, 199, 123, 0.35);
}

.app-shell .toast.warn {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: rgba(245, 185, 66, 0.35);
}

.modal-backdrop .modal {
  background: var(--card);
  color: var(--ink);
}

.vendor-card,
.food-card,
.bill-card,
.deal-card {
  background: var(--card);
  border-color: var(--line);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.muted,
.mut {
  color: var(--muted);
}

.sm {
  font-size: 13px;
}

.xs {
  font-size: 12px;
}

/* —— Vendor detail —— */
.vendor-page {
  margin-bottom: 8px;
}

.vendor-cover-wrap {
  position: relative;
  height: 220px;
  background: var(--soft);
  overflow: hidden;
}

.vendor-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vendor-sheet {
  margin-top: -18px;
  position: relative;
  z-index: 2;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 18px 16px 16px;
  border-top: 1px solid var(--line);
}

.vendor-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vendor-sheet-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  flex: 1;
}

.vendor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.vendor-addr {
  margin-top: 6px;
  line-height: 1.35;
}

.vendor-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.vendor-actions-grid .btn {
  width: 100%;
}

.vendor-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vendor-action-btn .btn-ico {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.92;
}

.vendor-action-btn.is-saved {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}

.modal-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px 20px calc(22px + env(safe-area-inset-bottom, 0px));
}

.modal-sheet::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}

.modal-sheet-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.modal-sheet-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.modal-sheet-meta {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--line);
}

.modal-sheet-addr {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}

.modal-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-sheet-actions--tight {
  gap: 8px;
}

.modal-sheet-actions .btn,
.modal-sheet-row .btn {
  box-sizing: border-box;
  min-height: 44px;
}

.modal-sheet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.modal-sheet-row--text {
  margin-top: 8px;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.modal-sheet-phone {
  display: block;
  margin: 4px 0 10px;
  padding: 10px 12px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.modal-sheet-phone:active {
  opacity: 0.75;
}

.modal-sheet-hint {
  margin: 0 0 18px;
  padding: 0 4px;
  text-align: center;
}

.modal-sheet-label {
  margin: 20px 0 10px;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

/* Generic headings/copy when not using explicit title classes */
.modal-sheet > h2:not(.modal-sheet-title),
.modal-sheet .modal-stall-picker > h2,
.modal-sheet .modal-dedup > h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.modal-sheet-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.modal-sheet-chips {
  margin-bottom: 14px;
}

.modal-sheet-form {
  margin: 0;
  gap: 14px;
}

.modal-sheet-form .modal-sheet-actions {
  margin-top: 4px;
}

.modal-sheet .field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.modal-sheet .field-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.modal-sheet-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 4px;
  padding-right: 2px;
}

.modal-loc-row {
  justify-content: flex-start !important;
  text-align: left;
}

.modal-sheet .stall-picker-list {
  margin: 14px 0;
}

.modal-sheet .dup-list {
  margin: 16px 0;
}

.modal-sheet .stall-dedup-tip {
  margin: 0 0 4px;
  line-height: 1.4;
}

.modal-sheet .fchips {
  gap: 8px;
}

.modal-sheet #taste-quick-add {
  margin-top: 8px;
}

.menu-item.order-pick-flash {
  animation: orderPickFlash 2s ease-out;
  border-radius: 14px;
}

@keyframes orderPickFlash {
  0%,
  100% {
    box-shadow: none;
    background: transparent;
  }
  15%,
  45% {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent);
    background: color-mix(in srgb, var(--brand) 8%, transparent);
  }
}

.icon-btn--glass.saved {
  color: var(--brand);
}

.page-banner {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.page-banner.success {
  background: var(--green-bg);
  color: var(--green);
}

.page-banner.warn {
  background: var(--amber-bg);
  color: var(--amber);
}

.page-section {
  padding: 0 16px 20px;
}

.page-section h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}

.page-section .menu-cat {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin: 16px 0 8px;
}

.app-shell .food-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-shell .food-card {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.app-shell .food-card .food-thumb-wrap {
  grid-column: 2;
  grid-row: 1 / span 5;
}

.app-shell .food-card .food-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 88px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 12px;
}

.vendor-cover-wrap {
  position: relative;
}

.app-shell .food-card .food-card-body {
  grid-column: 1;
  padding: 0;
}

.app-shell .review {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.card-soft {
  margin: 0 16px 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.vendor-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 45;
  background: linear-gradient(var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
}

.vendor-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.vendor-tab.on {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.vendor-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vendor-tip-ico {
  font-size: 22px;
  line-height: 1;
}

.vendor-menu-block {
  padding-bottom: 8px;
}

.vendor-menu-sticky {
  position: sticky;
  top: 52px;
  z-index: 44;
  background: var(--bg);
  padding: 8px 0 10px;
  margin-bottom: 4px;
}

.menu-cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.menu-cat-chips::-webkit-scrollbar {
  display: none;
}

.menu-cat-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.menu-cat-chip.on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.menu-list {
  padding: 0 16px;
}

.menu-section {
  padding: 16px 0 8px;
  scroll-margin-top: 120px;
}

.menu-section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.menu-section-sub {
  margin: 2px 0 12px;
}

.menu-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.menu-item-info {
  flex: 1;
  min-width: 0;
}

.menu-item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.menu-item-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.menu-item-desc {
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.menu-item-price {
  font-weight: 800;
  font-size: 15px;
}

.menu-item-media {
  flex: 0 0 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.menu-item-thumb {
  position: relative;
  width: 118px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
}

.menu-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.menu-item-thumb .food-ph {
  font-size: 40px;
}

.menu-add-btn {
  margin-top: -14px;
  z-index: 2;
  min-width: 88px;
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  background: var(--card);
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--line);
  cursor: pointer;
}

.menu-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.menu-add-btn:not(:disabled):active {
  transform: scale(0.97);
  background: var(--brand-soft);
}

.vendor-reviews-block {
  padding: 8px 16px 24px;
  scroll-margin-top: 100px;
  border-top: 8px solid var(--out);
}

.rating-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.rating-summary-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 88px;
}

.rating-big {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
}

.rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-bar-row {
  display: grid;
  grid-template-columns: 14px 1fr 32px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.rating-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
}

.rating-bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 99px;
}

.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card-meta b {
  font-size: 14px;
}

.review-stars .star {
  font-size: 12px;
}

.review-stars .star.full,
.review-stars .star.half {
  color: #f5b942;
}

.review-stars .star.empty {
  color: var(--line);
}

.review-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.vendor-about-details {
  margin: 0 16px 28px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.vendor-about-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.vendor-about-details summary::-webkit-details-marker {
  display: none;
}

.vendor-about-details[open] summary {
  margin-bottom: 10px;
}

.center {
  text-align: center;
}

/* —— Profile —— */
.profile-page {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-page .profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.profile-page .profile-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.profile-av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.profile-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-block h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
}

.profile-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.profile-line.linkish {
  color: var(--brand);
  font-weight: 600;
}

/* —— Orders (history & tracking list) —— */
.orders-page {
  gap: 10px;
  padding-bottom: 36px;
}

.orders-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orders-section + .orders-section {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.orders-page .orders-sec-head {
  padding: 6px 0 4px;
  align-items: center;
}

.orders-page .orders-sec-head h2 {
  font-size: 17px;
}

.app-shell .order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.app-shell .order-card--live {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 6px 24px rgba(255, 77, 134, 0.14);
}

.order-card-tap,
.order-card-tap:hover,
.order-card-tap:focus-visible {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.order-live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -16px -16px 14px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--brand) 12%, var(--card));
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}

.order-live-eta {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.order-vendor-row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.order-vendor-text {
  min-width: 0;
}

.order-vendor-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-vendor-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.order-vendor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-items-line {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-step {
  margin: 0;
}

.order-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.order-total {
  font-size: 17px;
  font-weight: 800;
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 14px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 40%, var(--card));
}

.order-card-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.order-card-actions .btn-primary {
  flex: 1.4 1 auto;
}

.orders-empty {
  text-align: center;
  padding: 28px 12px 20px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.orders-empty-icon {
  font-size: 40px;
  margin: 0 0 8px;
}

.orders-empty h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.orders-empty .btn {
  margin-top: 16px;
}

/* —— Track order —— */
.track-page {
  gap: 16px;
  padding-bottom: 32px;
}

.track-eta-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.track-eta-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.track-eta-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.track-eta-time {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.track-eta-status {
  margin: 0 0 6px;
  line-height: 1.45;
}

.track-eta-partner {
  margin: 0;
}

.app-shell .track-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-shell .timeline {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 8px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.app-shell .tl-item {
  gap: 14px;
  padding-bottom: 20px;
  opacity: 0.38;
}

.app-shell .tl-item.done {
  opacity: 1;
}

.app-shell .tl-item.current {
  opacity: 1;
}

.app-shell .tl-item.current .tl-body strong {
  color: var(--brand);
}

.app-shell .tl-body {
  flex: 1;
  min-width: 0;
}

.app-shell .tl-body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}

.app-shell .tl-desc {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

.app-shell .tl-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
}

.app-shell .tl-item.current .tl-dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 28%, transparent);
}

.app-shell .tl-item.done:not(:last-child)::before {
  background: var(--brand);
}

.app-shell .track-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track-aside-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.track-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-help-link {
  align-self: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.track-demo-btn {
  margin-top: 4px;
  opacity: 0.75;
  font-size: 12px !important;
  padding: 0.45rem 0.75rem !important;
}

.app-shell .track-detail-card {
  max-width: none;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}

.track-detail-items {
  margin: 12px 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
  margin: 0;
}

/* —— Forms (wizard, cart, checkout) —— */
.page-pad {
  padding: 0 0 16px;
}

.app-shell .wizard-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 16px 16px;
  padding: 16px;
}

.wizard-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
}

.field-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.field-input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.app-shell .bottom-nav a:focus {
  outline: none;
}

.app-shell .bottom-nav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 10px;
}

/* —— Page rhythm & spacing —— */
.page-home {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}

.page-home .secH {
  padding: 20px 16px 10px;
}

.page-home .hs {
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.page-home .secH + .hs {
  margin-top: 0;
}

.page-home .fchips {
  margin-bottom: 12px;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 16px 28px;
}

.page-stack-tight {
  padding: 0 16px 8px;
}

.block-title {
  font-size: 17px;
  font-weight: 800;
  margin: 20px 0 12px;
}

.block-title:first-child {
  margin-top: 0;
}

.checkout-main .block-title {
  margin-top: 24px;
}

/* Force single-column commerce layouts inside phone shell */
.app-shell .cart-layout,
.app-shell .checkout-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  grid-template-columns: none !important;
  max-width: 100%;
}

.app-shell .cart-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-shell .cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-areas:
    'thumb main'
    'thumb qty'
    'thumb remove';
  gap: 8px 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.app-shell .cart-item .cart-thumb {
  grid-area: thumb;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}

.app-shell .cart-item-main {
  grid-area: main;
}

.app-shell .cart-item .qty-control {
  grid-area: qty;
  grid-column: 2;
  justify-self: start;
}

.app-shell .cart-item .qty-control button {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}

.app-shell .cart-item .link.danger {
  grid-area: remove;
  grid-column: 2;
  font-size: 13px;
}

.app-shell .coupon-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.app-shell .coupon-row .field-input {
  flex: 1;
}

.app-shell .bill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--sh);
}

.app-shell .bill-line {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.app-shell .bill-total {
  color: var(--ink);
  border-top-color: var(--line);
  margin: 16px 0 14px;
  font-size: 18px;
}

.app-shell .checkout-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 4px;
}

.app-shell .checkout-steps .step {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.app-shell .checkout-steps .step.done,
.app-shell .checkout-steps .step.active {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.app-shell .address-card {
  display: block;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.app-shell .address-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.app-shell .address-card strong {
  display: block;
  margin-bottom: 4px;
}

.app-shell .address-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.app-shell .address-card.selected p {
  color: #e8c4d4;
}

.app-shell .address-card input[type='radio'] {
  accent-color: var(--brand);
  margin-right: 8px;
}

.app-shell .partner-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
}

.app-shell .pay-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-items {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.checkout-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--soft);
}

/* —— Modal (add to cart) —— */
.app-shell .modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 10, 0.78);
  padding: 0;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

.app-shell .modal-backdrop .modal {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  max-width: 100%;
  width: 100%;
  max-height: min(92vh, calc(100% - 12px));
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.app-shell .modal-backdrop .modal.modal-sheet-wrap {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.app-shell .modal-backdrop .modal.modal-food-sheet {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, calc(100% - 12px));
}

.modal-food {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: inherit;
}

.modal-food::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin: 12px auto 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  flex-shrink: 0;
}

.modal-food-hero {
  position: relative;
  height: 188px;
  background: var(--soft);
  overflow: hidden;
  flex-shrink: 0;
}

.modal-food-hero .food-ph {
  font-size: 56px;
}

.modal-food-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 188px;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.modal-food-body {
  flex: 1;
  min-height: 0;
  padding: 6px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-food-body h2 {
  font-size: 20px;
  margin: 0 0 6px;
}

.modal-price {
  font-size: 18px;
  font-weight: 800;
  margin: 10px 0 16px;
  color: var(--ink);
}

.modal-section-title {
  font-size: 14px;
  font-weight: 800;
  margin: 18px 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-food .option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-food .check-row {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.modal-food .qty-input {
  margin-top: 6px;
  max-width: 120px;
}

.modal-food-body #modal-add-confirm {
  margin-top: 18px;
  width: 100%;
  min-height: 48px;
}

.app-shell .check-row input[type='radio'],
.app-shell .check-row input[type='checkbox'] {
  accent-color: var(--brand);
}

/* —— Add stall (contributor) —— */
.app-shell .bottom-nav .fab--stall {
  background: linear-gradient(145deg, #1b5e20, #00897b);
  box-shadow: 0 6px 16px rgba(0, 137, 123, 0.45);
}

.app-shell .bottom-nav a.nav-add--stall.active {
  color: #00897b;
}

.stall-progress {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 4px;
  scrollbar-width: none;
}

.stall-progress-dot {
  flex: 1;
  min-width: 56px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}

.stall-progress-dot i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  margin: 0 auto 4px;
}

.stall-progress-dot.on i {
  background: #00897b;
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.25);
}

.stall-progress-dot.done i {
  background: #00897b;
}

.stall-taste-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  padding: 8px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  margin: 8px 0;
}

.stall-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
}

.stall-upload input[type='file'] {
  font-size: 13px;
  margin-top: 6px;
}

.stall-photo-grid {
  margin: 10px 0 16px;
}

.stall-photo-grid--thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stall-photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
}

.stall-photo-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.stall-menu-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.stall-menu-tab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--soft);
  font-weight: 700;
  font-size: 13px;
}

.stall-menu-tab.on {
  border-color: #00897b;
  background: rgba(0, 137, 123, 0.12);
  color: #00897b;
}

.stall-manual-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.stall-menu-row {
  display: grid;
  grid-template-columns: 1fr 72px 1fr 36px;
  gap: 6px;
  align-items: center;
}

@media (max-width: 380px) {
  .stall-menu-row {
    grid-template-columns: 1fr 1fr;
  }
}

.stall-review-summary .review-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stall-review-summary .review-menu-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.stall-review-policy {
  margin: 12px 0;
  padding: 14px;
}

.stall-dedup-confirm {
  margin: 12px 0 16px;
  align-items: flex-start;
}

.stall-success {
  text-align: center;
  padding: 24px 8px;
}

.stall-success-ico {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 137, 123, 0.15);
  color: #00897b;
  font-size: 28px;
  margin-bottom: 12px;
}

.stall-picker-list {
  max-height: 220px;
  overflow-y: auto;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.stall-picker-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.dup-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.dup-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.stall-sub-line {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.stall-maps-quick {
  margin-bottom: 16px;
  padding: 14px;
}

.stall-maps-quick code {
  font-size: 11px;
  opacity: 0.85;
}

.stall-maps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.stall-maps-preview {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.stall-maps-name-opt {
  margin-top: 10px;
}

