/* ============================================================
   Tamaq Design System — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --brand:        #FF5F1F;
  --brand-dark:   #D94F12;
  --brand-light:  #FFF3ED;
  --brand-mid:    #FFCFB8;

  --dark:   #1C1917;
  --mid:    #57534E;
  --muted:  #A8A29E;
  --faint:  #D6D3D1;
  --border: #E7E5E4;
  --bg:     #F9F8F6;
  --white:  #FFFFFF;

  --success: #16A34A;
  --success-light: #DCFCE7;
  --error:   #DC2626;
  --error-light: #FEE2E2;
  --warn:    #CA8A04;
  --warn-light: #FEF9C3;

  --r-sm: 8px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;

  --sh-sm: 0 1px 3px rgba(0,0,0,0.07);
  --sh:    0 4px 20px rgba(0,0,0,0.09);
  --sh-lg: 0 16px 48px rgba(0,0,0,0.13);
  --sh-brand: 0 8px 24px rgba(255,95,31,0.30);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --hh: 72px;

  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

  --sh-xs: 0 1px 2px rgba(0,0,0,0.04);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}
ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
.display-xl { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -1.5px; }
.display-lg { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; }
.display-md { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
.h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.2; }
.h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.25; }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.h4 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.body-lg { font-size: 18px; line-height: 1.65; }
.body { font-size: 16px; line-height: 1.6; }
.body-sm { font-size: 14px; line-height: 1.55; }
.caption { font-size: 12px; line-height: 1.4; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Layout ───────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.18s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--sh-brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255,95,31,0.38);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  border: 2px solid var(--brand);
  color: var(--brand);
  padding: 12px 26px;
}
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost {
  color: var(--dark);
  padding: 12px 20px;
}
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }
.btn-icon {
  padding: 10px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--hh);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--mid);
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--dark); background: var(--border); }
.header-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 15px;
  transition: all 0.15s;
}
.header-search input:focus {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,95,31,0.1);
}
.header-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.18s;
  position: relative;
}
.cart-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--r-full);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--white);
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1C1917 0%, #292524 50%, #3C2B1E 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,95,31,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(255,95,31,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,95,31,0.2);
  border: 1px solid rgba(255,95,31,0.35);
  border-radius: var(--r-full);
  color: #FFAA7A;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title { color: var(--white); margin-bottom: 20px; }
.hero-title span { color: var(--brand); }
.hero-subtitle { color: #A8A29E; font-size: 18px; line-height: 1.65; margin-bottom: 40px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}
.hero-stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Search in hero */
.hero-search {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-search-input {
  flex: 1;
  padding: 16px 20px 16px 52px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  color: var(--white);
  font-size: 16px;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  position: relative;
}
.hero-search-input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255,95,31,0.15);
}
.hero-search-wrap { position: relative; flex: 1; }
.hero-search-wrap .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  pointer-events: none;
}

/* ── Category Pills ───────────────────────────────────────── */
.categories { padding: 32px 0 0; }
.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.cat-pill.active { background: var(--brand); color: var(--white); border-color: var(--brand); box-shadow: var(--sh-brand); }
.cat-pill-emoji { font-size: 18px; }

/* ── Section Titles ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--dark); }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.section-link { font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ── Restaurant Cards ─────────────────────────────────────── */
.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.restaurant-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.restaurant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.restaurant-card-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  overflow: hidden;
}
.restaurant-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-new { background: var(--brand); color: var(--white); }
.badge-hot { background: #7C3AED; color: var(--white); }
.badge-promo { background: var(--success); color: var(--white); }
.badge-closed { background: rgba(0,0,0,0.55); color: var(--white); }
.badge-halal { background: #059669; color: var(--white); }
.restaurant-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.restaurant-card-name { font-size: 18px; font-weight: 700; color: var(--dark); }
.restaurant-card-cuisine { font-size: 13px; color: var(--muted); }
.restaurant-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--mid);
}
.meta-item .icon { font-size: 15px; }
.meta-item strong { color: var(--dark); font-weight: 600; }
.restaurant-card-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--dark); }
.star { color: #F59E0B; }
.restaurant-card-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.2s;
}
.how-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.how-num {
  width: 52px;
  height: 52px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 auto 20px;
}
.how-icon { font-size: 36px; margin-bottom: 12px; }
.how-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.how-text { color: var(--mid); font-size: 14px; line-height: 1.6; }

