:root {
    --primary: #E73C30;
    --secondary: #F96302;
    --dark: #003366;  /* Bleu foncé */
    --darker: #002244; /* Bleu plus foncé */
    --accent: #4D90FE; /* Bleu clair accent */
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border: rgba(255, 255, 255, 0.15);
}

/* Header - Blue Style */
.header-blue {
    background-color: var(--dark);
    color: var(--white);
    position: relative;
    overflow: visible;
}

/* Top Bar */
.top-bar {
    background-color: var(--darker);
    padding: 8px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1050;
    overflow: visible;
}

.top-contact span {
    margin-right: 20px;
}

.top-contact i {
    margin-right: 5px;
    color: var(--accent);
}

.top-links {
    overflow: visible;
}

.top-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.top-links a:hover {
    color: var(--white);
}

/* Main Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    gap: 20px;
    position: relative;
    z-index: 1000;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    flex-shrink: 0;
}

.logo-nafa {
    color: var(--primary);
}

.logo-place {
    color: var(--secondary);
}

/* Search Form */
.search-wrapper {
    flex: 1;
    max-width: 900px;
    margin: 0 20px;
    display: flex;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form:focus-within {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-category {
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    cursor: pointer;
    min-width: 140px;
    outline: none;
}

.search-category option {
    background-color: var(--dark);
    color: var(--white);
}

.search-input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    padding: 16px 25px;
    color: #333;
    outline: none;
    font-size: 1rem;
    min-height: 50px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: var(--secondary);
    border: none;
    color: var(--white);
    padding: 16px 30px;
    font-weight: 500;
    cursor: pointer;
    min-height: 50px;
    border-radius: 0 30px 30px 0;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: var(--primary);
}

/* Modern Search Input - White Background */
.search-input-modern {
    background-color: #ffffff !important;
    color: #333 !important;
    border: none !important;
    padding: 16px 25px !important;
    font-size: 1rem !important;
    min-height: 50px !important;
    border-radius: 30px 0 0 30px !important;
}

.search-input-modern::placeholder {
    color: #999 !important;
}

.search-input-modern:focus {
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Search autocomplete container in header */
.search-wrapper .search-autocomplete-container {
    width: 100% !important;
    flex-grow: 1;
}

.search-wrapper .search-autocomplete-container .input-group {
    width: 100% !important;
    background-color: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-wrapper .search-autocomplete-container .form-control {
    background-color: #ffffff !important;
    color: #333 !important;
    border: none !important;
    padding: 16px 25px !important;
    font-size: 1rem !important;
    min-height: 50px !important;
}

.search-wrapper .search-autocomplete-container .form-control::placeholder {
    color: #999 !important;
}

.search-wrapper .search-autocomplete-container .btn-primary {
    background-color: var(--secondary) !important;
    border: none !important;
    padding: 16px 30px !important;
    min-height: 50px !important;
    border-radius: 0 30px 30px 0 !important;
}

.search-wrapper .search-autocomplete-container .btn-primary:hover {
    background-color: var(--primary) !important;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10000;
    flex-shrink: 0;
    gap: 5px;
}

.action-item {
    margin-left: 15px;
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-icon {
    font-size: 1.4rem;
    color: var(--white);
    transition: color 0.3s;
}

.action-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    transition: color 0.3s;
}

.action-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 5px;
}

.action-item:hover .action-icon,
.action-item:hover .action-label {
    color: var(--accent);
}

/* Menu Button (like Cdiscount) */
.menu-button {
    position: relative;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1052;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.menu-button:hover {
    background-color: #C42D22;
    border-color: #C42D22;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 60, 48, 0.3);
}

.menu-button i {
    font-size: 1.2rem;
}

/* Categories Button */
.categories-button {
    position: relative;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
    z-index: 1052;
}

.categories-button i {
    margin-right: 10px;
}

/* Products Button */
.products-button {
    position: relative;
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 600;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1052;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.products-button:hover {
    background-color: #e85a00;
}

.products-button i {
    margin-right: 10px;
}

/* Dropdown Menus */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    width: 270px;
    background-color: var(--white);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

/* Bootstrap Dropdown Fixes */
.navbar-blue .dropdown {
    position: relative;
    z-index: 9999;
}

.navbar-blue .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050 !important;
    min-width: 250px;
    background-color: var(--dark);
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    padding: 0.5rem 0;
    pointer-events: auto;
    display: none;
}

.navbar-blue .dropdown-menu.show {
    display: block !important;
    pointer-events: auto !important;
    z-index: 1050 !important;
}

/* User Actions Dropdown Fixes */
.user-actions .dropdown {
    position: relative;
    z-index: 10001;
}

.user-actions .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 10001 !important;
    min-width: 220px;
    max-width: 280px;
    background-color: var(--dark);
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    margin-top: 0;
    padding: 0.5rem 0;
    pointer-events: auto;
    display: none;
}

.user-actions .dropdown-menu.show {
    display: block !important;
    pointer-events: auto !important;
    z-index: 10001 !important;
    position: absolute !important;
}

.user-actions .dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--white);
    transition: all 0.3s ease;
    border: none;
    background: none;
    display: block;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.user-actions .dropdown-item:hover,
.user-actions .dropdown-item:focus {
    background-color: rgba(231, 60, 48, 0.05);
    color: var(--primary);
    padding-left: 1.5rem;
}

.user-actions .dropdown-item i {
    color: var(--secondary);
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.user-actions .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Force all dropdowns to be on top */
.dropdown-menu {
    z-index: 1050 !important;
}

.dropdown-menu.show {
    z-index: 1050 !important;
}

/* Mobile Menu Styles */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-toggle {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border: none;
    background: none;
    text-align: left;
    position: relative;
}

.mobile-dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}

.mobile-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.mobile-dropdown-toggle .bi-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--accent);
}

.mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.mobile-submenu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    padding: 0.75rem 0;
    margin: 0.5rem 0 0.5rem 1rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-submenu-link {
    display: block;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.mobile-submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width 0.3s ease;
    z-index: -1;
}

.mobile-submenu-link:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 0;
}

.mobile-submenu-link:hover {
    color: white;
    padding-left: 1.75rem;
    transform: translateX(8px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-submenu-link:hover::before {
    width: 100%;
}

.mobile-submenu-link i {
    margin-right: 0.875rem;
    width: 20px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover i {
    color: white;
    transform: scale(1.1);
}

.mobile-submenu-link.text-primary i {
    color: var(--primary);
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    /* Garder la navbar visible en mobile mais l'adapter */
    .navbar-blue {
        display: block !important;
        padding: 0.5rem 0;
        overflow-x: auto;
        white-space: nowrap;
        background-color: var(--dark) !important;
    }

    .navbar-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        min-width: max-content;
    }

    /* Adapter les boutons de catégories et produits */
    .categories-button,
    .products-button {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }

    /* Adapter la navigation principale */
    .main-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.25rem;
        margin-left: 0.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap;
    }

    /* Adapter les dropdowns pour mobile */
    .dropdown-menu {
        position: absolute !important;
        z-index: 1050 !important;
        max-height: 70vh;
        overflow-y: auto;
        min-width: 250px;
        left: 0 !important;
        right: auto !important;
        width: auto !important;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        background-color: var(--dark);
    }

    .services-dropdown {
        min-width: 280px;
    }

    /* Améliorer l'apparence des éléments dropdown en mobile */
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        color: var(--white);
    }

    .dropdown-item i {
        width: 20px;
        text-align: center;
        color: var(--secondary);
    }

    .main-header {
        padding: 0.5rem 0;
    }

    .menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        padding: 0.5rem;
        margin-right: 0.75rem;
    }

    .user-actions .action-item {
        margin-left: 1rem;
    }

    .action-label {
        display: none;
    }

    .search-wrapper {
        flex: 1;
        margin: 0 1.25rem;
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

    .main-header {
        padding: 0.25rem 0;
    }

    .logo img {
        height: 50px;
    }

    .user-actions .action-item {
        margin-left: 0.75rem;
    }

    .search-wrapper {
        margin: 0 0.75rem;
    }

    /* Sur très petits écrans, utiliser le menu hamburger */
    .navbar-blue {
        display: none !important;
    }

    .menu-btn {
        display: block !important;
    }
}

.navbar-blue .dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--white);
    transition: all 0.3s ease;
    border: none;
    background: none;
}

.navbar-blue .dropdown-item:hover,
.navbar-blue .dropdown-item:focus {
    background-color: rgba(231, 60, 48, 0.05);
    color: var(--primary);
    padding-left: 1.5rem;
}

