/* ==============================================
   سُفرة بني سويف — Main Stylesheet
   Theme: Warm Dark + Vibrant Orange
   ============================================== */


/* ─── CSS Variables ─────────────────────────────── */
:root {
  --primary:       #FF6B35;
  --primary-dark:  #e55a24;
  --primary-light: #ff8c5e;
  --primary-glow:  rgba(255, 107, 53, 0.25);

  --bg-dark:       #0f0702;
  --bg-card:       #1a0e06;
  --bg-card-2:     #221408;
  --bg-glass:      rgba(26, 14, 6, 0.85);

  --cream:         #FFF8F0;
  --cream-2:       #FFE8D0;
  --text-main:     #F5EEE6;
  --text-muted:    #9E8878;
  --text-dim:      #6B5244;

  --border:        rgba(255, 107, 53, 0.15);
  --border-hover:  rgba(255, 107, 53, 0.4);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --shadow-sm:  0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(255,107,53,0.2);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255,107,53,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,140,94,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--radius-full); }

/* ─── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #FFB347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout Container ──────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── NAVBAR ────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.navbar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.navbar-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.navbar-search input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 3rem 0.6rem 1.2rem;
  color: var(--text-main);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  direction: rtl;
}

.navbar-search input:focus {
  border-color: var(--primary);
  background: rgba(255,107,53,0.08);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.navbar-search input::placeholder { color: var(--text-dim); }

.navbar-search-btn {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  transition: var(--transition);
}
.navbar-search-btn:hover { color: var(--primary); }

.navbar-actions { display: flex; align-items: center; gap: 0.8rem; }

/* Hide mobile toggle by default, show on mobile */
.mobile-nav-toggle { display: none; }

/* ─── MOBILE NAV SIDEBAR ────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Sidebar slides in from the RIGHT (RTL) */
.mobile-nav-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 200;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav-sidebar.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card-2);
  flex-shrink: 0;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.mobile-nav-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-nav-content {
  padding: 1.5rem;
  flex: 1;
}

.mobile-search-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  color: var(--text-main);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  outline: none;
  direction: rtl;
  transition: var(--transition);
}
.mobile-search-form input:focus {
  border-color: var(--primary);
}
.mobile-search-form input::placeholder { color: var(--text-dim); }

.mobile-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  width: 100%;
  border: none;
}

.mobile-nav-btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
}
.mobile-nav-btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
}

.mobile-nav-btn-primary {
  background: linear-gradient(135deg, var(--primary), #FF8C5E);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.mobile-nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-nav {
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
}
.btn-nav-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-nav-outline:active {
  transform: translateY(0);
}

.btn-nav-primary {
  background: linear-gradient(135deg, var(--primary), #FF8C5E);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-nav-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px var(--primary-glow), var(--shadow-glow);
}
.btn-nav-primary:active {
  transform: translateY(-1px) scale(1.0);
}

/* ─── HERO ──────────────────────────────────────── */
.hero {
  position: relative;
  padding: 6.5rem 0 5.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 107, 53, 0.08);
}

.hero-river-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% -20%, rgba(255, 107, 53, 0.24) 0%, transparent 60%),
    radial-gradient(circle at 10% 60%, rgba(56, 189, 248, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 90% 60%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}

.hero-river-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
}

.quick-area-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  z-index: 5;
}

.quick-area-tag:hover, .quick-area-tag.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 140, 94, 0.3));
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* Hero Search */
.hero-search {
  display: flex;
  align-items: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  box-shadow: var(--shadow-glow);
  animation: fadeInUp 0.6s ease 0.3s both;
  transition: var(--transition);
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-glow);
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  direction: rtl;
}

.hero-search input::placeholder { color: var(--text-dim); }

.hero-search-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.8rem;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.hero-search-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat { text-align: center; }
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ─── SECTION HEADERS ───────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.section-link {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.section-link:hover { color: var(--primary-light); }

/* ─── FILTER CHIPS ──────────────────────────────── */
.filters-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.filters-scroll {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.filters-scroll::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.filter-chip:hover, .filter-chip.active {
  background: rgba(255,107,53,0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.filter-chip .chip-icon { font-size: 1rem; }

/* ─── RESTAURANT CARDS ──────────────────────────── */
.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.restaurant-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.restaurant-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.restaurant-card-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.restaurant-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.restaurant-card:hover .restaurant-card-cover img {
  transform: scale(1.06);
}

.restaurant-card-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,7,2,0.9) 0%, transparent 60%);
}

.restaurant-card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}

