/* 
---------------------------------------------------------
   BINFOOD PREMIUM DESIGN SYSTEM
   Modern UI Layer Over Argon
---------------------------------------------------------
*/

/* ── Global scroll smoothness ──────────────────────── */
html {
  scroll-behavior: smooth;
  /* Prevent the whole page from rubber-banding inside
     scrollable sub-containers on iOS */
  height: 100%;
}

:root {
  /* ── BinFood Palette v2 ── */
  --bf-primary:        #FF5232;           /* Coral Orange — CTA buttons & interactive icons ONLY */
  --bf-primary-dark:   #E04020;           /* Coral hover / pressed state */
  --bf-primary-glow:   rgba(255, 82, 50, 0.25); /* Box-shadow tint */

  --bf-indigo:         #1E224F;           /* Deep Indigo — navbar, headers, structural lines */
  --bf-indigo-dark:    #141740;           /* Indigo hover / active */

  --bf-secondary:      #1E224F;           /* Alias → Deep Indigo (structural) */
  --bf-secondary-dark: #141740;

  --bf-text:           #111827;           /* Charcoal — all typography */
  --bf-text-muted:     #6B7280;           /* Muted text */

  --bf-success-bg:     #E8F5E9;           /* Matcha Green — success messages & category highlights */
  --bf-success-text:   #2D6A4F;           /* Dark green text on matcha bg */

  --bf-neutral-50:     #FAFAFA;           /* Ivory — main page background */
  --bf-neutral-100:    #F0F1F5;           /* Light structural gray */
  --bf-neutral-200:    #E2E8F0;           /* Borders */

  --bf-accent:         #FF5232;           /* Accent = primary coral */
  --bf-surface:        rgba(255, 255, 255, 0.90);
  --bf-radius:         1.5rem;            /* 24px Modern App Radius */
  --bf-shadow:         0 8px 30px rgba(0, 0, 0, 0.05);

  /* Theme-aware properties (defaulting to Light Mode) */
  --bf-bg-page:        #FAFAFA;
  --bf-surface-glass:  rgba(255, 255, 255, 0.7);
  --bf-surface-card:   #ffffff;
  --bf-surface-input:  #ffffff;
  --bf-border-color:   #E2E8F0;
  --bf-placeholder-color: #94a3b8;
  --bf-pill-bg:        #f1f5f9;

  /* Cart drawer theme properties (Light Mode defaults) */
  --bf-cart-bg:        rgba(255, 255, 255, 0.98);
  --bf-cart-text:      #111827;
  --bf-cart-border:    rgba(0, 0, 0, 0.05);
  --bf-cart-item-bg:   #ffffff;
  --bf-cart-item-border: rgba(0, 0, 0, 0.05);
  --bf-cart-footer-card-bg: #f8fafc;
  --bf-cart-closebtn:  #6B7280;
}

/* Dark Mode Variables (automatically applied via media query or via .theme-dark class) */
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) {
    --bf-bg-page:        #0f172a;
    --bf-text:           #f8fafc;
    --bf-text-muted:     #94a3b8;
    --bf-surface-glass:  rgba(30, 41, 59, 0.7);
    --bf-surface-card:   rgba(30, 41, 59, 0.4);
    --bf-surface-input:  rgba(15, 23, 42, 0.5);
    --bf-border-color:   rgba(255, 255, 255, 0.08);
    --bf-shadow:         0 8px 32px rgba(0, 0, 0, 0.3);
    --bf-placeholder-color: #64748b;
    --bf-pill-bg:        rgba(30, 41, 59, 0.5);
    --bf-indigo:         #94a3b8;
    --bf-indigo-dark:    #cbd5e1;
    --bf-secondary:      #94a3b8;
    --bf-secondary-dark: #cbd5e1;

    --bf-cart-bg:        rgba(15, 23, 42, 0.95);
    --bf-cart-text:      #f8fafc;
    --bf-cart-border:    rgba(255, 255, 255, 0.08);
    --bf-cart-item-bg:   rgba(30, 41, 59, 0.4);
    --bf-cart-item-border: rgba(255, 255, 255, 0.06);
    --bf-cart-footer-card-bg: rgba(30, 41, 59, 0.6);
    --bf-cart-closebtn:  #94a3b8;
  }
}

html.theme-dark {
  --bf-bg-page:        #0f172a;
  --bf-text:           #f8fafc;
  --bf-text-muted:     #94a3b8;
  --bf-surface-glass:  rgba(30, 41, 59, 0.7);
  --bf-surface-card:   rgba(30, 41, 59, 0.4);
  --bf-surface-input:  rgba(15, 23, 42, 0.5);
  --bf-border-color:   rgba(255, 255, 255, 0.08);
  --bf-shadow:         0 8px 32px rgba(0, 0, 0, 0.3);
  --bf-placeholder-color: #64748b;
  --bf-pill-bg:        rgba(30, 41, 59, 0.5);
  --bf-indigo:         #94a3b8;
  --bf-indigo-dark:    #cbd5e1;
  --bf-secondary:      #94a3b8;
  --bf-secondary-dark: #cbd5e1;

  --bf-cart-bg:        rgba(15, 23, 42, 0.95);
  --bf-cart-text:      #f8fafc;
  --bf-cart-border:    rgba(255, 255, 255, 0.08);
  --bf-cart-item-bg:   rgba(30, 41, 59, 0.4);
  --bf-cart-item-border: rgba(255, 255, 255, 0.06);
  --bf-cart-footer-card-bg: rgba(30, 41, 59, 0.6);
  --bf-cart-closebtn:  #94a3b8;
}

/* Micro-interaction animations */
@keyframes cart-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-cart-bounce {
  animation: cart-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cart-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}
.animate-cart-pulse {
  animation: cart-pulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.animate-pulse-fast {
  animation: skeleton-pulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Button Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  top: calc(50% - 0.6rem);
  left: calc(50% - 0.6rem);
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Checkmark Animation */
.success-checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bf-success-bg);
  color: var(--bf-success-text);
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop-in {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}


body {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  background-color: var(--bf-bg-page) !important;
  color: var(--bf-text) !important;
  line-height: 1.6;
  /* iOS momentum scrolling on the main viewport */
  -webkit-overflow-scrolling: touch;
  /* Stop scroll from "leaking" into the browser chrome */
  overscroll-behavior-y: none;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  letter-spacing: -0.025em;
  font-weight: 700 !important;
  color: var(--bf-text);
}

.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.tracking-tight { letter-spacing: -0.05em !important; }

/* Micro-Transitions */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.95);
}

/* Glassmorphism Navigation */
.navbar-main {
  background: var(--bf-surface-glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bf-border-color) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
  margin-top: 10px;
  border-radius: var(--bf-radius);
  transition: all 0.3s ease;
}

/* Modern Hero Section */
.section-hero {
  border-radius: 0 0 calc(var(--bf-radius) * 2) calc(var(--bf-radius) * 2);
  overflow: hidden;
  box-shadow: var(--bf-shadow);
}

/* Premium Card Design */
.card {
  background-color: var(--bf-surface-card) !important;
  color: var(--bf-text) !important;
  border: none !important;
  border-radius: var(--bf-radius) !important;
  box-shadow: var(--bf-shadow) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* modern Card UI */
.card-modern {
    background: var(--bf-surface-card) !important;
    border-radius: var(--bf-radius);
    overflow: hidden;
    border: 1px solid var(--bf-border-color) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hover-scale {
    overflow: hidden;
    position: relative;
}

.hover-scale img {
    transition: transform 0.5s ease;
}

.card-modern:hover .hover-scale img {
    transform: scale(1.1);
}

.card-modern:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    transform: translateY(-5px);
}

/* Badge Rating */
.badge-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* City Overlay */
.city-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 60%;
    transition: all 0.3s ease;
}

.card-modern:hover .city-overlay {
    height: 100%;
}

/* Typography & Colors */
.text-slate { color: var(--bf-secondary) !important; }
.text-primary { color: var(--bf-primary) !important; }
.badge-soft-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--bf-primary);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Input Group Modern */
.input-group-modern {
    background: var(--bf-surface-card) !important;
    border: 1px solid var(--bf-border-color) !important;
    border-radius: var(--bf-radius);
    padding: 2px;
}