/* ── Partners CTA ─────────────────────────────────────────── */
.partners-cta {
  background: linear-gradient(135deg, var(--dark) 0%, #292524 100%);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.partners-cta::before {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at right center, rgba(255,95,31,0.18) 0%, transparent 70%);
}
.partners-cta-content { position: relative; z-index: 1; }
.partners-cta-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.partners-cta-text { color: var(--muted); font-size: 16px; max-width: 480px; }
.partners-cta-actions { position: relative; z-index: 1; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.partners-cta-emoji { font-size: 64px; line-height: 1; }

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active { background: var(--brand); color: var(--white); border-color: var(--brand); }
.filter-chip--halal:hover { border-color: #059669; color: #059669; }
.filter-chip--halal.active { background: #059669; border-color: #059669; }
.filter-chip-remove { margin-left: 4px; font-size: 16px; line-height: 1; }

.filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.sort-select {
  padding: 8px 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  cursor: pointer;
}

/* ── Restaurant Page ──────────────────────────────────────── */
.restaurant-banner {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  position: relative;
  overflow: hidden;
}
.restaurant-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}
/* Restaurant info block — scrolls away, NOT sticky */
.restaurant-info-block {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
}
.restaurant-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.r-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; flex-shrink: 0; }
.restaurant-name { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.restaurant-cuisine-tag { color: var(--muted); font-size: 14px; }
.restaurant-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.restaurant-stat { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--mid); }
.restaurant-stat strong { color: var(--dark); }
.r-desc { color: var(--mid); font-size: 14px; margin-top: 10px; max-width: 680px; }

/* Menu nav bar — ONLY this is sticky */
.menu-nav-bar {
  position: sticky;
  top: var(--hh);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.menu-nav-bar .container { display: flex; align-items: center; gap: 10px; }
.menu-nav-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
  opacity: 0;
  flex-shrink: 0;
  transition: max-width 0.2s ease, opacity 0.2s ease;
}
.menu-nav-bar.compact .menu-nav-title { max-width: 150px; opacity: 1; }

/* Menu nav tabs */
.menu-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  flex: 1;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav-item {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.menu-nav-item:hover { color: var(--brand); }
.menu-nav-item.active { color: var(--brand); background: var(--brand-light); }

/* Menu sections */
.menu-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding: 32px 0; }
.menu-sections { display: flex; flex-direction: column; gap: 40px; }
.menu-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.menu-items { display: flex; flex-direction: column; gap: 12px; }
.menu-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.18s;
}
.menu-item:hover { border-color: var(--brand-mid); box-shadow: var(--sh-sm); }
.menu-item.unavailable { opacity: 0.5; }
.menu-item-emoji {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--bg);
}
.menu-item-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-item-info { flex: 1; min-width: 0; }
.menu-item-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.menu-item-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.menu-item-weight { font-size: 12px; color: var(--faint); }
.menu-item-tags { display: flex; gap: 6px; margin-top: 4px; }
.item-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-full); background: var(--bg); color: var(--mid); }
.item-tag.spicy { background: #FEF2F2; color: #DC2626; }
.item-tag.popular { background: #FFF7ED; color: #EA580C; }
.menu-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.menu-item-price { font-size: 17px; font-weight: 700; color: var(--dark); }
.item-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: var(--r-full);
  padding: 4px;
}
.counter-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
}
.counter-btn.minus { background: var(--border); color: var(--mid); }
.counter-btn.plus { background: var(--brand); color: var(--white); }
.counter-btn:hover { transform: scale(1.1); }
.counter-val { font-size: 15px; font-weight: 700; min-width: 20px; text-align: center; }
.add-to-cart-btn {
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.15s;
  cursor: pointer;
}
.add-to-cart-btn:hover { background: var(--brand-dark); transform: scale(1.1); }