.badge {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.badge-featured {
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.25) 0%, rgba(255, 140, 0, 0.4) 100%);
  color: #FFB800;
  border-color: rgba(255, 184, 0, 0.3);
}

.badge-delivery {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(255, 140, 94, 0.4) 100%);
  color: #FF8C5E;
  border-color: rgba(255, 107, 53, 0.3);
}

.badge-open {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(21, 128, 61, 0.4) 100%);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.badge-closed {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.4) 100%);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.restaurant-card-logo {
  position: absolute;
  bottom: -20px;
  right: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  background: var(--bg-card-2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 5;
}

.restaurant-card:hover .restaurant-card-logo {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.restaurant-card-body {
  padding: 1.5rem 1rem 1rem;
  padding-top: 1.8rem;
}

.restaurant-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.restaurant-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.restaurant-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.restaurant-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: #FFB347;
}

.rating-stars span { color: var(--text-muted); font-size: 0.8rem; }

/* ─── FEATURED CAROUSEL ─────────────────────────── */
.featured-section {
  padding: 2rem 0;
}

.featured-scroll {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.featured-card:hover { transform: translateY(-3px); }

.featured-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(to top, rgba(15,7,2,0.95) 0%, rgba(15,7,2,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.featured-card-info { width: 100%; }
.featured-card-name { font-size: 1rem; font-weight: 700; }
.featured-card-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.featured-card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

/* ─── PAGINATION ─────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── RESTAURANT PAGE ───────────────────────────── */
.restaurant-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.restaurant-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark) 0%, rgba(15,7,2,0.6) 50%, transparent 100%);
}

.restaurant-info-bar {
  position: relative;
  margin-top: -80px;
  padding: 0 0 2rem;
}

.restaurant-info-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.restaurant-logo-big {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--border-hover);
  flex-shrink: 0;
}

.restaurant-name-big {
  font-size: 1.8rem;
  font-weight: 800;
}

.restaurant-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.detail-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-chip .chip-label { color: var(--text-main); font-weight: 600; }

/* ─── MENU ──────────────────────────────────────── */
.menu-section { padding: 2rem 0; }

.menu-category {
  margin-bottom: 2.5rem;
}

.menu-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.menu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  transition: var(--transition);
}

.menu-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.menu-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.menu-item-img-placeholder {
  width: 80px;
  height: 80px;
  background: var(--bg-card-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.menu-item-info { flex: 1; }
.menu-item-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.menu-item-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.menu-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}
.menu-item-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.menu-item-price span { font-size: 0.75rem; font-weight: 400; color: var(--text-dim); }

.badge-unavailable {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(239,68,68,0.15);
  color: #f87171;
  font-size: 0.75rem;
}

/* ─── CHATBOT WIDGET ────────────────────────────── */
.chatbot-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  direction: rtl;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--primary-glow), var(--shadow-md);
  transition: var(--transition);
  font-size: 1.5rem;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px var(--primary-glow);
}

.chatbot-pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
  animation: pulse-dot 2s infinite;
}

.chatbot-window {
  position: absolute;
  bottom: 75px;
  left: 0;
  right: auto;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 500px;
}

.chatbot-window.open {
  display: flex;
  animation: slideUpFade 0.3s ease;
}

.chatbot-header {
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.chatbot-header-info { display: flex; align-items: center; gap: 0.7rem; }
.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-name { font-weight: 700; font-size: 0.95rem; }
.chatbot-status { font-size: 0.75rem; opacity: 0.85; }

.chatbot-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}
.chatbot-close-btn:hover { background: rgba(255,255,255,0.35); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  overscroll-behavior: contain;
}

.chat-msg {
  max-width: 85%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeInMsg 0.3s ease;
}

.chat-msg-bot {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-end;
  color: var(--text-main);
}

