@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700&display=swap');

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

.modal-app-logo {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    object-fit: contain !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: inline-block !important;
    margin: 0 auto 12px auto !important;
}

:root {
    --primary: #FFCC00;
    --primary-dark: #E6B800;
    --dark: #2B160C;
    --light: #FAFAFA;
    --text: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Bootstrap overrides */
h1, h2, h3, h4, h5, h6, p, ul {
    margin-bottom: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: linear-gradient(180deg, rgba(20, 10, 5, 0.35) 0%, rgba(245, 158, 11, 0.15) 50%, rgba(20, 10, 5, 0.45) 100%), 
                url('../assets/luxury_bakery_bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Surfaces ivoire doré douces (sans forcer les cartes sombres) */
.bg-white {
    background: rgba(255, 252, 245, 0.94) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.32);
    box-shadow: 0 6px 20px rgba(43, 22, 12, 0.08);
}

.dark-luxury-card {
    background: linear-gradient(135deg, #140a04 0%, #2b160c 60%, #431407 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(251, 146, 60, 0.5) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

h1, h2, h3, .logo-title {
    font-family: 'Playfair Display', serif;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(43, 22, 12, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
}

.logo-icon {
    font-size: clamp(1.8rem, 5vw, 2rem);
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
}

.logo-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-top: -5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.store-status-badge {
    white-space: nowrap;
    font-size: 0.75rem;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    padding-bottom: 5px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-left: 30px; /* Espace entre CONTACT et le panier */
}

.cart {
    color: var(--white);
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    position: relative;
    text-decoration: none;
    margin-right: 20px; /* Espace supplémentaire garanti */
}

.cart-count {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

.btn {
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--white);
}

.btn-outline:hover { background: rgba(0,0,0,0.5); color: var(--primary); }

.btn-dark {
    background: var(--dark);
    color: var(--white);
    padding: 12px 30px;
}


/* Section Title */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: var(--dark);
    margin: 50px 0 30px;
}


/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    overflow-x: hidden;
}

/* Bootstrap Grid is used instead of footer-grid */

.footer-col h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-size: 0.9rem;
    color: #ccc;
    margin: 15px 0;
}

.social-icons a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.15) translateY(-3px);
}