/* Sticky cart sidebar */
.cart-sidebar {
  position: sticky;
  top: calc(var(--hh) + 72px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.cart-sidebar-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between; }
.cart-sidebar-empty { text-align: center; padding: 32px 0; }
.cart-sidebar-empty-icon { font-size: 48px; margin-bottom: 12px; }
.cart-sidebar-empty-text { color: var(--muted); font-size: 14px; }
.cart-sidebar-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cart-sidebar-item { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.cart-sidebar-item-name { flex: 1; color: var(--mid); }
.cart-sidebar-item-qty { font-weight: 600; color: var(--dark); }
.cart-sidebar-item-price { font-weight: 700; color: var(--dark); }
.cart-sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.cart-sidebar-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--mid); margin-bottom: 6px; }
.cart-sidebar-row.total { font-size: 18px; font-weight: 700; color: var(--dark); margin-top: 8px; }
.cart-sidebar-min { font-size: 12px; color: var(--error); margin-top: 8px; }

/* ── Cart Page ─────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding: 40px 0; }
.cart-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.cart-group-header {
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-group-emoji { font-size: 24px; }
.cart-group-name { font-size: 16px; font-weight: 700; }
.cart-group-addr { font-size: 13px; color: var(--muted); }
.cart-item { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-emoji { font-size: 32px; flex-shrink: 0; }
.cart-item-name { font-weight: 600; flex: 1; font-size: 15px; }
.cart-item-price { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-item-counter { display: flex; align-items: center; gap: 8px; }
.cart-item-total { font-weight: 700; font-size: 16px; min-width: 80px; text-align: right; }
.cart-item-remove { color: var(--muted); cursor: pointer; font-size: 20px; padding: 4px; transition: color 0.15s; }
.cart-item-remove:hover { color: var(--error); }

/* Order summary */
.order-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--hh) + 24px);
}
.order-summary-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.order-summary-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 10px; }
.order-summary-row.muted { color: var(--mid); }
.order-summary-row.total { font-size: 20px; font-weight: 700; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--border); }
.order-summary-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ── Checkout ──────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 40px 0; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 24px; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.form-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-card-title-icon { font-size: 20px; }
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--mid); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: all 0.15s;
  color: var(--dark);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,95,31,0.1);
}
.form-input.error { border-color: var(--error); }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }
.addr-sugg-item { padding: 10px 14px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .1s; }
.addr-sugg-item:last-child { border-bottom: none; }
.addr-sugg-item:hover { background: var(--bg); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Segment controls */
.segment-control { display: flex; background: var(--bg); border-radius: var(--r-sm); padding: 4px; gap: 4px; }
.segment-option { display: none; }
.segment-option + label {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.18s;
}
.segment-option:checked + label {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--sh-sm);
}

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.15s;
}
.payment-option input { display: none; }
.payment-option:has(input:checked), .payment-option.selected { border-color: var(--brand); background: var(--brand-light); }
.payment-option-icon { font-size: 24px; }
.payment-option-name { font-weight: 600; font-size: 15px; }
.payment-option-desc { font-size: 13px; color: var(--muted); }

