:root {
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-paper: #F6F8F7;
  --bg-subtle: #F0F4F2;
  --ink: #0F3A2C;
  --text: #26312B;
  --ink-secondary: #414B46;
  --muted: #626E66;
  --line: #E1E7E3;
  --line-strong: #C7D3CC;
  /* Retain the existing token names for shared controls and store tone keys. */
  --date: #243F33;
  --date-hover: #153026;
  --date-soft: #ECF2EF;
  --olive: #2F5B3F;
  --olive-soft: #ECF3EF;
  --selection: #EBF3EE;
  --icon-surface: #EEF3F0;
  --tone-date: #E9EFEB;
  --tone-sand: #F2F5F3;
  --tone-cream: #F3F6F4;
  --tone-clay: #EDF3EF;
  --tone-stone: #F0F3F1;
  --tone-olive: #E9F1EC;
  --closed-surface: #EFF1F0;
  --closed-text: #59635D;
  --closed-line: #DAE0DC;
  --error-text: #8A2E1D;
  --saffron: #D4A033;
  --saffron-text: #8A5D12;
  --saffron-soft: #F7EACB;
  --on-dark: #FFFFFF;
  --on-dark-muted: #CDDAD2;
  --focus: #A86F12;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-card: 0 8px 24px rgba(20, 24, 18, 0.07);
  --shadow-float: 0 14px 36px rgba(20, 24, 18, 0.22);
  --font-sans: 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-display: var(--font-sans);
  --portal-canvas: #F5F8F6;
  --shadow-panel: 0 12px 32px rgba(15, 58, 44, 0.05);
  --market-line: #DFE7E1;
  --market-image-line: rgba(255, 255, 255, 0.24);
  --market-caption-bg: rgba(15, 58, 44, 0.88);
  --market-feature-scrim: linear-gradient(to left, #0F3A2C 40%, rgba(15, 58, 44, 0.78) 57%, rgba(15, 58, 44, 0) 82%);
  --market-feature-scrim-mobile: linear-gradient(to left, #0F3A2C 27%, rgba(15, 58, 44, 0.88) 53%, rgba(15, 58, 44, 0.12) 100%);
  --radius-market: 14px;
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  color: var(--ink);
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

.num {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* Top Utility Strip */
.store-demo-strip {
  min-height: 28px;
  padding: 4px 16px;
  background: var(--ink);
  color: var(--on-dark-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
}

.strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--date);
  flex-shrink: 0;
}

/* Header & Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  padding: 0 max(4.2vw, 20px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-right,
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-text b {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.brand-text small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: right;
  transition: border-color 0.15s;
}

.location-pill:hover {
  border-color: var(--line-strong);
}

.pin-icon {
  width: 17px;
  height: 17px;
  color: var(--date);
  flex-shrink: 0;
}

.location-copy small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.location-copy b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1px;
}

.main-nav {
  scrollbar-width: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}

.main-nav a {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}

.main-nav a.active {
  color: var(--ink);
  font-weight: 700;
  background: var(--bg-subtle);
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--date);
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.cart-button {
  height: 40px;
  padding: 0 13px;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.cart-button:hover {
  background: var(--date);
}

.bag-icon {
  width: 16px;
  height: 16px;
}

.cart-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--saffron);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
}

/* Containers */
.section-wrap {
  width: min(92%, 1240px);
  margin: 0 auto;
}

/* Discovery Header Row */
.discovery-head {
  padding: 26px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.discovery-copy h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0 0 4px;
}

.discovery-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

.search {
  height: 42px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.15s;
}

.search:focus-within {
  border-color: var(--ink);
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
}

.search input::placeholder {
  color: var(--muted);
}

/* Category & Filter Strip */
.discovery-controls {
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.category-row::-webkit-scrollbar {
  display: none;
}

.category-card {
  height: 38px;
  padding: 0 13px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  flex: 0 0 auto;
}

.category-card > span { display: grid; place-items: center; flex: 0 0 16px; }
.category-card > b { display: inline-block; }

.category-card:hover {
  border-color: var(--ink);
}

.category-card.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

/* A category with no stores in this zone: shown for breadth, not a dead-end
   filter that lands on "no results". */
.category-card.is-empty {
  opacity: 0.45;
  cursor: default;
}

.category-card.is-empty:hover {
  border-color: var(--line);
}

.category-card .food-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  overflow-x: auto;
}

.filter-label {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}

.filter-chip {
  height: 32px;
  padding: 0 11px;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.filter-chip.active {
  background: var(--date-soft);
  border-color: var(--date);
  color: var(--date);
  font-weight: 600;
}

/* Restaurant Listing Grid */
.restaurants {
  padding: 18px 0 36px;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}

/* Curated Local Picks Section */
.popular-section {
  padding: 28px 0 64px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--date);
  letter-spacing: 0.02em;
}

.section-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Floating Bottom Mini-Cart Bar */
.mini-cart {
  position: fixed;
  z-index: 18;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 28px));
  min-height: 58px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid #0A2C21;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

/* The bar and the footer are both ink green, so they merge where they meet.
   Tuck the floating bar away once the footer is on screen; the cart is still
   reachable from the header, and the footer has its own links. */
body.footer-in-view .mini-cart {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}

.mini-cart-right {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.mini-cart-count {
  min-width: 28px;
  height: 28px;
  border-radius: 3px;
  background: var(--date);
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mini-cart-label b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.mini-cart-label small {
  display: block;
  font-size: 11px;
  color: var(--on-dark-muted);
}

.mini-cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-cart-left strong {
  font-size: 14px;
}

.mini-cart-arrow {
  font-size: 18px;
  color: var(--on-dark-muted);
}

/* Subpages Shared Architecture */
.page-content {
  min-height: 72vh;
}

.page-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 24px;
}

.page-wrap {
  width: min(92%, 1040px);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 28px;
  color: var(--ink);
  margin: 4px 0 0;
  letter-spacing: -0.4px;
}

.page-body {
  padding-top: 24px;
  padding-bottom: 64px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--date);
}

/* Restaurant Detail Page */

.page-section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 12px;
}

.menu-desc b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.menu-desc small {
  display: block;
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 4px 0 8px;
  line-height: 1.45;
}

.menu-desc strong {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink);
}

