/* Afghan Eats - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #FF6B00;
  --orange-light: #FF8C38;
  --orange-dark: #E05A00;
  --orange-bg: #FFF4EC;
  --dark: #1A1A2E;
  --dark2: #16213E;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --light-bg: #F9FAFB;
  --border: #E5E7EB;
  --success: #22C55E;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
  --nav-height: 68px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}
body.rtl {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
  direction: rtl;
}

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: white; letter-spacing: -1px;
  flex-shrink: 0;
}
.nav-logo-text { font-weight: 800; font-size: 20px; color: var(--dark); }
.nav-logo-text span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-weight: 500; font-size: 15px; transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-lang {
  border: 1.5px solid var(--border); background: none; border-radius: 8px;
  padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-muted); transition: all .2s;
}
.btn-lang:hover, .btn-lang.active { border-color: var(--orange); color: var(--orange); background: var(--orange-bg); }
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--light-bg); text-decoration: none; font-size: 20px;
  transition: background .2s;
}
.cart-btn:hover { background: var(--orange-bg); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--orange); color: white;
  border-radius: 9px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ── PAGE WRAPPER ── */
.page-wrapper { min-height: calc(100vh - var(--nav-height)); }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 560px; overflow: hidden;
}
.hero-left {
  background: var(--white);
  padding: 72px 5% 72px 8%;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-bg); color: var(--orange);
  border-radius: 100px; padding: 6px 16px; font-size: 13px; font-weight: 700;
  margin-bottom: 24px; width: fit-content;
}
.hero-title {
  font-size: clamp(34px, 4vw, 54px); font-weight: 900; line-height: 1.1;
  color: var(--dark); margin-bottom: 20px; white-space: pre-line;
}
.hero-title span { color: var(--orange); }
.hero-subtitle {
  font-size: 17px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 36px; max-width: 480px;
}
.hero-search {
  display: flex; max-width: 520px;
  background: white; border: 2px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); transition: border-color .2s;
}
.hero-search:focus-within { border-color: var(--orange); }
.hero-search-icon { padding: 0 14px; display: flex; align-items: center; color: var(--text-muted); font-size: 18px; }
.hero-search input {
  flex: 1; border: none; outline: none; font-size: 15px;
  padding: 15px 0; font-family: inherit; color: var(--text); background: transparent;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search-btn {
  background: var(--orange); color: white; border: none;
  padding: 0 24px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.hero-search-btn:hover { background: var(--orange-dark); }
.hero-stats { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-size: 22px; font-weight: 800; color: var(--dark); }
.hero-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.hero-right {
  background: var(--orange); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-right::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; background: rgba(255,255,255,0.08); border-radius: 50%;
}
.hero-right::after {
  content: ''; position: absolute; bottom: -80px; left: -40px;
  width: 240px; height: 240px; background: rgba(255,255,255,0.06); border-radius: 50%;
}
.hero-food-img {
  width: 82%; max-width: 460px; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative; z-index: 1; transform: rotate(2deg);
  transition: transform .3s;
}
.hero-food-img:hover { transform: rotate(0deg) scale(1.02); }
.hero-float-tag {
  position: absolute; top: 28px; left: 28px; z-index: 2;
  background: white; border-radius: 12px;
  padding: 10px 16px; box-shadow: var(--shadow);
}
.hero-float-tag-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; display: inline-block; margin-right: 6px; }
.hero-float-tag-text { font-size: 13px; font-weight: 700; color: var(--dark); }
.hero-float-tag-sub { font-size: 11px; color: var(--text-muted); }

/* ── SECTION COMMONS ── */
section { padding: 64px 8%; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--dark); }
.section-sub { font-size: 16px; color: var(--text-muted); margin-top: 10px; }

/* ── CUISINE CATEGORIES ── */
.categories { background: var(--white); }
.cuisine-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cuisine-card {
  background: var(--light-bg); border-radius: var(--radius-lg);
  padding: 20px 12px; text-align: center;
  cursor: pointer; transition: all .25s;
  border: 2px solid transparent;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cuisine-card:hover { background: var(--orange-bg); border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow); }
.cuisine-emoji { font-size: 44px; line-height: 1; }
.cuisine-name { font-size: 13px; font-weight: 700; color: var(--dark); }

