/* ============================================================
   FOOD COURT — DESIGN SYSTEM
   Identidade: tema claro premium + laranja como cor de destaque.
   (tema escuro disponível via html[data-theme="dark"])
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f8f8;
  --surface-3: #efefef;
  --border: #eaeaea;
  --border-strong: #dcdcdf;

  --text: #202020;
  --text-2: #737373;
  --text-3: #9c9ca4;

  --brand: #ff7a00;
  --brand-bright: #f06a00;
  --brand-deep: #e85d00;
  --brand-glow: rgba(255, 122, 0, 0.22);
  --brand-soft: #fff3e8;
  --brand-border: rgba(255, 122, 0, 0.32);

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #b45309;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-1: 0 1px 3px rgba(25, 25, 50, 0.06), 0 1px 2px rgba(25, 25, 50, 0.04);
  --shadow-2: 0 6px 20px rgba(25, 25, 50, 0.09);
  --shadow-glow: 0 4px 14px var(--brand-glow);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --header-h: 68px;
  --bottomnav-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.25s;

  --glass: rgba(255, 255, 255, 0.86);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --scrim: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-elev: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --surface-3: #26262a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #6b6b74;
  --brand: #ff6b00;
  --brand-bright: #ff8a2b;
  --brand-deep: #cc5500;
  --brand-glow: rgba(255, 107, 0, 0.4);
  --brand-soft: rgba(255, 107, 0, 0.12);
  --brand-border: rgba(255, 107, 0, 0.35);
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.5);
  --glass: rgba(10, 10, 11, 0.78);
  --glass-strong: rgba(13, 13, 15, 0.92);
  --scrim: rgba(10, 10, 11, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
html.theming, html.theming * {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, fill 0.3s ease, box-shadow 0.3s ease !important;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--text); }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: #000; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4,
.h-xl, .h-lg, .h-md,
.hero-title, .logo, .btn, .step span,
.tracking-eta, .tl-title, .stat-box b, .qty-val {
  font-family: var(--font-display);
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; }
h1, h2, .h-xl, .hero-title { letter-spacing: -0.03em; font-weight: 800; }
h3, .h-lg { letter-spacing: -0.02em; }
.logo { letter-spacing: -0.035em; }
.step span { font-weight: 700; letter-spacing: -0.01em; }
.tl-title { letter-spacing: -0.01em; }

.pcard-price .now, .mitem-price .now, .old, .ci-price, .cb-total,
.totals-row, .qty-val, .countdown, .tracking-eta, .stat-box b,
.tracking-eta small, .order-foot b {
  font-variant-numeric: tabular-nums;
}

.h-xl { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.h-lg { font-size: 1.35rem; }
.h-md { font-size: 1.1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8rem; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.brand-text { color: var(--brand); font-weight: 600; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius);
  transition: transform 0.15s var(--ease), box-shadow var(--speed), background var(--speed), opacity var(--speed);
  user-select: none; white-space: nowrap; min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn-primary {
  background: var(--brand);
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(255, 107, 0, 0.45); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-3); }

.btn-outline {
  background: transparent; color: var(--brand-bright);
  border: 1.5px solid var(--brand-border);
}
.btn-outline:hover { background: var(--brand-soft); }

.btn-dark { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.btn-dark:hover { color: var(--text); }

.btn-sm { padding: 9px 16px; min-height: 38px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 17px 28px; font-size: 1.02rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); position: relative;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: background var(--speed), transform 0.15s var(--ease);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }

.badge-dot {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--brand); color: #140500;
  font-size: 0.68rem; font-weight: 800;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px var(--brand-glow);
  animation: pop 0.3s var(--ease);
}

/* ============ BADGES / CHIPS ============ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-bright); border: 1px solid var(--brand-border); }
.badge-green { background: #ecfdf3; color: #15803d; border: 1px solid #bbe7cb; }
html[data-theme="dark"] .badge-green { background: rgba(52, 211, 153, 0.12); color: var(--success); border-color: rgba(52, 211, 153, 0.3); }
.badge-dark { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-strong); }
.badge-red { background: #fef2f2; color: #b91c1c; border: 1px solid #f3c6c6; }
html[data-theme="dark"] .badge-red { background: rgba(248, 113, 113, 0.12); color: var(--danger); border-color: rgba(248, 113, 113, 0.3); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.86rem; font-weight: 500; color: var(--text-2);
  transition: all var(--speed); white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
  background: var(--brand-soft); border-color: var(--brand-border);
  color: var(--brand-bright); font-weight: 600;
}

/* ============ CARDS ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
}
.card.clickable { cursor: pointer; }
.card.clickable:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

/* Restaurant card */
.rcard { width: 300px; flex-shrink: 0; overflow: hidden; display: flex; flex-direction: column; }
.rcard-cover {
  height: 130px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem; filter: saturate(1.1);
  transition: transform 0.4s var(--ease);
}
.rcard.clickable:hover .rcard-cover { transform: scale(1.06); }
.rcard-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.05));
}
html[data-theme="dark"] .rcard-cover::after {
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 11, 0.55));
}
.rcard-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.rcard-fav { position: absolute; top: 10px; right: 10px; z-index: 2; }
.rcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rcard-head { display: flex; align-items: center; gap: 10px; }
.rcard-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface-3); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  margin-top: -34px; position: relative; z-index: 2;
  box-shadow: var(--shadow-1), 0 0 0 4px var(--surface);
}
.rcard-title { font-size: 1rem; font-weight: 700; }
.rcard-cat { font-size: 0.78rem; color: var(--text-3); }
.rcard-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.8rem; color: var(--text-2); }
.rcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rcard-meta .free { color: var(--success); font-weight: 600; }
.rcard.closed { opacity: 0.65; }
.rcard.closed .rcard-cover { filter: saturate(0.3) brightness(0.7); }

