/* ==========================================================================
   KEBAB KAMAL - DIGITAL MENU STYLESHEET
   Design System: Premium Moroccan Fast-Casual & Charcoal Grill
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEMES
   -------------------------------------------------------------------------- */
:root {
  --font-main: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Cairo", "Plus Jakarta Sans", sans-serif;

  /* Dark Theme Palette (Default) */
  --bg-app: #0e0a08;
  --bg-body: #140f0c;
  --bg-surface: #1b1511;
  --bg-elevated: #241c16;
  --bg-card: rgba(27, 21, 17, 0.96);
  --bg-card-hover: #2a211a;
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-overlay: rgba(10, 7, 5, 0.85);

  --line: rgba(255, 220, 180, 0.09);
  --line-strong: rgba(255, 220, 180, 0.18);

  --ink: #fcfaf7;
  --ink-secondary: #d4c7b8;
  --ink-secondary-cardCount: #d4c7b8;
  --ink-muted: #9c8e7e;
  --ink-faint: #6c5f52;

  /* Brand Accents */
  --brand-flame: #ea580c;
  --brand-flame-hover: #f97316;
  --brand-gold: #f59e0b;
  --brand-gold-glow: rgba(245, 158, 11, 0.35);
  --brand-crimson: #e11d48;
  --brand-green: #10b981;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5);

  /* Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --trans-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-app: #f4efe8;
  --bg-body: #faf7f2;
  --bg-surface: #ffffff;
  --bg-elevated: #f2ece2;
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-card-hover: #fbf8f3;
  --bg-subtle: rgba(0, 0, 0, 0.04);
  --bg-overlay: rgba(20, 15, 12, 0.65);

  --line: rgba(70, 45, 25, 0.1);
  --line-strong: rgba(70, 45, 25, 0.2);

  --ink: #1e1713;
  --ink-secondary: #4a3e35;
  --ink-muted: #75675a;
  --ink-faint: #a69788;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-app);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

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

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

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Container */
.app-wrapper {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-body);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
}

@media (min-width: 900px) {
  .app-wrapper {
    max-width: 780px;
  }
}

/* --------------------------------------------------------------------------
   3. HERO & BRAND HEADER
   -------------------------------------------------------------------------- */
.hero-header {
  position: relative;
  padding: 18px 20px 24px;
  background: linear-gradient(180deg, #1d1510 0%, var(--bg-body) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .hero-header {
  background: linear-gradient(180deg, #eae1d3 0%, var(--bg-body) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(234, 88, 12, 0.35) 0%, rgba(245, 158, 11, 0.15) 50%, transparent 75%);
  filter: blur(40px);
  border-radius: 50%;
}

.top-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  transition: var(--trans-fast);
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
  transform: translateY(-2px);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Brand Card */
.brand-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

@media (min-width: 540px) {
  .brand-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 20px;
  }
}

.brand-logo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--brand-gold);
  padding: 4px;
  box-shadow: var(--shadow-md), 0 0 20px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
  transition: transform var(--trans-smooth);
}

.brand-logo-wrap:hover {
  transform: scale(1.04) rotate(2deg);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.halal-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-arabic);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.brand-details {
  flex: 1;
}

.brand-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 540px) {
  .brand-title-row {
    justify-content: flex-start;
  }
}

.brand-title-row h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-title-row h1 {
  background: linear-gradient(135deg, #1a120c 40%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.star-icon {
  width: 13px;
  height: 13px;
  fill: var(--brand-gold);
  stroke: none;
}

.rating-count {
  font-weight: 500;
  opacity: 0.8;
  font-size: 0.72rem;
}

.arabic-tagline {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-gold);
  margin: 3px 0 6px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.brand-desc {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.feature-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}

@media (min-width: 540px) {
  .feature-pills {
    justify-content: flex-start;
  }
}

.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.feat-pill svg {
  width: 13px;
  height: 13px;
  color: var(--brand-gold);
}

.quick-contact-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
}

@media (min-width: 540px) {
  .quick-contact-bar {
    justify-content: flex-start;
  }
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--trans-fast);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.action-btn svg {
  width: 15px;
  height: 15px;
}

.action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-gold);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. STICKY FILTER & SEARCH BAR
   -------------------------------------------------------------------------- */
.sticky-nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 15, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="light"] .sticky-nav-bar {
  background: rgba(250, 247, 242, 0.94);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 0 14px;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.search-box:focus-within {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-glow);
}

.search-icon {
  color: var(--ink-muted);
  width: 17px;
  height: 17px;
  margin-right: 10px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--ink-muted);
}

.clear-search-btn {
  color: var(--ink-muted);
  font-size: 0.9rem;
  padding: 4px 6px;
  border-radius: 50%;
  transition: color var(--trans-fast);
}

.clear-search-btn:hover {
  color: var(--brand-crimson);
}

.groups-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.groups-pills::-webkit-scrollbar {
  display: none;
}

.group-pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: var(--trans-fast);
}

.group-pill:hover {
  color: var(--ink);
  border-color: var(--brand-gold);
}

.group-pill.active {
  background: linear-gradient(135deg, var(--brand-flame), #c2410c);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
}

/* --------------------------------------------------------------------------
   5. VUE 1 : GRILLE DES CATÉGORIES (ACCUEIL)
   -------------------------------------------------------------------------- */
.main-content {
  padding: 20px 16px 30px;
}

.section-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--brand-flame);
  border-radius: 2px;
}

.section-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Grille de cartes de catégories */
.categories-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 480px) {
  .categories-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-big-card {
  position: relative;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth), border-color var(--trans-smooth);
}

