/* ==========================================================================
   MEAT WAY KINSHASA - MODERN RESTAURANT WEB APP
   Styles & Design System (Light / Night Mode)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Bebas+Neue&display=swap');

/* --- Root Variables & Theme Tokens --- */
:root {
  /* Brand Identity Colors */
  --primary-red: #D91A2A;
  --primary-red-hover: #BF1524;
  --primary-red-glow: rgba(217, 26, 42, 0.35);
  --primary-red-light: #FEE2E2;

  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.4);
  --accent-gold-light: #FEF3C7;

  --halal-green: #10B981;
  --halal-green-bg: rgba(16, 185, 129, 0.12);
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #20BD5A;

  /* LIGHT MODE (Default) */
  --bg-page: #F6F7FA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-subtle: #F3F4F6;
  --bg-input: #F9FAFB;
  --bg-hero-gradient: linear-gradient(135deg, #FFF1F2 0%, #FFFBEB 50%, #F6F7FA 100%);
  
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  --text-on-accent: #FFFFFF;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-focus: var(--primary-red);
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 14px 30px rgba(217, 26, 42, 0.15);

  --header-bg: rgba(255, 255, 255, 0.88);
  --modal-backdrop: rgba(17, 24, 39, 0.7);
  --card-badge-bg: rgba(255, 255, 255, 0.95);

  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --container-max: 1440px;
  --header-h: 74px;
  
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* NIGHT MODE */
[data-theme="dark"] {
  --bg-page: #0C0E14;
  --bg-surface: #141822;
  --bg-surface-elevated: #1C2230;
  --bg-surface-subtle: #1E2536;
  --bg-input: #121620;
  --bg-hero-gradient: linear-gradient(135deg, #1A0D11 0%, #17150C 50%, #0C0E14 100%);
  
  --text-primary: #F9FAFB;
  --text-secondary: #CBD5E1;
  --text-tertiary: #64748B;
  --text-on-accent: #FFFFFF;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
  --shadow-hover: 0 14px 32px rgba(245, 158, 11, 0.2);

  --header-bg: rgba(20, 24, 34, 0.88);
  --modal-backdrop: rgba(0, 0, 0, 0.85);
  --card-badge-bg: rgba(20, 24, 34, 0.95);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Header Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.brand-logo-img:hover {
  transform: scale(1.08) rotate(-3deg);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  font-weight: 900;
}

[data-theme="dark"] .brand-title {
  color: #FFFFFF;
}

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

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 18px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  position: relative;
}

.action-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-red);
  color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.btn-header-cart {
  width: auto;
  padding: 0 16px;
  gap: 8px;
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
  font-weight: 700;
  font-size: 14px;
}

.btn-header-cart:hover {
  background: var(--primary-red-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-red-glow);
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-count-badge.bump {
  transform: scale(1.4);
}

/* Sound indicator small pill */
.sound-toggle-btn {
  font-size: 15px;
}

/* --- Re-styled Modern Controls Section (Sticky) --- */
.controls-section {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.controls-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Modern Pill Search Bar */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: var(--transition);
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 44px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-red);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 0 3px var(--primary-red-glow);
}

.search-input:focus ~ .search-icon {
  color: var(--primary-red);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  color: var(--text-tertiary);
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-clear-btn.active {
  display: flex;
}

/* Redesigned Category Scrolling Pills */
.categories-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 4px;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.category-tab-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-tab-btn.active {
  background: linear-gradient(135deg, #E11D2E 0%, #BA0C1A 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--primary-red-glow);
  transform: translateY(-1px);
}

/* --- Menu Grid & Category Sections --- */
.main-content {
  padding: 24px 0 80px;
}

.category-block {
  margin-bottom: 36px;
  scroll-margin-top: 130px;
}

.category-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
}

.category-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title-icon {
  font-size: 26px;
}

.category-title-text h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1;
}

.category-title-text p {
  display: none;
}

.category-items-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-tertiary);
  background: var(--bg-surface-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* --- 6 ITEMS PER ROW ON DESKTOP --- */
.menu-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

/* Individual Food Card (Compact & Modern) */
.menu-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-surface-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

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

.card-item-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-red);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px var(--primary-red-glow);
  z-index: 2;
}

.card-badge-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--card-badge-bg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  z-index: 2;
  white-space: nowrap;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-row {
  margin-bottom: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Combo Tag */
.card-combo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

[data-theme="dark"] .card-combo-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  width: 100%;
}

.card-price-value {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--primary-red);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.card-actions-row {
  width: 100%;
}

.card-add-btn {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 8px var(--primary-red-glow);
  transition: var(--transition);
  white-space: nowrap;
}

.card-add-btn:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

/* When item is in cart: Counter inside Card */
.card-qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  box-sizing: border-box;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  flex-shrink: 0;
}

