/* Carrefour 2014 Comprehensive Header Styles */

.carrefour_header {
    background: var(--carrefour-blue);
    box-shadow: var(--shadow-comprehensive);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.carrefour_header_container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrefour_logo {
    flex-shrink: 0;
}

.carrefour_logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.carrefour_logo a {
    display: inline-block;
    text-decoration: none;
}

.carrefour_nav {
    display: flex;
    align-items: center;
}

.carrefour_nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.carrefour_nav li {
    margin: 0;
}

.carrefour_nav a {
    color: var(--carrefour-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 0.5rem 0;
    display: block;
}

.carrefour_nav a:hover {
    opacity: 0.85;
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger-line {
    width: 26px;
    height: 3px;
    background: var(--carrefour-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .carrefour_header_container {
        padding: 1rem;
    }

    .burger-menu {
        display: flex;
    }

    .carrefour_nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--carrefour-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 9999;
    }

    .carrefour_nav.active {
        right: 0;
    }

    .carrefour_nav ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem 1rem;
        width: 100%;
    }

    .carrefour_nav li {
        width: 100%;
        border-bottom: 1px solid var(--carrefour-border);
    }

    .carrefour_nav a {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
        color: var(--carrefour-dark);
    }

    .carrefour_nav a:hover {
        background: var(--carrefour-light-grey);
        opacity: 1;
    }

    .carrefour_logo img {
        max-height: 42px;
    }

    /* Active burger animation */
    .burger-menu[aria-expanded="true"] .burger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .burger-menu[aria-expanded="true"] .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu[aria-expanded="true"] .burger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1200px) {
    .carrefour_header_container {
        padding: 1rem 1.5rem;
    }

    .carrefour_nav ul {
        gap: 1.5rem;
    }

    .carrefour_nav a {
        font-size: 0.9rem;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.nav-overlay.active {
    display: block;
}

/* MOBILE-HEADER-FIX */
@media (max-width: 768px) {
    .carrefour_header { position: relative !important; z-index: auto !important; }
}
