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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --primary:       #d19200;
  --primary-dark:  #e01a1a;
  --primary-light: #fff3eb;
  --secondary:     #282c3f;
  --accent:        #60b246;
  --danger:        #e74c3c;
  --star:          #f5a623;

  --bg:            #f8f9fac2;
  --surface:       #ffffff;
  --surface2:      #f1f3f4;
  --border:        #e9ecef;
  --text:          #282c3f;
  --text-muted:    #8d9296;
  --text-light:    #b5b5b5;

  --nav-height:    64px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.16);
  --shadow-primary:0 4px 20px rgba(252,128,25,.35);

  --transition:    .25s cubic-bezier(.4,0,.2,1);
  --font-main:     'Inter', sans-serif;
  --font-display:  'Poppins', sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg:         #1a1a2e;
  --surface:    #16213e;
  --surface2:   #0f3460;
  --border:     #2d2d44;
  --text:       #e8e8f0;
  --text-muted: #a0a0b8;
  --text-light: #6b6b80;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ── UTILITY CLASSES ────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.flex      { display: flex; align-items: center; }
.flex-col  { display: flex; flex-direction: column; }
.gap-1     { gap: 4px; }
.gap-2     { gap: 8px; }
.gap-3     { gap: 12px; }
.gap-4     { gap: 16px; }
.g-between { justify-content: space-between; }
.hidden    { display: none !important; }
.text-center { text-align: center; }

/* ── BADGE ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-primary   { background: var(--primary); color: #fff; }
.badge-accent    { background: var(--accent);  color: #fff; }
.badge-secondary { background: var(--secondary); color: #fff; }

/* ── VEG / NON-VEG DOT ──────────────────────────────────────── */
.veg-dot, .nonveg-dot {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.veg-dot    { border-color: var(--accent); }
.veg-dot::after    { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.nonveg-dot { border-color: var(--danger); }
.nonveg-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon { font-size: 28px; }
.nav-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--primary); letter-spacing: -1px; }

.nav-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(252,128,25,.15); }
.nav-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; }
.nav-search input::placeholder { color: var(--text-light); }
.nav-search .search-icon { color: var(--text-muted); font-size: 18px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary); }
.nav-link .icon { font-size: 18px; }