.add-button {
  height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.add-button:hover:not(:disabled) {
  background: var(--date);
  border-color: var(--date);
}

a.add-button { display: inline-grid; place-items: center; }

.add-button:disabled {
  border-color: var(--line-strong);
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 11px;
  cursor: not-allowed;
}

/* Item Detail Page */
.item-detail-card {
  max-width: 780px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.item-detail-copy {
  padding: 24px;
}

.item-detail-price {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  color: var(--date);
  margin: 10px 0 16px;
}

.item-note {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0;
}

.item-note textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 6px;
  background: var(--bg-paper);
}

.item-order-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

/* Buttons & Controls */
.primary-button {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-button:hover:not(:disabled) {
  background: var(--olive);
}

.secondary-button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.secondary-button:hover {
  border-color: var(--ink);
}

.text-button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.full {
  width: 100%;
}

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.quantity button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.quantity b {
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* Cart Drawer & Full Cart Page */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 18, 0.48);
  z-index: 30;
}

.drawer {
  position: fixed;
  z-index: 31;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(430px, 100%);
  background: var(--bg-surface);
  border-right: 1px solid var(--line);
  padding: 22px;
  transform: translateX(-105%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}

.drawer:not(.open) {
  visibility: hidden;
  transition: transform 0.24s ease, visibility 0s linear 0.24s;
}

.drawer.open {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden;
}

.drawer-head,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.drawer-head h2,
.dialog-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.drawer-content {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line h3 {
  font-size: 14px;
  margin: 0 0 2px;
}

.cart-line small {
  color: var(--muted);
  font-size: 12px;
}

.cart-totals {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-totals div {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 13px;
}

.cart-totals .grand {
  font-size: 16px;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cart-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}

/* Checkout, Orders, Tracking & Dashboards */
.checkout-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.checkout-page-form,
.checkout-page-summary,
.content-card,
.tracking-card,
.confirmation-card,
.empty-panel {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.checkout-page-form label,
.local-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}

.checkout-page-form input,
.checkout-page-form select,
.checkout-page-form textarea,
.local-form input,
.local-form select,
.dashboard-toolbar select,
.order-actions select {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 6px;
  background: var(--bg-paper);
  font-size: 13px;
}

.checkout-page-summary div,
.confirmation-lines div {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 13px;
}

.checkout-page-summary .grand,
.confirmation-lines .grand {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.order-card h3 {
  margin: 4px 0;
  font-size: 16px;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--olive-soft);
  color: var(--olive);
  font-size: 12px;
  font-weight: 600;
}

.timeline {
  margin: 20px 0;
  border-right: 2px solid var(--line);
  padding-right: 18px;
}

.timeline-step {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.timeline-step i {
  position: absolute;
  right: -25px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--line-strong);
}

.timeline-step.done {
  color: var(--ink);
}

.timeline-step.done i {
  background: var(--olive);
  border-color: var(--olive);
}

.timeline-step.current {
  font-weight: 700;
  color: var(--date);
}

.timeline-step.current i {
  background: var(--date);
  border-color: var(--date);
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.dashboard-cards > div {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.dashboard-cards b {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  margin-top: 6px;
}

/* Dialogs */
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  width: min(460px, calc(100% - 28px));
  background: var(--bg-surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  max-height: min(84vh, 760px);
  overflow-y: auto;
}

.food-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

dialog::backdrop {
  background: rgba(20, 24, 18, 0.5);
}

.item-photo-action { min-height: 44px; text-align: start; }
.item-photo-form { display: grid; gap: 12px; }
.item-photo-form input { display: block; max-inline-size: 100%; }
.item-photo-form .dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.item-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.item-photo-list:empty { display: none; }
.item-photo-tile {
  display: grid;
  align-content: start;
  gap: 4px;
  text-align: center;
}
.item-photo-list img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dialog-subcopy {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 12px 0 16px;
}

.zone-list {
  display: grid;
  gap: 8px;
}

.zone-option {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: right;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zone-option.active {
  border-color: var(--ink);
  background: var(--bg-subtle);
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 0 max(4.2vw, 20px);
  margin-top: 40px;
}

.footer-main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .brand-text b {
  color: var(--on-dark);
}

.footer-brand .brand-text small { color: var(--on-dark-muted); }

.footer-brand .brand-mark { filter: brightness(0) invert(1); }

.footer-brand-block p {
  font-size: 13px;
  color: var(--on-dark-muted);
  margin: 12px 0;
  max-width: 380px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link-group b {
  font-size: 13px;
  color: var(--on-dark);
  margin-bottom: 4px;
}

.footer-link-group a {
  font-size: 12px;
  color: var(--on-dark-muted);
}

.footer-link-group a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  width: min(1240px, 100%);
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--on-dark-muted);
}

/* Demo art tiles: line icons on palette tones instead of stock photos */
.tone-green { background: var(--ink); color: var(--on-dark); }
.tone-olive { background: var(--tone-olive); color: var(--ink); }
.tone-date { background: var(--tone-date); color: var(--ink); }
.tone-sand { background: var(--tone-sand); color: var(--ink); }
.tone-cream { background: var(--tone-cream); color: var(--ink); }
.tone-clay { background: var(--tone-clay); color: var(--ink); }
.tone-stone { background: var(--tone-stone); color: var(--ink); }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.meta-line > span + span::before {
  content: "·";
  margin: 0 7px;
  color: var(--line-strong);
}

/* Restaurant cards (home and catalog) */

/* Dish suggestions on home */
.popular-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color 0.15s;
}

.popular-card:hover {
  border-color: var(--ink);
}

.popular-art {
  flex: 0 0 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}

.popular-art .food-icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}

.popular-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.popular-copy b { font-size: 14px; }
.popular-copy small { font-size: 12px; color: var(--muted); }
.popular-copy strong { font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* Restaurant page */
.rest-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 26px;
}

.rest-hero-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rest-hero-art {
  flex: 0 0 112px;
  height: 112px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.rest-hero-art .food-icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.5;
}

.rest-hero-copy h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.rest-hero-copy p {
  margin: 4px 0 8px;
  color: var(--ink-secondary);
  font-size: 14px;
}

.rest-hero-copy .meta-line { font-size: 13px; }

.dish-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dish-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.dish-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-sm);
}

.dish-art {
  flex: 0 0 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}

.dish-art .food-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.dish-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dish-copy b { font-size: 15px; }
.dish-copy small { font-size: 12px; color: var(--ink-secondary); line-height: 1.5; margin: 2px 0 6px; }
.dish-copy strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.dish-main:hover b { color: var(--date); }

.dish-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dish-incart {
  min-height: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
}

/* Dish page */
.item-page { padding-top: 20px; }

.item-detail-art {
  min-height: 280px;
  display: grid;
  place-items: center;
}

.item-detail-art .food-icon {
  width: 88px;
  height: 88px;
  stroke-width: 1.4;
}

.item-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--date);
}

.item-detail-copy h1 {
  margin: 2px 0 6px;
  font-size: 26px;
  line-height: 1.3;
}

.item-detail-copy p {
  margin: 0;
  color: var(--ink-secondary);
}

.item-detail-copy .item-note { margin: 16px 0 6px; }

.item-detail-copy textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--bg-paper);
  resize: vertical;
}

.item-order-controls .primary-button { flex: 1; }

.optional {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-inline-start: 4px;
}

/* Cart page */
.cart-from {
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.cart-from a,
.cart-from b {
  color: var(--ink);
  font-weight: 700;
}

.cart-page-list > .cart-from { margin-top: 0; }

.cart-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.cart-page-list {
  display: grid;
  gap: 10px;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.cart-page-item .dish-art {
  width: 56px;
  height: 56px;
}

.cart-page-item .dish-art .food-icon {
  width: 28px;
  height: 28px;
}

.cart-page-desc b { display: block; font-size: 14px; }
.cart-page-desc small { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.cart-page-price {
  min-width: 56px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.cart-page-total {
  position: sticky;
  top: 90px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.cart-page-total div {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 13px;
}

.cart-page-total .grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}

.cart-page-total .primary-button { margin-top: 10px; }

/* Empty states and notes */
.empty-panel,
.cart-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--ink-secondary);
}

.empty-panel { padding: 36px 22px; }

.empty-panel .food-icon,
.cart-empty .food-icon {
  width: 40px;
  height: 40px;
  color: var(--muted);
  stroke-width: 1.5;
}

.empty-panel b,
.empty-panel > span,
.cart-empty b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.empty-panel p,
.cart-empty p { margin: 0 0 6px; }

.page-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.page-note {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.demo-warning {
  margin: 14px 0;
  padding: 10px 12px;
  border-inline-start: 3px solid var(--saffron);
  border-radius: var(--radius-sm);
  background: var(--saffron-soft);
  color: var(--saffron-text);
  font-size: 12.5px;
}

.demo-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 11px;
}

/* Catalog page */
.catalog-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.catalog-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.catalog-search:focus-within { border-color: var(--ink); }

.catalog-search .food-icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.catalog-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

/* Info, confirmation and demo dashboard pages */
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; }
.faq-list summary { font-weight: 600; cursor: pointer; }
.faq-list details p { margin: 8px 0 0; color: var(--ink-secondary); }
.content-card p { margin: 0 0 12px; }
.contact-options a { color: var(--date); font-weight: 700; }
.onboarding-list { margin: 0 0 16px; padding-inline-start: 20px; }
.onboarding-list li { margin: 6px 0; }
.local-form { max-width: 480px; }
.partner-result { margin-top: 12px; color: var(--olive); font-weight: 600; }
.confirmation-card { max-width: 520px; margin: 0 auto; text-align: center; }
.confirmation-card h2 { margin: 4px 0 10px; font-size: 24px; font-variant-numeric: tabular-nums; }
.confirmation-lines { margin: 18px 0; text-align: right; }
.success-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--olive); color: var(--on-dark); font-size: 22px; margin-bottom: 8px; }
.dashboard-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.dashboard-toolbar label { flex: 1; min-width: 220px; font-size: 13px; font-weight: 600; }
.admin-restaurant-list { display: grid; gap: 8px; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.admin-row > div { flex: 1; }
.admin-row small { display: block; font-size: 12px; color: var(--muted); }
.availability { font-size: 12px; font-weight: 600; color: var(--olive); }
.settings-card label { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.input-with-unit { display: flex; align-items: center; gap: 8px; max-width: 200px; margin-top: 6px; }
.input-with-unit input { flex: 1; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-paper); }
#dashboard-menu .menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
#dashboard-menu .menu-desc { flex: 1; }
.menu-emoji { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--bg-subtle); }
.menu-emoji .food-icon { width: 26px; height: 26px; }