.fav-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--scrim); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: transform 0.2s var(--ease), background var(--speed);
}
.fav-btn:hover { background: var(--surface-3); transform: scale(1.1); }
.fav-btn:active { transform: scale(0.85); }
.fav-btn.on { animation: heartpop 0.35s var(--ease); }

.rating-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  padding: 3px 9px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 700;
}
.rating-pill .star { color: var(--warning); }

/* ============ LAYOUT ============ */
.app { min-height: 100dvh; }
.main { max-width: 1200px; margin: 0 auto; padding: 20px 20px calc(var(--bottomnav-h) + 110px); }
@media (min-width: 900px) {
  .main { padding: 28px 32px 80px; }
}

.page { animation: pagein 0.35s var(--ease); }

.section { margin: 32px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.section-head h2 { font-size: 1.25rem; }
.section-head .sub { font-size: 0.84rem; color: var(--text-3); margin-top: 2px; }
.see-all { font-size: 0.86rem; font-weight: 600; color: var(--brand-bright); display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.see-all:hover { text-decoration: underline; }

.hscroll {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x proximity; padding: 4px 0 8px;
}
.hscroll > * { scroll-snap-align: start; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 90;
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 12px; min-height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 9px; font-weight: 800;
  font-size: 1.15rem; letter-spacing: -0.03em; flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; box-shadow: 0 0 18px var(--brand-glow);
}
.logo b { color: var(--brand); }

.header-loc {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 8px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.84rem; color: var(--text-2);
  transition: border-color var(--speed);
  max-width: 220px;
}
.header-loc:hover { border-color: var(--brand-border); }
.header-loc b { color: var(--text); display: block; font-size: 0.84rem; }
.header-loc .loc-emoji { font-size: 1rem; }

.search-trigger {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 16px;
  color: var(--text-3); font-size: 0.92rem;
  transition: border-color var(--speed), box-shadow var(--speed);
  min-width: 0;
}
.search-trigger:hover { border-color: var(--border-strong); }

.header-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.avatar-btn {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  transition: border-color var(--speed), transform 0.15s var(--ease);
}
.avatar-btn:hover { border-color: var(--brand-border); }
.avatar-btn:active { transform: scale(0.94); }

@media (max-width: 899px) {
  .header-loc .loc-full { display: none; }
  .header-loc { padding: 9px; }
  .header-loc .chev { display: none; }
}

/* ============ BOTTOM NAV (mobile) ============ */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: var(--glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: center;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav a {
  flex: 1; max-width: 110px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 7px 4px;
  border-radius: 12px; font-size: 0.66rem; font-weight: 600;
  color: var(--text-3); letter-spacing: 0.01em;
  transition: color var(--speed);
}
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a.active { color: var(--brand); }
.bottomnav a.active svg { filter: drop-shadow(0 0 8px var(--brand-glow)); }
.bottomnav a .badge-dot { top: 0; right: 50%; transform: translateX(28px); }
@media (min-width: 900px) { .bottomnav { display: none; } }

/* ============ FLOATING CART BAR ============ */
.cartbar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(var(--bottomnav-h) + 14px + env(safe-area-inset-bottom));
  z-index: 94;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #140500; font-weight: 700;
  padding: 13px 18px; border-radius: 16px;
  box-shadow: var(--shadow-2), 0 4px 16px var(--brand-glow);
  transform: translateY(0);
  animation: slideup 0.35s var(--ease);
  cursor: pointer;
}
@media (min-width: 900px) {
  .cartbar { left: auto; right: 28px; bottom: 28px; min-width: 300px; }
}
.cartbar .cb-count {
  background: rgba(0, 0, 0, 0.25); min-width: 26px; height: 26px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.cartbar .cb-total { margin-left: auto; font-size: 0.98rem; }
.cartbar.bump { animation: bump 0.4s var(--ease); }

/* ============ HERO CAROUSEL ============ */
.hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); }
.hero-track { display: flex; transition: transform 0.55s var(--ease); }
.hero-slide {
  min-width: 100%; min-height: 220px; position: relative;
  display: flex; align-items: center; overflow: hidden;
  padding: 28px 32px;
}
.hero-slide.tone-orange {
  background: linear-gradient(120deg, #fff8f2 0%, #fff1e2 45%, #ffead6 100%);
  border: 1px solid var(--brand-border);
}
.hero-slide.tone-dark { background: linear-gradient(120deg, #f7f7f8 0%, #f0f0f2 60%, #ebedf0 100%); border: 1px solid var(--border); }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, var(--brand-soft), transparent 65%);
  pointer-events: none;
}
.hero-slide .hero-emoji {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  font-size: clamp(4rem, 10vw, 7rem); filter: drop-shadow(0 12px 24px rgba(120, 60, 0, 0.22));
  pointer-events: none; transition: transform 0.5s var(--ease);
}
.hero-slide:hover .hero-emoji { transform: translateY(-50%) rotate(-6deg) scale(1.08); }
.hero-content { position: relative; z-index: 2; max-width: 55%; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-tag {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--brand-bright); text-transform: uppercase;
  border: 1px solid var(--brand-border); background: var(--brand-soft);
  padding: 5px 11px; border-radius: 99px;
}
.hero-title { font-size: clamp(1.3rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.hero-sub { color: var(--text-2); font-size: 0.92rem; }
@media (max-width: 640px) {
  .hero-slide { min-height: 190px; padding: 22px; }
  .hero-content { max-width: 70%; }
  .hero-slide .hero-emoji { right: 2%; opacity: 0.6; }
}
.hero-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 3;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--surface-3); transition: all var(--speed); cursor: pointer;
}
.hero-dot.active { width: 22px; background: var(--brand); box-shadow: 0 0 8px var(--brand-glow); }

/* ============ CATEGORIES ============ */
.cat-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 6px 0 10px; }
.cat-tile {
  flex-shrink: 0; width: 84px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; cursor: pointer;
}
.cat-bubble {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  transition: all var(--speed);
}
.cat-tile:hover .cat-bubble { border-color: var(--brand-border); background: var(--brand-soft); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.cat-tile span { font-size: 0.72rem; font-weight: 600; color: var(--text-2); text-align: center; }
.cat-tile:hover span { color: var(--text); }

/* ============ GREETING ============ */
.greeting { margin: 26px 0 4px; }
.greeting h1 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.greeting p { color: var(--text-2); font-size: 0.9rem; margin-top: 3px; }

/* ============ PRODUCT CARDS ============ */
.pcard { width: 240px; flex-shrink: 0; overflow: hidden; display: flex; flex-direction: column; }
.pcard-img {
  height: 118px; display: flex; align-items: center; justify-content: center;
  font-size: 2.9rem; position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  transition: transform 0.4s var(--ease);
}
.pcard.clickable:hover .pcard-img { transform: scale(1.07); }
.pcard-disc {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--brand); color: #140500;
  font-size: 0.7rem; font-weight: 800; padding: 3px 9px; border-radius: 99px;
  box-shadow: 0 2px 12px var(--brand-glow);
}
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-name { font-weight: 700; font-size: 0.95rem; }
.pcard-desc {
  font-size: 0.78rem; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pcard-price { display: flex; flex-direction: column; line-height: 1.2; }
.pcard-price .now { font-weight: 800; color: var(--brand-bright); font-size: 1rem; }
.pcard-price .old { font-size: 0.75rem; color: var(--text-3); text-decoration: line-through; }
.add-btn {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-bright);
  border: 1px solid var(--brand-border);
  font-size: 1.2rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s var(--ease);
}
.add-btn:hover { background: var(--brand); color: #140500; box-shadow: 0 0 14px var(--brand-glow); }
.add-btn:active { transform: scale(0.85); }

/* Menu list item (restaurant page) */
.mitem { display: flex; gap: 14px; padding: 14px; align-items: stretch; cursor: pointer; }
.mitem + .mitem { border-top: 1px solid var(--border); }
.mitem-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mitem-name { font-weight: 700; font-size: 0.96rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mitem-desc { font-size: 0.82rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mitem-price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.mitem-price .now { font-weight: 800; color: var(--brand-bright); }
.mitem-price .old { color: var(--text-3); text-decoration: line-through; font-size: 0.82rem; }
.mitem-thumb {
  width: 88px; height: 88px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}
.mitem:hover .mitem-thumb { transform: scale(1.05) rotate(-2deg); }

/* ============ DRAWERS / MODALS ============ */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 20, 35, 0.32);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
html[data-theme="dark"] .overlay { background: rgba(5, 5, 6, 0.7); }
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 110;
  background: var(--bg-elev); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.drawer-right {
  top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  border-radius: 0; border-top: none; border-bottom: none; border-right: none;
  transform: translateX(105%);
}
.drawer-bottom {
  left: 0; right: 0; bottom: 0; max-height: 92dvh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: none;
  transform: translateY(105%);
}
@media (min-width: 700px) {
  .drawer-bottom {
    left: 50%; right: auto; width: 560px; max-height: 88dvh;
    border-radius: var(--radius-xl); bottom: 40px;
    transform: translate(-50%, 40px); opacity: 0;
    box-shadow: var(--shadow-2);
  }
}
.drawer.open { transform: translate(0, 0) !important; opacity: 1 !important; }
@media (min-width: 700px) { .drawer-bottom.open { transform: translate(-50%, 0) !important; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-head h3 { font-size: 1.05rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); flex-shrink: 0;
  background: var(--bg-elev);
}

/* Product drawer */
.pd-hero {
  height: 150px; border-radius: var(--radius-lg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 4.5rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border); margin-bottom: 16px;
}
.optgroup { margin-bottom: 22px; }
.optgroup-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-weight: 700; font-size: 0.98rem;
}
.optgroup-title .req { color: var(--brand-bright); font-size: 0.74rem; font-weight: 700; }
.optgroup-title .opt-label { color: var(--text-3); font-size: 0.74rem; font-weight: 500; }
.optrow {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; margin-bottom: 8px;
  transition: border-color var(--speed), background var(--speed);
}
.optrow:hover { border-color: var(--border-strong); }
.optrow.selected { border-color: var(--brand); background: var(--brand-soft); }
.optrow .opt-name { flex: 1; font-size: 0.92rem; }
.optrow .opt-price { font-size: 0.85rem; color: var(--text-2); }
.optrow.selected .opt-price { color: var(--brand-bright); }
.radio, .check {
  width: 21px; height: 21px; flex-shrink: 0;
  border: 2px solid var(--border-strong); border-radius: 50%;
  transition: all var(--speed); position: relative;
}
.check { border-radius: 6px; }
.optrow.selected .radio, .optrow.selected .check {
  border-color: var(--brand); background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
}
.optrow.selected .radio::after {
  content: ''; position: absolute; inset: 4.5px; background: #140500; border-radius: 50%;
}
.optrow.selected .check::after {
  content: '✓'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  color: #140500; font-size: 0.75rem; font-weight: 900;
}

.qty-stepper {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 4px; width: fit-content;
}
.qty-btn {
  width: 38px; height: 38px; border-radius: 9px; font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: all 0.12s var(--ease);
}
.qty-btn:hover { background: var(--surface-2); color: var(--brand-bright); }
.qty-btn:active { transform: scale(0.85); }
.qty-val { min-width: 36px; text-align: center; font-weight: 800; font-size: 1.05rem; }

.textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 13px 15px; resize: vertical; min-height: 76px;
  transition: border-color var(--speed); font-size: 0.92rem;
}
.textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea::placeholder { color: var(--text-3); }

/* ============ CART ============ */
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-of-type { border-bottom: none; }
.ci-emoji {
  width: 54px; height: 54px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 600; font-size: 0.94rem; }
.ci-detail { font-size: 0.76rem; color: var(--text-3); margin-top: 2px; }
.ci-note { font-size: 0.76rem; color: var(--warning); margin-top: 2px; font-style: italic; }
.ci-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ci-price { font-weight: 700; color: var(--brand-bright); font-size: 0.95rem; }

.coupon-row { display: flex; gap: 8px; }
.coupon-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 11px 14px;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.88rem; font-weight: 600;
}
.coupon-input:focus { outline: none; border-color: var(--brand); }

.totals { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.totals-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-2); }
.totals-row.discount { color: var(--success); }
.totals-row.total { font-size: 1.05rem; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.totals-row.total .val { color: var(--brand-bright); }

.freeship-bar { margin-bottom: 14px; }
.freeship-track { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.freeship-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); border-radius: 99px; box-shadow: 0 0 10px var(--brand-glow); transition: width 0.6s var(--ease); }
.freeship-label { font-size: 0.78rem; color: var(--text-2); margin-top: 7px; }
.freeship-label b { color: var(--brand-bright); }

/* ============ RESTAURANT PAGE ============ */
.rest-hero { position: relative; height: 210px; border-radius: var(--radius-xl); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.rest-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,248,242,0.45)); }
.rest-hero .rest-hero-actions { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; }