.qty-btn:hover {
  background: var(--primary-red);
  color: #FFFFFF;
}

.qty-count {
  font-weight: 900;
  font-size: 13px;
  min-width: 20px;
  text-align: center;
  color: var(--text-primary);
}

/* --- Search Empty State --- */
.no-results-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-medium);
}

.no-results-icon {
  font-size: 50px;
  margin-bottom: 12px;
}

.no-results-box h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.no-results-box p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
}

/* --- Interactive Location & Info Section --- */
.location-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 50px 0;
  margin-top: 40px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.location-info h2 {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.location-info h2 span {
  color: var(--primary-red);
}

.location-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}

.location-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--primary-red);
}

.detail-text h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-text p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.location-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.phone-badge:hover {
  background: var(--whatsapp-green-hover);
  transform: translateY(-2px);
}

/* Map Card Representation */
.map-card-container {
  position: relative;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  height: 340px;
}

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

.map-overlay-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.map-badge-text strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}

.map-badge-text span {
  font-size: 11px;
  color: var(--text-secondary);
}

.map-btn-link {
  padding: 6px 14px;
  background: var(--primary-red);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.map-btn-link:hover {
  background: var(--primary-red-hover);
}

/* --- Floating Mobile Sticky Checkout Bar --- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-cart-preview {
  display: flex;
  flex-direction: column;
}

.mobile-cart-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mobile-cart-total {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--primary-red);
  line-height: 1;
}

.btn-mobile-checkout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 14px var(--primary-red-glow);
  white-space: nowrap;
}

.btn-bottom-whatsapp {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-full);
  background: var(--whatsapp-green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-bottom-whatsapp:hover,
.btn-bottom-whatsapp:active {
  background: var(--whatsapp-green-hover);
  transform: scale(1.08);
}

/* --- Drawer / Slide-Over Cart --- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 45px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cart-drawer.open {
  transform: translateX(0);
}

/* Drawer Fixed Top Header */
.cart-drawer-header {
  flex-shrink: 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  z-index: 5;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header-title h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1;
}

.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.close-drawer-btn:hover {
  background: var(--primary-red);
  color: #FFFFFF;
}

/* Drawer Single Unified Scrollable Body */
.cart-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-medium);
}

.drawer-section-header .sec-icon {
  font-size: 17px;
}

.drawer-section-header h4 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-section-header h4 .req {
  color: var(--primary-red);
  font-size: 16px;
}

/* Items List (Expands naturally inside .cart-drawer-body) */
.cart-drawer-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-message {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary);
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-medium);
}

.cart-empty-icon {
  font-size: 44px;
  margin-bottom: 10px;
}

.cart-empty-message h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cart-empty-message p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Cart Item Row */
.cart-item-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  position: relative;
  align-items: flex-start;
  transition: var(--transition);
}

.cart-item-row:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.cart-item-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #FFF;
  border: 1px solid var(--border-light);
}

.cart-item-details {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 2px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--accent-gold-hover);
  font-weight: 700;
  margin-top: 2px;
}

.cart-item-combo {
  display: inline-block;
  font-size: 11px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  margin-top: 4px;
}

[data-theme="dark"] .cart-item-combo {
  background: rgba(217, 26, 42, 0.25);
  color: #FCA5A5;
}

.cart-item-notes {
  font-size: 11px;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.3;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--primary-red);
  font-weight: 800;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-mini-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-mini-qty-btn:hover {
  background: var(--primary-red);
  color: #FFF;
  border-color: var(--primary-red);
}

.cart-mini-qty-val {
  font-size: 14px;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
  color: var(--text-primary);
}

.cart-item-del-btn {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-left: 4px;
  padding: 4px;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
}

.cart-item-del-btn:hover {
  color: var(--primary-red);
  transform: scale(1.1);
}

/* --- Checkout Section inside the Drawer --- */
.cart-drawer-checkout-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 4px;
}

.cart-mode-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cart-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cart-mode-btn span.mode-icon {
  font-size: 20px;
}

.cart-mode-btn span.mode-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-mode-btn span.mode-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.cart-mode-btn:hover {
  border-color: var(--primary-red);
}

.cart-mode-btn.active {
  background: var(--primary-red-light);
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(186, 9, 19, 0.15);
}

.cart-mode-btn.active span.mode-title {
  color: var(--primary-red);
}

.cart-mode-btn.active span.mode-sub {
  color: var(--primary-red);
  opacity: 0.85;
}

[data-theme="dark"] .cart-mode-btn.active {
  background: rgba(217, 26, 42, 0.25);
}

[data-theme="dark"] .cart-mode-btn.active span.mode-title,
[data-theme="dark"] .cart-mode-btn.active span.mode-sub {
  color: #FCA5A5;
}

.drawer-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drawer-field-group label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.drawer-field-group label .req {
  color: var(--primary-red);
}