.footer-demo-links a {
  color: var(--on-dark-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-demo-links a:hover { color: var(--on-dark); }

body.has-mini-cart .site-footer { padding-bottom: 84px; }

/* Sadu-inspired band (original pattern in the brand palette) */
:root {
  --sadu-band: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'><rect width='40' height='14' fill='%23F2F5F3'/><rect width='40' height='2' fill='%230F3A2C'/><rect y='12' width='40' height='2' fill='%230F3A2C'/><path d='M10 3.5 16 7l-6 3.5L4 7z' fill='%23D4A033'/><path d='M30 3.5 36 7l-6 3.5L24 7z' fill='%232F5B3F'/><path d='M10 5.6 12.4 7 10 8.4 7.6 7z' fill='%23F2F5F3'/><path d='M30 5.6 32.4 7 30 8.4 27.6 7z' fill='%23F2F5F3'/><path d='M20 4.5 21.6 7 20 9.5 18.4 7z' fill='%230F3A2C'/><path d='M0 4.5 1.6 7 0 9.5zM40 4.5 38.4 7 40 9.5z' fill='%230F3A2C'/></svg>");
}

.page-hero,
.rest-hero {
  position: relative;
  border-bottom: 0;
  padding-bottom: 36px;
}

.page-hero::after,
.rest-hero::after,
.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 12px;
  background: var(--sadu-band) repeat-x;
  background-size: auto 12px;
}

.page-hero::after,
.rest-hero::after {
  bottom: 0;
}

.site-footer {
  position: relative;
}

.site-footer::before {
  top: 0;
}

/* Menu sections and sticky tabs */
.menu-tabs {
  position: sticky;
  top: 68px;
  z-index: 5;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -8px 0 4px;
  padding: 10px 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--line);
}

.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.menu-tab:hover { border-color: var(--ink); color: var(--ink); }

.menu-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.menu-section {
  scroll-margin-top: 128px;
  padding-top: 8px;
}

.menu-section h2 {
  margin: 14px 0 10px;
  font-size: 17px;
}

/* Checkout choices */
.checkout-page-form .choice-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  border: 0;
}

.checkout-page-form .choice-group legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.checkout-page-form .choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-paper);
  cursor: pointer;
}

.checkout-page-form .choice input {
  display: inline-block;
  width: auto;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--ink);
}

.checkout-page-form .choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--bg-subtle);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.checkout-page-form .choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.checkout-page-form .choice.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.choice b { display: block; font-size: 13px; }
.choice small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* Responsive Breakpoints */
@media (max-width: 1020px) {
  .restaurant-grid,
  .popular-grid,
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discovery-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .category-row {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .topbar {
    position: relative;
  }
  .topbar-right {
    display: contents;
  }
  .brand { order: 1; }
  .topbar-left { order: 2; }
  .location-pill {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .main-nav {
    order: 4;
    width: 100%;
    overflow-x: auto;
    padding-top: 4px;
  }
  .discovery-head,
  .restaurant-grid,
  .popular-grid,
  .menu-grid,
  .detail-header-card,
  .item-detail-card,
  .checkout-page-grid,
  .dashboard-cards,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .order-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
    gap: 6px;
  }
  .drawer {
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  }
  .add-button,
  .quantity button {
    min-width: 42px;
    min-height: 42px;
  }
}

h1[tabindex="-1"]:focus {
  outline: none;
}

@media (max-width: 760px) {
  .dish-list,
  .cart-page-grid {
    grid-template-columns: 1fr;
  }
  .rest-hero-row {
    align-items: flex-start;
    gap: 14px;
  }
  .rest-hero-art {
    flex-basis: 76px;
    height: 76px;
  }
  .rest-hero-art .food-icon {
    width: 38px;
    height: 38px;
  }
  .rest-hero-copy h1 {
    font-size: 23px;
  }
  .item-detail-art {
    min-height: 170px;
  }
  .cart-page-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
  .cart-page-item .dish-art {
    width: 48px;
    height: 48px;
  }
  .cart-page-price {
    grid-column: 2;
    text-align: right;
  }
  .cart-page-total {
    position: static;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .restaurant-grid,
  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-tabs {
    top: 0;
  }
  .menu-section {
    scroll-margin-top: 60px;
  }
}

/* Display type */
h1, h2,
.brand-text b,
.store-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

/* Saffron accents */
.strip-dot,
.nav-badge,
.mini-cart-count {
  background: var(--saffron);
  color: var(--ink);
}

.dish-copy strong,
.popular-copy strong,
.cart-page-price {
  color: var(--ink);
}

.menu-tab.active {
  box-shadow: inset 0 -3px 0 var(--saffron);
}

/* Home hero board */
.home-hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding-bottom: 12px;
}

.home-hero .discovery-head {
  padding: 40px 0 36px;
  border-bottom: 0;
}

.home-hero h1 {
  color: var(--on-dark);
  font-size: 38px;
  line-height: 1.3;
}

.home-hero .discovery-copy p {
  color: var(--on-dark-muted);
  font-size: 15px;
}

.home-hero .search {
  height: 48px;
  border-color: transparent;
  background: var(--bg-surface);
}

.home-hero .search:focus-within {
  box-shadow: 0 0 0 3px var(--saffron);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 12px;
  background: var(--sadu-band) repeat-x;
  background-size: auto 12px;
}

/* Restaurant menu-board hero */
.rest-hero.board-green { background: var(--ink); }
.rest-hero.board-olive { background: var(--olive); }
.rest-hero.board-date { background: var(--date); }

.rest-hero[class*="board-"] {
  color: var(--on-dark);
  padding-top: 22px;
}

.rest-hero[class*="board-"] .back-link {
  color: var(--on-dark-muted);
}

.rest-hero[class*="board-"] .back-link:hover {
  color: var(--saffron);
}

.rest-hero[class*="board-"] .rest-hero-copy h1 {
  color: var(--on-dark);
  font-size: 36px;
}

.rest-hero[class*="board-"] .rest-hero-copy p,
.rest-hero[class*="board-"] .meta-line {
  color: var(--on-dark-muted);
}

.rest-hero[class*="board-"] .meta-line > span + span::before {
  color: var(--on-dark-muted);
}

.rest-hero[class*="board-"] .rest-hero-art {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Menu section headings as board dividers */
.menu-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  margin: 18px 0 12px;
}

.menu-section h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line-strong);
}

@media (max-width: 760px) {
  .home-hero .discovery-head {
    padding: 26px 0 26px;
  }
  .home-hero h1 {
    font-size: 30px;
  }
  .rest-hero[class*="board-"] .rest-hero-copy h1 {
    font-size: 28px;
  }
}