.social-icons a.facebook:hover { background: #1877F2; }
.social-icons a.instagram:hover { background: #E4405F; }
.social-icons a.whatsapp:hover { background: #25D366; }

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-col p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-whatsapp:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

/* Animation Classes */
.footer-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.footer-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
    margin-left: 10px;
}

/* =========================================
   A PROPOS PAGE STYLES
   ========================================= */

/* Responsive Global */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0 15px;
    }
    .mobile-menu-btn {
        display: block;
        order: 3;
    }
    .nav-actions {
        margin-left: auto;
        margin-right: 20px;
        order: 2;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(43, 22, 12, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease;
        z-index: -1;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .logo-title {
        font-size: clamp(0.9rem, 1.5vw, 1rem);
    }
    .logo-subtitle {
        font-size: clamp(1rem, 2vw, 1.1rem);
    }
    .nav-actions {
        gap: 10px;
        margin-right: 10px;
    }
        .nav-actions .btn {
        padding: 8px 10px;
        font-size: 0;
        min-height: 44px;
    }
    .nav-actions .btn i {
        font-size: clamp(1.1rem, 2vw, 1.2rem);
        margin: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Image Styling for Store Team Showcase */
.team-showcase-img {
    object-fit: cover;
    object-position: center 20%;
    border-radius: 20px;
    height: 480px;
    max-height: 520px;
    width: 100%;
}

@media (max-width: 991.98px) {
    .team-showcase-img {
        height: 340px;
        max-height: 380px;
        border-radius: 16px;
    }
    .main-hero-carousel,
    .main-hero-carousel .carousel-inner,
    .main-hero-carousel .carousel-item {
        height: 320px !important;
        min-height: 320px !important;
    }
    .main-hero-carousel .carousel-item > div {
        padding: 1.5rem 2rem !important;
    }
    .main-hero-carousel .carousel-item h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    .main-hero-carousel .carousel-item p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }
}

    @media (max-width: 575.98px) {
    .team-showcase-img {
        height: 230px;
        max-height: 250px;
        border-radius: 14px;
    }
}

/* Compact Base Product Cards */
.premium-product-card, .product-card {
    border-radius: 10px !important;
    border: 1px solid #f0eae1 !important;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.premium-product-card .product-img-container,
.premium-product-card .product-img,
.product-card .product-img,
.product-img {
    height: 130px !important;
    width: 100%;
    object-fit: contain !important;
    background-color: #ffffff !important;
    padding: 6px !important;
}

.premium-product-card .card-body,
.product-card .card-body {
    padding: 0.55rem 0.65rem !important;
}

.premium-product-card .card-title,
.product-card .card-title {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    margin-bottom: 0.2rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2rem;
}

.premium-product-card .add-to-cart-btn,
.product-card .add-to-cart-btn,
.product-card button.btn {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.3rem 0.5rem !important;
    border-radius: 6px !important;
    min-height: 30px !important;
}

/* Responsive 3-Columns Ultra-Compact Product Cards for Mobile (< 768px) */
@media (max-width: 767.98px) {
    .row-cols-3 > .col {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
    .premium-product-card, .product-card {
        border-radius: 8px !important;
        box-shadow: 0 1px 4px rgba(43, 22, 12, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }
    .premium-product-card .product-img-container,
    .premium-product-card .product-img,
    .product-card .product-img,
    .product-img {
        height: 85px !important;
        max-height: 85px !important;
        object-fit: contain !important;
        background-color: #ffffff !important;
        padding: 4px !important;
    }
    .premium-product-card .card-body,
    .product-card .card-body {
        padding: 0.3rem !important;
    }
    .premium-product-card .card-title,
    .product-card .card-title {
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        margin-bottom: 0.1rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: auto !important;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .premium-product-card .badge,
    .product-card .badge {
        font-size: 0.48rem !important;
        padding: 0.1rem 0.25rem !important;
        border-radius: 3px !important;
        margin: 0.2rem !important;
    }
    .premium-product-card .text-warning,
    .product-card .text-warning {
        font-size: 0.5rem !important;
    }
    .premium-product-card .text-muted,
    .product-card .text-muted {
        font-size: 0.52rem !important;
    }
    .premium-product-card .fw-bold.text-dark,
    .product-card .fw-bold.text-dark,
    .product-price {
        font-size: 0.75rem !important;
        margin-bottom: 0.15rem !important;
    }
    .premium-product-card .add-to-cart-btn,
    .product-card .add-to-cart-btn,
    .product-card button.btn {
        font-size: 0.60rem !important;
        font-weight: 700 !important;
        padding: 0.1rem 0.2rem !important;
        border-radius: 4px !important;
        min-height: 23px !important;
        height: 23px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .wishlist-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.55rem !important;
        margin: 0.2rem !important;
        opacity: 1 !important;
        transform: scale(0.75) !important;
    }
    /* Horizontal product scrollers */
    .flash-sales .product-card {
        width: 115px !important;
    }

    /* Hero Carousels & Banners on Mobile */
    .main-hero-carousel {
        height: 260px !important;
        min-height: 260px !important;
    }
    .main-hero-carousel .carousel-inner,
    .main-hero-carousel .carousel-item {
        height: 260px !important;
        min-height: 260px !important;
    }
    .main-hero-carousel .carousel-item > div {
        padding: 0.9rem 1.1rem 2.5rem 1.1rem !important; /* Dégagement bas garanti pour les tirets */
        justify-content: center !important;
    }
    .main-hero-carousel .carousel-item .badge {
        font-size: 0.62rem !important;
        padding: 0.2rem 0.45rem !important;
        margin-bottom: 0.3rem !important;
    }
    .main-hero-carousel .carousel-item h2 {
        font-size: 1.25rem !important;
        line-height: 1.18 !important;
        margin-bottom: 0.25rem !important;
    }
    .main-hero-carousel .carousel-item p {
        font-size: 0.76rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.45rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .main-hero-carousel .carousel-item .btn {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.75rem !important;
        border-radius: 6px !important;
        margin-bottom: 0.2rem !important;
    }
    .main-hero-carousel .carousel-indicators {
        bottom: 6px !important;
        margin-bottom: 0 !important;
        z-index: 10 !important;
        gap: 3px !important;
    }
    .main-hero-carousel .carousel-indicators [data-bs-target] {
        width: 16px !important;
        height: 3px !important;
        border-radius: 2px !important;
        margin: 0 !important;
        opacity: 0.6 !important;
        background-color: #fbbf24 !important;
    }
    .main-hero-carousel .carousel-indicators .active {
        width: 26px !important;
        opacity: 1 !important;
        background-color: #f59e0b !important;
    }
    .main-hero-carousel .carousel-control-prev,
    .main-hero-carousel .carousel-control-next {
        width: 28px !important;
        height: 28px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.45) !important;
        margin: 0 4px !important;
    }
    .main-hero-carousel .carousel-control-prev-icon,
    .main-hero-carousel .carousel-control-next-icon {
        width: 12px !important;
        height: 12px !important;
    }

    /* Section Images & Story Banners (A propos, Galerie, Fidelite, Contact) */
    .about-story-img,
    .gallery-item img,
    .feature-card img,
    .promo-banner img {
        height: 180px !important;
        max-height: 200px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    /* Mobile Headings & Typography */
    h1, .h1 { font-size: 1.35rem !important; }
    h2, .h2 { font-size: 1.2rem !important; }
    h3, .h3 { font-size: 1.05rem !important; }
    h4, .h4 { font-size: 0.95rem !important; }

    /* Mobile Container Spacing */
    section {
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
    }
}


/* Forms & Tables Responsiveness */
form input, form textarea, form select {
    width: 100%;
}

@media (max-width: 576px) {
    form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* Navbar Links Overrides (Bootstrap native compatibility) */
.navbar-nav .nav-link {
    color: var(--white) !important;
    text-transform: uppercase;
    padding-bottom: 5px;
    font-weight: 500;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary);
}


/* Bootstrap color overrides to force Gold color */
.text-primary, .text-gold {
    color: var(--primary) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}
.border-primary {
    border-color: var(--primary) !important;
}

/* Utilities */
.fs-sm { font-size: 0.875rem !important; }
.hover-primary { transition: all 0.2s; }

/* ==========================================================================
   ✨ NOUVELLE BARRE DE RECHERCHE INTELLIGENTE & LUXE (Boulangerie de BABI)
   ========================================================================== */

.header-search-container {
    position: relative;
    max-width: 540px;
    min-width: 260px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.babi-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 3px 4px 3px 14px;
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.babi-search-wrapper:hover {
    border-color: #fbbf24;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.header-search-container:focus-within .babi-search-wrapper,
.header-search-mobile:focus-within .babi-search-wrapper {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.babi-search-icon {
    color: #f59e0b;
    font-size: 1rem;
    margin-right: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.header-search-container:focus-within .babi-search-icon {
    transform: scale(1.1);
}

.babi-search-input {
    border: none !important;
    background: transparent !important;
    color: #2b160c !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    width: 100%;
    padding: 6px 6px 6px 2px !important;
    outline: none !important;
    box-shadow: none !important;
}

.babi-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.88rem;
}

.babi-search-kbd {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 6px;
    margin-right: 6px;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.header-search-container:focus-within .babi-search-kbd {
    display: none;
}

.search-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    margin-right: 6px;
    transition: all 0.2s;
}

.search-clear-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.1);
}

.babi-search-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #2b160c !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 7px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.babi-search-btn:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
    color: #1a0c06 !important;
}

.babi-search-btn:active {
    transform: translateY(0);
}

/* Dropdown de recherche prédictive */
.babi-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 40px -10px rgba(43, 22, 12, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-height: 480px;
    overflow-y: auto;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.babi-search-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.babi-search-section {
    padding: 12px 14px 6px;
}

.babi-search-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.babi-search-tag {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.babi-search-tag:hover {
    background: #fef3c7;
    border-color: #fde047;
    color: #92400e;
    transform: translateY(-1px);
}

.babi-history-tag .remove-tag {
    opacity: 0.5;
    padding: 2px 4px;
    border-radius: 50%;
    transition: all 0.15s;
}

.babi-history-tag .remove-tag:hover {
    opacity: 1;
    color: #ef4444;
}

.babi-cat-card {
    background: #fcf8f2;
    border: 1px solid #f3ece0;
    transition: all 0.2s ease;
    padding: 8px 8px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.babi-cat-card:hover {
    background: #fef3c7;
    border-color: #fde047;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.babi-cat-emoji {
    font-size: 1.25rem !important;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.babi-cat-label {
    font-size: 0.74rem !important;
    font-weight: 700;
    line-height: 1.15;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    letter-spacing: -0.2px;
}

@media (max-width: 576px) {
    .babi-cat-card {
        padding: 6px 6px !important;
        gap: 5px;
        min-height: 40px;
    }
    .babi-cat-emoji {
        font-size: 1.15rem !important;
    }
    .babi-cat-label {
        font-size: 0.68rem !important;
    }
}

.babi-search-item {
    cursor: pointer;
    transition: all 0.15s ease;
}

.babi-search-item:hover,
.babi-search-item.active {
    background-color: #fdf8ee;
}

.babi-search-item:last-child {
    border-bottom: none !important;
}

.babi-search-highlight {
    background: #fef08a;
    color: #854d0e;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

.babi-search-footer {
    background: #fafaf9;
    transition: background 0.2s;
}

.babi-search-footer:hover {
    background: #fef3c7;
}

/* Toast de notification ajout rapide */
.babi-search-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #2b160c;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #f59e0b;
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.babi-search-toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Barre de recherche mobile */
.header-search-mobile {
    position: relative;
    width: 100%;
}

/* Footer High-Contrast Bright Text Fix */
footer {
    background: linear-gradient(135deg, #1c0d06, #2b160c) !important;
    color: #ffffff !important;
}
footer *, footer p, footer span, footer li, footer div, footer small, footer a, footer .text-muted, footer .text-light {
    color: #f8fafc !important;
    opacity: 1 !important;
}
footer a:hover {
    color: #fb923c !important;
    text-decoration: underline !important;
}
footer h4, footer h5, footer .text-warning, footer i.text-warning {
    color: #fb923c !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Operator Cards in Checkout - Clean White & Dynamic Tint Backgrounds */
.operator-card {
    background-color: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.operator-card:hover {
    border-color: #fb923c !important;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.15) !important;
    transform: translateY(-2px);
    background-color: #fffaf5 !important;
}
.operator-card.active-operator#op_wave {
    border-color: #1dc4e9 !important;
    background-color: #f0fbfd !important;
    box-shadow: 0 4px 12px rgba(29, 196, 233, 0.2) !important;
}
.operator-card.active-operator#op_orange {
    border-color: #FF7900 !important;
    background-color: #fff7f0 !important;
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.25) !important;
}
.operator-card.active-operator#op_mtn {
    border-color: #eab308 !important;
    background-color: #fffdf0 !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2) !important;
}
.operator-card.active-operator#op_moov {
    border-color: #0284c7 !important;
    background-color: #f0f7ff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2) !important;
}

/* Ensure paymentModal content always has clean, crisp dark text without overriding syntax or buttons */
#paymentModal .modal-body {
    color: #1e293b !important;
}
#paymentModal .modal-body label,
#paymentModal .modal-body p,
#paymentModal .modal-body span:not(.badge):not(.text-warning):not(.text-info):not(.text-primary):not(.text-success),
#paymentModal .modal-body small:not(.text-muted) {
    color: #1e293b !important;
    opacity: 1 !important;
}
#paymentModal .modal-body .text-muted,
#paymentModal .modal-body small.text-muted {
    color: #475569 !important;
}
#paymentModal .modal-body h4 {
    color: #0f172a !important;
}
#paymentModal .modal-body .btn,
#paymentModal .modal-body .btn * {
    color: #ffffff !important;
}
#paymentModal .modal-header * {
    color: #ffffff !important;
}

/* ================================================================
   HOT BREAD WIDGET & OVEN ALERTS (REAL-TIME FOURNIL)
   ================================================================ */
.babi-hot-bread-widget {
    transition: all 0.3s ease;
}

.babi-hot-bread-card {
    box-shadow: 0 10px 30px rgba(43, 20, 8, 0.45) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.babi-hot-bread-card:hover {
    box-shadow: 0 14px 40px rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.babi-countdown-tile {
    min-width: 58px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.babi-flame-pulse {
    display: inline-block;
    animation: flamePulse 1.4s infinite ease-in-out;
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #f59e0b); }
    50% { transform: scale(1.18); filter: drop-shadow(0 0 12px #ef4444); }
}

@media (max-width: 575.98px) {
    .babi-hot-bread-card {
        padding: 0.9rem 0.8rem !important;
        border-radius: 14px !important;
    }
    .babi-hot-bread-card h5 {
        font-size: 1.05rem !important;
    }
    .babi-countdown-tile {
        min-width: 44px !important;
        padding: 0.3rem 0.35rem !important;
    }
    .babi-countdown-tile .fs-4 {
        font-size: 1.1rem !important;
    }
}

.navbar {
    transition: all 0.3s ease;
}

/* Compact & Refined Navbar Brand Logo */
.navbar-brand-logo {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    border-radius: 8px !important;
    margin-right: 8px !important;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.navbar-brand:hover .navbar-brand-logo {
    transform: scale(1.04);
}
.navbar-brand-title {
    font-size: 1.02rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px;
    color: #ffffff !important;
    line-height: 1.15 !important;
}
.navbar-brand-subtitle {
    font-size: 1.32rem !important;
    font-family: 'Great Vibes', cursive !important;
    margin-top: -3px !important;
    color: #fbbf24 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Compact & Refined Footer Brand Logo */
.footer-brand-logo {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    border-radius: 8px !important;
    margin-right: 8px !important;
    object-fit: contain;
}
.footer-brand-title {
    font-size: 1.02rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px;
    color: #ffffff !important;
    line-height: 1.15 !important;
}
.footer-brand-subtitle {
    font-size: 1.32rem !important;
    font-family: 'Great Vibes', cursive !important;
    margin-top: -3px !important;
    color: #fbbf24 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Official Côte d'Ivoire Flag Component (Orange, Blanc, Vert) */
.flag-ci {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    vertical-align: middle;
    background: linear-gradient(to right, #FF8200 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #009E60 66.66%);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    margin-right: 5px;
}
.flag-ci-sm {
    width: 16px;
    height: 11px;
}
.flag-ci-lg {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.babi-hot-bread-flame {
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.4));
}

/* ================================================================
   OFFICIAL THERMAL RECEIPT (80mm & PRINT MEDIA)
   ================================================================ */
@media print {
    body * {
        visibility: hidden !important;
    }
    #thermalReceiptModal,
    #thermalReceiptModal * {
        visibility: visible !important;
    }
    #thermalReceiptModal .modal-header,
    #thermalReceiptModal .modal-footer,
    #thermalReceiptModal .btn-close {
        display: none !important;
    }
    #thermalReceiptModal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }
    #thermalReceiptModal .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }
    #thermalReceiptModal .modal-content {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    #printable-receipt {
        display: block !important;
        width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 auto !important;
        padding: 8px !important;
        border: none !important;
        box-shadow: none !important;
        color: #000000 !important;
        background: #ffffff !important;
        font-family: 'Courier New', Courier, monospace !important;
    }
    #printable-receipt * {
        color: #000000 !important;
        background: transparent !important;
    }
    #printable-receipt img {
        filter: grayscale(100%) contrast(150%) !important;
    }
}

/* ==========================================================================
   LUXURY APP BUTTONS & ACTIONS
   ========================================================================== */
.btn-app-luxury {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-app-luxury:hover {
    transform: translateY(-4px) scale(1.02);
}

.btn-app-luxury .app-btn-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-app-luxury:hover .app-btn-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.android-app-btn {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.22) 0%, rgba(20, 83, 45, 0.45) 100%);
    border: 1.5px solid #22c55e !important;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
}

.android-app-btn:hover {
    box-shadow: 0 14px 32px rgba(34, 197, 94, 0.45);
    border-color: #4ade80 !important;
}

.android-app-btn .app-btn-icon-box {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.web-app-btn {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.28) 0%, rgba(234, 88, 12, 0.5) 100%);
    border: 1.5px solid #fb923c !important;
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.28);
}

.web-app-btn:hover {
    box-shadow: 0 14px 32px rgba(251, 146, 60, 0.5);
    border-color: #fdba74 !important;
}

.web-app-btn .app-btn-icon-box {
    background: rgba(251, 146, 60, 0.25);
    border: 1px solid rgba(251, 146, 60, 0.5);
}

.qr-app-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.qr-app-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.qr-app-btn .app-btn-icon-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-btn-sub {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
}

.app-btn-title {
    display: block;
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-top: 2px;
}

.app-btn-badge {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    margin-left: auto;
}
