/* Fix Menu Mobile - Garantir que apareça em todas as páginas */

/* Botão hamburger sempre visível no mobile */
@media (max-width: 991px) {
    .header__mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .header__mobile-toggle span {
        width: 100%;
        height: 3px;
        background: var(--store-primary, #0066FF);
        border-radius: 10px;
        transition: all 0.3s ease;
        display: block !important;
    }

    .header__mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .header__mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header__mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Menu mobile */
    .header__nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: white !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        transition: right 0.3s ease !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        padding: 80px 20px 20px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .header__nav.active {
        right: 0 !important;
        transform: translateX(0) !important;
    }

    .header__nav ul {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .header__nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .header__nav ul li a {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 15px 10px !important;
        color: #333 !important;
    }

    .header__nav ul li a i {
        font-size: 18px;
        width: 24px;
    }

    .header__nav ul li.active a {
        color: var(--store-primary, #0066FF) !important;
        background: rgba(0, 102, 255, 0.1);
    }

    /* Overlay */
    .header__overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }

    .header__overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Dropdowns no mobile */
    .header__nav .has-dropdown .header__dropdown,
    .header__nav .has-dropdown .header__megamenu {
        position: static !important;
        display: none;
        box-shadow: none !important;
        padding: 0 0 0 30px !important;
        background: #f8f9fa !important;
    }

    .header__nav .has-dropdown.open .header__dropdown,
    .header__nav .has-dropdown.open .header__megamenu {
        display: block !important;
    }

    .header__nav .header__dropdown ul li,
    .header__nav .header__megamenu-links a {
        border-bottom: none !important;
    }
}

/* Desktop - esconder botão hamburger */
@media (min-width: 992px) {
    .header__mobile-toggle {
        display: none !important;
    }

    .header__overlay {
        display: none !important;
    }
}