.input-group-modern .form-control {
    border: none !important;
    background: transparent !important;
    height: 54px !important;
    font-size: 1rem;
}

.input-group-modern .input-group-text {
    background: transparent !important;
    border: none !important;
    padding-left: 20px;
}

/* Primary Button Styling — Coral Orange CTAs ONLY */
.btn-primary {
  background-color: var(--bf-primary) !important;          /* #FF5232 Coral */
  border-color: var(--bf-primary) !important;
  box-shadow: 0 4px 14px 0 var(--bf-primary-glow) !important;
  border-radius: var(--bf-radius) !important;
  font-weight: 600 !important;
  color: #fff !important;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--bf-primary-dark) !important;     /* #E04020 */
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 82, 50, 0.32) !important;
}

/* Floating Animation */
.animate-float {
    animation: floating 3s ease-in-out infinite;
}



@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Floating +1 Interaction */
.bf-floating-plus-one {
    position: fixed;
    z-index: 10000;
    font-weight: 800;
    color: var(--bf-primary);
    font-size: 1.5rem;
    pointer-events: none;
    animation: drift-away 0.8s ease-out forwards;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@keyframes drift-away {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-30%, -100px) scale(1.5); opacity: 0; }
}

/* Skeleton Loading Refinement */
.bf-skeleton-pulse {
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.bf-skeleton-pulse::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* RTL Specific Fixes */
[dir="rtl"] .badge-rating {
    right: auto;
    left: 12px;
}

[dir="rtl"] .float-right {
    float: left !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

/* Badge Glow Animation */
.badge-glow {
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}



/* Restaurant Strip Refinement */
.strip figure {
  border-radius: var(--bf-radius) !important;
  margin-bottom: 15px !important;
}

.strip figure img {
  border-radius: var(--bf-radius);
}

.strip_info small {
  background-color: var(--bf-primary) !important;
  border-radius: 6px !important;
  text-transform: capitalize !important;
}

/* Smooth Navigation Profile Styling */
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--bf-secondary) !important;
  padding: 0.5rem 1rem !important;
}

/* Search Bar Modernization */
.form-group.id_restaurant, .form-control {
  background-color: var(--bf-surface-input) !important;
  color: var(--bf-text) !important;
  border-radius: var(--bf-radius) !important;
  border: 1px solid var(--bf-border-color) !important;
  padding: 0.8rem 1.2rem !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.form-control::placeholder {
  color: var(--bf-placeholder-color) !important;
}

.form-control:focus {
  border-color: var(--bf-primary) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

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

/* ============================================================
   THERMAL PRINTING STRATEGY (80mm & 58mm)
   Optimized for "Print & Cut" systems and paper economy.
   ============================================================ */
@media print {
    /* Surgical Hide: Only target the main UI wrappers to avoid suppressing the print container */
    .navbar, 
    .navbar-vertical, 
    .main-content, 
    .modal-backdrop, 
    .footer,
    .btn {
        display: none !important;
    }

    /* Show and isolate the print container at the top of the buffer */
    #thermal-print-container {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Paper Economy: Reset all margins */
    @page {
        size: 80mm auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        margin: 0;
        padding: 0;
        background: #fff !important;
    }

    .thermal-ticket {
        width: 100% !important;
        max-width: 100vw !important; /* Safety for mobile POS browsers */
        margin: 0;
        padding: 0 1mm;
        overflow: hidden;
        font-family: 'Courier New', Courier, monospace !important;
        font-size: 12pt;
        line-height: 1.2;
        color: #000 !important;
        background: #fff !important;
        /* Force High Contrast for scanning */
        filter: grayscale(1) contrast(300%) !important;
        -webkit-filter: grayscale(1) contrast(300%) !important;
    }

    .thermal-ticket.small {
        width: 58mm;
        font-size: 10pt;
    }

    .thermal-ticket hr {
        border-top: 1px dashed #000 !important;
        margin: 2mm 0;
    }

    .thermal-header {
        text-align: center;
        margin-bottom: 2mm;
    }

    .thermal-title {
        font-size: 1.5em;
        font-weight: bold;
        text-transform: uppercase;
    }

    .thermal-item-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1mm;
    }

    .thermal-item-qty {
        width: 15%;
        font-weight: bold;
    }

    .thermal-item-name {
        width: 60%;
        text-align: left;
    }

    .thermal-item-price {
        width: 25%;
        text-align: right;
    }

    .thermal-modifier {
        font-size: 0.9em;
        padding-left: 5mm;
        font-style: italic;
    }

    .thermal-kot-instruction {
        margin: 2mm 0;
        padding: 1mm;
        border: 2px dashed #000 !important;
        text-align: center;
        font-weight: bold;
        text-transform: uppercase;
    }

    .thermal-total-row {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        font-size: 1.2em;
        margin-top: 2mm;
        border-top: 1px solid #000;
        padding-top: 1mm;
    }

    .thermal-qr-container {
        text-align: center;
        margin: 5mm auto;
        padding: 5mm;
        background: #fff !important;
        width: fit-content;
        border: 1px solid #f0f0f0; /* Faint boundary for thermal quiet-zone */
    }

    .thermal-qr-container img,
    .thermal-qr-container svg {
        display: block;
        width: 35mm !important;
        height: 35mm !important;
        margin: 0 auto;
        border: 4mm solid #fff; /* Explicit QR Quiet Zone */
    }

    .thermal-footer {
        text-align: center;
        font-size: 0.8em;
        margin-top: 4mm;
        padding-bottom: 5mm; /* Buffer for cutter */
    }

    /* Mascot Path Styling */
    .thermal-mascot {
        width: 25mm;
        height: 25mm;
        margin: 0 auto 2mm;
    }
}

/* --- Front UX roadmap: menu, cart, discovery, a11y, RTL --- */

/* Focus (keyboard) */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.menu-item-card:focus-visible {
  outline: 2px solid var(--bf-primary);
  outline-offset: 2px;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .card-modern:hover {
    transform: none !important;
  }
}

/* Category nav: horizontal scroll + snap (mobile) */
.menu-category-nav {
  z-index: 1020;
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
}

.menu-category-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;   /* iOS momentum */
  scroll-snap-type: x mandatory;       /* mandatory = crisp snap, not just proximity */
  scrollbar-width: thin;
  padding-bottom: 4px;
  /* GPU layer — eliminates jank on scroll */
  will-change: scroll-position;
  /* Contain scroll within this element (don't propagate to page) */
  overscroll-behavior-x: contain;
  /* Smooth deceleration */
  scroll-behavior: smooth;
}

.menu-category-scroll::-webkit-scrollbar {
  height: 4px;
}

.menu-category-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.menu-category-pills .nav-link {
  white-space: nowrap;
  scroll-snap-align: start;
  border-radius: 999px !important;
}

.menu-category-anchor {
  scroll-margin-top: 130px; /* Offset for sticky nav + spacing */
}

/* Active Category Highlighting — Indigo structural, coral for selected */
.menu-category-pills .nav-link.active-category {
    background-color: var(--bf-indigo) !important;    /* Deep Indigo */
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(30, 34, 79, 0.25);
    transform: scale(1.05);
}

/* Menu item cards (vendor page) */
.menu-item-card {
  text-align: start;
  cursor: pointer;
  border: 1px solid var(--bf-neutral-100);
}

.menu-item-card--oos {
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}

.menu-item-card--oos.card-modern:hover {
  transform: none;
  box-shadow: var(--bf-shadow);
}

.menu-item-card__figure {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bf-neutral-100);
  border-radius: 1rem 1rem 0 0;
}

.menu-item-card__figure .menu-item-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
  border-radius: 1rem 1rem 0 0;
}

.menu-item-card__price-old {
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-inline-end: 0.35rem;
}

.menu-item-card__price-current {
  font-size: 1.05rem;
}

.menu-item-card__cta {
  pointer-events: none;
}

.menu-item-card .allergen img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Discovery: neutral frame behind lazy images (reduces perceived flash) */
.bf-media-frame,
.bf-rest-card-figure {
  background-color: var(--bf-neutral-100);
}

.bf-empty-state__svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.bf-filter-chips {
  gap: 0.35rem;
}

