/* ==========================================================================
   SOLO BOCADILLOS CHAMALI — MARRAKECH
   Brand Color Palette:
     Navy: #1B365D
     Deep Blue: #005A9C
     Sky Blue: #60C1E5 / #29B6F6
     Pale Blue: #E0F2FE / #F0F9FF
     Accent Food Amber: #FFB800 / #FF7A00
   ========================================================================== */

:root {
  --navy: #1B365D;
  --deep-blue: #005A9C;
  --sky-blue: #29B6F6;
  --sky-blue-hover: #0288D1;
  --pale-blue: #E0F2FE;
  --pale-blue-subtle: #F0F9FF;
  
  --accent-amber: #FFB800;
  --accent-orange: #FF7A00;
  --accent-red: #EF4444;
  --accent-green: #10B981;
  --accent-purple: #8B5CF6;

  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --white: #FFFFFF;

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-focus: #005A9C;

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

  --shadow-sm: 0 2px 4px rgba(27, 54, 93, 0.05);
  --shadow-md: 0 8px 20px -4px rgba(27, 54, 93, 0.08), 0 4px 6px -2px rgba(27, 54, 93, 0.04);
  --shadow-lg: 0 20px 30px -10px rgba(27, 54, 93, 0.14), 0 10px 10px -5px rgba(27, 54, 93, 0.05);
  --shadow-glow: 0 10px 25px rgba(0, 90, 156, 0.25);

  --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  
  --header-height: 80px;
  --top-bar-height: 38px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-latin);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* RTL Support for Arabic */
html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--sky-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Headers */
.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-sub-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--pale-blue);
  color: var(--deep-blue);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--deep-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 90, 156, 0.28);
}

.btn-primary:hover {
  background-color: #004578;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 90, 156, 0.35);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--deep-blue);
  color: var(--deep-blue);
  background-color: var(--pale-blue-subtle);
  transform: translateY(-2px);
}

.btn-sky {
  background-color: var(--pale-blue);
  color: var(--deep-blue);
  font-weight: 700;
}

.btn-sky:hover {
  background-color: #BAE6FD;
  color: var(--navy);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bar-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  font-weight: 700;
  opacity: 0.95;
}

.bar-phone-link:hover {
  color: var(--accent-amber);
}

/* Language Switcher */
.lang-switch-box {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px;
  border-radius: var(--radius-full);
}