.rest-summary {
  display: flex; gap: 18px; padding: 0 22px; margin-top: -46px;
  position: relative; z-index: 2; align-items: flex-end; flex-wrap: wrap;
}
.rest-logo {
  width: 92px; height: 92px; border-radius: 22px; flex-shrink: 0;
  background: var(--surface-3); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 2.7rem;
  box-shadow: var(--shadow-2), 0 0 0 5px var(--bg);
}
.rest-info { flex: 1; min-width: 240px; padding-bottom: 6px; }
.rest-info h1 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.rest-meta-row { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 0.85rem; color: var(--text-2); }
.rest-meta-row span { display: inline-flex; gap: 6px; align-items: center; }

.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 0; margin: 22px -20px 8px; padding-left: 20px; padding-right: 20px;
  border-bottom: 1px solid var(--border);
}
.menu-tabs .chip.active { background: var(--brand); color: #140500; border-color: var(--brand); }

.closed-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 14px 16px; margin: 16px 0;
}
.closed-banner .emoji { font-size: 1.4rem; }

/* ============ STEPS / CHECKOUT ============ */
.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.step { flex: 1; display: flex; flex-direction: column; gap: 7px; align-items: center; font-size: 0.7rem; color: var(--text-3); font-weight: 600; }
.step-track { width: 100%; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.step-fill { height: 100%; width: 0; background: var(--brand); border-radius: 99px; box-shadow: 0 0 8px var(--brand-glow); transition: width 0.5s var(--ease); }
.step.active { color: var(--brand-bright); }
.step.done { color: var(--text-2); }
.step.done .step-fill, .step.active .step-fill { width: 100%; }
.step.active .step-fill { background: linear-gradient(90deg, var(--brand), var(--brand-bright)); animation: steppulse 1.4s var(--ease) infinite; }

.select-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1.5px solid var(--border);
  cursor: pointer; transition: all var(--speed); text-align: left; margin-bottom: 10px;
}
.select-card:hover { border-color: var(--border-strong); }
.select-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.select-card .sc-emoji {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.select-card .sc-main { flex: 1; min-width: 0; }
.select-card .sc-title { font-weight: 700; font-size: 0.96rem; }
.select-card .sc-sub { font-size: 0.8rem; color: var(--text-2); margin-top: 2px; }
.select-card .sc-end { color: var(--text-2); font-size: 0.85rem; text-align: right; flex-shrink: 0; }
.select-card .sc-end .free { color: var(--success); font-weight: 700; }
.radio-big { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; position: relative; transition: all var(--speed); }
.select-card.selected .radio-big { border-color: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }
.select-card.selected .radio-big::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--brand); }