.bf-filter-chip {
  max-width: 14rem;
}

.bf-filter-clear {
  margin-inline-start: 0.25rem;
}

.btn_delivery_pickup:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Cart drawer: sidenav is the scroll container, content has natural height */
.sidenav-cart {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.sidenav-cart .offcanvas-menu-inner.cart-drawer-inner {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-top: 48px;
  box-sizing: border-box;
}

.sidenav-cart .minicart-content.cart-drawer-content {
  display: flex;
  flex-direction: column;
  overflow: visible;
  max-height: none;
}

.sidenav-cart .minicart-heading {
  flex-shrink: 0;
}

.sidenav-cart .minicart-heading > h2 {
  margin-bottom: 0;
  padding-bottom: 16px;
}

.sidenav-cart .cart-drawer-scroll {
  overflow: visible;
  padding-right: 4px;
}

.sidenav-cart .cart-drawer-footer {
  padding-top: 8px;
  margin-top: 0;
  border-top: 1px solid var(--bf-border-color) !important;
  background: var(--bf-cart-bg) !important;
}

.cart-line-item__inner.info-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  border-right: none !important;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 16px !important;
  padding-bottom: 12px;
}

.cart-line-item__thumb.square-box {
  width: 72px !important;
  min-width: 72px;
  min-height: 72px !important;
  height: 72px !important;
  margin-inline-end: 14px !important;
  margin-bottom: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-line-item__thumb .productImage {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.cart-line-item__main {
  flex: 1;
  min-width: 0;
}

.cart-line-item__actions .btn-cart-radius {
  margin-inline-end: 6px;
  margin-bottom: 4px;
}

/* RTL blocks have been removed in favor of logical inline properties */

/* ============================================================
   Front navbar — unified toolbar (language, search, account, cart)
   ============================================================ */

#navbar-main.bf-front-navbar {
  background: var(--bf-surface-glass) !important;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--bf-border-color) !important;
  box-shadow: var(--bf-shadow) !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  z-index: 1030;
}

#navbar-main.bf-front-navbar.custom-nav {
  background: var(--bf-surface-glass) !important;
  box-shadow: var(--bf-shadow) !important;
}

#navbar-main.bf-front-navbar .navbar-brand img {
  max-height: 40px;
  width: auto;
}

@media (min-width: 992px) {
  #navbar-main.bf-front-navbar .bf-nav-toolbar {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    column-gap: 0.25rem;
    align-items: center;
  }

  /* Sub-group: language · account · cart (split from yields / register) */
  #navbar-main.bf-front-navbar .bf-nav-toolbar > .bf-nav-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    margin-inline-start: 0.25rem;
    padding-inline-start: 0.75rem;
    border-inline-start: 1px solid #e2e8f0;
  }

  /* Vendor / single-row toolbar (no nested ul) */
  #navbar-main.bf-front-navbar ul.bf-front-toolbar--flat {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
  }
}

/* Delivery hint (home with location) */
.bf-nav-delivery {
  font-size: 0.8125rem;
  max-width: min(280px, 28vw);
}

.bf-nav-delivery__change {
  color: var(--bf-primary);
  font-weight: 600;
}

.bf-nav-delivery__change:hover {
  text-decoration: underline;
}

/* Text / icon links (register restaurant, social) */
#navbar-main.bf-front-navbar .bf-nav-ghost-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

#navbar-main.bf-front-navbar .bf-nav-ghost-link:hover {
  color: var(--bf-primary);
  background: #f1f5f9;
  text-decoration: none;
}

#navbar-main.bf-front-navbar .bf-nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.15rem;
  color: #64748b;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

#navbar-main.bf-front-navbar .bf-nav-icon-link:hover {
  color: var(--bf-primary);
  background: #eff6ff;
  text-decoration: none;
}

/* Shared button pill */
#navbar-main.bf-front-navbar .bf-nav-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

#navbar-main.bf-front-navbar .bf-nav-btn:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

#navbar-main.bf-front-navbar .bf-nav-btn:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

#navbar-main.bf-front-navbar .bf-nav-btn__icon,
#navbar-main.bf-front-navbar .bf-nav-btn .btn-inner--icon {
  margin: 0 !important;
  font-size: 0.95rem;
  line-height: 1;
}



/* Mobile "Ghost" Header */
@media (max-width: 991.98px) {
    .mini-header-scrolled .section-profile-cover {
        height: 140px !important;
        transition: height 0.3s ease-in-out;
    }
    
    .section-profile-cover {
        transition: height 0.3s ease-in-out;
    }

    .mini-header-scrolled .section-profile-cover img.bg-image {
        opacity: 0.7;
    }
    
    .mini-header-scrolled .title.white {
        margin-top: -60px !important;
    }

    .mini-header-scrolled .title {
        transition: all 0.3s ease-in-out;
        transform: translateY(-20px);
    }
    
    .mini-header-scrolled .title h1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.2rem !important;
        transition: font-size 0.3s ease-in-out;
    }
    
    .mini-header-scrolled .title p.display-4 {
        display: none !important;
    }

    .mini-header-scrolled .title p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .title h1, .title p {
        transition: all 0.3s ease-in-out;
    }
}

#navbar-main.bf-front-navbar .bf-nav-btn--lang {
  min-width: 3.25rem;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
}

#navbar-main.bf-front-navbar .bf-nav-btn--lang.dropdown-toggle::after {
  display: none;
}

#navbar-main.bf-front-navbar .bf-nav-lang-code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
}

#navbar-main.bf-front-navbar .bf-nav-account-name {
  display: inline-block;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* Cart — primary CTA (Coral Orange) */
#navbar-main.bf-front-navbar .bf-nav-btn--cart {
  position: relative;
  border-color: var(--bf-primary) !important;
  background: var(--bf-primary) !important;            /* Solid coral — no gradient */
  color: #fff !important;
  padding-right: 1rem !important;
  box-shadow: 0 4px 12px var(--bf-primary-glow) !important;
}

#navbar-main.bf-front-navbar .bf-nav-btn--cart:hover {
  border-color: var(--bf-primary-dark) !important;
  background: var(--bf-primary-dark) !important;       /* #E04020 */
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(255, 82, 50, 0.35) !important;
}

#navbar-main.bf-front-navbar .bf-nav-btn--cart .nav-link-inner--text {
  color: #fff !important;
}

#navbar-main.bf-front-navbar .bf-nav-cart-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 4px;
  font-size: 0.65rem;
  line-height: 1.15rem;
  border-radius: 999px;
  font-weight: 700;
}

/* Modern Mobile FAB Cart */
.modern-fab-cart {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4), 0 8px 10px -6px rgba(220, 38, 38, 0.1);
  border-radius: 50px;
}
.fab-inner {
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .modern-fab-cart {
    bottom: 1.5rem;
    right: 50%;
    transform: translateX(50%);
    width: 90%;
    max-width: 380px;
  }
}

/* +1 Toast Animation (floats up from FAB) */
.fab-plus-toast {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--bf-success-bg);    /* Matcha Green */
  color: var(--bf-success-text);        /* Dark green text */
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.3);
  transition: none;
}
.fab-plus-toast--animate {
  opacity: 1;
  animation: fab-toast-float 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fab-toast-float {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  30% {
    opacity: 1;
    transform: translateY(-20px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
}

/* Thumbnail Consistency (40x40 rounded-xl for list/compact views) */
.menu-thumb-consistent {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
}

[dir="rtl"] #navbar-main.bf-front-navbar .bf-nav-cart-badge {
  right: auto;
  left: -4px;
}

/* Dropdown menus from navbar */
#navbar-main.bf-front-navbar .bf-nav-dropdown {
  border-radius: 12px !important;
  padding: 0.35rem 0;
  margin-top: 0.5rem;
  min-width: 11rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}

#navbar-main.bf-front-navbar .bf-nav-dropdown__item,
#navbar-main.bf-front-navbar .bf-nav-dropdown .dropdown-item {
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  color: #334155;
}

#navbar-main.bf-front-navbar .bf-nav-dropdown__item:hover,
#navbar-main.bf-front-navbar .bf-nav-dropdown .dropdown-item:hover {
  background: #f1f5f9;
  color: var(--bf-primary);
}