.navbar-blue .dropdown-item i {
    color: var(--secondary);
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.navbar-blue .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Ensure main content is below dropdowns */
.page {
    position: relative;
    /* remove elevated stacking context so modals can appear above header */
    z-index: 0;
}

.header-blue {
    position: relative;
    z-index: 9997;
}

/* Safety: ensure modals are on top of the header even if page has stacking context */
.modal {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 13000 !important;
}
.modal-backdrop {
    z-index: 12990 !important;
}

/* Place modal dialog below header to avoid being clipped */
.modal .modal-dialog {
    margin: 6rem auto 2rem auto;
    max-width: 640px;
}

@media (max-width: 576px) {
    .modal .modal-dialog {
        margin: 8rem auto 2rem auto;
        width: calc(100% - 2rem);
    }
}

main {
    position: relative;
    z-index: 1;
}

/* Ensure hero sections and content sections are below dropdowns */
.hero-section,
.hero,
.bestsellers-section,
.promotions-section,
.featured-section,
.content-section {
    position: relative;
    z-index: 1;
}

.categories-button:hover + .categories-dropdown,
.categories-dropdown:hover {
    display: block;
}

.products-button:hover + .products-dropdown,
.products-dropdown:hover {
    display: block;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
}

.menu-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary);
    padding-left: 25px;
}