.chat-msg-user {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 16px 16px 4px 16px;
  align-self: flex-start;
  color: #fff;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-end;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--text-dim);
  border-radius: var(--radius-full);
  animation: typing-bounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chatbot-footer {
  padding: 0.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
}

.chatbot-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  color: var(--text-main);
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
  direction: rtl;
}

.chatbot-input:focus {
  border-color: var(--primary);
  background: rgba(255,107,53,0.08);
}

.chatbot-input::placeholder { color: var(--text-dim); }

.chatbot-send-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
  flex-shrink: 0;
}
.chatbot-send-btn:hover { transform: scale(1.08); }
.chatbot-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Quick replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.6rem;
}

.quick-reply {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--primary-light);
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.quick-reply:hover {
  background: rgba(255,107,53,0.15);
  border-color: var(--primary);
}

/* ─── CHATBOT ACTION BAR ──────────────────────────── */
.chatbot-action-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1rem 0.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 107, 53, 0.04);
}

.chatbot-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--primary-light);
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.chatbot-action-btn:hover,
.chatbot-action-btn:focus {
  background: rgba(255, 107, 53, 0.25);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.chatbot-action-btn--offers {
  background: rgba(255, 180, 0, 0.1);
  border-color: rgba(255, 180, 0, 0.3);
  color: #FFB347;
}
.chatbot-action-btn--offers:hover {
  background: rgba(255, 180, 0, 0.22);
  border-color: #FFB347;
  color: #fff;
}

.chatbot-action-btn--images {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.chatbot-action-btn--images:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #4ade80;
  color: #fff;
}

.chatbot-action-btn--pdf {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.3);
  color: #f87171;
}
.chatbot-action-btn--pdf:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: #f87171;
  color: #fff;
}

.chatbot-offers-badge {
  background: #FFB347;
  color: #1a0e06;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 900;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─── CHATBOT PANEL (Menu / Offers) ──────────────── */
.chatbot-panel {
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  max-height: 390px;
}

.chatbot-panel-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 107, 53, 0.08);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chatbot-panel-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.chatbot-panel-back:hover { color: #fff; border-color: var(--primary); }

.chatbot-panel-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  flex: 1;
  text-align: center;
}

/* Category Tabs */
.chatbot-cat-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  flex-shrink: 0;
}
.chatbot-cat-tabs::-webkit-scrollbar { display: none; }

.chatbot-cat-tab {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.chatbot-cat-tab.active,
.chatbot-cat-tab:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Panel body */
.chatbot-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  overscroll-behavior: contain;
}

.chatbot-cat-products { display: none; flex-direction: column; gap: 0.6rem; }
.chatbot-cat-products.active { display: flex; }

/* Product Card in Bot */
.chatbot-product-card {
  display: flex;
  gap: 0.7rem;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.chatbot-product-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.1);
}

.chatbot-product-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
}

.chatbot-product-img-placeholder {
  width: 72px;
  height: 72px;
  background: rgba(255, 107, 53, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.chatbot-product-info {
  flex: 1;
  padding: 0.5rem 0.5rem 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.chatbot-product-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-product-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chatbot-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.chatbot-product-price {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
}

.chatbot-add-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chatbot-add-btn:hover { transform: scale(1.12); box-shadow: 0 2px 10px var(--primary-glow); }

/* Offers Panel Body */
.chatbot-panel-body--offers {
  gap: 0.8rem;
}

.chatbot-offer-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(26, 14, 6, 0.8));
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.chatbot-offer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #FFB347, var(--primary));
  background-size: 200% 100%;
  animation: shimmer 2.5s ease infinite;
}

.chatbot-offer-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.chatbot-offer-body {
  padding: 0.7rem;
}

.chatbot-offer-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #FFB347);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.chatbot-offer-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.chatbot-offer-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.chatbot-offer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}


/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.8rem;
  max-width: 280px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-right: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ─── EMPTY STATE ────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; color: var(--text-main); margin-bottom: 0.5rem; }

/* ─── LOADING ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card-2) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ─── TOAST NOTIFICATIONS ────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  animation: slideUpFade 0.3s ease;
}

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile First
   ═══════════════════════════════════════════════ */

/* ── Universal overflow guard ─────────────────── */
* { min-width: 0; }