/* Menu item search (Select2) in toolbar */
#navbar-main.bf-front-navbar .bf-nav-item-search {
  max-width: min(220px, 22vw);
}

#navbar-main.bf-front-navbar .itemsSearchHolder {
  margin-right: 0 !important;
  width: 100%;
}

#navbar-main.bf-front-navbar .itemsSearch .select2-container--default .select2-selection--single {
  height: 38px !important;
  line-height: 36px !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  background-color: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  box-shadow: none !important;
}

#navbar-main.bf-front-navbar .itemsSearch .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--bf-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

#navbar-main.bf-front-navbar .itemsSearch .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 28px !important;
  width: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 6px !important;
  background: #f1f5f9 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

@media (max-width: 991.98px) {
  #navbar-main.bf-front-navbar .bf-nav-item-search {
    max-width: none;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Collapsed (mobile) menu rows */
#navbar-main.bf-front-navbar .bf-nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem !important;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #334155;
  border-radius: 10px;
}

#navbar-main.bf-front-navbar .bf-nav-mobile-link:hover {
  background: #f8fafc;
  color: var(--bf-primary);
}

#navbar-main.bf-front-navbar .bf-nav-mobile-lang {
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.25rem;
}

/* ────────────────────────────────────────────────
   BINHOOK NAVBAR BRANDING
   ──────────────────────────────────────────────── */

/* "by BinHook" badge — sits inline next to the logo */
.bf-binhook-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 8px;
  background: #F0F1F5;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  line-height: 1;
  position: relative;
  top: 1px;              /* optical vertical alignment with logo */
}

.bf-binhook-badge__by {
  font-size: 0.68rem;
  font-weight: 500;
  color: #9CA3AF;
  letter-spacing: 0.01em;
}

.bf-binhook-badge__name {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1E224F;              /* Deep Indigo */
  letter-spacing: -0.01em;
  font-family: 'Outfit', 'Inter', sans-serif;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bf-binhook-badge__name:hover {
  color: #FF5232;              /* Coral on hover */
  text-decoration: none;
}

/* "Powered by BinHook" ghost link — far right of toolbar */
.bf-powered-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #9CA3AF;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.bf-powered-link:hover {
  color: #1E224F;
  background: #F0F1F5;
  text-decoration: none;
}

.bf-powered-link strong {
  color: #1E224F;
  font-weight: 800;
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.bf-powered-link:hover strong {
  color: #FF5232;
}

/* Coral dot separator before "Powered by" */
.bf-powered-link__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF5232;
  flex-shrink: 0;
  animation: bf-dot-pulse 2.4s ease-in-out infinite;
}

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

@media (max-width: 991.98px) {
  .bf-binhook-badge,
  .bf-powered-wrap { display: none !important; }
}

/* ────────────────────────────────────────────────
   MOBILE VIEW PREMIUM REDESIGN (max-width: 767.98px)
   ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  /* Scoped layout wrapper changes */
  body {
    background-color: var(--bf-bg-page) !important;
    color: var(--bf-text) !important;
  }
  
  .section {
    background-color: transparent !important;
  }
  
  .container-restorant {
    background-color: transparent !important;
    padding-bottom: 100px !important; /* spacing for bottom nav */
  }

  /* Theme-aware headings and text components on mobile */
  h1, h2, h3, h4, h5, h6, .title, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--bf-text) !important;
  }

  p, span, .text-muted, .small {
    color: var(--bf-text-muted) !important;
  }

  a {
    color: var(--bf-primary) !important;
  }

  /* Hide standard headers that clutter mobile */
  .section-profile-cover,
  .strip_info {
    display: none !important;
  }

  /* Override default white backdrops */
  .bg-white,
  .bg-neutral-50,
  .card-modern,
  .menu-item-card {
    background-color: var(--bf-surface-card) !important;
    color: var(--bf-text) !important;
  }

  /* Glassmorphic Mobile Header Card */
  .bf-mobile-header-card {
    background: var(--bf-surface-glass) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bf-border-color);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--bf-shadow);
  }

  .bf-mobile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .bf-mobile-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bf-indigo);
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .bf-mobile-header-info {
    display: flex;
    flex-direction: column;
  }

  .bf-mobile-header-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .bf-mobile-header-location {
    font-size: 0.78rem;
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
  }
  
  .bf-mobile-header-location i {
    color: var(--bf-primary) !important;
  }

  .bf-mobile-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .bf-mobile-header-lang {
    display: flex;
    gap: 6px;
    background: var(--bf-surface-input);
    padding: 3px 8px;
    border-radius: 30px;
    border: 1px solid var(--bf-border-color);
  }

  .bf-mobile-header-lang-btn {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bf-text-muted) !important;
    text-decoration: none;
    text-transform: uppercase;
  }

  .bf-mobile-header-lang-btn.active {
    color: var(--bf-text) !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 6px;
    border-radius: 20px;
  }

  /* Custom Search bar styling for mobile view */
  .bf-mobile-search-wrapper {
    margin-bottom: 20px;
  }

  .bf-mobile-search-bar {
    background: var(--bf-surface-glass) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--bf-border-color) !important;
    border-radius: 30px !important;
    padding: 4px 4px 4px 16px !important;
    display: flex;
    align-items: center;
    box-shadow: var(--bf-shadow) !important;
  }

  .bf-mobile-search-bar .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--bf-text) !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 0.95rem;
  }

  .bf-mobile-search-bar .form-control::placeholder {
    color: var(--bf-placeholder-color) !important;
  }

  .bf-mobile-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bf-primary) !important;
    border: none;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--bf-primary-glow);
    transition: transform 0.2s ease;
  }

  .bf-mobile-search-btn:active {
    transform: scale(0.92);
  }

  /* "Enregistrer une visite" Card */
  .bf-mobile-visit-card {
    background: var(--bf-surface-card) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--bf-border-color);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--bf-shadow);
  }

  .bf-mobile-visit-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .bf-mobile-visit-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--bf-text-muted) !important;
    border: 1px solid var(--bf-border-color);
    flex-shrink: 0;
  }

  .bf-mobile-visit-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bf-text) !important;
    margin-bottom: 2px;
  }

  .bf-mobile-visit-desc {
    font-size: 0.75rem;
    color: var(--bf-text-muted) !important;
    line-height: 1.4;
  }

  .bf-mobile-visit-form {
    display: flex;
    gap: 8px;
  }

  .bf-mobile-visit-input {
    flex: 1;
    background: var(--bf-surface-input) !important;
    border: 1px solid var(--bf-border-color) !important;
    border-radius: 12px !important;
    color: var(--bf-text) !important;
    height: 42px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }

  .bf-mobile-visit-input::placeholder {
    color: var(--bf-placeholder-color) !important;
  }

  .bf-mobile-visit-btn {
    height: 42px;
    width: 54px;
    background: var(--bf-primary) !important;
    border: none;
    border-radius: 12px;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--bf-primary-glow);
    transition: transform 0.2s ease;
  }

  .bf-mobile-visit-btn:active {
    transform: scale(0.95);
  }


  /* Category pills styling for mobile details menu */
  .menu-category-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 24px;
  }

  .menu-category-pills {
    background: transparent !important;
    padding: 0 !important;
    gap: 8px;
  }

  .menu-category-pills .nav-item-category {
    margin: 0 !important;
  }

  .menu-category-pills .nav-link {
    background: var(--bf-pill-bg) !important;
    border: 1px solid var(--bf-border-color) !important;
    color: var(--bf-text-muted) !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease !important;
  }

  /* Colored active pill backgrounds */
  .menu-category-pills .nav-link.active-category,
  .menu-category-pills .nav-link.active {
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) scale(1.02);
  }

  /* Color mappings for active pills */
  .menu-category-pills .nav-item:nth-child(4n+1) .nav-link.active-category,
  .menu-category-pills .nav-item:nth-child(4n+1) .nav-link.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important; /* Orange */
    border-color: #ea580c !important;
  }

  .menu-category-pills .nav-item:nth-child(4n+2) .nav-link.active-category,
  .menu-category-pills .nav-item:nth-child(4n+2) .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important; /* Blue */
    border-color: #2563eb !important;
  }

  .menu-category-pills .nav-item:nth-child(4n+3) .nav-link.active-category,
  .menu-category-pills .nav-item:nth-child(4n+3) .nav-link.active {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important; /* Rose Pink */
    border-color: #db2777 !important;
  }

  .menu-category-pills .nav-item:nth-child(4n+4) .nav-link.active-category,
  .menu-category-pills .nav-item:nth-child(4n+4) .nav-link.active {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important; /* Amber Yellow */
    border-color: #ca8a04 !important;
  }

  /* Two-column responsive card enhancements */
  .menu-item-card {
    background: var(--bf-surface-card) !important;
    border: 1px solid var(--bf-border-color) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 12px !important;
  }

  .menu-item-card__figure {
    border-radius: 18px 18px 0 0 !important;
    aspect-ratio: 1.1 / 1 !important;
  }

  .menu-item-card__img {
    border-radius: 18px 18px 0 0 !important;
  }

  /* Green Disponible Badge overlay */
  .menu-item-card__badge-dispo {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981 !important; /* Emerald green */
    color: #ffffff !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  }

  .menu-item-card__body {
    padding: 10px !important;
  }

  .menu-item-card__title {
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .menu-item-card__desc {
    font-size: 0.72rem !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    height: 2.8em !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px !important;
  }

  .menu-item-card__price-current {
    color: var(--bf-primary) !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }

  .menu-item-card__cta {
    display: none !important; /* Hide extra "Add" button to save space on mobile grid */
  }

  .menu-category-anchor h2 {
    color: var(--bf-text) !important;
    font-size: 1.1rem !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
  }

  /* Bottom Navigation Dock */
  .bf-mobile-bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 9999;
    background: var(--bf-surface-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bf-border-color) !important;
    border-radius: 30px;
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--bf-shadow) !important;
    padding: 0 8px;
  }

  .bf-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s ease;
    flex: 1;
    height: 100%;
  }

  .bf-mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
  }

  .bf-mobile-nav-item:active i {
    transform: scale(0.85);
  }

  .bf-mobile-nav-item.active {
    color: var(--bf-primary) !important;
  }

  /* Elevated Call Waiter centerpiece */
  .bf-mobile-nav-center {
    position: relative;
    top: -14px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bf-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px var(--bf-primary-glow), inset 0 2px 4px rgba(255,255,255,0.2);
    border: 4px solid #0f172a;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .bf-mobile-nav-center i {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
  }

  .bf-mobile-nav-center:active {
    transform: translateY(2px) scale(0.92);
  }

  /* Glowing animation rings */
  .bf-mobile-nav-center-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bf-primary);
    opacity: 0;
    pointer-events: none;
    animation: waiter-glow-pulse 2s infinite;
  }

  @keyframes waiter-glow-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
  }

  /* Floating Notification Toast */
  .bf-mobile-toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  }

  .bf-mobile-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  /* Navigation Item badge */
  .bf-mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: 18%;
    background: #ef4444;
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  /* Hide default floating waiter FAB on mobile */
  .fab-waiter {
    display: none !important;
  }
}