.menu-icon {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Navigation Bar */
.navbar-blue {
    background-color: var(--dark);
    padding: 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 900;
}

.navbar-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Main Navigation */
.main-nav {
    display: flex;
    margin-left: 20px;
    list-style: none;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    padding: 15px 20px !important;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: var(--accent);
}

/* Services Dropdown */
.services-dropdown {
    min-width: 320px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.services-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    border: none;
    transition: all 0.3s ease;
}

.services-dropdown .dropdown-item:hover {
    background-color: rgba(77, 144, 254, 0.1);
    transform: translateX(5px);
}

.services-dropdown .dropdown-item i {
    font-size: 1.25rem;
    width: 30px;
    flex-shrink: 0;
}

.services-dropdown .dropdown-item div {
    flex-grow: 1;
}

.services-dropdown .dropdown-item strong {
    font-weight: 600;
    color: var(--dark);
}

.services-dropdown .dropdown-item small {
    font-size: 0.75rem;
    line-height: 1.2;
}

.services-dropdown .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Hotline */
.hotline {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.hotline-icon {
    font-size: 1.3rem;
    color: var(--primary);
    margin-right: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.hotline-content {
    display: flex;
    flex-direction: column;
}

.hotline-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.hotline-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

/* Mobile Navigation - Cdiscount Style */
.offcanvas {
    background-color: #ffffff;
    color: #333;
    width: 320px !important;
    z-index: 99999 !important;
    top: 0 !important;
}

.offcanvas-backdrop {
    z-index: 99998 !important;
}

.offcanvas-header {
    background-color: #F96302;
    padding: 0.75rem 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offcanvas-header .offcanvas-title {
    font-size: 1.1rem;
    margin: 0;
    flex-shrink: 0;
}

.offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.2rem;
    padding: 0.5rem;
    margin: 0;
}

.btn-close-custom {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s;
}

.btn-close-custom:hover {
    opacity: 0.8;
}

.btn-close-custom i {
    color: white !important;
    font-size: 1.5rem;
}

.offcanvas-title {
    font-weight: 600;
    color: white;
}

.mobile-search {
    padding: 15px;
    position: relative;
    background-color: #f5f5f5;
}

.mobile-search-input {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    color: #333;
}

.mobile-search-input::placeholder {
    color: #999;
}

.mobile-search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
    background: white;
    text-align: left;
    position: relative;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #F96302;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.mobile-nav-link:hover {
    background: #fff5f0;
    color: #F96302;
    padding-left: 1.75rem;
}
.mobile-nav-link:hover::before {
    transform: scaleY(1);
}

.mobile-nav-icon {
    margin-right: 1rem;
    color: #F96302;
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover .mobile-nav-icon {
    color: #F96302;
    transform: scale(1.1);
}

/* Mobile User Section (Espace Client) */
.mobile-user-section {
    background: linear-gradient(135deg, #F96302 0%, #E73C30 100%);
    padding: 1rem;
}

.mobile-user-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mobile-user-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.mobile-user-name {
    font-size: 1rem;
}

.mobile-user-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-user-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-user-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-user-link i {
    margin-right: 0.75rem;
    font-size: 1rem;
}

.mobile-user-link.text-danger {
    color: #ffcccc !important;
}

.mobile-user-link.text-danger:hover {
    background: rgba(255, 100, 100, 0.3);
}

/* Mobile Section Title */
.mobile-section-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

/* Mobile dropdown (dropdown in sidebar) */
.mobile-dropdown-toggle {
    justify-content: space-between;
}

.mobile-dropdown-toggle .bi-chevron-down {
    transition: transform 0.2s ease;
    color: #999;
}

.mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.mobile-submenu {
    background-color: #f8f9fa;
    padding: 0.5rem 0;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.mobile-submenu-link:hover {
    background-color: #e9ecef;
    color: #3E7FFF;
}

.mobile-submenu-link .mobile-nav-icon {
    font-size: 0.9rem;
    color: #888;
}

.mobile-submenu-link:hover .mobile-nav-icon {
    color: #3E7FFF;
}

.mobile-account-btn {
    display: block;
    margin: 15px;
    padding: 12px;
    background-color: #3E7FFF;
    color: #fff;
    text-align: center;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.mobile-account-btn:hover {
    background-color: #2563EB;
    color: #fff;
}

/* Promotional Banner - Compact Orange Style */
.promo-banner {
    background: linear-gradient(135deg, #FF6B35 0%, #F59E0B 100%) !important;
    color: white !important;
    padding: 20px 0 !important;
    margin: 30px 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    min-height: auto !important;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.promo-banner h3 {
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    font-size: 1.3rem !important;
    position: relative;
    z-index: 2;
    color: white !important;
}

.promo-banner p {
    margin-bottom: 12px !important;
    opacity: 0.95;
    font-size: 0.95rem !important;
    position: relative;
    z-index: 2;
    color: white !important;
}

.promo-banner .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    padding: 8px 16px !important;
    font-weight: 600;
    border-radius: 20px !important;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    font-size: 0.85rem !important;
}

.promo-banner .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Prevent scroll issues when dropdowns are open */
body.dropdown-open {
    overflow: visible !important;
}

/* Ensure dropdowns don't interfere with page scroll */
.dropdown-menu {
    will-change: transform;
    backface-visibility: hidden;
}

/* Smooth transitions for better UX */
.dropdown-menu {
    transition: opacity 0.15s linear, transform 0.15s ease-in-out;
    transform-origin: top;
}

.dropdown-menu.show {
    opacity: 1;
    transform: scale(1);
}

.dropdown-menu:not(.show) {
    opacity: 0;
    transform: scale(0.95);
}

.promo-banner .bi-truck {
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 2.5rem !important;
}

/* Responsive pour la bannière promotionnelle */
@media (max-width: 768px) {
    .promo-banner {
        padding: 15px 0 !important;
        margin: 20px 0 !important;
    }

    .promo-banner h3 {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }

    .promo-banner p {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }

    .promo-banner .btn-outline-light {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .promo-banner .bi-truck {
        font-size: 2rem !important;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .top-bar {
        display: none;
    }

    .main-header {
        padding: 15px 0;
    }

    .search-wrapper {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .user-actions {
        margin-left: auto;
    }

    .action-item {
        margin-left: 15px;
    }

    .action-label {
        display: none;
    }

    .navbar-blue {
        display: none;
    }
}

/* Améliorations pour mobile */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }

    .logo img {
        height: 60px;
    }

    .action-item {
        margin-left: 10px;
    }

    .action-icon {
        font-size: 1.2rem;
    }

    .action-badge {
        font-size: 0.7rem;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }
}

/* Menu mobile amélioré */
.offcanvas-body {
    padding: 0;
}

.mobile-search {
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.mobile-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ced4da;
    border-radius: 25px;
    font-size: 0.95rem;
}

.mobile-search-icon {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f1f3f4;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #333 !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.mobile-nav-link:hover {
    background: #f5f7fa !important;
    color: #3E7FFF !important;
}

.mobile-nav-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: #3E7FFF !important;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Mobile dropdown buttons */
.mobile-dropdown-toggle {
    background: white !important;
    border: none !important;
    color: #333 !important;
    width: 100%;
    text-align: left;
    justify-content: space-between;
}

.mobile-dropdown-toggle:hover {
    color: #3E7FFF !important;
    background: #f5f7fa !important;
}

.mobile-dropdown-toggle .bi-chevron-down {
    color: #999 !important;
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Override any conflicting mobile submenu styles */
.mobile-submenu-link {
    color: #333 !important;
    padding: 0.75rem 2rem;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: #f8f9fa !important;
}

.mobile-submenu-link:hover {
    color: #3E7FFF !important;
    background: #e9ecef !important;
    border-left-color: #F27A1A;
    padding-left: 2.5rem;
}

.mobile-submenu-link i {
    color: #3E7FFF !important;
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

/* Ensure all mobile menu text is dark */
.mobile-nav-link,
.mobile-nav-link:visited,
.mobile-nav-link:focus,
.mobile-dropdown-toggle,
.mobile-dropdown-toggle:visited,
.mobile-dropdown-toggle:focus {
    color: #333 !important;
}

/* Ensure mobile menu icons are visible */
.mobile-nav-icon,
.mobile-dropdown-toggle i {
    color: #3E7FFF !important;
}

/* Amélioration des boutons d'action mobile */
@media (max-width: 576px) {
    .logo img {
        height: 50px;
    }

    .action-item {
        margin-left: 12px;
    }

    .action-icon {
        font-size: 1.1rem;
    }

    .mobile-nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .mobile-search-input {
        padding: 0.625rem 0.875rem 0.625rem 2.25rem;
        font-size: 0.9rem;
    }

    .mobile-search-icon {
        left: 1.5rem;
    }
}

/* ========================================
   MOBILE ACCORDION MENU - CATEGORIES
   ======================================== */

.mobile-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-accordion-item {
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.mobile-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-accordion-header:hover {
    background: #fef6f3;
}

.mobile-cat-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 15px;
    flex: 1;
}

.mobile-accordion-icon {
    color: #999;
    font-size: 12px;
    transition: transform 0.25s ease;
}

.mobile-accordion-item.expanded .mobile-accordion-icon {
    color: #F96302;
}

.mobile-cat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #F96302;
    color: white;
    text-decoration: none;
    font-size: 12px;
}

.mobile-cat-link:hover {
    background: #e55a00;
    color: white;
}

/* Sous-catégories dépliables - Style amélioré */
.mobile-subcategories {
    list-style: none;
    padding: 8px 0 8px 0;
    margin: 0;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    animation: mobileSlideDown 0.3s ease-out;
}

@keyframes mobileSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-subcat-item {
    margin: 0;
    padding: 0;
}

.mobile-subcat-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 24px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-subcat-item a:hover {
    background: #fff;
    color: #F96302;
    border-left-color: #F96302;
}

/* Icône carrée orange */
.mobile-subcat-item a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #F96302;
    border-radius: 2px;
    flex-shrink: 0;
}

.mobile-subcat-item a i {
    display: none; /* Cacher l'icône bi-tag */
}

/* Style "Tout voir" en tête */
.mobile-subcat-all {
    margin-bottom: 4px;
}

.mobile-subcat-all a {
    font-weight: 600;
    color: #F96302;
    background: linear-gradient(90deg, #fff5f0 0%, #fafbfc 100%);
    padding: 12px 16px 12px 24px;
    border-left: 3px solid #F96302;
}

.mobile-subcat-all a::before {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #F96302 0%, #ff8533 100%);
    border-radius: 3px;
}

.mobile-subcat-all a:hover {
    background: linear-gradient(90deg, #ffe6d9 0%, #fff5f0 100%);
}

/* Séparateur visuel entre sous-catégories niveau 2 */
.mobile-subcat-item:not(.mobile-subcat-all) + .mobile-subcat-item:not(.mobile-subcat-all) {
    border-top: 1px dashed #eee;
}

/* Mobile Header Selectors (Langue/Devise dans le header) */
.mobile-header-selectors {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.mobile-header-selectors .dropdown,
.mobile-header-selectors .currency-selector {
    flex-shrink: 0;
}

.mobile-header-selectors .dropdown-toggle,
.mobile-header-selectors .currency-selector-btn {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8rem !important;
    color: #333 !important;
    background: white !important;
    border-radius: 5px;
    text-decoration: none !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mobile-header-selectors .dropdown-toggle:hover,
.mobile-header-selectors .currency-selector-btn:hover {
    background: #f5f5f5 !important;
}

.mobile-header-selectors .dropdown-toggle::after {
    display: none !important;
}

.mobile-header-selectors .dropdown-menu {
    min-width: 150px;
    font-size: 0.85rem;
    z-index: 1060;
}

.mobile-header-selectors .currency-flag-img,
.mobile-header-selectors img {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-header-selectors .currency-current,
.mobile-header-selectors span {
    font-weight: 500;
    font-size: 0.75rem;
    white-space: nowrap;
}