.checkout-nav { display: flex; gap: 10px; margin-top: 22px; }
.checkout-nav .btn { flex: 1; }

/* ============ TRACKING ============ */
.tracking-status {
  border-radius: var(--radius-xl); padding: 26px 24px;
  background: linear-gradient(140deg, #fff8f2, #fff3e8 55%, var(--surface));
  border: 1px solid var(--brand-border);
  position: relative; overflow: hidden;
}
.tracking-status::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 90% 0%, var(--brand-soft), transparent 60%);
}
.tracking-status > * { position: relative; }
.tracking-eta { font-size: 2.4rem; font-weight: 800; color: var(--brand-bright); letter-spacing: -0.03em; }
.tracking-eta small { font-size: 0.9rem; color: var(--text-2); font-weight: 500; }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 16px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
  transition: all var(--speed);
}
.tl-line { width: 2px; flex: 1; min-height: 26px; background: var(--surface-2); }
.tl-item.done .tl-dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 14px var(--brand-glow); }
.tl-item.done .tl-line { background: var(--brand); }
.tl-item.current .tl-dot { border-color: var(--brand); animation: pulse-ring 1.6s var(--ease) infinite; }
.tl-item.current .tl-dot { font-size: 1.05rem; }
.tl-content { padding: 4px 0 22px; }
.tl-title { font-weight: 700; font-size: 0.95rem; }
.tl-item:not(.done):not(.current) .tl-title { color: var(--text-3); }
.tl-sub { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

/* ============ LIST PAGES (orders, favorites, notifications) ============ */
.order-card { padding: 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.order-head { display: flex; align-items: center; gap: 12px; }
.order-logo {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.order-head .oh-main { flex: 1; min-width: 0; }
.order-items { font-size: 0.84rem; color: var(--text-2); }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.notif-item { display: flex; gap: 13px; padding: 16px; border-radius: var(--radius); transition: background var(--speed); align-items: flex-start; }
.notif-item:hover { background: var(--surface); }
.notif-item.unread { background: var(--brand-soft); border: 1px solid var(--brand-border); }
.notif-emoji {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* Coupon card */
.coupon-card {
  position: relative; padding: 18px 18px 18px 22px; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
}
.coupon-card.tone-orange { background: linear-gradient(135deg, #fff8f2, #fff3e8 70%); border-color: var(--brand-border); }
.coupon-card.tone-dark { background: var(--surface); }
.coupon-card::before, .coupon-card::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--border);
  top: 50%; transform: translateY(-50%);
}
.coupon-card::before { left: -12px; }
.coupon-card::after { right: -12px; }
.coupon-code {
  font-family: 'Consolas', monospace; font-weight: 800; letter-spacing: 0.12em;
  color: var(--brand-bright); border: 1.5px dashed var(--brand-border);
  padding: 6px 12px; border-radius: 8px; display: inline-block; width: fit-content;
  font-size: 0.88rem;
}
.coupon-rules { list-style: none; margin-top: 6px; }
.coupon-rules li { font-size: 0.76rem; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.coupon-rules li::before { content: '•'; color: var(--brand); }

/* ============ PROFILE ============ */
.profile-head {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #1c0c00, var(--surface) 65%);
  border: 1px solid var(--border-strong);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 20px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
}
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; text-align: center;
  display: flex; flex-direction: column; gap: 3px;
}
.stat-box b { font-size: 1.15rem; color: var(--brand-bright); }
.stat-box span { font-size: 0.72rem; color: var(--text-3); font-weight: 600; }

.plist { display: flex; flex-direction: column; }
.plist-item {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  border-radius: var(--radius); cursor: pointer; transition: background var(--speed);
}
.plist-item:hover { background: var(--surface); }
.plist-emoji {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.plist-item .pl-label { flex: 1; font-weight: 600; font-size: 0.94rem; }
.plist-item .pl-sub { display: block; font-size: 0.76rem; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.plist-item .chev { color: var(--text-3); }

/* ============ SKELETONS ============ */
.skel {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
.skel-card { width: 300px; flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.skel-cover { height: 130px; }
.skel-line { height: 14px; }
.skel-lines { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }

/* ============ EMPTY / ERROR STATES ============ */
.state-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center; padding: 56px 24px;
}
.state-emoji {
  font-size: 3rem; width: 96px; height: 96px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; filter: saturate(0.9);
}
.state-box h3 { font-size: 1.1rem; }
.state-box p { color: var(--text-2); font-size: 0.88rem; max-width: 320px; }
.state-box .btn { margin-top: 12px; }

/* ============ TOASTS ============ */
.toasts {
  position: fixed; top: calc(var(--header-h) + 12px); left: 50%;
  transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 13px 16px;
  box-shadow: var(--shadow-2); font-size: 0.9rem; font-weight: 500;
  animation: toastin 0.35s var(--ease); pointer-events: auto;
}
.toast.leaving { animation: toastout 0.3s var(--ease) forwards; }
.toast .t-emoji { font-size: 1.2rem; }
.toast.success { border-color: rgba(52, 211, 153, 0.4); }
.toast.error { border-color: rgba(248, 113, 113, 0.4); }

/* ============ SEARCH PAGE ============ */
.searchbar-lg {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: 16px; padding: 4px 6px 4px 18px;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.searchbar-lg:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.searchbar-lg input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 1.02rem; padding: 12px 0; min-width: 0;
}
.searchbar-lg input::placeholder { color: var(--text-3); }

.hist-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--speed); }
.hist-row:hover { background: var(--surface); }
.hist-row .x { margin-left: auto; color: var(--text-3); padding: 4px 8px; border-radius: 8px; }
.hist-row .x:hover { color: var(--danger); background: var(--surface-2); }

/* ============ MISC ============ */
.grid-rest { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.grid-rest .rcard { width: 100%; }
@media (max-width: 640px) {
  .grid-rest { grid-template-columns: 1fr; }
}

.tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }

.divider { height: 1px; background: var(--border); margin: 20px 0; border: none; }

.pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.countdown { font-variant-numeric: tabular-nums; color: var(--brand-bright); font-weight: 700; }

.review-stars { color: var(--warning); letter-spacing: 2px; font-size: 0.9rem; }

/* ============ ANIMATIONS ============ */
@keyframes pagein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pop { 0% { transform: scale(0); } 80% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes heartpop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } }
@keyframes slideup { from { transform: translateY(90px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.04); } }
@keyframes toastin { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateY(-10px) scale(0.96); } }
@keyframes steppulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--brand-glow); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes confettirise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-90px); opacity: 0; } }