/* ────────────────────────────────────────────────
   MOBILE VIEW PREMIUM REDESIGN (max-width: 767.98px)
   ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  /* Scoped layout wrapper changes */
  body.mobile-theme-active {
    background-color: #0f172a !important; /* Deep dark blue slate background */
    color: #f8fafc !important;
  }
  
  .mobile-theme-active .section {
    background-color: transparent !important;
  }
  
  .mobile-theme-active .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Glassmorphic Mobile Header Card */
  .bf-mobile-header-card {
    background: rgba(30, 41, 59, 0.7) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  }

  .bf-mobile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .bf-mobile-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bf-indigo);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .bf-mobile-header-info {
    display: flex;
    flex-direction: column;
  }

  .bf-mobile-header-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .bf-mobile-header-location {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
  }
  
  .bf-mobile-header-location i {
    color: var(--bf-primary);
  }

  .bf-mobile-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .bf-mobile-header-lang {
    display: flex;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    padding: 3px 8px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .bf-mobile-header-lang-btn {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    text-transform: uppercase;
  }

  .bf-mobile-header-lang-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 6px;
    border-radius: 20px;
  }

  /* Custom Search bar styling for mobile view */
  .bf-mobile-search-wrapper {
    margin-bottom: 20px;
  }

  .bf-mobile-search-bar {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 30px !important;
    padding: 4px 4px 4px 16px !important;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  }

  .bf-mobile-search-bar .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #f8fafc !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 0.95rem;
  }

  .bf-mobile-search-bar .form-control::placeholder {
    color: #64748b !important;
  }

  .bf-mobile-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bf-primary) !important;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--bf-primary-glow);
    transition: transform 0.2s ease;
  }

  .bf-mobile-search-btn:active {
    transform: scale(0.92);
  }

  /* "Enregistrer une visite" Card */
  .bf-mobile-visit-card {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .bf-mobile-visit-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .bf-mobile-visit-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
  }

  .bf-mobile-visit-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 2px;
  }

  .bf-mobile-visit-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
  }

  .bf-mobile-visit-form {
    display: flex;
    gap: 8px;
  }

  .bf-mobile-visit-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    height: 42px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }

  .bf-mobile-visit-input::placeholder {
    color: #475569 !important;
  }

  .bf-mobile-visit-btn {
    height: 42px;
    width: 54px;
    background: var(--bf-primary) !important;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--bf-primary-glow);
    transition: transform 0.2s ease;
  }

  .bf-mobile-visit-btn:active {
    transform: scale(0.95);
  }


  /* Category pills styling for mobile details menu */
  .mobile-theme-active .menu-category-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 24px;
  }

  .mobile-theme-active .menu-category-pills {
    background: transparent !important;
    padding: 0 !important;
    gap: 8px;
  }

  .mobile-theme-active .menu-category-pills .nav-item-category {
    margin: 0 !important;
  }

  .mobile-theme-active .menu-category-pills .nav-link {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease !important;
  }

  /* Colored active pill backgrounds */
  .mobile-theme-active .menu-category-pills .nav-link.active-category,
  .mobile-theme-active .menu-category-pills .nav-link.active {
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) scale(1.02);
  }

  /* Color mappings for active pills */
  .mobile-theme-active .menu-category-pills .nav-item:nth-child(4n+1) .nav-link.active-category,
  .mobile-theme-active .menu-category-pills .nav-item:nth-child(4n+1) .nav-link.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important; /* Orange */
    border-color: #ea580c !important;
  }

  .mobile-theme-active .menu-category-pills .nav-item:nth-child(4n+2) .nav-link.active-category,
  .mobile-theme-active .menu-category-pills .nav-item:nth-child(4n+2) .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important; /* Blue */
    border-color: #2563eb !important;
  }

  .mobile-theme-active .menu-category-pills .nav-item:nth-child(4n+3) .nav-link.active-category,
  .mobile-theme-active .menu-category-pills .nav-item:nth-child(4n+3) .nav-link.active {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important; /* Rose Pink */
    border-color: #db2777 !important;
  }

  .mobile-theme-active .menu-category-pills .nav-item:nth-child(4n+4) .nav-link.active-category,
  .mobile-theme-active .menu-category-pills .nav-item:nth-child(4n+4) .nav-link.active {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important; /* Amber Yellow */
    border-color: #ca8a04 !important;
  }

  /* Two-column responsive card enhancements */
  /* Two-column responsive card enhancements */
  .mobile-theme-active .menu-item-card {
    position: relative !important;
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  .mobile-theme-active .menu-item-card:active {
    transform: scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .mobile-theme-active .menu-item-card__figure {
    position: relative !important;
    overflow: hidden !important;
    margin: 8px 8px 0 8px !important;
    border-radius: 14px !important;
    aspect-ratio: 1.25 / 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .mobile-theme-active .menu-item-card__img {
    border-radius: 14px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
  }

  /* Green Disponible Badge overlay */
  .mobile-theme-active .menu-item-card__badge-dispo {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(16, 185, 129, 0.9) !important; /* Emerald green with transparency */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  }

  .mobile-theme-active .menu-item-card__body {
    padding: 10px 10px 12px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
  }

  .mobile-theme-active .menu-item-card__title {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  .mobile-theme-active .menu-item-card__desc {
    font-size: 0.7rem !important;
    color: #94a3b8 !important;
    line-height: 1.35 !important;
    height: 2.7em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 10px !important;
  }

  .mobile-theme-active .menu-item-card__badge {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 3px 6px !important;
    margin-bottom: 6px !important;
    align-self: start !important;
  }

  .mobile-theme-active .menu-item-card__footer {
    margin-top: auto !important;
    padding-right: 32px !important; /* Keep space for floating circle button */
  }

  .mobile-theme-active .menu-item-card__price-current {
    color: var(--bf-primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
  }

  .mobile-theme-active .menu-item-card__price-old {
    font-size: 0.75rem !important;
    text-decoration: line-through !important;
    color: #64748b !important;
    margin-inline-end: 4px !important;
  }

  /* Reposition and style the Add button as a floating coral round button in bottom-right */
  .mobile-theme-active .menu-item-card__body > div.mt-3 {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: visible !important;
  }

  .mobile-theme-active .menu-item-card__cta {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    margin: 0 !important;
    z-index: 10 !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--bf-primary) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4) !important;
    font-size: 0 !important; /* Hide text label on mobile grid layout */
    transition: transform 0.2s ease, background-color 0.2s ease !important;
  }

  .mobile-theme-active .menu-item-card__cta i {
    font-size: 12px !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  .mobile-theme-active .menu-item-card__cta:active {
    transform: scale(1.15) !important;
    background-color: #dc2626 !important;
  }

  .mobile-theme-active .menu-category-anchor h2 {
    color: var(--bf-text) !important;
    font-size: 1.1rem !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
  }

  /* Bottom Navigation Dock */
  .bf-mobile-bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 9999;
    background: var(--bf-surface-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bf-border-color) !important;
    border-radius: 30px;
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--bf-shadow) !important;
    padding: 0 8px;
  }

  .bf-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none !important;
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s ease;
    flex: 1;
    height: 100%;
  }

  .bf-mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
  }

  .bf-mobile-nav-item:active i {
    transform: scale(0.85);
  }

  .bf-mobile-nav-item.active {
    color: var(--bf-primary);
  }

  /* Elevated Call Waiter centerpiece */
  .bf-mobile-nav-center {
    position: relative;
    top: -14px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bf-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px var(--bf-primary-glow), inset 0 2px 4px rgba(255,255,255,0.2);
    border: 4px solid #0f172a;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .bf-mobile-nav-center i {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
  }

  .bf-mobile-nav-center:active {
    transform: translateY(2px) scale(0.92);
  }

  /* Glowing animation rings */
  .bf-mobile-nav-center-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bf-primary);
    opacity: 0;
    pointer-events: none;
    animation: waiter-glow-pulse 2s infinite;
  }

  @keyframes waiter-glow-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
  }

  /* Floating Notification Toast */
  .bf-mobile-toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  }

  .bf-mobile-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  /* Navigation Item badge */
  .bf-mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: 18%;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  /* Hide default floating waiter FAB on mobile */
  #fab-waiter,
  .fab-waiter {
    display: none !important;
  }

  /* ============================================================
     MOBILE CART DRAWER GLASSMORPHIC REDESIGN (max-width: 767.98px)
     ============================================================ */
  .mobile-theme-active .sidenav-cart {
    background: var(--bf-cart-bg) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    color: var(--bf-cart-text) !important;
    border-left: 1px solid var(--bf-cart-border) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
    padding-top: 0 !important;
    height: 100% !important;
  }

  .mobile-theme-active .sidenav-cart .offcanvas-menu-inner.cart-drawer-inner {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 60px 20px 20px 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .mobile-theme-active .sidenav-cart .minicart-content.cart-drawer-content {
    overflow: hidden !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-scroll {
    flex: 1 !important;
    overflow-y: auto !important;
  }

  /* Mobile Search Suggestions Dropdown */
  .mobile-search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bf-cart-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bf-cart-border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
  }

  .mobile-search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--bf-cart-border);
  }

  .mobile-search-suggestion-item:last-child {
    border-bottom: none;
  }

  .mobile-search-suggestion-item:hover,
  .mobile-search-suggestion-item:active {
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-search-suggestion-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--bf-cart-item-border);
  }

  .mobile-search-suggestion-info {
    flex: 1;
    min-width: 0;
  }

  .mobile-search-suggestion-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bf-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-search-suggestion-price {
    font-size: 0.75rem;
    color: var(--bf-primary);
    font-weight: 700;
  }

  .mobile-theme-active .sidenav-cart .minicart-heading > h2 {
    color: var(--bf-cart-text) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    border-bottom: 1px solid var(--bf-cart-border) !important;
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;
  }

  .mobile-theme-active .sidenav-cart .closebtn {
    color: var(--bf-cart-closebtn) !important;
    font-size: 32px !important;
    top: 12px !important;
    right: 20px !important;
    transition: color 0.2s ease !important;
  }

  .mobile-theme-active .sidenav-cart .closebtn:hover,
  .mobile-theme-active .sidenav-cart .closebtn:active {
    color: var(--bf-primary) !important;
  }

  .mobile-theme-active .cart-line-item__inner.info-block {
    background: var(--bf-cart-item-bg) !important;
    border: 1px solid var(--bf-cart-item-border) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

  .mobile-theme-active .cart-line-item__thumb.square-box {
    border-radius: 12px !important;
    border: 1px solid var(--bf-cart-item-border) !important;
    overflow: hidden !important;
    margin-inline-end: 12px !important;
  }

  .mobile-theme-active .product-item_title {
    color: var(--bf-cart-text) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
  }

  .mobile-theme-active .product-item_quantity {
    color: var(--bf-text-muted) !important;
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
  }

  .mobile-theme-active .cart-line-item__actions .btn-cart-radius {
    background: var(--bf-surface-input) !important;
    border: 1px solid var(--bf-border-color) !important;
    color: var(--bf-text) !important;
    border-radius: 8px !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin-inline-end: 6px !important;
    transition: all 0.2s ease !important;
  }

  .mobile-theme-active .cart-line-item__actions .btn-cart-radius:hover,
  .mobile-theme-active .cart-line-item__actions .btn-cart-radius:active {
    background: var(--bf-primary) !important;
    border-color: var(--bf-primary) !important;
    color: #ffffff !important;
  }

  .mobile-theme-active .cart-line-item__actions .btn-cart-radius[aria-label="Remove"]:hover,
  .mobile-theme-active .cart-line-item__actions .btn-cart-radius[aria-label="Remove"]:active {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-footer {
    background: transparent !important;
    border-top: 1px solid var(--bf-cart-border) !important;
    padding-top: 16px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-footer .card {
    background: var(--bf-cart-footer-card-bg) !important;
    border: 1px solid var(--bf-cart-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    color: var(--bf-cart-text) !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-footer .card-body {
    padding: 12px 16px !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-footer .ammount {
    color: var(--bf-primary) !important;
    font-weight: 700 !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-footer .text-muted {
    color: var(--bf-text-muted) !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-actions a.text-muted {
    color: var(--bf-text-muted) !important;
    transition: color 0.2s ease !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-actions a.text-muted:hover {
    color: var(--bf-text) !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-actions .btn-primary {
    background: var(--bf-primary) !important;
    border-color: var(--bf-primary) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.2s ease !important;
  }

  .mobile-theme-active .sidenav-cart .cart-drawer-actions .btn-primary:active,
  .mobile-theme-active .sidenav-cart .cart-drawer-actions .btn-primary:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
  }

  .mobile-theme-active .sidenav-cart .cart-empty-cta .btn-outline-primary {
    color: var(--bf-primary) !important;
    border-color: var(--bf-primary) !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
  }

  .mobile-theme-active .sidenav-cart .cart-empty-cta .btn-outline-primary:active,
  .mobile-theme-active .sidenav-cart .cart-empty-cta .btn-outline-primary:hover {
    background: var(--bf-primary) !important;
    color: #ffffff !important;
  }
}

/* ============================================================
   GLOBAL DARK THEME OVERRIDES FOR UTILITY CLASSES
   ============================================================ */

/* Cover Image Title Overrides — Always white text on cover overlay (both light and dark theme) */
.section-profile-cover + section .title h1,
.section-profile-cover + section .title p,
.section-profile-cover + section .title span,
.section-profile-cover + section .title a,
.section-profile-cover + section .title i {
  color: #ffffff !important;
}

/* Sun & Moon display logic based on theme */
.theme-icon-light {
  display: none !important;
}
.theme-icon-dark {
  display: inline-block !important;
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-light) .theme-icon-light {
    display: inline-block !important;
  }
  html:not(.theme-light) .theme-icon-dark {
    display: none !important;
  }

  /* Skew Separator Color */
  html:not(.theme-light) .fill-white {
    fill: var(--bf-bg-page) !important;
  }

  html:not(.theme-light) .bg-white,
  html:not(.theme-light) .bg-neutral-50,
  html:not(.theme-light) .card-header.bg-white,
  html:not(.theme-light) .modal-content,
  html:not(.theme-light) .modal-header,
  html:not(.theme-light) .modal-body,
  html:not(.theme-light) .modal-footer,
  html:not(.theme-light) .card-header,
  html:not(.theme-light) .card-body,
  html:not(.theme-light) .card-footer {
    background-color: var(--bf-surface-card) !important;
    color: var(--bf-text) !important;
  }

  /* Modal details readability overrides */
  html:not(.theme-light) .modal-content h1,
  html:not(.theme-light) .modal-content h2,
  html:not(.theme-light) .modal-content h3,
  html:not(.theme-light) .modal-content h4,
  html:not(.theme-light) .modal-content h5,
  html:not(.theme-light) .modal-content h6,
  html:not(.theme-light) .modal-content p,
  html:not(.theme-light) .modal-content span,
  html:not(.theme-light) .modal-content div,
  html:not(.theme-light) .modal-content label,
  html:not(.theme-light) .modal-content strong,
  html:not(.theme-light) .modal-content small,
  html:not(.theme-light) .modal-content li,
  html:not(.theme-light) .modal-content a {
    color: var(--bf-text) !important;
  }

  html:not(.theme-light) .modal-content .text-muted,
  html:not(.theme-light) .modal-content p.description,
  html:not(.theme-light) .modal-content .heading-small.text-muted,
  html:not(.theme-light) .modal-content .heading-small.text-muted a {
    color: var(--bf-text-muted) !important;
  }

  /* Top Nav links in dark mode */
  html:not(.theme-light) #navbar-main .bf-nav-delivery__label,
  html:not(.theme-light) #navbar-main .bf-nav-delivery__value,
  html:not(.theme-light) #navbar-main .bf-nav-ghost-link,
  html:not(.theme-light) #navbar-main .bf-nav-icon-link,
  html:not(.theme-light) #navbar-main .nav-link,
  html:not(.theme-light) #navbar-main .dropdown-toggle {
    color: var(--bf-text) !important;
  }
  
  html:not(.theme-light) #navbar-main .text-muted {
    color: var(--bf-text-muted) !important;
  }

  html:not(.theme-light) .text-dark,
  html:not(.theme-light) .text-slate,
  html:not(.theme-light) .heading,
  html:not(.theme-light) .h1,
  html:not(.theme-light) .h2,
  html:not(.theme-light) .h3,
  html:not(.theme-light) .h4,
  html:not(.theme-light) .h5,
  html:not(.theme-light) .h6,
  html:not(.theme-light) .title {
    color: var(--bf-text) !important;
  }

  html:not(.theme-light) .text-muted {
    color: var(--bf-text-muted) !important;
  }

  html:not(.theme-light) .modal-content {
    border: 1px solid var(--bf-border-color) !important;
  }

  html:not(.theme-light) .menu-category-pills,
  html:not(.theme-light) .menu-category-nav,
  html:not(.theme-light) .menu-category-pills .nav-link:not(.active-category):not(.active) {
    background-color: transparent !important;
    background: transparent !important;
  }

  html:not(.theme-light) footer.footer {
    background-color: var(--bf-bg-page) !important;
    border-top: 1px solid var(--bf-border-color) !important;
  }
  html:not(.theme-light) footer.footer,
  html:not(.theme-light) footer.footer a,
  html:not(.theme-light) footer.footer span,
  html:not(.theme-light) footer.footer .copyright {
    color: var(--bf-text-muted) !important;
  }
}

html.theme-dark .theme-icon-light {
  display: inline-block !important;
}
html.theme-dark .theme-icon-dark {
  display: none !important;
}

/* Skew Separator Color */
html.theme-dark .fill-white {
  fill: var(--bf-bg-page) !important;
}

html.theme-dark .bg-white,
html.theme-dark .bg-neutral-50,
html.theme-dark .card-header.bg-white,
html.theme-dark .modal-content,
html.theme-dark .modal-header,
html.theme-dark .modal-body,
html.theme-dark .modal-footer,
html.theme-dark .card-header,
html.theme-dark .card-body,
html.theme-dark .card-footer {
  background-color: var(--bf-surface-card) !important;
  color: var(--bf-text) !important;
}

/* Modal details readability overrides */
html.theme-dark .modal-content h1,
html.theme-dark .modal-content h2,
html.theme-dark .modal-content h3,
html.theme-dark .modal-content h4,
html.theme-dark .modal-content h5,
html.theme-dark .modal-content h6,
html.theme-dark .modal-content p,
html.theme-dark .modal-content span,
html.theme-dark .modal-content div,
html.theme-dark .modal-content label,
html.theme-dark .modal-content strong,
html.theme-dark .modal-content small,
html.theme-dark .modal-content li,
html.theme-dark .modal-content a {
  color: var(--bf-text) !important;
}

html.theme-dark .modal-content .text-muted,
html.theme-dark .modal-content p.description,
html.theme-dark .modal-content .heading-small.text-muted,
html.theme-dark .modal-content .heading-small.text-muted a {
  color: var(--bf-text-muted) !important;
}

/* Top Nav links in dark mode */
html.theme-dark #navbar-main .bf-nav-delivery__label,
html.theme-dark #navbar-main .bf-nav-delivery__value,
html.theme-dark #navbar-main .bf-nav-ghost-link,
html.theme-dark #navbar-main .bf-nav-icon-link,
html.theme-dark #navbar-main .nav-link,
html.theme-dark #navbar-main .dropdown-toggle {
  color: var(--bf-text) !important;
}

html.theme-dark #navbar-main .text-muted {
  color: var(--bf-text-muted) !important;
}

html.theme-dark .text-dark,
html.theme-dark .text-slate,
html.theme-dark .heading,
html.theme-dark .h1,
html.theme-dark .h2,
html.theme-dark .h3,
html.theme-dark .h4,
html.theme-dark .h5,
html.theme-dark .h6,
html.theme-dark .title {
  color: var(--bf-text) !important;
}

html.theme-dark .text-muted {
  color: var(--bf-text-muted) !important;
}

html.theme-dark .modal-content {
  border: 1px solid var(--bf-border-color) !important;
}

html.theme-dark .menu-category-pills,
html.theme-dark .menu-category-nav,
html.theme-dark .menu-category-pills .nav-link:not(.active-category):not(.active) {
  background-color: transparent !important;
  background: transparent !important;
}

html.theme-dark footer.footer {
  background-color: var(--bf-bg-page) !important;
  border-top: 1px solid var(--bf-border-color) !important;
}
html.theme-dark footer.footer,
html.theme-dark footer.footer a,
html.theme-dark footer.footer span,
html.theme-dark footer.footer .copyright {
  color: var(--bf-text-muted) !important;
}

/* ============================================================
   UNIFIED LIVE SEARCH BLUR & FOCUS OVERLAY (Desktop & Mobile)
   ============================================================ */

.menu-search-focused-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1030;
  opacity: 0;
  display: none;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-search-focused .menu-search-focused-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.menu-search-focused .bf-mobile-header-card,
.menu-search-focused #pause-banner,
.menu-search-focused .bf-mobile-visit-card,
.menu-search-focused .menu-category-anchor,
.menu-search-focused .row,
.menu-search-focused .modern-fab-cart,
.menu-search-focused h2,
.menu-search-focused .section-profile-cover,
.menu-search-focused section.section,
.menu-search-focused footer.footer,
.menu-search-focused .container-restorant > h1,
.menu-search-focused .container-restorant > h2,
.menu-search-focused .menu-category-nav,
.menu-search-focused #navbar-main {
  filter: blur(8px) !important;
  pointer-events: none !important;
  opacity: 0.35 !important;
}

.bf-mobile-header-card,
#pause-banner,
.bf-mobile-visit-card,
.menu-category-anchor,
.row,
.modern-fab-cart,
h2,
.section-profile-cover,
section.section,
footer.footer {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.bf-mobile-search-wrapper {
  position: relative;
  z-index: 1050;
}

.menu-category-nav {
  position: relative;
  z-index: 1040;
}

/* ============================================================
   DARK MODE COMPONENT OVERRIDES (Toggler & Collapse Dropdown)
   ============================================================ */

/* Invert Hamburger Toggler Icon Color */
html.theme-dark .navbar-toggler-icon,
html:not(.theme-light) .navbar-toggler-icon {
  filter: invert(1) !important;
}

/* Navbar Collapse (Hamburger drawer) background */
html.theme-dark .navbar-collapse,
html:not(.theme-light) .navbar-collapse {
  background-color: var(--bf-bg-page) !important;
  color: var(--bf-text) !important;
}

/* Navbar Collapse text elements visibility */
html.theme-dark .navbar-collapse .nav-link,
html.theme-dark .navbar-collapse .bf-nav-mobile-link,
html.theme-dark .navbar-collapse .dropdown-toggle,
html.theme-dark .navbar-collapse .dropdown-item,
html:not(.theme-light) .navbar-collapse .nav-link,
html:not(.theme-light) .navbar-collapse .bf-nav-mobile-link,
html:not(.theme-light) .navbar-collapse .dropdown-toggle,
html:not(.theme-light) .navbar-collapse .dropdown-item {
  color: var(--bf-text) !important;
}

/* Collapse cross close button visibility */
html.theme-dark .navbar-collapse .collapse-close span,
html:not(.theme-light) .navbar-collapse .collapse-close span {
  background: var(--bf-text) !important;
}

/* Vibrant active state background for language list toggles */
.bf-mobile-header-lang-btn.active {
  color: var(--bf-text) !important;
  background: var(--bf-border-color) !important;
  padding: 0 8px;
  border-radius: 20px;
}

/* ============================================================
   GLOBAL SEARCH SUGGESTIONS DROPDOWN (Desktop & Mobile)
   ============================================================ */
.mobile-search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bf-cart-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bf-cart-border);
  border-radius: 12px;
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
}

.mobile-search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--bf-cart-border);
}