.cat-big-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(10, 7, 5, 0.72) 55%, rgba(10, 7, 5, 0.8) 100%);
  transition: background var(--trans-fast);
}

.cat-big-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-md), 0 0 20px rgba(234, 88, 12, 0.3);
  border-color: var(--brand-gold);
}

.cat-big-card:hover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(10, 7, 5, 0.6) 45%, rgba(10, 7, 5, 0.96) 100%);
}

.cat-big-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.cat-big-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-badge-pill {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand-gold);
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cat-big-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.cat-big-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-secondary-cardCount);
}

.cat-big-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: transform var(--trans-fast), background var(--trans-fast);
}

.cat-big-card:hover .cat-big-action {
  transform: translateX(4px);
  background: var(--brand-flame);
  border-color: var(--brand-flame);
}

.cat-big-action svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   6. VUE 2 : DÉTAIL D'UNE CATÉGORIE
   -------------------------------------------------------------------------- */
.detail-top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 15, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .detail-top-bar {
  background: rgba(250, 247, 242, 0.96);
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--trans-fast);
  box-shadow: var(--shadow-sm);
}

.detail-back-btn:hover {
  background: var(--brand-flame);
  color: #ffffff;
  border-color: var(--brand-flame);
  transform: translateX(-2px);
}

.detail-back-btn svg {
  width: 16px;
  height: 16px;
}

.detail-bar-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.detail-info-btn {
  width: 36px;
  height: 36px;
}

/* Sous-barre horizontale pour passer d'une catégorie à une autre */
.sub-category-bar-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
}

.sub-category-bar-wrap::-webkit-scrollbar {
  display: none;
}

.sub-category-bar {
  display: flex;
  gap: 6px;
}

.sub-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--trans-fast);
}

.sub-cat-pill:hover {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.sub-cat-pill.active {
  background: var(--brand-flame);
  color: #ffffff;
  border-color: var(--brand-flame);
  font-weight: 700;
}

/* Bannière Hero de la Catégorie */
.detail-hero-banner {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-shadow: inset 0 -40px 40px rgba(0, 0, 0, 0.7);
}

.detail-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(14, 10, 8, 0.6) 45%, rgba(14, 10, 8, 0.95) 100%);
}

[data-theme="light"] .detail-hero-banner::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(20, 15, 12, 0.5) 45%, rgba(20, 15, 12, 0.88) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
}

.detail-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-gold);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.detail-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.detail-hero-count {
  font-size: 0.82rem;
  color: var(--ink-secondary-cardCount);
  margin-top: 2px;
}

/* Conteneur des plats */
.detail-content {
  padding: 16px;
}

.detail-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Carte de Plat (Uniquement affichage : photo, titre, description, prix) */
.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.dish-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Vignette du plat */
.dish-img-wrap {
  position: relative;
  width: 95px;
  height: 95px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-smooth);
}

.dish-img-wrap:hover .dish-img {
  transform: scale(1.08);
}

.dish-zoom-icon {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  opacity: 0.85;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}

.dish-zoom-icon svg {
  width: 12px;
  height: 12px;
}

.dish-img-wrap:hover .dish-zoom-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Contenu du plat */
.dish-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.dish-desc {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin: 4px 0 8px;
}

/* Ligne de Prix Élégante */
.dish-pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.dish-single-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.price-number {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--brand-flame);
  letter-spacing: -0.3px;
}

[data-theme="light"] .price-number {
  color: #c2410c;
}

.price-dh {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-gold);
}

/* Tarifs multiples pour les Tacos (Normal / XL) */
.dish-dual-prices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.size-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.size-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-flame);
}

/* Note Qualité Pied de Page */
.quality-footer-card {
  margin-top: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.quality-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.quality-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.quality-text p {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. RÉSULTATS DE RECHERCHE
   -------------------------------------------------------------------------- */
.search-results-section {
  margin-top: 10px;
}

.search-results-header {
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.search-results-header strong {
  color: var(--brand-gold);
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.btn-reset-search {
  margin-top: 14px;
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-gold);
  transition: var(--trans-fast);
}

.btn-reset-search:hover {
  background: var(--brand-flame);
  color: #ffffff;
  border-color: var(--brand-flame);
}

/* --------------------------------------------------------------------------
   8. MODALS (INFOS & LIGHTBOX)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

@media (min-width: 580px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: sheetUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 580px) {
  .modal-sheet {
    border-radius: var(--radius-lg);
  }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-icon {
  font-size: 1.3rem;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--trans-fast);
}

.modal-close-btn:hover {
  background: var(--bg-card-hover);
  color: var(--ink);
}

.modal-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
}

.info-list-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand-gold);
  flex-shrink: 0;
}

.info-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.info-meta p {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.info-meta .sub-text {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.text-link, .phone-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.text-link:hover, .phone-link:hover {
  text-decoration: underline;
}

/* Lightbox Modal */
.lightbox-overlay {
  align-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
  position: relative;
  max-width: 500px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: zoomIn 0.25s ease-out;
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform var(--trans-fast);
}

.lightbox-close-btn:hover {
  transform: scale(1.1);
}

.lightbox-img-wrap {
  width: 100%;
  height: 330px;
  background: #000;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-caption {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lightbox-caption h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.lightbox-caption p {
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.lightbox-price-tag {
  align-self: flex-start;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: var(--brand-flame);
  font-size: 1.1rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.app-footer {
  margin-top: 30px;
  padding: 0 16px 24px;
}

.footer-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.footer-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.footer-tagline {
  font-family: var(--font-arabic);
  color: var(--brand-gold);
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer-copy {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--ink-faint);
  width: 100%;
}
