.header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Questrial', sans-serif;
}

:root {
    --bg-header: #f1f0ec;
    --bg-main:#e5e2da;
    --verde-vitta: #49582c;
    --vermelho-vitta: #8d3229;
    --vermelho-hover:  #690c03;
    --primary-green: #8B9A5B;
    --light-vitta: #ffeccc;
    --white: #FFFFFF;
    
    --font-title: 'Belleza', serif;
    --font-body: 'Questrial', sans-serif;
    
    --container-max-width: 1200px;
    --header-height: 80px;
}

.header {
    background-color: var(--bg-header);
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header .logo a {
    display: flex;
    align-items: center;
}

.header .logo img {
    height: 40px;
    width: auto;
}

.header .nav-main, .header .nav-secondary {
    display: none;
}

.header .mobile-menu-btn, .header .mobile-menu-close-btn {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--verde-vitta);
    cursor: pointer;
    z-index: 1002;
}

.header .mobile-menu-btn.hidden {
    display: none;
}

.header .mobile-nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--bg-header);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.header .mobile-nav-container.active {
    right: 0;
}

.header .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: var(--header-height);
    border-bottom: 1px solid #e0e0e0;
}

.header .mobile-nav-list {
    list-style: none;
    padding: 20px;
}

.header .mobile-nav-item {
    margin-bottom: 10px;
}

.header .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    color: var(--verde-vitta);
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header .mobile-nav-link:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.header .mobile-nav-item hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.header .mobile-dropdown .mobile-nav-link {
    justify-content: space-between;
}

.header .mobile-dropdown-menu {
    list-style: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.header .mobile-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--verde-vitta);
    font-size: 16px;
}
.header .mobile-dropdown-menu a:hover {
    color: var(--primary-green);
}

.header .mobile-dropdown.open > .mobile-dropdown-menu {
    max-height: 500px;
}

.header .mobile-dropdown.open .mobile-nav-link i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.header .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.header .overlay.active {
    opacity: 1;
    visibility: visible;
}

.header .action-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid #cccccc;
    margin-left: 10px;
}

.header .action-icons a {
    display: flex;
    align-items: center;
    color: var(--verde-vitta);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header .action-icons a:hover {
    color: var(--primary-green);
}

.header .action-icons a span:not(.cart-count) {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    overflow: hidden;
    transition: max-width 0.5s ease, opacity 0.3s ease, margin-left 0.3s ease;
    font-size: 16px;
    white-space: nowrap;
}

.header .action-icons a:hover span:not(.cart-count) {
    max-width: 100px;
    opacity: 1;
    margin-left: 8px;
}

.header .action-icons a i {
    font-size: 20px;
}

/*Responsividade para Desktop*/   
@media (min-width: 992px) {
    .header .mobile-menu-btn, .header .mobile-nav-container, .header .overlay {
        display: none !important;
    }

    .header .nav-main {
        display: flex;
        flex: 1;
        margin-left: 60px;
    }

    .header .nav-list {
        display: flex;
        list-style: none;
        gap: 40px;
    }

    .header .nav-item {
        position: relative;
    }

    .header .nav-link {
        color: var(--verde-vitta);
        font-weight: 500;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 0.3s ease;
    }

    .header .nav-link:hover {
        color: var(--primary-green);
    }

    .header .dropdown-icon {
        font-size: 8px;
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .header .dropdown:hover .dropdown-icon {
        transform: rotate(0deg);
    }

    .header .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        min-width: 180px;
        z-index: 100;
        padding: 5px 0;
    }
    
    .header .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .header .dropdown-menu li {
        list-style: none;
    }
    
    .header .dropdown-menu a {
        display: block;
        padding: 10px 16px;
        color: var(--verde-vitta);
        transition: background-color 0.3s ease, color 0.3s ease;
        font-size: 15px;
    }
    
    .header .dropdown-menu a:hover {
        background-color: var(--bg-header);
        color: var(--primary-green);
    }

    .header .nav-secondary {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .header .user-account {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--verde-vitta);
        font-size: 14px;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .header .user-account:hover, .header .user-account:hover .nav-link {
        color: var(--primary-green);
    }

    .header .icon-btn {
        background: none;
        border: none;
        font-size: 20px;
        color: var(--verde-vitta);
        cursor: pointer;
        transition: color 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .header .icon-btn:hover {
        color: var(--primary-green);
    }

    .header .cart-btn {
        position: relative;
    }
    
    .header .cart-count {
        top: -8px;
        right: -10px;
        background: var(--vermelho-vitta);
        color: var(--white);
        font-size: 13px;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 16px;
        margin-left: 4px;
        text-align: center;
        font-weight: bold;
    }
}

.header .mobile-menu-btn.hidden {
    display: none;
}

.header .cart-count.empty {
    display: none;
}