.mobile-search-suggestion-item:last-child {
  border-bottom: none;
}

.mobile-search-suggestion-item:hover,
.mobile-search-suggestion-item:active {
  background: var(--bf-border-color) !important;
}

.mobile-search-suggestion-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--bf-cart-item-border);
}

.mobile-search-suggestion-info {
  flex: 1;
  min-width: 0;
}

.mobile-search-suggestion-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bf-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-search-suggestion-price {
  font-size: 0.75rem;
  color: var(--bf-primary);
  font-weight: 700;
}

/* ============================================================
   NAVBAR & HAMBURGER DARK MODE ENHANCEMENTS
   ============================================================ */

/* Hamburger menu button visibility & border in dark mode */
html.theme-dark .navbar-toggler,
html:not(.theme-light) .navbar-toggler {
  border-color: var(--bf-border-color) !important;
  background-color: transparent !important;
}

html.theme-dark .navbar-toggler-icon,
html:not(.theme-light) .navbar-toggler-icon {
  filter: invert(1) brightness(2) !important;
}

/* Navbar button styles override (cart, waiter, lang) */
html.theme-dark #navbar-main.bf-front-navbar .bf-nav-btn,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-btn {
  background: var(--bf-card-bg) !important;
  color: var(--bf-text) !important;
  border-color: var(--bf-border-color) !important;
}