/* Store types */
.store-types {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 0 4px;
}

.type-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.type-tile:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* A category with no stores in this zone is shown for breadth but reads as a
   quiet "coming soon", not a clickable tile that filters to an empty list. */
.type-tile.is-empty {
  opacity: 0.45;
  cursor: default;
}

.type-tile.is-empty:hover {
  border-color: var(--line);
  transform: none;
}

.type-tile.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink), inset 0 -4px 0 var(--saffron);
}

.type-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.type-icon .food-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.type-tile b {
  font-size: 13px;
  line-height: 1.3;
}

.type-tile small {
  font-size: 11px;
  color: var(--muted);
}

/* Featured "pick of the day" hero card */
.featured {
  margin-top: 22px;
}

.featured-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 272px;
  border-radius: calc(var(--radius-md) + 6px);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.featured-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

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

.featured-photo .food-icon {
  width: 76px;
  height: 76px;
  opacity: 0.55;
  color: var(--on-dark);
}

/* Scrim so the text stays legible over any photo or tone. */
.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12, 32, 23, 0.9) 0%,
    rgba(12, 32, 23, 0.55) 34%,
    rgba(12, 32, 23, 0.08) 68%
  );
}

.featured-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  max-width: 560px;
  padding: 24px 26px;
}

.featured-eyebrow {
  background: var(--saffron);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}

.featured-name {
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1.2;
}

.featured-desc {
  color: var(--on-dark-muted);
  font-size: 15px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.featured-card .pill {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 0;
}

.featured-cta {
  margin-top: 10px;
  font-weight: 700;
  color: var(--saffron);
}

.featured-card:hover .featured-cta {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .featured-card {
    min-height: 212px;
  }
  .featured-name {
    font-size: 24px;
  }
  .featured-overlay {
    padding: 18px 18px 20px;
  }
}

/* Themed rows */
.shelf {
  margin-top: 36px;
}

.shelf-head,
.list-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 14px;
}

.shelf-head h2,
.list-head h2 {
  margin: 0;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* A short saffron tick before each section title gives the stacked shelves a
   shared rhythm and a bit of brand character. Leads the title in RTL. */
.shelf-head h2::before,
.list-head h2::before {
  content: "";
  flex: none;
  width: 4px;
  height: 19px;
  border-radius: 2px;
  background: var(--saffron);
}

.shelf-head small,
#restaurant-result-count {
  font-size: 12px;
  color: var(--muted);
}

.shelf-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.restaurants {
  /* After the curated shelves, the full catalogue is its own destination:
     a little more air and a hairline rule mark the transition. */
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.restaurants .discovery-controls {
  padding: 0 0 14px;
  border-bottom: 0;
}

.restaurants .category-row:not(.hidden) {
  flex-wrap: wrap;
}

.catalog-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Compact store cards */
.restaurant-grid {
  gap: 12px;
}

.store-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.store-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-card);
}

.store-tile {
  flex: 0 0 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.store-tile .food-icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}

.store-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.store-name {
  font-size: 17px;
  line-height: 1.3;
}

.store-desc {
  font-size: 12.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pill.fee {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
}

@media (max-width: 1020px) {
  .store-types,
  .shelf-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .store-types {
    grid-auto-columns: 104px;
  }
  .shelf-row {
    grid-auto-columns: minmax(260px, 78%);
  }
  .store-types::-webkit-scrollbar,
  .shelf-row::-webkit-scrollbar {
    display: none;
  }
  .store-types > *,
  .shelf-row > * {
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .store-types {
    padding-top: 16px;
  }
  .shelf {
    margin-top: 20px;
  }
}

/* Photos (illustrative demo photos with icon fallback) */
.store-cover,
.dish-photo,
.dish-art,
.rest-hero-art,
.item-detail-art,
.cart-page-item .dish-art {
  position: relative;
  overflow: hidden;
}

.store-cover img,
.dish-photo img,
.dish-art img,
.rest-hero-art img,
.item-detail-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-photo > .food-icon { visibility: hidden; }

.dish-photo img[data-photo="uploaded"],
.dish-art img[data-photo="uploaded"],
.item-detail-art img[data-photo="uploaded"] { object-fit: contain; }

.dish-photo img[data-photo="uploaded"] { padding: 8px; }
.item-detail-art img[data-photo="uploaded"] { padding: 14px; }

.photo-note {
  position: absolute;
  bottom: 6px;
  inset-inline-start: 6px;
  z-index: 1;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  font-size: 10px;
  line-height: 1.6;
  /* The top demo strip already says the images are examples, so keep this
     quiet at rest and let it come forward when the card is focused. */
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.store-card:hover .photo-note,
.dish-card:hover .photo-note,
.store-card:focus-within .photo-note,
.dish-card:focus-within .photo-note {
  opacity: 0.9;
}

.store-cover:not(.has-photo) .photo-note,
.dish-photo:not(.has-photo) .photo-note,
.item-detail-art:not(.has-photo) .photo-note {
  display: none;
}

/* Store cards with cover photo */
.store-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.store-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
}

.store-cover .food-icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.store-card .store-body {
  padding: 10px 12px 12px;
}

/* Dish rows on home */
.dish-row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 44%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.dish-row-scroll::-webkit-scrollbar { display: none; }

@media (min-width: 761px) {
  .dish-row-scroll {
    grid-auto-columns: minmax(180px, 1fr);
  }
}

@media (min-width: 1021px) {
  .dish-row-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }
}

.dish-card {
  position: relative;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.dish-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.dish-card-link {
  display: block;
  color: var(--ink);
}

.dish-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.dish-photo .food-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.6;
}

.dish-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px 10px;
}

.dish-card-body b {
  font-size: 14px;
  line-height: 1.35;
}

.dish-card-body small {
  font-size: 12px;
  color: var(--muted);
}