/* ── Tablet & Mobile (≤ 768px) ────────────────── */
@media (max-width: 768px) {

  /* ── Navbar ───────────────────────────────── */
  .navbar-search  { display: none; }
  .navbar-actions { display: none; }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-hover);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
  }
  .mobile-nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  /* ── Container ────────────────────────────── */
  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* ── Hero ─────────────────────────────────── */
  .hero {
    padding: 3rem 0 2.5rem;
    overflow: hidden;
  }
  .hero-badge {
    max-width: calc(100vw - 2rem);
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    white-space: normal;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    padding: 0 0.5rem;
    word-break: break-word;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    padding: 0 0.5rem;
    word-break: break-word;
  }
  .hero-search {
    margin: 0 0 1.5rem;
    max-width: 100%;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
  }
  .hero-search-btn {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }
  .hero-stat-number { font-size: 1.4rem; }
  .hero-quick-areas {
    padding: 0 0.5rem;
  }

  /* ── Featured scroll ──────────────────────── */
  .featured-scroll {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .featured-card { width: 240px; }

  /* ── Restaurants grid ─────────────────────── */
  .restaurants-grid { grid-template-columns: 1fr; }

  /* ── Filter bar ───────────────────────────── */
  .filters-scroll {
    padding-left: 0;
    padding-right: 0;
  }

  /* ── Footer ───────────────────────────────── */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* ── Restaurant page ──────────────────────── */
  .restaurant-info-inner { flex-direction: column; }

  /* ── Reviews ──────────────────────────────── */
  .reviews-container { grid-template-columns: 1fr; }

  /* ── Chatbot ──────────────────────────────── */
  .chatbot-widget  { bottom: 1rem; left: 1rem; }
  .chatbot-window  {
    width: calc(100vw - 2rem);
    left: 0;
    right: 0;
    bottom: 75px;
  }

  /* ── Buttons in hero ──────────────────────── */
  #btn-get-proximity {
    max-width: calc(100vw - 2rem);
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

/* ─── SHOPPING CART & DRAWER ────────────────────── */
.btn-add-to-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.8rem;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}
.btn-add-to-cart:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-add-to-cart:active {
  transform: translateY(0);
}

.cart-float-btn {
  position: fixed;
  bottom: 2rem;
  left: 6.5rem; /* Offset from chatbot widget which is at left: 2rem */
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  cursor: pointer;
  display: none; /* Hidden by default, shown when items in cart */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3), var(--shadow-md);
  transition: var(--transition);
  font-size: 1.4rem;
  color: #fff;
}
.cart-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(34, 197, 94, 0.45);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-dark);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  left: -400px; /* Slides in from left */
  width: 400px;
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 10001;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  left: 0;
}
.cart-drawer-header {
  padding: 1.2rem 1.5rem;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-title {
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
}
.cart-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.cart-drawer-close:hover {
  color: var(--primary);
}

.cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Cart Items */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  gap: 0.8rem;
}
.cart-item-name {
  font-weight: 700;
  font-size: 0.88rem;
  flex: 1;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-2);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
}
.cart-qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cart-qty-val {
  font-weight: 700;
  font-size: 0.88rem;
  min-width: 16px;
  text-align: center;
}
.cart-item-price {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--primary);
}

/* Cart Form */
.cart-checkout-form {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  color: var(--text-main);
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
}