html.theme-dark #navbar-main.bf-front-navbar .bf-nav-btn:hover,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-btn:hover {
  background: var(--bf-border-color) !important;
  color: var(--bf-text) !important;
  border-color: var(--bf-border-color) !important;
}

html.theme-dark #navbar-main.bf-front-navbar .bf-nav-lang-code,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-lang-code {
  color: var(--bf-text) !important;
}

/* Navbar Dropdown styling override (lang switcher dropdown, account dropdown) */
html.theme-dark #navbar-main.bf-front-navbar .bf-nav-dropdown,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-dropdown {
  background: var(--bf-card-bg) !important;
  border: 1px solid var(--bf-border-color) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark #navbar-main.bf-front-navbar .bf-nav-dropdown__item,
html.theme-dark #navbar-main.bf-front-navbar .bf-nav-dropdown .dropdown-item,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-dropdown__item,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-dropdown .dropdown-item {
  color: var(--bf-text) !important;
}

html.theme-dark #navbar-main.bf-front-navbar .bf-nav-dropdown__item:hover,
html.theme-dark #navbar-main.bf-front-navbar .bf-nav-dropdown .dropdown-item:hover,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-dropdown__item:hover,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-dropdown .dropdown-item:hover {
  background: var(--bf-border-color) !important;
  color: var(--bf-primary) !important;
}