/* ── Success Page ──────────────────────────────────────────── */
.success-page { padding: 80px 0; text-align: center; }
.success-icon-wrap {
  width: 96px;
  height: 96px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 28px;
  animation: pop 0.4s var(--ease-out);
}
@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-title { font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.success-subtitle { color: var(--mid); font-size: 17px; max-width: 480px; margin: 0 auto 32px; line-height: 1.6; }
.success-order-num {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
  padding: 8px 24px;
  border-radius: var(--r-full);
  margin-bottom: 40px;
  font-family: var(--font-display);
}
.success-details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: left;
  max-width: 560px;
  margin: 0 auto 32px;
}
.success-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.success-detail-row:last-child { border-bottom: none; }
.success-detail-label { color: var(--muted); }
.success-detail-value { font-weight: 600; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.whatsapp-btn {
  background: #25D366;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: all 0.18s;
}
.whatsapp-btn:hover { background: #20BB5A; transform: translateY(-1px); }

/* ── About Page ────────────────────────────────────────────── */
.about-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--white) 100%);
  text-align: center;
}
.about-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 60px 0; }
.about-stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.about-stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--brand); }
.about-stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.about-mission-text { font-size: 18px; line-height: 1.8; color: var(--mid); }
.about-mission-text p { margin-bottom: 16px; }
.about-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.principle-card { padding: 20px; background: var(--bg); border-radius: var(--r); }
.principle-icon { font-size: 28px; margin-bottom: 10px; }
.principle-title { font-weight: 700; margin-bottom: 6px; }
.principle-text { font-size: 14px; color: var(--mid); }

/* ── Partners Page ─────────────────────────────────────────── */
.partners-hero { background: linear-gradient(135deg, #1C1917 0%, #292524 100%); padding: 80px 0; color: var(--white); }
.partners-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 60px 0; }
.benefit-card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.benefit-icon { font-size: 36px; margin-bottom: 14px; }
.benefit-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.benefit-text { font-size: 14px; color: var(--mid); line-height: 1.65; }
.tariff-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--r-xl);
  padding: 40px;
  color: var(--white);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.tariff-price { font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 1; }