.cart-summary {
  background: var(--bg-card-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.3rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}
.summary-row.total .price {
  color: var(--primary);
}

.btn-checkout {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
  transition: var(--transition);
  margin-top: 0.5rem;
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.empty-cart-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.empty-cart-icon {
  font-size: 3rem;
}

@media (max-width: 500px) {
  .cart-drawer {
    width: 100%;
    left: -100%;
  }
  .cart-float-btn {
    left: 1.5rem;
    bottom: 7.5rem; /* Move above chatbot on mobile */
  }
}

/* ─── Reviews & Ratings ────────────────────────── */
.reviews-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.reviews-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.rating-huge-val {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stars-display {
  color: #FFB800;
  font-size: 1.2rem;
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.reviews-count-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.review-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.review-form-card .form-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}

.stars-selector {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  color: var(--text-dim);
  margin: 0.5rem 0;
}

.stars-selector i {
  cursor: pointer;
  transition: var(--transition);
}

.stars-selector i.hovered,
.stars-selector i.active {
  color: #FFB800;
}

.btn-submit-review {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.8rem;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.btn-submit-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.reviews-list {
  max-height: 480px;
  overflow-y: auto;
  padding-left: 0.5rem;
}

.reviews-list::-webkit-scrollbar {
  width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.3);
  border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.review-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-card-item:hover {
  border-color: var(--border-hover);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.review-author {
  font-weight: 700;
  color: var(--text-main);
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-card-stars {
  color: #FFB800;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  display: flex;
  gap: 0.2rem;
}

.review-comment-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.empty-reviews-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .reviews-container {
    grid-template-columns: 1fr;
  }
}

/* ─── OFFERS SECTION ─────────────────────────────── */
.offers-section {
  padding: 2rem 0;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.offer-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(26, 14, 6, 0.9) 100%);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #FFB347, var(--primary));
  background-size: 200% 100%;
  animation: shimmer 2.5s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.25);
}

.offer-card-img-wrap {
  height: 160px;
  overflow: hidden;
}

.offer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-card:hover .offer-card-img {
  transform: scale(1.05);
}

.offer-card-body {
  padding: 1.2rem;
}

.offer-discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #FFB347);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
}

.offer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.offer-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.offer-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.6rem;
}

.offer-meta-chip.offer-ends {
  color: #FFA07A;
  border-color: rgba(255, 160, 122, 0.3);
}

/* ─── MENU PDF / IMAGE BUTTONS ───────────────────── */
.btn-view-menu-pdf, .btn-view-menu-images {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-view-menu-pdf {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-view-menu-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
  color: #fff;
}

.btn-view-menu-images {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-view-menu-images:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* ─── MENU IMAGES LIGHTBOX ───────────────────────── */
.menu-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.menu-lightbox-overlay.active {
  display: flex;
}

.menu-lightbox {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.menu-lightbox-close {
  position: absolute;
  top: -3rem;
  left: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.menu-lightbox-close:hover {
  background: var(--primary);
}

.menu-lightbox-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-lightbox-prev, .menu-lightbox-next {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.menu-lightbox-prev:hover, .menu-lightbox-next:hover {
  background: var(--primary);
}

.menu-lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
}

.menu-lightbox-imgs {
  position: relative;
  max-width: 80vw;
  max-height: 75vh;
}

.menu-lightbox-img {
  display: none;
  max-width: 80vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.menu-lightbox-img.active {
  display: block;
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── CARD LOGO Z-INDEX FIX ──────────────────────── */
.restaurant-card-badge {
  z-index: 3;
}

.restaurant-card-logo {
  z-index: 2;
}

/* ─── DESIGN IMPROVEMENTS ────────────────────────── */
/* Better card hover glow */
.restaurant-card:hover {
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.4), 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(255, 107, 53, 0.15);
}

/* Featured card glow */
.featured-card:hover {
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.5), 0 8px 30px rgba(0,0,0,0.4);
}

/* Animated gradient border on featured offers */
.offer-card-no-img .offer-card-body {
  padding-top: 1.5rem;
}

/* ─── MOBILE RESPONSIVE OVERRIDES ────────────────── */
@media (max-width: 768px) {
  .restaurant-info-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.2rem 1.5rem;
    gap: 1.2rem;
    margin-top: -60px;
  }

  .restaurant-logo-big {
    width: 100px;
    height: 100px;
    margin-top: -70px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: var(--bg-card);
  }

  .restaurant-info-inner > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .restaurant-info-inner div[style*="display: flex"] {
    justify-content: center !important;
    gap: 0.6rem !important;
  }

  .restaurant-name-big {
    font-size: 1.5rem !important;
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .restaurant-details-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.6rem;
  }

  .detail-chip {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .chatbot-widget {
    left: 1rem;
    right: auto;
    bottom: 1.5rem;
    z-index: 9999;
  }
  
  .chatbot-window {
    width: calc(100vw - 2rem);
    height: calc(100vh - 120px);
    max-height: 85vh;
    left: 0;
    right: auto;
    bottom: 70px;
    overscroll-behavior: contain;
  }
}