/* Navbar Collapse (Mobile drawer links hover and border) */
html.theme-dark #navbar-main.bf-front-navbar .bf-nav-mobile-link:hover,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-mobile-link:hover {
  background: var(--bf-border-color) !important;
  color: var(--bf-primary) !important;
}

html.theme-dark #navbar-main.bf-front-navbar .bf-nav-mobile-lang,
html:not(.theme-light) #navbar-main.bf-front-navbar .bf-nav-mobile-lang {
  border-bottom: 1px solid var(--bf-border-color) !important;
}

/* Branding link color override in dark mode */
html.theme-dark .bf-powered-link strong,
html:not(.theme-light) .bf-powered-link strong {
  color: var(--bf-text) !important;
}

html.theme-dark .bf-powered-link:hover,
html:not(.theme-light) .bf-powered-link:hover {
  background: var(--bf-border-color) !important;
  color: var(--bf-primary) !important;
}

html.theme-dark .bf-powered-link:hover strong,
html:not(.theme-light) .bf-powered-link:hover strong {
  color: var(--bf-primary) !important;
}

/* Binhook badge overrides */
html.theme-dark .bf-binhook-badge,
html:not(.theme-light) .bf-binhook-badge {
  background: var(--bf-border-color) !important;
  border-color: var(--bf-border-color) !important;
  color: var(--bf-text-muted) !important;
}

html.theme-dark .bf-binhook-badge .bf-binhook-badge__by,
html:not(.theme-light) .bf-binhook-badge .bf-binhook-badge__by {
  color: var(--bf-text-muted) !important;
}

html.theme-dark .bf-binhook-badge .bf-binhook-badge__name,
html:not(.theme-light) .bf-binhook-badge .bf-binhook-badge__name {
  color: var(--bf-text) !important;
}

/* Hardcoded search bar bg override for dark mode */
html.theme-dark .bf-mobile-search-bar,
html:not(.theme-light) .bf-mobile-search-bar {
  background: var(--bf-surface-glass) !important;
  border: 1px solid var(--bf-border-color) !important;
}

/* Cart Side Nav Dark Mode */
html.theme-dark .sidenav-cart,
html.theme-dark .sidenav-cart .offcanvas-menu-inner.cart-drawer-inner {
  background-color: var(--bf-surface-dark) !important;
  color: var(--bf-text) !important;
}

html.theme-dark .sidenav-cart .cart-line-item__inner.info-block {
  border-bottom-color: var(--bf-border-color) !important;
}

html.theme-dark .sidenav-cart .cart-drawer-footer {
  background: var(--bf-surface-dark) !important;
  border-top-color: var(--bf-border-color) !important;
}

html.theme-dark .sidenav-cart .minicart-heading h2,
html.theme-dark .sidenav-cart .product-item_title,
html.theme-dark .sidenav-cart .totalPrices strong,
html.theme-dark .sidenav-cart .closebtn {
  color: var(--bf-text) !important;
}

html.theme-dark .sidenav-cart .text-muted,
html.theme-dark .sidenav-cart .product-item_quantity {
  color: var(--bf-text-muted) !important;
}