/* ── HOW IT WORKS ── */
.how-it-works { background: var(--light-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
  background: white; border-radius: var(--radius-lg);
  padding: 40px 28px; text-align: center;
  box-shadow: var(--shadow); position: relative;
  transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; background: var(--orange);
  color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.step-icon { font-size: 48px; margin-bottom: 18px; }
.step-title { font-size: 19px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── FEATURES ── */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 24px; transition: all .25s;
}
.feature-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px; background: var(--orange-bg);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.feature-title { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── PARTNER CTA ── */
.cta-section { background: var(--white); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-card {
  border-radius: var(--radius-lg); padding: 44px 36px;
  position: relative; overflow: hidden;
}
.cta-card-partner { background: var(--dark2); color: white; }
.cta-card-rider { background: var(--orange); color: white; }
.cta-card-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.cta-card-desc { font-size: 15px; opacity: 0.8; line-height: 1.6; margin-bottom: 24px; }
.cta-card-btn {
  display: inline-block; padding: 12px 24px;
  border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all .2s; cursor: pointer; border: none;
}
.cta-card-partner .cta-card-btn { background: var(--orange); color: white; }
.cta-card-partner .cta-card-btn:hover { background: var(--orange-dark); }
.cta-card-rider .cta-card-btn { background: white; color: var(--orange); }
.cta-card-rider .cta-card-btn:hover { background: var(--dark); color: white; }
.cta-card-emoji { font-size: 60px; position: absolute; right: 28px; bottom: 20px; opacity: 0.2; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 56px 8% 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .nav-logo-text { color: white; }
.footer-tagline { font-size: 14px; margin-bottom: 20px; }
.footer-contact p { font-size: 13px; margin-bottom: 6px; color: rgba(255,255,255,0.5); }
.footer-phone { display: block; color: white; font-weight: 600; font-size: 16px; text-decoration: none; margin-bottom: 8px; }
.footer-phone:hover { color: var(--orange); }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: white; border-radius: 8px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.footer-whatsapp:hover { opacity: 0.85; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ── RESTAURANT LIST PAGE ── */
.page-header {
  background: var(--light-bg); padding: 40px 8% 32px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.page-header p { font-size: 16px; color: var(--text-muted); }
.search-filter-bar {
  display: flex; gap: 12px; align-items: center;
  padding: 20px 8%; background: white;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1; min-width: 200px; display: flex; align-items: center;
  background: var(--light-bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0 14px; gap: 8px;
  transition: border-color .2s;
}
.search-input-wrap:focus-within { border-color: var(--orange); }
.search-input-wrap input {
  flex: 1; border: none; outline: none; font-size: 15px;
  padding: 12px 0; background: transparent; font-family: inherit;
}
.filter-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px; border-radius: 8px; border: 1.5px solid var(--border);
  background: none; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text-muted); transition: all .2s;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-bg); }
.restaurants-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; padding: 32px 8%;
}
.restaurant-card {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
  transition: all .25s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.restaurant-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.restaurant-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--light-bg); display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--text-muted);
}
.restaurant-card-img img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.restaurant-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.restaurant-card-name { font-size: 17px; font-weight: 700; color: var(--dark); }
.restaurant-status {
  padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.restaurant-status.open { background: #DCFCE7; color: #16A34A; }
.restaurant-status.closed { background: #FEE2E2; color: #DC2626; }
.restaurant-card-cuisine { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.restaurant-card-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.restaurant-card-meta span { display: flex; align-items: center; gap: 4px; }
.restaurant-card-btn {
  display: block; text-align: center; margin-top: 14px;
  background: var(--orange); color: white; border-radius: 10px;
  padding: 10px; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: background .2s;
}
.restaurant-card-btn:hover { background: var(--orange-dark); }

/* ── RESTAURANT DETAIL PAGE ── */
.restaurant-hero {
  height: 260px; background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; overflow: hidden; position: relative;
}
.restaurant-hero img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-info-bar {
  padding: 24px 8%; background: white;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px;
}
.restaurant-info-bar h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--dark); }
.restaurant-info-bar .cuisine-tag { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.restaurant-meta-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.meta-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--light-bg); border-radius: 8px;
  padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--text);
}
.restaurant-layout { display: grid; grid-template-columns: 1fr 360px; gap: 0; align-items: start; }
.menu-section { padding: 32px 8%; }
.menu-category { margin-bottom: 36px; }
.menu-category-title { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.menu-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.menu-item {
  background: white; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .2s;
}
.menu-item:hover { border-color: var(--orange); }
.menu-item-img {
  width: 80px; height: 80px; border-radius: 10px; object-fit: cover;
  background: var(--light-bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.menu-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.menu-item-info { flex: 1; }
.menu-item-name { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.menu-item-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.menu-item-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-popular { background: #FEF3C7; color: #D97706; }
.badge-veg { background: #DCFCE7; color: #16A34A; }
.menu-item-footer { display: flex; justify-content: space-between; align-items: center; }
.menu-item-price { font-size: 16px; font-weight: 800; color: var(--dark); }
.menu-item-price .currency { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-right: 2px; }
.btn-add {
  background: var(--orange); color: white; border: none;
  border-radius: 8px; padding: 7px 16px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.btn-add:hover { background: var(--orange-dark); }
.btn-add:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* ── CART SIDEBAR ── */
.cart-sidebar {
  position: sticky; top: calc(var(--nav-height) + 16px);
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); margin: 24px 24px 24px 0;
  overflow: hidden;
}
.cart-sidebar-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  font-size: 17px; font-weight: 800; color: var(--dark);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-sidebar-items { padding: 12px 20px; max-height: 340px; overflow-y: auto; }
.cart-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--dark); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--border);
  background: none; cursor: pointer; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.qty-btn:hover { border-color: var(--orange); color: var(--orange); }
.qty-num { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--dark); white-space: nowrap; }
.cart-sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-totals { margin-bottom: 14px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.cart-total-row.total { font-size: 16px; font-weight: 800; color: var(--dark); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; }
.btn-checkout {
  display: block; width: 100%; text-align: center;
  background: var(--orange); color: white; border: none;
  border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-checkout:hover { background: var(--orange-dark); }
.btn-checkout:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.cart-empty-state { padding: 32px 20px; text-align: center; color: var(--text-muted); }
.cart-empty-state p { font-size: 14px; margin-top: 8px; }

/* ── CART PAGE ── */
.cart-page { padding: 32px 8%; max-width: 800px; margin: 0 auto; }
.cart-page-items { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.cart-page-item { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cart-page-item:last-child { border-bottom: none; }
.cart-page-summary { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }

/* ── CHECKOUT PAGE ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 32px 8%; }
.checkout-form { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.checkout-form h2 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-label .required { color: var(--orange); margin-left: 2px; }
.form-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  color: var(--text); transition: border-color .2s; background: white;
}
.form-input:focus { outline: none; border-color: var(--orange); }
.form-input.error { border-color: #EF4444; }
.form-error { font-size: 12px; color: #EF4444; margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.payment-option {
  border: 2px solid var(--border); border-radius: 12px; padding: 16px;
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  transition: border-color .2s;
}
.payment-option.selected { border-color: var(--orange); background: var(--orange-bg); }
.payment-option-icon { font-size: 28px; }
.payment-option-text h4 { font-size: 15px; font-weight: 700; color: var(--dark); }
.payment-option-text p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.order-summary-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: calc(var(--nav-height) + 16px); }
.order-summary-card h3 { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.summary-restaurant { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 14px; }
.summary-item { display: flex; justify-content: space-between; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.summary-item .item-qty { color: var(--text-muted); }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; color: var(--dark); }

/* ── CONFIRMATION PAGE ── */
.confirm-page { max-width: 600px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.confirm-icon { font-size: 72px; margin-bottom: 24px; }
.confirm-title { font-size: 32px; font-weight: 900; color: var(--dark); margin-bottom: 10px; }
.confirm-subtitle { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; }
.confirm-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: left; margin-bottom: 24px; }
.confirm-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.confirm-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 14px; margin-bottom: 10px; gap: 16px; }
.confirm-row-label { color: var(--text-muted); flex-shrink: 0; }
.confirm-row-value { font-weight: 600; color: var(--dark); text-align: right; }
.confirm-order-num { font-size: 28px; font-weight: 900; color: var(--orange); text-align: center; padding: 16px; background: var(--orange-bg); border-radius: 12px; margin-bottom: 16px; }
.next-steps { background: var(--light-bg); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; text-align: left; }
.next-steps h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.next-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.next-step-num { width: 26px; height: 26px; background: var(--orange); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.next-step-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--orange); color: white; border: none;
  border-radius: 10px; padding: 13px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-secondary {
  background: none; color: var(--dark); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all .2s;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ── LOADING / ERROR STATES ── */
.loading-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.loading-spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--orange); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.empty-state p { font-size: 15px; color: var(--text-muted); }
.error-state { text-align: center; padding: 60px 24px; }
.error-state-icon { font-size: 48px; margin-bottom: 16px; }
.error-state h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.error-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ── SIMPLE PAGES ── */
.simple-page { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.simple-page h1 { font-size: 32px; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.simple-page .page-date { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.simple-page h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 28px 0 12px; }
.simple-page p { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 14px; }
.simple-page ul { padding-left: 20px; margin-bottom: 14px; }
.simple-page li { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 6px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.contact-card { background: var(--light-bg); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.contact-card-icon { font-size: 40px; margin-bottom: 12px; }
.contact-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.contact-card a { color: var(--orange); font-weight: 600; text-decoration: none; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cuisine-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .restaurant-layout { grid-template-columns: 1fr; }
  .cart-sidebar { margin: 0; border-radius: 0; border-left: none; border-right: none; position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
}
@media (max-width: 768px) {
  section { padding: 48px 5%; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 48px 5%; }
  .hero-right { min-height: 260px; }
  .hero-food-img { width: 75%; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cuisine-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 16px 5%; gap: 0; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .restaurants-grid { padding: 20px 5%; }
  .search-filter-bar { padding: 14px 5%; }
  .page-header { padding: 28px 5%; }
  .menu-section { padding: 20px 5%; }
  .restaurant-info-bar { padding: 18px 5%; }
  .checkout-layout { padding: 20px 5%; }
  .cart-page { padding: 20px 5%; }
  .confirm-page { padding: 32px 16px; }
}
@media (max-width: 480px) {
  .cuisine-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 18px; }
}

/* ── RTL ADJUSTMENTS ── */
body.rtl .hero-left { padding: 72px 8% 72px 5%; }
body.rtl .step-num { left: auto; right: 50%; transform: translateX(50%); }
body.rtl .cart-badge { right: auto; left: -4px; }
body.rtl .cta-card-emoji { right: auto; left: 28px; }
body.rtl .footer-col a { text-align: right; }
body.rtl .nav-links { text-align: right; }
body.rtl .hero-float-tag { left: auto; right: 28px; }
body.rtl .hero-float-tag-dot { margin-right: 0; margin-left: 6px; }