.tariff-unit { font-size: 18px; opacity: 0.8; margin-bottom: 24px; }
.tariff-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.tariff-feature { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tariff-feature::before { content: '✓'; font-weight: 700; color: #86EFAC; flex-shrink: 0; }

/* Partner application form */
.partner-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  max-width: 640px;
}
.partner-form-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.partner-form-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

/* ── Contacts Page ─────────────────────────────────────────── */
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 60px 0; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.contact-item-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.contact-item-value { font-size: 16px; font-weight: 600; color: var(--dark); }
.contact-item-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.15s;
  user-select: none;
}
.faq-question:hover { background: var(--bg); }
.faq-chevron { font-size: 16px; color: var(--muted); transition: transform 0.2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { color: var(--white); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col-title { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-socials { display: flex; gap: 12px; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.15s;
}
.social-link:hover { background: var(--brand); }

/* ── Chips/Tags ───────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; }
.tag-brand { background: var(--brand-light); color: var(--brand); }
.tag-green { background: var(--success-light); color: var(--success); }
.tag-gray { background: var(--bg); color: var(--muted); }

/* ── Toast ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--sh-lg);
  animation: slideUp 0.3s var(--ease-out) forwards;
  pointer-events: auto;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Empty state ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state-icon { font-size: 64px; margin-bottom: 20px; }
.empty-state-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.empty-state-text { color: var(--mid); margin-bottom: 28px; }

/* ── Page header ───────────────────────────────────────────── */
.page-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.page-header-title { font-family: var(--font-display); font-size: 36px; font-weight: 700; }
.page-header-sub { color: var(--muted); font-size: 17px; margin-top: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { font-size: 12px; }

/* ── Utilities ─────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-brand { color: var(--brand); }
.text-muted { color: var(--muted); }
.text-mid { color: var(--mid); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Divider ───────────────────────────────────────────────── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .menu-layout { grid-template-columns: 1fr; }
  .cart-sidebar { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-mission { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partners-benefits { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --hh: 64px; }
  .nav { display: none; }
  .header-search { display: none; }
  .menu-toggle { display: flex; }

  /* Mobile nav overlay */
  .mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 200;
    padding: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out);
    overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav-link {
    padding: 15px 24px;
    border-radius: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .mobile-nav-link:first-of-type { border-top: 1px solid var(--border); }
  .mobile-nav-close {
    font-size: 20px;
    background: var(--bg);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .hero { padding: 60px 0; }
  .section { padding: 48px 0; }
  .how-grid { grid-template-columns: 1fr; }
  .about-principles { grid-template-columns: 1fr; }
  .partners-cta { flex-direction: column; padding: 36px 28px; }
  .partners-cta-actions { align-items: stretch; width: 100%; }
  .partners-benefits { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .restaurants-grid { grid-template-columns: 1fr; }
  .restaurant-banner { height: 160px; font-size: 64px; }

  /* Mobile restaurant info — compact */
  .restaurant-info-block { padding: 14px 0 10px; }
  .restaurant-name { font-size: 20px; margin-bottom: 2px; }
  .restaurant-cuisine-tag { font-size: 13px; }
  .restaurant-stats { gap: 10px; margin-top: 8px; }
  .r-stat-sec { display: none; }
  .r-desc { display: none; }
  .r-actions .btn-ghost { display: none; }

  /* Mobile menu layout */
  .menu-layout { padding: 16px 0 100px; }
  .menu-item { padding: 12px; gap: 12px; }
  .menu-item-emoji { font-size: 32px; width: 48px; height: 48px; }
  .menu-item-name { font-size: 14px; }
  .menu-item-desc { font-size: 12px; -webkit-line-clamp: 2; }
  .menu-item-price { font-size: 15px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .page-header { padding: 32px 0 24px; }
  .page-header-title { font-size: 28px; }

  .hero-search { flex-direction: column; }
  .hero-stats { gap: 20px; }

  /* Mobile cart sticky button */
  .mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 80;
    display: none;
  }
  .mobile-cart-bar.show { display: block; }
  .mobile-cart-bar .btn { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .success-actions { flex-direction: column; }
  .success-actions .btn, .success-actions .whatsapp-btn { width: 100%; justify-content: center; }
  .tariff-card { padding: 28px 20px; }
}

/* ============================================================
   POLISH LAYER — Premium interactions
   ============================================================ */

/* ── Accessibility: focus ring ─────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* ── Performance: layout containment ──────────────────────── */
.restaurant-card,
.menu-item,
.how-card,
.benefit-card,
.about-stat-card { contain: layout style; }

/* ── Tabular nums for all prices ───────────────────────────── */
.menu-item-price,
.cart-item-total,
.cart-sidebar-item-price,
.cart-sidebar-row span:last-child,
.order-summary-row span:last-child,
.hero-stat-value { font-variant-numeric: tabular-nums; }

/* ── Restaurant cards — enhanced hover ─────────────────────── */
.restaurant-card {
  transition:
    transform    350ms var(--ease-out-quart),
    box-shadow   350ms var(--ease-out-quart),
    border-color 350ms var(--ease-out-quart);
}
.restaurant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.restaurant-card:active {
  transform: scale(0.98);
  transition-duration: 100ms;
}

/* Image emoji scale on card hover */
.restaurant-card-img {
  overflow: hidden;
  transition: background 350ms ease;
}
.restaurant-card-img > span {
  display: inline-block;
  transition: transform 600ms ease-out;
}
.restaurant-card:hover .restaurant-card-img > span { transform: scale(1.06); }

/* Badges lift on card hover */
.restaurant-card-badges .badge {
  transition:
    transform  300ms var(--ease-out-quart),
    box-shadow 300ms var(--ease-out-quart);
}
.restaurant-card:hover .restaurant-card-badges .badge {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* ── Buttons — micro-interactions ──────────────────────────── */
.btn {
  transition:
    transform    200ms var(--ease-out-quart),
    box-shadow   200ms var(--ease-out-quart),
    background   200ms var(--ease-out-quart),
    border-color 200ms var(--ease-out-quart);
}
.btn:not(:disabled):hover  { transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translateY(0); }

/* Arrow icon animation inside buttons */
.btn .btn-arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-out-quart);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Header scroll state ───────────────────────────────────── */
.header {
  transition:
    box-shadow     250ms ease,
    backdrop-filter 250ms ease;
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* Logo dot colour shift on hover */
.logo .logo-dot {
  color: var(--brand);
  transition: color 300ms ease;
}
.logo:hover .logo-dot { color: var(--brand-mid); }

/* ── Mobile nav — stagger slide-in ────────────────────────── */
.mobile-nav-link {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity   300ms var(--ease-out-quart),
    transform 300ms var(--ease-out-quart);
}
.mobile-nav.open .mobile-nav-link { opacity: 1; transform: translateX(0); }
.mobile-nav.open .mobile-nav-link:nth-of-type(1) { transition-delay: 40ms;  }
.mobile-nav.open .mobile-nav-link:nth-of-type(2) { transition-delay: 80ms;  }
.mobile-nav.open .mobile-nav-link:nth-of-type(3) { transition-delay: 120ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(4) { transition-delay: 160ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(5) { transition-delay: 200ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(6) { transition-delay: 240ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(7) { transition-delay: 280ms; }

/* ── Cart badge pulse ──────────────────────────────────────── */
@keyframes badgePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.cart-badge.pulse { animation: badgePulse 400ms var(--ease-out-quart); }

/* ── Cart item remove slide-out ────────────────────────────── */
@keyframes slideOutLeft {
  to {
    transform: translateX(-110%);
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
  }
}
.cart-item.removing {
  overflow: hidden;
  animation: slideOutLeft 300ms var(--ease-out-quart) forwards;
}

/* ── Menu item — refined border hover ─────────────────────── */
.menu-item {
  transition: border-color 300ms ease, box-shadow 200ms ease;
}
.menu-item:hover {
  border-color: var(--muted);
  box-shadow: none;
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   600ms var(--ease-out-expo),
    transform 600ms var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Filter grid card animations ───────────────────────────── */
@keyframes cardEnter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes cardExit {
  to   { opacity: 0; transform: scale(0.95); }
}
.restaurant-card.card-entering {
  animation: cardEnter 280ms var(--ease-out-quart) both;
}

/* ── View Transitions API ──────────────────────────────────── */
.logo { view-transition-name: logo; }

@keyframes vt-fade-in  { from { opacity: 0; } }
@keyframes vt-fade-out { to   { opacity: 0; } }
@keyframes vt-slide-in  { from { transform: translateX(32px); opacity: 0; } }
@keyframes vt-slide-out { to   { transform: translateX(-32px); opacity: 0; } }

@supports (view-transition-name: none) {
  ::view-transition-old(root) {
    animation: 180ms ease-out both vt-fade-out;
  }
  ::view-transition-new(root) {
    animation: 280ms var(--ease-out-expo) both vt-slide-in;
  }
  ::view-transition-old(logo),
  ::view-transition-new(logo) { animation: none; }
}

/* ── Segmented control — sliding pill ──────────────────────── */
.segment-control { position: relative; }
.seg-track {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--sh-sm);
  transition: transform 240ms var(--ease-out-quart), width 240ms var(--ease-out-quart);
  pointer-events: none;
  z-index: 0;
}
.segment-option + label { position: relative; z-index: 1; }
.segment-option:checked + label { background: transparent; box-shadow: none; }

/* ── Order page — title letter reveal ─────────────────────── */
.letter-reveal .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: letterIn 400ms var(--ease-out-expo) both;
}
@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile fixes ──────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Filter bar: horizontal scroll, no wrapping */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar > div { flex-shrink: 0; }

  /* Smaller menu item emoji on mobile */
  .menu-item-emoji {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  /* Cart item: tighter layout */
  .cart-item {
    gap: 10px;
    padding: 12px 16px;
  }
  .cart-item-emoji { font-size: 24px; }
  .cart-item-total { min-width: 64px; font-size: 14px; }
  .cart-item-counter { gap: 6px; }

  /* Checkout: stack the 3-column row on small screens */
  .form-row-3 { grid-template-columns: 1fr 1fr; }

  /* Success actions: full width buttons */
  .success-actions { flex-direction: column; align-items: stretch; }
  .success-actions > * { width: 100%; justify-content: center; text-align: center; }

  /* Partners CTA text size */
  .partners-cta-title { font-size: 24px; }

  /* Page header padding */
  .page-header { padding: 24px 0 16px; }

  /* Hero search: make button full width below input */
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  /* Menu item: horizontal stack with reduced emoji */
  .menu-item { padding: 12px; gap: 10px; }
  .menu-item-emoji { width: 52px; height: 52px; font-size: 26px; }
  .menu-item-thumb { width: 52px; height: 52px; }
  .menu-item-name { font-size: 14px; }
  .menu-item-price { font-size: 15px; }

  /* Cart group */
  .cart-group-header { padding: 12px 16px; }

  /* Checkout form */
  .form-row-3 { grid-template-columns: 1fr; }
  .form-card { padding: 16px; }
  .form-card-title { font-size: 15px; }
}

/* ── Skeleton loaders ──────────────────────────────────────── */
@keyframes shimmer {
  from { background-position: -600px 0; }
  to   { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r-sm);
}
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.skeleton-img  { height: 180px; }
.skeleton-body { padding: 18px; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.wide  { width: 70%; }
.skeleton-line.mid   { width: 50%; }
.skeleton-line.short { width: 35%; }

/* On mobile, skeleton cards are horizontal */
@media (max-width: 768px) {
  .skeleton-card { display: flex; min-height: 112px; }
  .skeleton-img  { width: 112px; height: auto; flex-shrink: 0; }
  .skeleton-body { flex: 1; }
}

/* ── prefers-reduced-motion — zero all animations ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Floating WhatsApp support button ──────────────────────── */
.float-support-btn {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 9998;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.float-support-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* ── Stopped menu items (stop-list) ─────────────────────────── */
.menu-item.stopped {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}
.stopped-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid var(--border);
}
.float-support-btn:active { transform: scale(.96); }

/* ── Logo image (replaces emoji icon) ──────────────────────── */
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Language switcher ──────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border-radius: var(--r-full);
  padding: 3px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 5px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.lang-btn:hover { color: var(--dark); }
.lang-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--sh-xs);
}

/* ── Cart button — hide text label on mobile ────────────────── */
.cart-label { display: inline; }

/* ── Account header button — always visible ─────────────────── */
.account-header-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.account-header-btn:hover { background: var(--bg); }

/* ── Mobile nav: top row + lang picker ──────────────────────── */
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 4px;
}
.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav-lang {
  display: flex;
  gap: 6px;
  padding: 12px 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.mobile-nav-lang .lang-btn {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.mobile-nav-lang .lang-btn.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: none;
}

/* ── Mobile responsive overrides ─────────────────────────────── */
@media (max-width: 768px) {
  /* Hide lang-switcher from header bar on mobile (it's in mobile nav) */
  .header .lang-switcher { display: none; }

  /* Compact account button */
  .account-header-btn {
    padding: 7px 11px;
    font-size: 13px;
  }

  /* Hide cart label text on mobile, keep icon + badge */
  .cart-label { display: none; }

  /* Tighten header-actions gap on mobile */
  .header-actions { gap: 6px; }
}

@media (max-width: 400px) {
  /* Very small screens — ultra-compact account btn */
  .account-header-btn { padding: 7px 8px; font-size: 12px; }
}

/* ============================================================
   MOBILE DESIGN SYSTEM — Phone-first improvements
   ============================================================ */

/* ── Restaurant cards: horizontal list style on mobile ─────── */
@media (max-width: 768px) {
  .restaurants-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .restaurant-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 112px;
    max-height: 112px;
  }

  .restaurant-card-img {
    width: 112px !important;
    height: 112px !important;
    flex-shrink: 0;
    font-size: 48px;
    border-radius: 0;
    border-right: 1px solid var(--border);
  }

  .restaurant-card-body {
    padding: 10px 12px;
    gap: 2px;
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .restaurant-card-name {
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .restaurant-card-cuisine {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .restaurant-card-meta { margin-top: 6px; gap: 8px; }
  .meta-item { font-size: 12px; }

  .restaurant-card-rating {
    font-size: 13px;
    flex-shrink: 0;
  }

  .restaurant-card-footer {
    padding: 0 12px;
    border-top: none;
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 88px;
  }

  .restaurant-card-badges {
    gap: 3px;
  }

  .restaurant-card-badges .badge {
    font-size: 10px;
    padding: 2px 7px;
  }

  /* Disable lift effect on mobile (no hover) */
  .restaurant-card:hover { transform: none; box-shadow: var(--sh-sm); }
  .restaurant-card:active { transform: scale(0.985); }
}

/* ── Hero section: more compact on mobile ─────────────────── */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero-badge { font-size: 12px; padding: 5px 14px; margin-bottom: 16px; }
  .hero-title { margin-bottom: 14px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 28px; line-height: 1.55; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-top: 36px;
  }
  .hero-stat-value { font-size: 22px; }
  .hero-stat-label { font-size: 12px; }
}

/* ── Category pills: taller touch targets ─────────────────── */
@media (max-width: 768px) {
  .cat-pill {
    padding: 11px 16px;
    font-size: 13px;
    min-height: 44px;
  }
  .cat-pill-emoji { font-size: 16px; }
}

/* ── Filter bar chips: bigger tap targets ─────────────────── */
@media (max-width: 768px) {
  .filter-chip {
    padding: 10px 14px;
    min-height: 40px;
    font-size: 13px;
  }
}

/* ── Mobile cart bar: more visual presence ────────────────── */
@media (max-width: 768px) {
  .mobile-cart-bar {
    padding: 10px 16px 10px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
  }
  .mobile-cart-bar .btn {
    padding: 14px 20px;
    font-size: 15px;
    border-radius: var(--r);
  }
  .mobile-cart-count { font-size: 13px; opacity: 0.85; }
  .mobile-cart-total { font-size: 17px; font-weight: 800; }
}

/* ── Account page: bigger tab buttons ────────────────────── */
@media (max-width: 768px) {
  .tabs { gap: 4px; }
  .tab-btn {
    padding: 12px 16px;
    min-height: 44px;
    font-size: 14px;
  }
}

/* ── Checkout form: better mobile UX ─────────────────────── */
@media (max-width: 768px) {
  .form-input, .form-select, .form-textarea {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom */
    border-radius: var(--r-sm);
  }
  .form-label { font-size: 12px; }
  .payment-option { padding: 12px 14px; }
  .payment-option-name { font-size: 14px; }

  /* Segment control: taller */
  .segment-option + label {
    padding: 12px 10px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Restaurant page: better mobile layout ────────────────── */
@media (max-width: 768px) {
  .restaurant-banner { height: 180px; font-size: 72px; }

  .menu-nav-item {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
  }

  .add-to-cart-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .counter-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  /* Menu item description: 3 lines max */
  .menu-item-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  /* Section title: smaller on mobile */
  .menu-section-title { font-size: 18px; padding-bottom: 10px; }
}

/* ── Cart page: tighter on mobile ────────────────────────── */
@media (max-width: 768px) {
  .cart-layout { padding: 20px 0 80px; }
  .order-summary {
    position: static;
    margin-top: 4px;
  }
}

/* ── Page header: consistent mobile padding ───────────────── */
@media (max-width: 768px) {
  .page-header { padding: 20px 0 16px; margin-bottom: 20px; }
  .page-header-title { font-size: 24px; }
  .page-header-sub { font-size: 14px; margin-top: 6px; }
}

/* ── Section spacing: less vertical on mobile ─────────────── */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .section-sm { padding: 32px 0; }
  .section-title { font-size: 22px; }
}

/* ── Success/order page: full-width layout ────────────────── */
@media (max-width: 768px) {
  .success-page { padding: 48px 0; }
  .success-title { font-size: 28px; }
  .success-details { padding: 20px 16px; }
  .success-detail-row { font-size: 14px; padding: 8px 0; }
}

/* ── Toast: bottom of screen, wider ──────────────────────── */
@media (max-width: 768px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: stretch;
  }
  .toast {
    max-width: none;
    font-size: 14px;
  }
}
