/* ============================================
   HEADER
   ============================================ */
.header {
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 4.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo {
    height: 2.5rem;
    width: 2.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: 50%;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

/* Main Navigation Desktop */
.nav-main-desktop {
    display: none;
    flex: 1;
    justify-content: center;
    gap: 2rem;
    margin: 0 2rem;
}

@media (min-width: 768px) {
    .nav-main-desktop {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    color: white;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--accent-light);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-light);
    border-radius: 1px;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    padding: 0.5rem;
    color: white;
    transition: all 0.2s;
    border-radius: var(--radius);
}

.cart-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: white;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Menu -  Minimalista */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(48, 57, 34, 0.98) 0%, 
        rgba(48, 57, 34, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7rem 2rem 2rem;
    flex-direction: column;
    gap: 0;
    z-index: 40;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.25);
}

.mobile-menu.active {
    left: 0;
}

/* Overlay refinado */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(3px);
    z-index: 35;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Links minimalistas */
.mobile-nav-link {
    width: 100%;
    text-align: left;
    padding: 1.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    display: block;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    
    /* Design limpo */
    background: transparent;
    border: none;
    border-radius: 0;
    
    /* Linha sutil */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

/* Remove borda do último item */
.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Efeito hover elegante */
.mobile-nav-link:hover {
    color: var(--accent-light);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, 
        rgba(245, 200, 176, 0.05) 0%, 
        transparent 100%);
}

/* Indicador sutil para item ativo */
.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, 
        var(--accent-light) 0%, 
        rgba(245, 200, 176, 0.8) 100%);
    border-radius: 0 2px 2px 0;
}

/* Efeito de brilho sutil no hover */
.mobile-nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.03), 
        transparent);
    transition: left 0.6s ease;
}

.mobile-nav-link:hover::after {
    left: 100%;
}

/* Header do menu mobile */
.mobile-menu-header {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.close-mobile-menu {
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
    transform: rotate(90deg);
    border-color: rgba(245, 200, 176, 0.2);
}

/* Animação de entrada dos itens */
.mobile-menu.active .mobile-nav-link {
    animation: slideInLeft 0.5s ease forwards;
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ajuste para telas menores */
@media (max-width: 380px) {
    .mobile-menu {
        width: 280px;
        padding: 6rem 1.5rem 2rem;
    }
    
    .mobile-nav-link {
        padding: 1.25rem 1rem;
        font-size: 1rem;
    }
}