.plus-fly {
  position: fixed; z-index: 300; pointer-events: none;
  color: var(--brand-bright); font-weight: 900; font-size: 1.15rem;
  animation: flytocart 0.8s var(--ease) forwards;
  text-shadow: 0 0 12px var(--brand-glow);
}
@keyframes flytocart {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-120px) scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ PAINÉIS DE DESTAQUE (claros, com toque laranja) ============ */
.profile-head {
  background: linear-gradient(140deg, #fff3e8, #ffffff 70%);
  border-color: var(--brand-border);
  color: var(--text);
}
.tracking-status {
  background: linear-gradient(140deg, #fff8f2, #ffffff 65%);
  border: 1px solid var(--brand-border);
  color: var(--text);
}
.coupon-card.tone-orange {
  background: linear-gradient(135deg, #fff8f2, #fff3e8 70%);
  border: 1px solid var(--brand-border);
  color: var(--text);
}
.coupon-card.tone-orange .coupon-rules li::before { color: var(--brand); }
.dark-panel {
  color: var(--text);
  background: linear-gradient(135deg, #fff8f2, #ffffff) !important;
  border-color: var(--brand-border) !important;
}
html[data-theme="dark"] .profile-head,
html[data-theme="dark"] .tracking-status,
html[data-theme="dark"] .coupon-card.tone-orange {
  background: linear-gradient(140deg, #241000, #141416 70%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}
html[data-theme="dark"] .coupon-card.tone-orange { background: linear-gradient(135deg, #241000, #170a02 70%); }
html[data-theme="dark"] .dark-panel {
  background: linear-gradient(135deg, #191920, #111113) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f4f4f5;
}
+

/* Landing page baseada na referência fornecida */
.desktop-links{display:flex;align-items:center;gap:28px;margin-left:auto;font-size:.72rem;font-weight:600}.desktop-links a{padding:24px 0 20px;border-bottom:2px solid transparent}.desktop-links a:hover,.desktop-links .active{color:#087c3b;border-color:#087c3b}.landing-login,.landing-create{padding:10px 19px;border-radius:4px;font-size:.72rem;font-weight:800}.landing-login{border:1px solid #087c3b;color:#087c3b}.landing-create{background:#087c3b;color:#fff;box-shadow:0 4px 10px #087c3b33}
.landing-home{padding-top:8px}.landing-hero{min-height:430px;display:grid;grid-template-columns:48% 52%;overflow:hidden;border-radius:4px;background:#fff;box-shadow:0 10px 32px rgba(21,48,31,.08)}.hero-copy{padding:40px 16px 28px 54px;align-self:center;position:relative;z-index:2}.delivery-pill{display:inline-flex;background:#f2f8e9;color:#4d6e15;border-radius:30px;padding:6px 10px;font-size:.68rem;font-weight:700;margin-bottom:20px}.hero-copy h1{color:#111;font-size:clamp(2.15rem,4.1vw,3.5rem);line-height:1.03}.hero-copy h1 span{color:#087c3b}.hero-copy>p{color:#5e6661;max-width:470px;margin:16px 0 20px;font-size:.89rem;line-height:1.6}
.landing-search{height:48px;max-width:500px;display:flex;align-items:center;border:1px solid #d9dfdb;border-radius:5px;overflow:hidden;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.04)}.landing-search>span{color:#8a928d;font-size:1.25rem;padding-left:14px;transform:rotate(-20deg)}.landing-search input{min-width:0;flex:1;border:0;outline:0;padding:0 12px;font-size:.75rem}.landing-search button{align-self:stretch;min-width:104px;color:#fff;background:#0a9848;font-size:.76rem;font-weight:700}.quick-label{margin:18px 0 10px;font-size:.68rem;font-weight:700;color:#29322d}.quick-cats{display:flex;gap:8px;flex-wrap:wrap}.quick-cats button{padding:7px 11px;border:1px solid #e5e8e6;border-radius:5px;background:#fff;font-size:.67rem;font-weight:600}.quick-cats span{margin-right:5px}.account-hint{margin-top:18px;font-size:.67rem;color:#626a65}.account-hint a{color:#07813d;font-weight:700;text-decoration:underline}
.hero-photo{position:relative;min-height:430px;background:url('/assets/images/food-hero.png') center/cover no-repeat}.hero-photo:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.45) 8%,transparent 28%)}.floating-card{position:absolute;right:24px;width:138px;background:rgba(255,255,255,.95);border-radius:6px;padding:13px;box-shadow:0 8px 24px #0003;color:#171b18}.floating-card b{display:flex;gap:8px;font-size:.74rem}.floating-card b span{color:#111}.floating-card small{display:block;font-size:.6rem;color:#717873;margin:4px 0 0 26px;line-height:1.35}.fc-rating{top:38px}.fc-fast{top:154px}.fc-offer{top:270px}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);padding:28px 30px;border-top:1px solid #eef0ee}.benefits>div{display:flex;align-items:center;gap:16px;padding:0 24px;border-right:1px solid #e8ece9}.benefits>div:last-child{border:0}.benefits svg{width:46px;height:46px;padding:11px;border-radius:50%;stroke:#087c3b;fill:none;stroke-width:1.6;background:#edf8f1;flex:none}.benefits p{display:flex;flex-direction:column;gap:4px}.benefits b{font-size:.76rem}.benefits span{font-size:.62rem;color:#737a76;line-height:1.45}
@media(min-width:900px){.header-inner{max-width:1400px}.main{max-width:1400px;padding-top:14px}.header .search-trigger{display:none}.header-actions .icon-btn,.header-actions .avatar-btn{display:none}.header-loc{margin-left:12px;background:transparent;border:0}.header-loc .loc-full,.header-loc .chev{display:none}.header-loc:after{content:'Entrega em: Casa';color:#17241c;font-size:.72rem;font-weight:700}.logo-mark{background:#087c3b;box-shadow:none;color:#fff}.logo b{color:#087c3b}}
@media(max-width:1050px){.desktop-links{gap:13px}.desktop-links a:nth-last-child(-n+2){display:none}.landing-hero{grid-template-columns:52% 48%}.hero-copy{padding-left:28px}.floating-card{right:12px;width:120px}}
@media(max-width:760px){.desktop-links,.landing-login,.landing-create{display:none}.landing-hero{display:flex;flex-direction:column}.hero-copy{padding:28px 20px}.hero-photo{min-height:310px}.benefits{grid-template-columns:1fr;padding:10px 20px}.benefits>div{border-right:0;border-bottom:1px solid #e8ece9;padding:18px 0}.floating-card{display:none}.landing-search button{min-width:82px}.quick-cats{flex-wrap:nowrap;overflow:auto}.header-loc{margin-left:auto}}