.lang-btn {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.lang-btn:hover:not(.active) {
  color: var(--white);
}

/* Orders Panel Header Quick Button & Customer Order Tracker Button */
.btn-open-panel-quick {
  background: linear-gradient(135deg, #FF7A00 0%, #FFB800 100%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
  transition: transform var(--transition-fast);
}

.btn-open-panel-quick:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-track-order-quick {
  background: rgba(41, 182, 246, 0.15);
  color: var(--sky-blue);
  border: 1px solid rgba(41, 182, 246, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-track-order-quick:hover {
  background: var(--sky-blue);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(41, 182, 246, 0.3);
}

/* Footer Admin Access Link */
.footer-admin-access {
  margin: 0.6rem 0;
  display: flex;
  justify-content: center;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #64748B;
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.footer-admin-link:hover {
  color: var(--accent-amber);
  border-color: rgba(255, 184, 0, 0.4);
  background: rgba(255, 184, 0, 0.08);
}

.panel-badge-count {
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   MAIN HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(27, 54, 93, 0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Link */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(27, 54, 93, 0.15);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--sky-blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Desktop Navigation */
.desktop-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0.2rem;
  position: relative;
}

.desktop-nav .nav-link:hover {
  color: var(--deep-blue);
}

.desktop-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--deep-blue);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.desktop-nav .nav-link:hover::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Cart Trigger Button */
.btn-cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--pale-blue);
  color: var(--deep-blue);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-cart-trigger:hover {
  background: #BAE6FD;
  transform: translateY(-1px);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(255, 122, 0, 0.35);
  animation: bounceBadge 0.3s ease;
}

@keyframes bounceBadge {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.cart-total-preview {
  background: var(--deep-blue);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
}

/* WhatsApp Button */
.btn-whatsapp-header {
  background-color: #25D366;
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-header:hover {
  background-color: #20BD5A;
  color: var(--white);
  transform: translateY(-1px);
}

/* Mobile Toggle Hamburger */
.btn-mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  background: transparent;
  padding: 0;
}

.btn-mobile-nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  transition: visibility var(--transition-normal);
}

.mobile-nav-drawer.open {
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav-drawer.open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-pane {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

html[dir="rtl"] .mobile-drawer-pane {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

.mobile-nav-drawer.open .mobile-drawer-pane {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.btn-close-drawer {
  font-size: 2rem;
  color: var(--text-muted);
  line-height: 1;
}

.mobile-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0.5rem 0;
  display: block;
}

.mobile-drawer-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F7FB 100%);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(96, 193, 229, 0.25) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--pale-blue);
  color: var(--deep-blue);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 90, 156, 0.15);
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-subtext {
  font-size: 1.2rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  font-size: 1.8rem;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.2;
}

.trust-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Showcase Visual */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-showcase {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-sandwich-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
  padding: 1.5rem;
  transition: transform var(--transition-normal);
}

.hero-sandwich-frame:hover {
  transform: scale(1.02);
}

.hero-sandwich-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(27, 54, 93, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: floatAnim 4s ease-in-out infinite;
  z-index: 2;
}

.badge-top-right {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-avatar {
  font-size: 1.7rem;
  background: var(--pale-blue);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.badge-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-orange);
}

.hero-delivery-tag {
  margin-top: 1.25rem;
  text-align: center;
  background: var(--pale-blue-subtle);
  border: 1px dashed var(--sky-blue);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--deep-blue);
}

/* ==========================================================================
   POPULAR SANDWICHES SECTION (HIGHLIGHTS)
   ========================================================================== */
.popular-section {
  background-color: var(--white);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.popular-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.popular-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky-blue);
}

.pop-card-img-wrap {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #1B365D 0%, #005A9C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pop-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.popular-card:hover .pop-img {
  transform: scale(1.08);
}

.pop-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-amber);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pop-ribbon-grilled { background: #FF7A00; color: #FFF; }
.pop-ribbon-crispy { background: #10B981; color: #FFF; }
.pop-ribbon-royal { background: #8B5CF6; color: #FFF; }

.pop-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pop-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pop-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

.price-tag {
  background: var(--pale-blue);
  color: var(--deep-blue);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.pop-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pop-footer {
  margin-top: auto;
}

.btn-quick-add {
  width: 100%;
}

.plus-icon {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

/* ==========================================================================
   FULL MENU SECTION & CATEGORY TABS
   ========================================================================== */
.menu-section-wrapper {
  background-color: var(--bg-page);
}

.menu-search-box {
  max-width: 580px;
  margin: 0 auto 2.2rem auto;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
}

html[dir="rtl"] .search-input-wrap .search-icon {
  left: auto;
  right: 1.1rem;
}

.search-input-wrap input {
  width: 100%;
  padding: 0.95rem 2.8rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--deep-blue);
  box-shadow: 0 0 0 4px rgba(0, 90, 156, 0.12);
}

.btn-clear-search {
  position: absolute;
  right: 1.1rem;
  font-size: 1.3rem;
  color: var(--text-muted);
  display: none;
}

html[dir="rtl"] .btn-clear-search {
  right: auto;
  left: 1.1rem;
}

/* Category Tabs */
.category-tabs-scroll-container {
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  scrollbar-width: thin;
}

.category-tabs-list {
  display: flex;
  gap: 0.75rem;
  min-width: max-content;
  justify-content: center;
  padding: 0.25rem;
}

.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.cat-tab-btn:hover {
  border-color: var(--deep-blue);
  background: var(--pale-blue-subtle);
}

.cat-tab-btn.active {
  background: var(--deep-blue);
  color: var(--white);
  border-color: var(--deep-blue);
  box-shadow: 0 4px 12px rgba(0, 90, 156, 0.3);
}

.tab-emoji {
  font-size: 1.1rem;
}

.tab-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.cat-tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Menu Items Grid */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.menu-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.menu-card:hover {
  border-color: var(--sky-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.menu-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.menu-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--pale-blue);
  color: var(--deep-blue);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.menu-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.menu-card-price-pill {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--deep-blue);
  background: var(--pale-blue-subtle);
  border: 1px solid var(--pale-blue);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.menu-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Tacos Size Selector */
.tacos-size-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: var(--bg-page);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.tacos-size-btn {
  flex: 1;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.tacos-size-btn.active {
  background: var(--deep-blue);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.menu-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-add-item {
  width: 100%;
  background: var(--pale-blue);
  color: var(--deep-blue);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-add-item:hover {
  background: var(--deep-blue);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 90, 156, 0.2);
}

/* Original Flyer Banner */
.original-flyer-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #004578 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

.flyer-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.flyer-icon {
  font-size: 2.8rem;
  background: rgba(255, 255, 255, 0.12);
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.flyer-sub {
  color: var(--pale-blue);
  font-size: 0.95rem;
}

/* ==========================================================================
   DELIVERY SECTION (OFFICIAL RATES & CALCULATOR)
   ========================================================================== */
.delivery-section-wrapper {
  background-color: var(--white);
}

.delivery-grid-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.delivery-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.delivery-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
}

.delivery-tiers-list {
  /* border handled on .tier-item */
}

.tier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tier-item:last-child {
  border-bottom: none;
}

.tier-item:hover {
  background: var(--pale-blue-subtle);
  padding-inline-start: 1.8rem;
}

.tier-item.active-tier {
  background: #E0F2FE;
  border-inline-start: 5px solid var(--deep-blue);
  font-weight: 800;
}

.tier-price {
  background: var(--pale-blue);
  color: var(--deep-blue);
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.tier-time-badge {
  background: rgba(41, 182, 246, 0.15);
  color: #0284C7;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(41, 182, 246, 0.3);
}

.deliv-head-time {
  font-size: 0.85rem;
  color: var(--sky-blue);
  font-weight: 700;
}

.result-time-badge {
  background: var(--deep-blue);
  color: #FFF;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.calc-time-estimate-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

html[dir="rtl"] .calc-time-estimate-wrap {
  align-items: flex-start;
}

.cart-time-estimate-pill {
  margin-top: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #1E40AF;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.delivery-card-foot {
  padding: 1rem 1.5rem;
  background: var(--bg-page);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* Calculator Card */
.calc-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid var(--sky-blue);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}

.calc-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.calc-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.calc-field-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* GPS Location Button & Status in Checkout */
.btn-locate-gps {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-locate-gps:hover {
  background: #10B981;
  color: #FFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-locate-gps.locating {
  background: rgba(255, 184, 0, 0.2);
  color: #D97706;
  border-color: #F59E0B;
  cursor: wait;
}

.gps-status-feedback {
  margin-top: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.gps-status-feedback.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.gps-status-feedback.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.gps-status-feedback.info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* Quick Marrakech Neighborhood Chips */
.marrakech-quick-hoods {
  margin-top: 0.65rem;
  background: rgba(0, 90, 156, 0.04);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.hoods-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.hoods-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hood-chip {
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.hood-chip:hover {
  background: var(--sky-blue);
  color: var(--navy);
  border-color: var(--sky-blue);
  transform: translateY(-1px);
}

.hood-chip.active {
  background: var(--deep-blue);
  color: #FFF;
  border-color: var(--deep-blue);
}

.form-select, input[type="text"], input[type="tel"], input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition-fast);
}

.form-select:focus, input:focus {
  outline: none;
  border-color: var(--deep-blue);
}

.calc-result-box {
  background: var(--pale-blue);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.result-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.result-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--deep-blue);
}

.calc-hotline-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: #FFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.hotline-icon {
  font-size: 1.8rem;
}

.hotline-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hotline-phone {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--deep-blue);
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */
.why-us-section {
  background: var(--bg-page);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky-blue);
}

.why-icon-bubble {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  background: var(--pale-blue);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.why-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */
.reviews-section {
  background: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.review-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.stars-row {
  color: var(--accent-amber);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  letter-spacing: 2px;
}

.review-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  background: var(--deep-blue);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviewer-name {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 800;
}

.reviewer-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT & LOCATION SECTION
   ========================================================================== */
.contact-section {
  background: var(--bg-page);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  font-size: 2rem;
  background: var(--pale-blue);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.info-card-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

.map-frame {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

html[dir="rtl"] .map-badge-overlay {
  left: auto;
  right: 20px;
}

.map-badge-overlay strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}

.map-badge-overlay p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4.5rem 0 2rem 0;
}

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

.footer-brand-col .brand-name {
  color: var(--white);
}

.footer-about {
  margin: 1.1rem 0 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.social-links-row {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--sky-blue);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--accent-amber);
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-items a {
  color: var(--sky-blue);
  font-weight: 700;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-sub-note {
  margin-top: 0.4rem;
  font-size: 0.75rem;
}

/* ==========================================================================
   CART & CHECKOUT DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--white);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.2);
}

/* Ensure open state always takes precedence in both LTR and RTL */
.cart-drawer.open,
html[dir="rtl"] .cart-drawer.open {
  transform: translateX(0) !important;
}

/* Ensure mobile nav drawer open state always takes precedence in both LTR and RTL */
.mobile-nav-drawer.open .mobile-drawer-pane,
html[dir="rtl"] .mobile-nav-drawer.open .mobile-drawer-pane {
  transform: translateX(0) !important;
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-drawer-title-wrap h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-drawer-count {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.btn-close-cart {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-close-cart:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Cart Drawer Tabs (Current Cart vs Track My Order) */
.cart-drawer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(27, 54, 93, 0.06);
  border-bottom: 1px solid var(--border-color);
}

.drawer-tab-btn {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
  background: transparent;
}

.drawer-tab-btn:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.5);
}

.drawer-tab-btn.active {
  color: var(--deep-blue);
  background: var(--white);
  border-bottom-color: var(--deep-blue);
}

/* Order Tracker Pane Styles */
.track-order-pane {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

.track-search-bar {
  display: flex;
  gap: 0.5rem;
}

.track-order-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.tracker-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0 0.5rem 0;
  padding: 0 0.5rem;
}

.tracker-stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border-color);
  transform: translateY(-50%);
  z-index: 1;
}

.tracker-step {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 2.5px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
}

.tracker-step.completed {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--white);
}

.tracker-step.current {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 90, 156, 0.2);
  animation: pulseStep 2s infinite;
}

.tracker-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.tracker-labels span {
  width: 25%;
}

.tracker-labels span.active-label {
  color: var(--deep-blue);
  font-weight: 800;
}

/* Empty State */
.cart-empty-state {
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cart-empty-state .empty-icon {
  font-size: 3.5rem;
}

.cart-empty-state h4 {
  font-size: 1.25rem;
  color: var(--navy);
}

.cart-empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Active Cart Content */
.cart-active-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  gap: 0.75rem;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

.cart-item-details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-qty-ctrls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-qty {
  width: 26px;
  height: 26px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy);
}

.btn-qty:hover {
  background: var(--deep-blue);
  color: var(--white);
  border-color: var(--deep-blue);
}

.cart-item-qty {
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-weight: 800;
  color: var(--deep-blue);
  font-size: 1rem;
  min-width: 55px;
  text-align: right;
}

html[dir="rtl"] .cart-item-price {
  text-align: left;
}

.btn-remove-item {
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 4px;
}

.btn-remove-item:hover {
  color: var(--accent-red);
}

/* Order Settings (Delivery / Pickup) */
.cart-order-settings {
  background: var(--pale-blue-subtle);
  border: 1px solid var(--pale-blue);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.order-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.radio-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-chip input {
  display: none;
}

.radio-chip.active {
  background: var(--deep-blue);
  color: var(--white);
  border-color: var(--deep-blue);
}

/* Checkout Form */
.cart-checkout-form {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.form-subheading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* Totals Summary */
.cart-totals-summary {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.summary-grand-total {
  border-top: 1.5px dashed var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
}

.grand-total-price {
  color: var(--deep-blue);
}

.cart-drawer-footer {
  margin-top: auto;
}

.cart-guarantee-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

/* ==========================================================================
   ORDER CONFIRMATION MODAL & WHATSAPP TRIGGER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-dialog-lg {
  max-width: 720px;
}

.success-modal-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.success-badge-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.success-order-id {
  display: inline-block;
  background: var(--pale-blue);
  color: var(--deep-blue);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.success-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.success-receipt-summary {
  background: var(--bg-page);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}

html[dir="rtl"] .success-receipt-summary {
  text-align: right;
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #25D366;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  margin-bottom: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-whatsapp-large:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  color: var(--white);
}

/* ==========================================================================
   ORDERS MANAGEMENT PANEL (PANEL DES COMMANDES / لوحة إدارة الطلبات)
   ========================================================================== */
.orders-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0B1728;
  z-index: 500;
  overflow-y: auto;
  color: #F8FAFC;
}

.orders-panel-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem 1.5rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.panel-brand-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-brand-badge .icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #005A9C 0%, #29B6F6 100%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
}

.panel-sub {
  font-size: 0.85rem;
  color: #94A3B8;
}

.panel-header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-sound-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-sound-toggle.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

/* KPI Banner */
.panel-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}

.kpi-card {
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.kpi-revenue-card {
  background: linear-gradient(135deg, #1A365D 0%, #102A45 100%);
  border-color: rgba(255, 184, 0, 0.3);
}

.kpi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kpi-blue { background: rgba(41, 182, 246, 0.2); }
.kpi-yellow { background: rgba(255, 184, 0, 0.2); }
.kpi-cyan { background: rgba(6, 182, 212, 0.2); }
.kpi-purple { background: rgba(139, 92, 246, 0.2); }
.kpi-green { background: rgba(16, 185, 129, 0.2); }
.kpi-gold { background: rgba(255, 122, 0, 0.2); }

.kpi-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFF;
  line-height: 1.1;
}

.kpi-label {
  display: block;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
}

/* Panel Toolbar */
.panel-toolbar {
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.panel-status-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.status-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.status-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
}

.status-filter-btn.active {
  background: var(--sky-blue);
  color: var(--navy);
  font-weight: 800;
}

.panel-search-and-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-search-input {
  background: #0B1728;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #FFF;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  min-width: 240px;
}

.panel-search-input:focus {
  outline: none;
  border-color: var(--sky-blue);
}

/* Orders Grid Cards */
.orders-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.order-admin-card {
  background: #132238;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
}

.order-admin-card:hover {
  border-color: rgba(96, 193, 229, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.order-admin-card.pending-border {
  border-left: 5px solid var(--accent-amber);
}

html[dir="rtl"] .order-admin-card.pending-border {
  border-left: 1.5px solid rgba(255, 255, 255, 0.1);
  border-right: 5px solid var(--accent-amber);
}

.order-admin-card.kitchen-border {
  border-left: 5px solid var(--sky-blue);
}

html[dir="rtl"] .order-admin-card.kitchen-border {
  border-left: 1.5px solid rgba(255, 255, 255, 0.1);
  border-right: 5px solid var(--sky-blue);
}

.order-admin-card.delivering-border {
  border-left: 5px solid var(--accent-purple);
}

html[dir="rtl"] .order-admin-card.delivering-border {
  border-left: 1.5px solid rgba(255, 255, 255, 0.1);
  border-right: 5px solid var(--accent-purple);
}

.order-admin-card.delivered-border {
  border-left: 5px solid var(--accent-green);
}

html[dir="rtl"] .order-admin-card.delivered-border {
  border-left: 1.5px solid rgba(255, 255, 255, 0.1);
  border-right: 5px solid var(--accent-green);
}

.order-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.order-num-id {
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFF;
}

.order-time-ago {
  font-size: 0.78rem;
  color: #94A3B8;
}

.order-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.badge-status-pending { background: rgba(255, 184, 0, 0.2); color: #FBBF24; }
.badge-status-kitchen { background: rgba(41, 182, 246, 0.2); color: #38BDF8; }
.badge-status-delivering { background: rgba(139, 92, 246, 0.2); color: #C084FC; }
.badge-status-delivered { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.badge-status-canceled { background: rgba(239, 68, 68, 0.2); color: #F87171; }

.order-client-section {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.order-client-name {
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.25rem;
}

.order-client-contacts {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.client-quick-btn {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  font-weight: 700;
}

.client-quick-btn:hover {
  background: var(--sky-blue);
  color: var(--navy);
}

.client-quick-wa {
  background: rgba(37, 211, 102, 0.25);
  color: #25D366;
}

.client-quick-wa:hover {
  background: #25D366;
  color: #FFF;
}

.order-items-breakdown {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.order-line-item {
  display: flex;
  justify-content: space-between;
  color: #E2E8F0;
}

.order-notes-tag {
  background: rgba(255, 184, 0, 0.15);
  border: 1px dashed rgba(255, 184, 0, 0.4);
  color: #FCD34D;
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.order-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
  margin-top: auto;
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFF;
}

.order-grand-total {
  color: var(--accent-amber);
}

/* Stepper Status Buttons */
.order-status-stepper {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}

.stepper-btn {
  flex: 1;
  padding: 0.45rem 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  text-align: center;
  transition: all var(--transition-fast);
}

.stepper-btn:hover {
  background: var(--sky-blue);
  color: var(--navy);
}

.order-extra-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-print-ticket {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.btn-delete-order {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-left: auto;
}

html[dir="rtl"] .btn-delete-order {
  margin-left: 0;
  margin-right: auto;
}

/* ==========================================================================
   MANUAL ORDER MODAL
   ========================================================================== */
.manual-order-card {
  padding: 2rem;
  background: var(--white);
  color: var(--text-dark);
}

.modal-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-head-row h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.btn-close-modal {
  font-size: 2rem;
  color: var(--text-muted);
  line-height: 1;
}

.manual-add-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.manual-chosen-items {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  min-height: 80px;
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.manual-totals-preview {
  background: var(--pale-blue);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  text-align: right;
}

html[dir="rtl"] .manual-totals-preview {
  text-align: left;
}

/* ==========================================================================
   FLYER LIGHTBOX
   ========================================================================== */
.flyer-modal-card {
  background: var(--white);
  padding: 1.5rem;
}

.flyer-img-container {
  display: flex;
  justify-content: center;
  max-height: 75vh;
  overflow: auto;
}

.lightbox-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1000;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

html[dir="rtl"] .toast-notification {
  right: auto;
  left: 24px;
}

.toast-notification.show {
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE STICKY QUICK BAR
   ========================================================================== */
.mobile-sticky-quick-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  z-index: 90;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  justify-content: space-around;
  align-items: center;
}

.mob-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  gap: 2px;
  flex: 1;
  height: 100%;
}

.mob-quick-item .icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mob-cart-badge-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mob-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   PRINT ONLY STYLES (TICKET DE CAISSE THERMIQUE / FACTURE)
   ========================================================================== */
.print-only-container {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  .print-only-container, .print-only-container * {
    visibility: visible;
  }
  .print-only-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0 auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #000;
    padding: 10px;
    line-height: 1.4;
  }
  .print-ticket-head {
    text-align: center;
    border-bottom: 1px dashed #000;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .print-ticket-title {
    font-size: 16px;
    font-weight: bold;
  }
  .print-ticket-line {
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
  }
  .print-ticket-divider {
    border-top: 1px dashed #000;
    margin: 8px 0;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-subtext {
    margin: 0 auto 2rem auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-trust-row {
    justify-content: center;
  }
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .orders-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .btn-mobile-nav-toggle {
    display: flex;
  }
  .delivery-grid-wrapper, .contact-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .original-flyer-banner {
    flex-direction: column;
    text-align: center;
  }
  .flyer-banner-content {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }
  .top-announcement-bar {
    display: none;
  }
  .hero-headline {
    font-size: 2.35rem;
  }
  .popular-grid {
    grid-template-columns: 1fr;
  }
  .menu-items-grid {
    grid-template-columns: 1fr;
  }
  .hero-trust-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .mobile-sticky-quick-bar {
    display: flex;
  }
  body {
    padding-bottom: 65px;
  }
  .panel-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .orders-cards-grid {
    grid-template-columns: 1fr;
  }
  .panel-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-search-and-actions {
    flex-direction: column;
  }
  .panel-search-input {
    width: 100%;
    min-width: 0;
  }
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   FLOATING LIVE ORDER TRACKER BAR (CUSTOMER FACING)
   ========================================================================== */
.floating-live-tracker {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 85;
  background: #0F1E36;
  border: 1.5px solid var(--sky-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(41, 182, 246, 0.25);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

html[dir="rtl"] .floating-live-tracker {
  right: auto;
  left: 24px;
}

.floating-tracker-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-tracker-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--sky-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(41, 182, 246, 0.4);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(41, 182, 246, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(41, 182, 246, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(41, 182, 246, 0); }
}

.floating-tracker-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.floating-tracker-order-id {
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.5px;
}

.floating-tracker-status {
  font-size: 0.75rem;
  color: var(--accent-amber);
  font-weight: 700;
}

.floating-tracker-action-btn {
  background: var(--sky-blue);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.floating-tracker-action-btn:hover {
  background: #FFF;
  transform: translateX(2px);
}

html[dir="rtl"] .floating-tracker-action-btn:hover {
  transform: translateX(-2px);
}

@media (max-width: 640px) {
  .floating-live-tracker {
    bottom: 72px; /* Just above mobile bottom bar */
    right: 12px;
    left: 12px;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
  }
  .floating-tracker-inner {
    justify-content: space-between;
    width: 100%;
  }
}

/* ==========================================================================
   INDRIVE-STYLE LIVE ROUTE & FARE SIMULATOR
   ========================================================================== */
.indrive-sim-box {
  margin-top: 0.85rem;
  background: linear-gradient(145deg, #0B132B 0%, #1C2541 100%);
  border: 1px solid #3A506B;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  color: #F8FAFC;
  box-shadow: 0 10px 25px -5px rgba(11, 19, 43, 0.4), 0 0 15px rgba(0, 210, 106, 0.12);
  position: relative;
  overflow: hidden;
  animation: indriveFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes indriveFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.indrive-top-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.indrive-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.indrive-pill-tag {
  background: #00D26A;
  color: #0B132B;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 0 10px rgba(0, 210, 106, 0.4);
}

.indrive-title-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
}

.indrive-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #6EE7B7;
  font-weight: 700;
}

.indrive-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00D26A;
  box-shadow: 0 0 8px #00D26A;
  animation: pulseDot 1.4s infinite ease-in-out;
}

/* Road Trajectory Visual */
.indrive-trajectory-container {
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trajectory-points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.point-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.point-dot {
  font-size: 1.1rem;
}

.point-info strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
}

.point-info small {
  color: #94A3B8;
  font-size: 0.72rem;
}

/* Animated Road Track */
.trajectory-road-track {
  position: relative;
  height: 26px;
  background: #0F172A;
  border-radius: 13px;
  border: 1px solid #334155;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.road-track-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #475569 0, #475569 8px, transparent 8px, transparent 16px);
  animation: roadFlow 1.2s linear infinite;
}

@keyframes roadFlow {
  from { background-position: 0 0; }
  to { background-position: 16px 0; }
}

.road-track-scooter {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  filter: drop-shadow(0 0 6px rgba(0, 210, 106, 0.9));
  transition: left 0.9s cubic-bezier(0.34, 1.4, 0.64, 1), right 0.9s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: left, right;
  z-index: 2;
}

/* 3 InDrive Metric Cards */
.indrive-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.indrive-metric-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.45rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-sub {
  font-size: 0.66rem;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.metric-main-val {
  font-size: 0.95rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

.metric-note {
  font-size: 0.65rem;
  color: #38BDF8;
  margin-top: 0.2rem;
}

.indrive-metric-col.fare-col {
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.16) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(0, 210, 106, 0.4);
}

.indrive-metric-col.fare-col.is-free {
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.32) 0%, rgba(5, 150, 105, 0.2) 100%);
  border-color: #00D26A;
  box-shadow: 0 0 12px rgba(0, 210, 106, 0.25);
}

.indrive-metric-col.fare-col .metric-main-val {
  color: #00D26A;
}

.indrive-metric-col.fare-col .metric-note {
  color: #A7F3D0;
  font-weight: 700;
}

.indrive-bottom-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 210, 106, 0.12);
  border: 1px solid rgba(0, 210, 106, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.74rem;
  color: #A7F3D0;
  font-weight: 700;
}

.indrive-bottom-bar.free-badge {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #FDE68A;
}


/* ==========================================================================
   SMART CART UPSELL BOX (ONE-CLICK EXTRAS)
   ========================================================================== */
.cart-upsell-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px dashed var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.upsell-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 0.6rem;
}

.upsell-chips-list {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.upsell-chip-btn {
  background: var(--white);
  border: 1px solid #F59E0B;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.15);
  transition: all var(--transition-fast);
}

.upsell-chip-btn:hover {
  background: var(--deep-blue);
  color: var(--white);
  border-color: var(--deep-blue);
  transform: translateY(-1px);
}

.upsell-chip-price {
  color: #D97706;
  font-weight: 800;
}

.upsell-chip-btn:hover .upsell-chip-price {
  color: var(--accent-amber);
}