.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 9px 18px; border-radius: var(--radius-xl);
  font-weight: 600; font-size: 14px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  animation: pop .3s cubic-bezier(.36,.07,.19,.97);
}
.dark-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); font-size: 18px;
  transition: background var(--transition), transform var(--transition);
}
.dark-toggle:hover { background: var(--border); transform: rotate(20deg); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 0 120px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(252,128,25,.25) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 480px; }
.hero-eyebrow { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.hero-title { font-family: var(--font-display); font-size: clamp(32px,5vw,56px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero-title span { color: var(--primary); }
.hero-sub { font-size: 17px; color: #a0a0c0; margin-bottom: 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-xl);
  font-weight: 700; font-size: 15px;
  transition: all var(--transition);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(252,128,25,.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.3); color: #fff;
  padding: 13px 26px; border-radius: var(--radius-xl);
  font-weight: 600; font-size: 15px;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.stat { text-align: center; }
.stat-num  { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-label{ font-size: 12px; color: #a0a0c0; }
.hero-img-wrap { flex-shrink: 0; width: 380px; position: relative; }
.hero-img-wrap img { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(0,0,0,.4); animation: float 4s ease-in-out infinite; }

/* ── OFFER BANNERS ──────────────────────────────────────────── */
.offers { padding: 40px 0 0; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.offer-card {
  border-radius: var(--radius-md); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  color: #fff; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.offer-icon { font-size: 32px; }
.offer-title { font-weight: 700; font-size: 15px; }
.offer-sub   { font-size: 12px; opacity: .85; margin-top: 2px; }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title  { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.section-link   { color: var(--primary); font-weight: 600; font-size: 14px; transition: opacity var(--transition); }
.section-link:hover { opacity: .75; }

/* ── CATEGORY FILTER ────────────────────────────────────────── */
.categories { padding: 36px 0; }
.cat-strip   { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  transition: all var(--transition); cursor: pointer;
  user-select: none;
}
.cat-pill:hover  { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.cat-emoji { font-size: 18px; }

/* ── FOOD GRID ──────────────────────────────────────────────── */
.food-section { padding: 0 0 60px; }
.food-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 24px; }

/* ── FOOD CARD ──────────────────────────────────────────────── */
.food-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  animation: cardFadeIn .4s ease both;
}
.food-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.food-card-img   { position: relative; height: 200px; overflow: hidden; }
.food-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.food-card:hover .food-card-img img { transform: scale(1.08); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: .5px;
}
.fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.active { background: var(--danger); color: #fff; }

.food-card-body { padding: 16px; }
.food-card-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.food-name      { font-weight: 700; font-size: 15px; line-height: 1.3; flex: 1; }
.food-type      { flex-shrink: 0; }
.food-meta      { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rating-badge   {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
}
.food-time, .food-restaurant { font-size: 12px; color: var(--text-muted); }
.food-sep { color: var(--border); }
.food-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-footer { display: flex; align-items: center; justify-content: space-between; }
.food-price .current { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); }
.food-price .original { font-size: 13px; color: var(--text-light); text-decoration: line-through; margin-left: 4px; }
.add-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 8px 16px; border-radius: var(--radius-xl);
  font-size: 13px; font-weight: 700;
  transition: all var(--transition);
}
.add-btn:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--primary); border-radius: var(--radius-xl); overflow: hidden; }
.qty-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 18px; font-weight: 700; transition: background var(--transition); }
.qty-btn:hover { background: var(--primary-dark); }
.qty-num { width: 32px; text-align: center; font-weight: 700; font-size: 14px; color: var(--primary); background: var(--primary-light); height: 32px; display: flex; align-items: center; justify-content: center; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .25s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-lg);
}
.modal-img { width: 100%; height: 300px; object-fit: cover; }
.modal-body { padding: 24px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-title  { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.modal-close  { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface2); font-size: 20px; flex-shrink: 0; transition: all var(--transition); }
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-meta   { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.modal-desc   { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.modal-price .big { font-size: 26px; font-weight: 800; font-family: var(--font-display); color: var(--text); }
.modal-price .orig{ font-size: 14px; color: var(--text-light); text-decoration: line-through; margin-left: 6px; }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--secondary); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 260px; max-width: 340px;
  animation: toastIn .35s cubic-bezier(.34,1.56,.64,1);
  font-size: 14px; font-weight: 500;
}
.toast.removing { animation: toastOut .3s ease forwards; }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-success { border-left: 4px solid var(--accent); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-info    { border-left: 4px solid var(--primary); }

/* ── LOADING ────────────────────────────────────────────────── */
#loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.spinner { width: 52px; height: 52px; border: 5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-text { font-weight: 600; color: var(--text-muted); font-size: 15px; }

/* ── CART PAGE ──────────────────────────────────────────────── */
.page-wrap { padding: 40px 0 80px; }
.page-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 32px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.cart-items > * + * { margin-top: 16px; }
.cart-item {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface); border-radius: var(--radius-md);
  padding: 16px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-md); }
.cart-item-img { width: 88px; height: 88px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name  { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cart-item-rest  { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.cart-item-foot  { display: flex; align-items: center; gap: 20px; }
.cart-item-price { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--primary); }
.remove-btn { color: var(--danger); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius-sm); transition: background var(--transition); }
.remove-btn:hover { background: #ffeaea; }
.empty-cart { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 80px; margin-bottom: 20px; animation: bounce 2s ease infinite; }
.empty-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.empty-sub   { color: var(--text-muted); margin-bottom: 28px; }

/* ── ORDER SUMMARY CARD ─────────────────────────────────────── */
.order-summary {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 24px;
  position: sticky; top: 84px;
  box-shadow: var(--shadow-sm);
}
.summary-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.summary-row   { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 16px; padding-top: 12px; border-top: 1px dashed var(--border); margin-top: 8px; }
.summary-row.discount { color: var(--accent); }
.coupon-wrap { margin: 16px 0; display: flex; gap: 8px; }
.coupon-input { flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--surface2); color: var(--text); font-size: 13px; outline: none; transition: border-color var(--transition); }
.coupon-input:focus { border-color: var(--primary); }
.coupon-btn { background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; transition: background var(--transition); }
.coupon-btn:hover { background: var(--primary-dark); }
.checkout-btn {
  width: 100%; padding: 15px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-xl); font-weight: 700; font-size: 16px;
  margin-top: 16px; transition: all var(--transition);
  box-shadow: var(--shadow-primary);
}
.checkout-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(252,128,25,.45); }
.checkout-btn:disabled { background: var(--text-light); box-shadow: none; transform: none; cursor: not-allowed; }

/* ── CHECKOUT PAGE ──────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.form-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.form-card-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  background: var(--surface2); color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(252,128,25,.12); }
.payment-options { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-option {
  flex: 1; min-width: 120px; padding: 14px;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  text-align: center; cursor: pointer; transition: all var(--transition);
}
.pay-option:hover   { border-color: var(--primary); }
.pay-option.selected{ border-color: var(--primary); background: var(--primary-light); }
.pay-icon  { font-size: 24px; margin-bottom: 6px; }
.pay-label { font-size: 13px; font-weight: 600; }

/* ── TRACKING STEPS ─────────────────────────────────────────── */
.tracking-steps { display: flex; align-items: flex-start; gap: 0; margin: 24px 0; position: relative; }
.tracking-steps::before {
  content: ''; position: absolute; top: 18px; left: 18px; right: 18px;
  height: 2px; background: var(--border); z-index: 0;
}
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.step-dot { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all var(--transition); }
.step.done .step-dot   { border-color: var(--accent); background: var(--accent); color: #fff; }
.step.active .step-dot { border-color: var(--primary); background: var(--primary); color: #fff; animation: pulse 1.5s infinite; }
.step-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; max-width: 70px; line-height: 1.3; }
.step.done .step-label   { color: var(--accent); }
.step.active .step-label { color: var(--primary); }

/* ── LOGIN PAGE ─────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, #1a1a2e, #0f3460); }
.auth-card { background: var(--surface); border-radius: var(--radius-xl); padding: 40px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { font-size: 48px; display: block; margin-bottom: 10px; }
.auth-logo-text { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--primary); }
.auth-tabs { display: flex; margin-bottom: 28px; border-bottom: 2px solid var(--border); }
.auth-tab { flex: 1; padding: 12px; text-align: center; font-weight: 700; font-size: 15px; color: var(--text-muted); cursor: pointer; transition: color var(--transition); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }
.auth-btn { padding: 14px; border-radius: var(--radius-xl); background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; transition: all var(--transition); box-shadow: var(--shadow-primary); }
.auth-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.auth-divider { text-align: center; color: var(--text-light); font-size: 13px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.social-btns { display: flex; gap: 12px; }
.social-btn  { flex: 1; padding: 12px; border-radius: var(--radius-md); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; transition: all var(--transition); background: var(--surface); color: var(--text); }
.social-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ── PROFILE PAGE ───────────────────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
.profile-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; text-align: center; position: sticky; top: 84px; box-shadow: var(--shadow-sm); }
.avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 16px; border: 4px solid var(--primary-light); }
.profile-name  { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-email { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.profile-stats { display: flex; justify-content: space-around; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.p-stat-num   { font-size: 22px; font-weight: 800; font-family: var(--font-display); color: var(--primary); }
.p-stat-label { font-size: 11px; color: var(--text-muted); }
.profile-nav  { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.profile-nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--text-muted); transition: all var(--transition); cursor: pointer; }
.profile-nav-link:hover, .profile-nav-link.active { background: var(--primary-light); color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.order-history-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.order-history-item:hover { box-shadow: var(--shadow-md); }
.order-id { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.order-items-list { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.order-status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.status-delivered { background: #e8f5e9; color: var(--accent); }
.status-processing{ background: #fff3e0; color: #f57c00; }
.status-cancelled { background: #fce8e8; color: var(--danger); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--secondary); color: #a0a0b8; padding: 48px 0 24px; margin-top: auto; }
[data-theme="dark"] .footer { background: #0d0d1a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: #7a7a96; margin-bottom: 20px; max-width: 260px; line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--primary); }
.footer-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: #7a7a96; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.footer-socials { display: flex; gap: 12px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background var(--transition); }
.social-icon:hover { background: var(--primary); }

/* ── KEYFRAME ANIMATIONS ────────────────────────────────────── */
@keyframes fadeIn    { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp   { from { opacity:0; transform:translateY(40px) } to { opacity:1; transform:translateY(0) } }
@keyframes toastIn   { from { opacity:0; transform:translateX(80px) } to { opacity:1; transform:translateX(0) } }
@keyframes toastOut  { to   { opacity:0; transform:translateX(80px) } }
@keyframes spin      { to   { transform: rotate(360deg) } }
@keyframes pop       { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }
@keyframes float     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes pulse     { 0%,100%{box-shadow:0 0 0 0 rgba(252,128,25,.6)} 70%{box-shadow:0 0 0 10px rgba(252,128,25,0)} }
@keyframes bounce    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
@keyframes cardFadeIn{ from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-img-wrap { display: none; }
  .order-summary { position: static; }
}
@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-links .nav-link span { display: none; }
  .hero { padding: 60px 0 80px; }
  .food-grid { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .tracking-steps { gap: 0; }
}
@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .food-grid  { grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .offers-grid{ grid-template-columns: 1fr 1fr; }
  .cart-btn span { display: none; }
  .toast-container { bottom: 16px; right: 16px; left: 16px; }
}



/* ── MENU PAGE SPECIFICS ────────────────────────────────────── */
.menu-hero { background: linear-gradient(135deg,#282c3f,#1a1a2e); padding: 48px 0; }
.menu-hero-title { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 20px; }
.menu-search { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius-xl); padding: 10px 20px; max-width: 560px; }
.menu-search input { flex:1; border:none; outline:none; font-size:15px; background:transparent; }
.menu-search .s-icon { font-size: 20px; color: var(--text-muted); }
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px 0 0; }
.filter-pill { display:flex; align-items:center; gap:6px; padding:8px 16px; border-radius:var(--radius-xl); font-size:13px; font-weight:600; border:1.5px solid var(--border); background:var(--surface); color:var(--text-muted); cursor:pointer; transition:all var(--transition); user-select:none; }
.filter-pill:hover  { border-color:var(--primary); color:var(--primary); }
.filter-pill.active { background:var(--primary); border-color:var(--primary); color:#fff; }
.results-count { font-size: 14px; color: var(--text-muted); padding: 12px 0 20px; }
.no-results { text-align:center; padding:60px 20px; }
.no-results-icon  { font-size:60px; margin-bottom:16px; }
.no-results-title { font-size:20px; font-weight:700; margin-bottom:8px; }
.no-results-sub   { color:var(--text-muted); }


/* MOBILE MENU BUTTON */

.menu-toggle{
  display:none;
  font-size:28px;
  background:none;
  border:none;
  cursor:pointer;
}

/* MOBILE NAVBAR */

@media (max-width:768px){

  .menu-toggle{
    display:block;
  }

  .nav-search{
    display:none;
  }

  .nav-links{
    display:none;
    flex-direction:column;
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:white;
    padding:15px;
  }

  .nav-links a,
  .nav-links button{
    padding:10px 0;
  }

  .nav-links.active{
    display:flex;
  }

}

/* MOBILE NAV DROPDOWN */

@media (max-width:768px){

  .nav-links{
    display:none;
    flex-direction:column;
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    padding:20px;
    background:#ffffff;
    z-index:1000;
  }

  /* show menu when active */
  .nav-links.active{
    display:flex;
  }

  /* hide icons in mobile */
  .nav-links .icon{
    display:none;
  }

  /* text style */
  .nav-links a,
  .nav-links button{
    font-size:18px;
    font-weight:500;
    padding:12px 0;
    color:#222;
    text-decoration:none;
    border-bottom:1px solid #eee;
  }

}

/* DARK MODE MENU */

body.dark .nav-links{
  background:#1e1e1e;
}

body.dark .nav-links a,
body.dark .nav-links button{
  color:#ffffff;
  border-bottom:1px solid #333;
}

/* MOBILE NAV MENU TEXT ONLY */

@media (max-width:768px){

  .nav-links{
    display:none;
    flex-direction:column;
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:#ffffff;
    padding:15px;
    z-index:1000;
  }

  .nav-links.active{
    display:flex;
  }

  /* hide emoji icons */
  .nav-links .icon{
    display:none;
  }

  /* show text nicely */
  .nav-links a,
  .nav-links button{
    font-size:18px;
    padding:12px 0;
    color:#222;
    border-bottom:1px solid #eee;
  }

}

/* DARK MODE MOBILE MENU */

body.dark .nav-links{
  background:#1f1f1f;
}

body.dark .nav-links a,
body.dark .nav-links button{
  color:#ffffff;
  border-bottom:1px solid #333;
}

@media (max-width:768px){

  .nav-links{
    display:none;
    flex-direction:column;
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:#ffffff;
    padding:20px;
  }

  .nav-links.active{
    display:flex;
  }

  .nav-links a,
  .nav-links button{
    padding:12px 0;
    font-size:18px;
    color:#222;
    border-bottom:1px solid #eee;
  }

}

body.dark .nav-links{
  background:#1e1e1e;
}

body.dark .nav-links a,
body.dark .nav-links button{
  color:#fff;
  border-bottom:1px solid #333;
}