.drawer-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.drawer-input:focus {
  border-color: var(--primary-red);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(186, 9, 19, 0.12);
}

.drawer-input.input-error {
  border-color: var(--primary-red) !important;
  background: rgba(186, 9, 19, 0.05) !important;
  animation: shakeInput 0.35s ease;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.drawer-select {
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
}

/* Ligne WhatsApp Meat Way Selection */
.whatsapp-number-choice {
  display: flex;
  gap: 8px;
}

.phone-choice-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.phone-choice-pill.selected {
  border-color: var(--whatsapp-green);
  background: rgba(37, 211, 102, 0.12);
  color: #065F46;
  font-weight: 800;
}

[data-theme="dark"] .phone-choice-pill.selected {
  color: #34D399;
}

/* Cart Drawer Fixed Bottom Footer */
.cart-drawer-footer {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface-elevated);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
  z-index: 5;
}

[data-theme="dark"] .cart-drawer-footer {
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.35);
}

.cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-summary-line strong {
  font-weight: 800;
  color: var(--text-primary);
}

.cart-summary-line.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px dashed var(--border-medium);
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.cart-total-amount {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--primary-red);
}

.btn-proceed-checkout {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-proceed-checkout:hover {
  background: var(--whatsapp-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
}

.btn-proceed-checkout:active {
  transform: translateY(0);
}

/* --- Item Customization Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.modal-dialog {
  background: var(--bg-surface);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

/* Sticky close button that stays anchored at top right while scrolling/swiping */
.modal-close-btn {
  position: sticky;
  top: 12px;
  float: right;
  margin-right: 12px;
  margin-top: 12px;
  margin-bottom: -52px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border: 1.5px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-close-btn:hover,
.modal-close-btn:active {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
  transform: scale(1.08);
}

.modal-hero-img-wrap {
  width: 100%;
  height: 220px;
  background: var(--bg-surface-subtle);
  position: relative;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-body {
  padding: 22px;
}

.modal-item-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Customization Sections inside Modal */
.modal-option-group {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.modal-option-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-option-title span.badge-opt {
  font-size: 11px;
  background: var(--bg-surface-subtle);
  color: var(--text-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Radio / Variant Pill Selectors */
.pill-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.pill-option-label input[type="radio"] {
  display: none;
}

.pill-option-label.selected {
  background: var(--primary-red-light);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

[data-theme="dark"] .pill-option-label.selected {
  background: rgba(217, 26, 42, 0.2);
  color: #FCA5A5;
}

/* Combo Upgrade Toggle Box inside Modal */
.combo-toggle-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 18px;
  transition: var(--transition);
}

[data-theme="dark"] .combo-toggle-box {
  background: linear-gradient(135deg, #1E1A11 0%, #2A2111 100%);
  border-color: var(--accent-gold);
}

.combo-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.combo-toggle-info h4 {
  font-size: 15px;
  font-weight: 900;
  color: #B45309;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .combo-toggle-info h4 {
  color: #FBBF24;
}

.combo-toggle-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-red);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.combo-drink-select {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--accent-gold);
}

.combo-drink-select select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  outline: none;
}

/* Instructions field */
.notes-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  outline: none;
}

.notes-input:focus {
  border-color: var(--primary-red);
}

/* Modal Bottom Action Row (Sticky pinned at bottom of modal dialog) */
.modal-footer-row {
  position: sticky;
  bottom: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 14px 22px;
  margin: 18px -22px -22px -22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 70;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .modal-footer-row {
  background: var(--bg-surface-elevated);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
}

.modal-footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 4px 8px;
}

.modal-qty-control .qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-qty-control .qty-btn:hover {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
}

.modal-qty-control .qty-count {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-price-calc {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-align: right;
  white-space: nowrap;
}

.modal-price-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.modal-price-value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--primary-red);
  line-height: 1;
  white-space: nowrap;
}

.btn-confirm-add {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px var(--primary-red-glow);
  transition: var(--transition);
  cursor: pointer;
}

.btn-confirm-add:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-red-glow);
}

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

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

/* --- Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 50px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1380px) {
  .menu-cards-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

@media (max-width: 1150px) {
  .menu-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 950px) {
  .menu-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .brand-logo-img {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 20px;
  }

  .btn-header-cart .cart-text {
    display: none;
  }

  .btn-header-cart {
    padding: 0 12px;
  }

  .mobile-bottom-bar {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .menu-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .pill-options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 18px;
    letter-spacing: 0.8px;
  }

  .menu-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .card-body {
    padding: 8px 10px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-price-value {
    font-size: 17px;
  }

  .card-add-btn {
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .cart-drawer-body {
    padding: 14px 16px 20px;
    gap: 14px;
  }

  .cart-drawer-checkout-section {
    padding: 14px 12px;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog {
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    width: 100%;
    margin: 0;
  }

  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