.dish-card-body strong {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.quick-add {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.quick-add:hover {
  background: var(--ink);
  color: var(--on-dark);
}

.quick-add.added {
  background: var(--olive);
  color: var(--on-dark);
}

.item-detail-art {
  min-height: 300px;
}

.item-detail-media { min-width: 0; }
.item-gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.item-gallery-nav button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.item-gallery-nav button[aria-pressed="true"] { border: 2px solid var(--olive); }
.item-gallery-nav img { width: 100%; height: 100%; object-fit: contain; }
.item-order-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.item-order-options label { display: grid; gap: 4px; }
.item-order-options select {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  color: inherit;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.menu-photo-note {
  margin: 0 0 10px;
}

h1, h2 {
  font-weight: 700;
}

/* Header refresh */
.store-demo-strip {
  min-height: 24px;
  padding: 3px 12px;
  font-size: 10.5px;
}

.topbar-left {
  gap: 8px;
}

.header-search {
  width: 42px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
}

.header-search:hover {
  border-color: var(--ink);
}

.header-search svg {
  width: 18px;
  height: 18px;
}

.cart-button {
  position: relative;
  width: 42px;
  padding: 0;
  justify-content: center;
}

.cart-button .bag-icon {
  width: 19px;
  height: 19px;
}

.cart-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cart-count-badge {
  position: absolute;
  top: -7px;
  inset-inline-start: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  font-size: 11px;
}

.location-pill {
  padding: 5px 10px;
}

.tabbar {
  display: none;
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "loc actions";
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding: 8px 14px;
  }
  .brand {
    grid-area: brand;
    order: 0;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand-text b {
    font-size: 19px;
  }
  .brand-text small {
    display: none;
  }
  .location-pill {
    grid-area: loc;
    order: 0;
    width: auto;
    justify-self: start;
    gap: 4px;
    margin-top: -1px;
    padding: 0;
    background: none;
    border: 0;
  }
  .location-copy small {
    display: none;
  }
  .location-copy b {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-secondary);
  }
  .pin-icon {
    width: 14px;
    height: 14px;
  }
  .topbar-left {
    grid-area: actions;
    order: 0;
  }
  .main-nav {
    display: none;
  }

  .tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 19;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #FFFFFF;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  }
  .tabbar a,
  .tabbar button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }
  .tabbar svg {
    width: 22px;
    height: 22px;
  }
  .tabbar a.active {
    color: var(--ink);
  }
  .tabbar a.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--saffron);
  }
  .tab-badge {
    position: absolute;
    top: 6px;
    inset-inline-start: 50%;
    margin-inline-start: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--saffron);
    color: var(--ink);
    font-size: 11px;
  }
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .mini-cart {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* Closed stores and toast */
.store-card.is-closed .store-cover {
  filter: grayscale(0.85);
  opacity: 0.75;
}

.pill.closed {
  background: var(--closed-surface);
  color: var(--closed-text);
  border-color: var(--closed-line);
}

.closed-flag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 60;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Sold-out items */
.dish-row.sold-out .dish-main {
  opacity: 0.55;
}

.dish-row.sold-out .add-button {
  min-width: 48px;
  font-size: 12px;
}

.quick-add.is-off {
  opacity: 0.5;
  cursor: not-allowed;
}

/* A dish whose store is closed, or that is sold out, reads as unavailable: the
   photo and text dim. The card still links to the item page, which spells out
   why it can't be ordered. */
.dish-card.is-off .dish-photo,
.dish-card.is-off .dish-card-body {
  opacity: 0.5;
}

.dish-card.is-off .dish-photo {
  filter: grayscale(0.65);
}

/* Orders list */
.order-card2 {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.order-thumb {
  position: relative;
  flex: 0 0 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.order-thumb .food-icon {
  width: 30px;
  height: 30px;
}

.order-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-body {
  flex: 1;
  min-width: 0;
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-top b {
  font-size: 15px;
}

.order-body > small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order-body p {
  margin: 4px 0 8px;
  color: var(--ink-secondary);
  font-size: 13px;
}

.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.order-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill.st-pending { background: var(--saffron-soft); color: var(--saffron-text); }
.status-pill.st-completed { background: var(--ink); color: var(--on-dark); }
.status-pill.st-cancelled { background: #F6E3DF; color: #8A2E1D; }

/* Tracking */
.track-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.track-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-head > div {
  flex: 1;
  min-width: 0;
}

.track-head b {
  display: block;
  font-size: 17px;
}

.track-head small {
  color: var(--muted);
}

.track-hint {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.track-hint.is-cancelled {
  color: #8A2E1D;
}

.track-steps {
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
}

.track-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  color: var(--muted);
  font-size: 14px;
}

.track-steps li i {
  position: relative;
  z-index: 1;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #FFFFFF;
}

.track-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  right: 8px;
  width: 2px;
  height: calc(100% - 18px);
  background: var(--line);
}

.track-steps li.done {
  color: var(--ink);
}

.track-steps li.done i {
  border-color: var(--olive);
  background: var(--olive);
}

.track-steps li.done::after {
  background: var(--olive);
}

.track-steps li.current {
  color: var(--ink);
  font-weight: 700;
}

.track-steps li.current i {
  border-color: var(--saffron);
  background: var(--saffron);
  box-shadow: 0 0 0 4px var(--saffron-soft);
}

.track-steps.is-cancelled li {
  opacity: 0.45;
}

.track-side h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.track-line,
.track-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.track-line span,
.track-items span {
  color: var(--ink-secondary);
}

.track-line b {
  text-align: left;
}

.track-items {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.track-items .grand {
  border-bottom: 0;
  font-size: 15px;
  font-weight: 700;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* Account */
.account-wrap {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.account-wrap h2,
.contact-grid h2,
.partner-grid h2,
.policy-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.login-card {
  max-width: 440px;
}

.login-form,
.address-form {
  display: grid;
  gap: 12px;
}

.login-form label,
.address-form label,
.inline-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.login-form input,
.address-form select,
.address-form textarea,
.inline-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  font-size: 15px;
}

.login-form input[name="code"] {
  letter-spacing: 0.4em;
  text-align: center;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.login-form p {
  margin: 0;
}

.demo-code {
  padding: 10px 12px;
  border: 1px dashed var(--saffron);
  border-radius: var(--radius-sm);
  background: var(--saffron-soft);
  color: var(--saffron-text);
}

.demo-code b {
  font-size: 18px;
  letter-spacing: 0.2em;
}

.demo-code small {
  display: block;
  font-size: 11.5px;
}

.form-error,
.content-card .form-error {
  color: var(--error-text);
  font-size: 13px;
  font-weight: 600;
}

.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.account-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 20px;
  font-weight: 700;
}

.account-head b {
  display: block;
  font-size: 17px;
}

.account-head small {
  color: var(--muted);
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.inline-form label {
  flex: 1;
}

.email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.email-row .num {
  color: var(--ink);
}

.address-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.address-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.address-list li b {
  margin-inline-end: 8px;
}

.address-list p {
  margin: 4px 0 6px;
  color: var(--ink-secondary);
  font-size: 13px;
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.text-button.danger {
  color: #8A2E1D;
}

.address-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.address-form h3 {
  margin: 0;
  font-size: 15px;
}

.address-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Checkout with account */
.checkout-login-hint {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 13px;
}

.checkout-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.checkout-account a {
  color: var(--date);
  font-size: 13px;
}

.checkout-page-form .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checkout-page-form .inline-check input {
  display: inline-block;
  width: auto;
  margin: 0;
  accent-color: var(--ink);
}

.address-choices {
  grid-template-columns: 1fr;
}

/* Info pages */
.contact-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-points {
  margin: 0 0 16px;
  padding-inline-start: 20px;
}

.partner-points li {
  margin: 6px 0;
}

.policy-card {
  max-width: 760px;
}

.policy-card h2:not(:first-child) {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .track-grid,
  .contact-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

/* Zones and load errors */
.zone-option small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.load-error {
  position: relative;
  z-index: 70;
  padding: 10px 14px;
  background: #8A2E1D;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.load-error button {
  margin-inline-start: 8px;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
}

/* The guest's tracking link, shown once on the confirmation page. */
.tracking-link{margin:16px 0;padding:14px;border:1px dashed var(--line,#d8d3c7);border-radius:12px;text-align:start}
.tracking-link p{margin:0 0 8px;font-size:.92rem}
.tracking-link input{width:100%;margin-bottom:8px;padding:10px;border:1px solid var(--line,#d8d3c7);border-radius:8px;font-family:inherit;font-size:.85rem;direction:ltr;text-align:left;background:#fff}
.secondary-button.danger{color:#9b2c2c;border-color:#e4b9b9}

/* Shared presentation: comfortable Arabic type, forms and secondary pages. */
.primary-button,
.secondary-button { text-align: center; line-height: 1.6; }

.page-hero { padding-top: 36px; padding-bottom: 38px; }
.page-hero h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.5; }
.page-body { padding-top: 32px; }
.content-card,
.checkout-page-form,
.checkout-page-summary,
.tracking-card { border-radius: var(--radius-md); }

.content-card h2,
.checkout-page-summary h2 { line-height: 1.6; }
.checkout-page-summary h2 { margin: 0 0 16px; font-size: 20px; }
.content-card p { color: var(--ink-secondary); line-height: 1.9; }
.content-card > :last-child { margin-bottom: 0; }
.page-note { line-height: 1.9; }

.login-form,
.address-form { gap: 18px; }
.login-form label,
.address-form label,
.inline-form label { gap: 8px; font-size: 14px; }
.login-form input,
.address-form select,
.inline-form input { min-height: 48px; }
input[name="phone"],
input[name="code"],
input[name="totp"],
input[type="email"],
input[type="tel"] { direction: ltr; text-align: start; }
.login-form input[name="code"],
.login-form input[name="totp"] { text-align: center; letter-spacing: .3em; }
.login-form .text-button { min-height: 44px; }
.login-form .form-error { padding: 10px 12px; border-inline-start: 3px solid currentColor; }

.account-wrap:has(.login-card) { max-width: 480px; margin-inline: auto; }
.login-card { width: 100%; max-width: none; padding: 28px; box-shadow: var(--shadow-panel); }
.login-card > .page-note { margin-bottom: 24px; }
.inline-form { flex-wrap: wrap; }
.inline-form label { min-width: min(200px, 100%); }
.address-actions { gap: 8px 18px; }
.address-actions .text-button { min-height: 44px; }
.email-row .num { max-width: 100%; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.email-row > span { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.email-row .text-button { min-height: 44px; }

.checkout-page-form > label,
.local-form > label { font-size: 14px; margin-block: 0 20px; }
.checkout-page-form input:not([type="radio"]):not([type="checkbox"]),
.checkout-page-form select,
.local-form input,
.local-form select { min-height: 48px; background: var(--bg-surface); }
.checkout-page-form textarea { background: var(--bg-surface); resize: vertical; }
.checkout-page-summary div { gap: 16px; align-items: baseline; }
.checkout-page-summary div > b { flex-shrink: 0; }
.checkout-page-summary .grand { padding-block: 18px 8px; }
.checkout-page-form .choice-group { margin-block: 24px; }
.checkout-page-form .choice { min-width: 0; }
.checkout-page-form .inline-check { align-items: start; flex-wrap: wrap; }
.checkout-page-form .inline-check input { margin-top: 6px; flex-shrink: 0; }
.checkout-login-hint { margin-bottom: 24px; line-height: 1.9; }

.faq-list { max-width: 800px; gap: 12px; }
.faq-list details { padding: 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 16px 20px; list-style: none; line-height: 1.8; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 26px; text-align: center; font-size: 23px; font-weight: 400; color: var(--saffron-text); }
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list details[open] summary { background: var(--bg-paper); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 16px 20px 20px; line-height: 1.95; }
.policy-card { padding: 32px; }
.policy-card h2:not(:first-child) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy-card p { font-size: 15px; line-height: 2; }
.policy-card .demo-label { font-size: 12px; }
.partner-grid,
.contact-grid { gap: 24px; }
.partner-grid .content-card { padding: 28px; }
.partner-points { line-height: 1.95; }
.partner-points li { padding-inline-start: 6px; margin-block: 12px; }
.partner-points li::marker { color: var(--saffron-text); }
.onboarding-list { line-height: 1.95; }
.onboarding-list li { padding-inline-start: 6px; margin-block: 12px; }
.track-head { flex-wrap: wrap; gap: 12px; }
.track-hint { padding: 16px; line-height: 1.9; border-inline-start: 3px solid var(--olive); }
.track-hint.is-cancelled { border-inline-start-color: currentColor; }
.track-steps li { min-height: 52px; }
.track-line,
.track-items li { gap: 16px; line-height: 1.85; }
.track-line b { overflow-wrap: anywhere; }
.track-actions { flex-wrap: wrap; }
.track-cancel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-block: 14px 0;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--line);
}
.track-cancel .page-note { margin: 0; }
.order-top { flex-wrap: wrap; }
.order-buttons { flex-wrap: wrap; }

/* The three workspaces share the customer brand without exposing technical copy. */
.portal-masthead { display: flex; align-items: center; gap: 20px; min-height: 80px; padding: 16px max(5vw, 20px); background: var(--bg-surface); border-bottom: 1px solid var(--line); }
.portal-role { padding-inline-start: 20px; border-inline-start: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-secondary); }
.portal-home { margin-inline-start: auto; font-size: 13px; font-weight: 600; }
.portal-home:hover { color: var(--saffron-text); }
.portal-intro { position: relative; padding: 40px 20px 48px; background: var(--ink); color: var(--on-dark); text-align: center; }
.portal-intro::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 12px; background: var(--sadu-band) repeat-x; background-size: auto 12px; }
.portal-eyebrow { color: var(--on-dark-muted); font-size: 12px; font-weight: 600; }
.portal-intro h1 { margin: 10px 0 8px; font-size: clamp(26px, 3vw, 34px); line-height: 1.5; color: var(--on-dark); }
.portal-intro p { max-width: 600px; margin: 0 auto; color: var(--on-dark-muted); font-size: 14px; line-height: 1.9; }
.st-body:has(.st-header:not(.hidden)) > .portal-masthead,
.st-body:has(.st-header:not(.hidden)) > .portal-intro,
.adm-body:has(.adm-shell:not(.hidden)) > .portal-masthead,
.adm-body:has(.adm-shell:not(.hidden)) > .portal-intro { display: none; }

@media (min-width: 761px) {
  .checkout-page-summary { position: sticky; top: 88px; }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .home-hero .discovery-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-hero .discovery-copy { max-width: 650px; }
  .home-hero .search { max-width: 560px; }
  .topbar-right { gap: 12px; }
  .location-pill { max-width: 200px; }
}

@media (max-width: 760px) {
  .home-hero h1 { font-size: clamp(25px, 7vw, 32px); line-height: 1.55; }
  .home-hero .discovery-head { gap: 22px; padding-block: 28px; }
  .home-hero .discovery-copy p { font-size: 14px; line-height: 1.9; }
  .page-hero { padding-block: 24px 30px; }
  .page-body { padding-top: 20px; padding-bottom: 40px; }
  .page-wrap { width: calc(100% - 32px); }
  .content-card,
  .checkout-page-form,
  .checkout-page-summary,
  .tracking-card,
  .partner-grid .content-card { padding: 20px; }
  .partner-grid,
  .contact-grid { gap: 16px; }
  .faq-list summary { padding: 14px 16px; gap: 12px; }
  .faq-list details p { padding: 14px 16px 18px; }
  .login-form input,
  .inline-form input,
  .address-form select,
  .address-form textarea,
  .local-form input,
  .local-form select,
  .checkout-page-form input:not([type="radio"]):not([type="checkbox"]),
  .checkout-page-form select,
  .checkout-page-form textarea,
  .search input,
  .catalog-search input { font-size: 16px; }
  .inline-form label { flex-basis: 100%; }
  .track-head > .status-pill { margin-inline-start: auto; }
  .track-line { flex-wrap: wrap; gap: 4px 12px; }
  .filter-chip,
  .category-card { min-height: 44px; }
  .footer-link-group a { min-height: 44px; display: flex; align-items: center; }
  .portal-masthead { min-height: 72px; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
  .portal-role { padding-inline-start: 12px; font-size: 12px; }
  .portal-home { font-size: 12px; }
  .portal-intro { padding: 28px 20px 36px; }
  .portal-intro p { font-size: 13px; }
}

/* Store directory: a compact discovery surface in the same market palette. */
.catalog-page { min-height: 72vh; background: var(--bg-paper); }
.catalog-page .page-wrap { width: min(92%, 1240px); }
.catalog-page .page-hero { background: var(--on-dark); padding-block: 26px 30px; }
.catalog-page .page-hero h1 { margin-top: 6px; font-size: 34px; }
.catalog-page .page-kicker { color: var(--saffron-text); }
.catalog-intro { margin: 8px 0 0; max-width: 700px; font-size: 14px; line-height: 1.9; color: var(--ink-secondary); }
.catalog-page .page-body { padding-top: 26px; }
.catalog-page .catalog-tools { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 28px; }
.catalog-page .catalog-search { height: 54px; padding-inline: 18px; border-radius: 10px; }
.catalog-page .catalog-search input { min-width: 0; font-size: 16px; }
.catalog-page .catalog-search .food-icon { width: 20px; height: 20px; flex-shrink: 0; }
.catalog-page .catalog-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.catalog-page .catalog-types { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.catalog-page .category-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: center; gap: 3px 8px; min-width: 0; height: auto; min-height: 80px; padding: 12px 10px; text-align: start; white-space: normal; border-radius: 10px; }
.catalog-page .category-card > .catalog-type-icon { grid-row: 1 / span 2; width: 32px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--icon-surface); color: var(--ink); }
.catalog-page .catalog-type-icon .food-icon { width: 20px; height: 20px; }
.catalog-page .category-card b { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.catalog-page .category-card small { grid-column: 2; color: var(--muted); font-size: 10px; font-weight: 400; }
.catalog-page .category-card.active { background: var(--selection); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.catalog-page .category-card.active small { color: var(--muted); }
.catalog-page .category-card.is-empty { cursor: default; }
.catalog-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-results-head h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; }
.catalog-results-head h2::before { content: ""; width: 4px; height: 19px; border-radius: 2px; background: var(--saffron); }
#catalog-result-count { font-size: 13px; color: var(--muted); }
.catalog-page .restaurant-grid { gap: 20px; }
.catalog-page .store-card { border-radius: var(--radius-market); }
.catalog-page .store-card .store-body { padding: 16px 18px 18px; gap: 5px; }
.catalog-page .store-name { line-height: 1.65; font-size: 18px; }
.catalog-page .store-desc { font-size: 13px; }
.catalog-page .store-pills { gap: 6px; margin-top: 6px; }

@media (min-width: 761px) and (max-width: 1100px) {
  .catalog-page .catalog-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .catalog-page .page-wrap { width: calc(100% - 32px); }
  .catalog-page .page-hero { padding-block: 22px 28px; }
  .catalog-page .page-hero h1 { font-size: 28px; }
  .catalog-intro { font-size: 13px; }
  .catalog-page .page-body { padding-top: 20px; }
  .catalog-page .catalog-types { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .catalog-page .category-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px; justify-items: center; min-height: 88px; padding: 10px 4px; text-align: center; }
  .catalog-page .category-card > .catalog-type-icon { grid-row: auto; height: 30px; width: 30px; }
  .catalog-page .category-card b { font-size: 11px; }
  .catalog-page .category-card small { display: none; }
  .catalog-page .catalog-tools { gap: 14px; margin-bottom: 24px; }
  .catalog-results-head h2 { font-size: 20px; }
  .catalog-page .restaurant-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .catalog-page .store-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; }
  .catalog-page .store-cover { min-height: 128px; aspect-ratio: auto; }
  .catalog-page .store-card .store-body { min-width: 0; padding: 14px; gap: 3px; }
  .catalog-page .store-name { font-size: 16px; }
  .catalog-page .store-desc { font-size: 12px; }
  .catalog-page .store-pills { gap: 5px; margin-top: 5px; }
  .catalog-page .pill { font-size: 10.5px; padding-inline: 6px; }
}

/* Delivery address: map pin first, written directions alongside it. */
.delivery-address-heading { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.delivery-address-heading b { font-size: 17px; }
.delivery-address-heading small { color: var(--muted); font-size: 12px; }
.delivery-location { min-width: 0; }
.delivery-location input[type="hidden"] { display: none; }
.location-picker-open { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; min-height: 100px; padding: 18px; border: 1px solid var(--market-line); border-radius: var(--radius-market); background: var(--on-dark); color: var(--ink); text-align: start; cursor: pointer; }
.location-picker-open > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.location-picker-open b { font-size: 15px; line-height: 1.7; }
.location-picker-open small { color: var(--ink-secondary); font-size: 12px; line-height: 1.8; }
.location-picker-icon { width: 44px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--on-dark); }
.location-picker-icon svg { width: 28px; height: 28px; }
.has-location .location-picker-open { border-color: var(--ink); background: var(--olive-soft); }
.location-selected { display: grid; gap: 4px; padding: 14px 0 0; color: var(--ink); font-size: 12px; }
.location-address-label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.location-address-label input[readonly] { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; background: var(--bg-paper); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-overflow: ellipsis; font-size: 14px; }
.location-pin-details { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.location-pin-details bdi { color: var(--muted); font-size: 11px; }
.location-pin-details [data-location-clear] { margin-inline-start: auto; }
.location-selected > small { color: var(--muted); font-size: 11px; line-height: 1.8; }
.location-selected button { min-height: 44px; padding-inline: 8px; }
.location-validation { margin: 10px 0 0; font-size: 12px; }
.checkout-page-form #new-address { display: grid; gap: 18px; }
.saved-location-link { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; color: var(--ink); }
.location-map-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--bg-surface); box-shadow: var(--shadow-float); overflow: auto; }
.location-map-dialog::backdrop { background: var(--market-caption-bg); }
.location-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 4px; }
.location-dialog-head span { font-size: 11px; color: var(--saffron-text); }
.location-dialog-head h2 { font-size: 23px; line-height: 1.6; margin: 4px 0; }
.location-dialog-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-paper); font-size: 26px; cursor: pointer; }
.location-map-help { padding-inline: 24px; margin: 4px 0 16px; font-size: 12px; color: var(--ink-secondary); line-height: 1.9; }
.location-map-wrap { position: relative; isolation: isolate; }
.location-map { height: min(43dvh, 340px); min-height: 230px; background: var(--bg-subtle); direction: ltr; font-family: var(--font-sans); }
.map-center-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; width: 44px; height: 50px; color: var(--on-dark); filter: drop-shadow(0 4px 4px var(--ink-secondary)); }
.map-center-pin svg { width: 100%; height: 100%; fill: var(--ink); stroke: var(--on-dark); }
.location-gps { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 500; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-surface); box-shadow: var(--shadow-card); color: var(--ink); font-size: 13px; cursor: pointer; }
.location-gps:disabled { color: var(--muted); cursor: wait; }
.location-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; color: var(--ink); }
.location-map .leaflet-control-attribution { direction: ltr; font-size: 10px; }
.location-dialog-bottom { padding: 16px 24px 20px; }
.location-map-status { font-size: 12px; line-height: 1.8; margin: 0 0 4px; }
.location-coordinates { display: block; min-height: 18px; color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.location-dialog-bottom > small { display: block; font-size: 10px; color: var(--muted); margin-top: 10px; text-align: center; }
@media (max-width: 760px) {
  .location-picker-open { padding: 14px; gap: 10px; }
  .location-picker-open b { font-size: 14px; }
  .location-picker-open small { font-size: 11px; }
  .location-address-label input[readonly] { font-size: 16px; }
  .location-map-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .location-dialog-head { padding: 16px 16px 4px; }
  .location-dialog-head h2 { font-size: 20px; }
  .location-map-help { padding-inline: 16px; font-size: 11px; margin-bottom: 12px; }
  .location-dialog-bottom { padding: 14px 16px 16px; }
}

/* Store menus: clear delivery details and comfortable product browsing. */
.storefront-page { background: var(--bg-paper); }
.storefront-page .page-wrap { width: min(92%, 1200px); }
.storefront-page .rest-hero { padding-block: 10px 28px; }
.storefront-page .back-link { min-height: 44px; margin-bottom: 10px; }
.storefront-page .rest-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(20px, 4vw, 56px); align-items: center; }
.storefront-page .rest-hero-art { order: 2; width: 220px; height: 152px; border-radius: var(--radius-market); }
.storefront-page .rest-hero-art:not(.has-photo) { width: 112px; height: 112px; justify-self: end; border-radius: 18px; }
.storefront-page .rest-hero-copy { order: 1; min-width: 0; }
.storefront-category { display: block; margin-bottom: 4px; color: var(--on-dark-muted); font-size: 12px; }
.storefront-page .rest-hero[class*="board-"] .rest-hero-copy h1 { font-size: 36px; line-height: 1.5; }
.storefront-page .rest-hero-copy p { max-width: 62ch; margin-block: 4px 0; font-size: 14px; line-height: 1.8; }
.storefront-details { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.storefront-details > span { display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 8px 14px; border: 1px solid var(--market-image-line); border-radius: 10px; }
.storefront-details small { color: var(--on-dark-muted); font-size: 11px; }
.storefront-details b { color: var(--on-dark); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.storefront-location-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--on-dark); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.storefront-location-link .food-icon { width: 18px; height: 18px; }
.storefront-page .page-body { padding-block: 18px 32px; }
.storefront-page .menu-photo-note { margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.storefront-page .menu-tabs { gap: 8px; margin-block: 0 6px; padding-block: 10px 14px; background: var(--bg-paper); }
.storefront-page .menu-tab { height: 44px; padding-inline: 20px; border-radius: 10px; font-size: 14px; }
.storefront-page .menu-tab.active { box-shadow: inset 0 -3px 0 var(--saffron); }
.storefront-page .menu-section { padding-top: 12px; }
.storefront-page .menu-section + .menu-section { margin-top: 20px; }
.storefront-page .menu-section h2 { gap: 10px; margin-block: 10px 18px; font-size: 23px; }
.storefront-page .menu-section h2::before { content: ""; width: 4px; height: 20px; flex-shrink: 0; border-radius: 2px; background: var(--saffron); }
.storefront-page .menu-section h2::after { display: none; }
.menu-section-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.storefront-page .dish-list { gap: 16px; }
.storefront-page .dish-row { align-items: stretch; gap: 16px; padding: 18px; border-radius: var(--radius-market); }
.storefront-page .dish-main { align-items: flex-start; gap: 16px; }
.storefront-page .dish-art { flex-basis: 80px; height: 80px; border-radius: 10px; }
.storefront-page .dish-copy { min-height: 80px; gap: 3px; }
.storefront-page .dish-copy b { font-size: 16px; line-height: 1.6; }
.storefront-page .dish-copy small { margin-block: 2px 6px; font-size: 13px; line-height: 1.8; }
.storefront-page .dish-copy strong { margin-top: auto; color: var(--ink); font-size: 15px; }
.storefront-page .dish-actions { flex: 0 0 44px; justify-content: flex-end; }
.storefront-page .add-button { width: 44px; min-width: 44px; height: 44px; border-radius: 10px; font-size: 23px; }
.storefront-page .add-button:disabled { font-size: 12px; }
.storefront-page .dish-incart:empty { display: none; }
.storefront-page .dish-incart { white-space: normal; text-align: center; font-size: 10px; }

@media (min-width: 761px) {
  .storefront-page .rest-hero-row:has(.rest-hero-art:not(.has-photo)) { grid-template-columns: 112px minmax(0, 1fr); gap: 24px; }
  .storefront-page .rest-hero-art:not(.has-photo) { order: 0; }
}

@media (max-width: 760px) {
  .storefront-page .page-wrap { width: calc(100% - 32px); }
  .storefront-page .rest-hero { padding-block: 6px 30px; }
  .storefront-page .back-link { margin-bottom: 8px; font-size: 12px; }
  .storefront-page .rest-hero-row { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
  .storefront-page .rest-hero-art { order: 1; width: 76px; height: 84px; border-radius: 10px; }
  .storefront-page .rest-hero-art:not(.has-photo) { width: 76px; height: 76px; border-radius: 12px; }
  .storefront-page .rest-hero-copy { order: 2; }
  .storefront-category { margin-bottom: 2px; font-size: 11px; }
  .storefront-page .rest-hero[class*="board-"] .rest-hero-copy h1 { font-size: 26px; line-height: 1.5; }
  .storefront-page .rest-hero-copy p { margin-block: 3px 0; font-size: 12px; }
  .storefront-details { gap: 8px; }
  .storefront-details > span { min-width: 0; padding: 0; border: 0; border-radius: 0; }
  .storefront-details > span + span { padding-inline-start: 10px; border-inline-start: 1px solid var(--market-image-line); }
  .storefront-details small { font-size: 10px; }
  .storefront-details b { font-size: 12px; }
  .storefront-page .page-body { padding-block: 16px 40px; }
  .storefront-page .menu-photo-note { margin-bottom: 6px; font-size: 10px; }
  .storefront-page .menu-tabs { top: 0; padding-block: 8px 12px; }
  .storefront-page .menu-tab { padding-inline: 16px; font-size: 13px; }
  .storefront-page .menu-section { scroll-margin-top: 76px; padding-top: 8px; }
  .storefront-page .menu-section h2 { font-size: 21px; margin-block: 10px 14px; }
  .storefront-page .menu-section + .menu-section { margin-top: 18px; }
  .storefront-page .dish-list { gap: 12px; }
  .storefront-page .dish-row { gap: 10px; padding: 14px; }
  .storefront-page .dish-main { gap: 12px; }
  .storefront-page .dish-art { flex-basis: 64px; height: 72px; }
  .storefront-page .dish-art .food-icon { width: 30px; height: 30px; }
  .storefront-page .dish-copy { min-height: 84px; gap: 2px; }
  .storefront-page .dish-copy b { font-size: 14px; }
  .storefront-page .dish-copy small { font-size: 12px; line-height: 1.7; }
  .storefront-page .dish-copy strong { font-size: 14px; }
}
.storefront-announcement {
  margin: 0;
  padding: 12px max(16px, calc((100% - 1080px) / 2));
  background: var(--bg-subtle);
  color: var(--ink);
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ops-alert-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; padding: 0 16px; }
.ops-alert-controls .text-button { color: inherit; }
.ops-alert-controls [hidden], .ops-work-form [hidden] { display: none; }
.ops-date-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px; margin-block-end: 16px; }
.ops-date-filter label, .ops-work-form label { display: grid; gap: 6px; min-width: 0; }
.ops-work-form { display: grid; gap: 12px; }
.ops-work-form .inline-check { display: flex; align-items: center; }
.ops-work-form input:not([type="checkbox"]), .ops-work-form select, .ops-work-form textarea, .ops-date-filter input {
  width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit;
}
.ops-work-form fieldset { margin: 0; padding: 8px 12px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ops-shift { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-items: end; padding-block: 8px; }
.ops-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-status { margin-block: 4px 12px; color: var(--muted); font-size: 13px; }
.support-thread {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.support-message {
  max-width: min(92%, 52ch);
  justify-self: end;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-paper);
}
.support-message.is-customer { justify-self: start; background: var(--selection); }
.support-message > b { color: var(--olive); font-size: 12px; }
.support-message > p { margin: 2px 0 0; font-size: 14px; }
.ops-section-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 12px; }
.order-print-summary { display: none; }
.search-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 5px 10px;
  color: white;
  background: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#list-title, #catalog-results-title { scroll-margin-top: 104px; }
.search-product-results { margin-block: 12px 18px; }
.search-product-results h3 { margin-block: 0 8px; }
.dish-status { color: var(--ink); }
.storefront-pause { background: #f9e7cf; color: #44270d; }
.cart-delivery-warning { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-block: 10px; }
.cart-delivery-warning p { margin: 0 0 6px; }
@media print {
  body:has(.order-print-summary) { background: white; color: black; }
  body:has(.order-print-summary) > :not(#page-content),
  #page-content:has(.order-print-summary) > :not(.page-body),
  .page-body:has(.order-print-summary) > :not(.order-print-summary) { display: none !important; }
  #page-content:has(.order-print-summary), .page-body:has(.order-print-summary) {
    width: auto; max-width: none; min-height: 0; margin: 0; padding: 0;
  }
  .order-print-summary { display: block; }
  .order-print-summary h1 { font-size: 22pt; }
  .order-print-summary table { border-collapse: collapse; width: 100%; }
  .order-print-summary th, .order-print-summary td { border-bottom: 1px solid #aaa; padding: 6pt; text-align: start; }
  .order-print-summary tr { break-inside: avoid; }
}
#st-work-dialog { width: min(560px, calc(100% - 32px)); max-height: 88vh; overflow: auto; }
