/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
#header {
    background-color: #ffffff;
    width: 100%;
    height: 80px; /* Altura inicial maior para destaque */
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.35s ease; /* Transição suave */
}

#header.shrink {
    height: 60px; /* Altura reduzida ao rolar */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#cabecalho-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    transition: padding 0.35s ease;
}

#header.shrink #cabecalho-container {
    padding-top: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   NAVEGAÇÃO ESQUERDA (MENU)
   ========================================================================== */
.nav-links-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-links-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.nav-links-left ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    font-family: 'Helvetica', sans-serif; /* Garante a fonte */
}

.nav-links-left ul li a:hover {
    color: #000; /* Preto no hover */
    text-decoration: underline;
}

.nav-links-left ul li a .fas.fa-chevron-down {
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.7;
}

/* ==========================================================================
   MENU DROPDOWN (COLEÇÕES)
   ========================================================================== */
.nav-links-left ul .menu-dropdown {
    position: relative;
}

.conteudo-menu {
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); 
    z-index: 100; 
    padding: 10px 0;
    border-top: 2px solid #000;
    text-align: left;
    
    /* Animação de entrada */
    visibility: hidden;
    opacity: 0; 
    transform: translate(-10px, 10px); 
    transition: opacity 0.3s ease, visibility 0s 0.3s, transform 0.3s ease; 
    pointer-events: none;
}

/* Exibe o conteúdo quando o mouse está sobre o LI pai */
.menu-dropdown:hover .conteudo-menu {
    visibility: visible;
    opacity: 1;
    transform: translate(0, 0); 
    transition-delay: 0s; 
    pointer-events: auto;
}

.conteudo-menu a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: normal; 
    font-size: 14px;
    text-transform: none; 
    border-bottom: 1px solid #f5f5f5;
}

.conteudo-menu a:hover {
    background-color: #f9f9f9; 
    color: #000;
    padding-left: 25px; /* Efeito de deslizar leve */
    transition: padding 0.2s;
}

/* ==========================================================================
   LOGO CENTRAL
   ========================================================================== */
.logo-center {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logopng {
    width: 55px; /* Tamanho inicial correto */
    height: auto;
    display: block;
    transition: width 0.35s ease;
}

#header.shrink #logopng {
    width: 40px; /* Reduz ao rolar a página */
}

/* ==========================================================================
   ÍCONES DIREITA
   ========================================================================== */
.nav-icons-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    align-items: center;
}

.nav-icons-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.nav-icons-right a:hover {
    opacity: 0.6;
    transform: scale(1.05);
}

#lupa,
#rosto,
#sacola {
    width: 22px; /* Tamanho padronizado */
    height: auto;
    display: block;
}

/* ==========================================================================
   BARRA DE PESQUISA (OVERLAY)
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Altura da barra */
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Estado inicial */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.search-overlay.ativo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container-center {
    width: 90%;
    max-width: 800px;
    position: relative;
    border-bottom: 2px solid #000;
    display: flex;
    align-items: center;
}

.search-overlay input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    padding: 15px 50px 15px 0;
    outline: none;
    text-transform: uppercase;
    font-family: 'Helvetica', sans-serif;
}

.search-btn-action {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 20px;
    transition: transform 0.2s;
}

.search-btn-action:hover {
    transform: translateX(5px);
}

.close-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #000;
    line-height: 1;
}

/* ==========================================================================
   MENU RESPONSIVO (MOBILE)
   ========================================================================== */
.menu-icon {
    display: none; /* Escondido no Desktop */
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

@media (max-width: 768px) {
    /* Mostra o ícone de hambúrguer */
    .menu-icon {
        display: block;
    }

    /* Transforma o menu em Gaveta Lateral */
    .nav-links-left {
        /* display: flex !important;  <-- Removido para usar a lógica de classe active */
        position: fixed;
        top: 60px; /* Altura do header mobile */
        left: -100%; /* Escondido */
        width: 80%; /* Largura da gaveta */
        height: calc(100vh - 60px);
        background-color: #fff;
        flex-direction: column;
        padding: 40px 20px;
        transition: 0.4s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 998;
        display: flex;
        justify-content: flex-start;
    }

    .nav-links-left.active {
        left: 0; /* Aparece */
    }

    .nav-links-left ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links-left ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links-left ul li a {
        font-size: 16px;
        padding: 15px 0;
        width: 100%;
    }

    /* Ajuste do Dropdown no Mobile */
    .nav-links-left ul .menu-dropdown .conteudo-menu {
        display: none;       /* Importante: Ele para de existir para o clique */
        position: relative;  /* Faz ele empurrar o Lookbook para baixo quando abrir */
        visibility: visible;
        opacity: 1;
        transform: none;
        width: 100%;
        background-color: #f9f9f9;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        pointer-events: auto; /* Garante que o clique funcione quando aparecer */
    }

    /* 2. Mostra o sub-menu apenas quando clicar/interagir no mobile */
    .nav-links-left ul .menu-dropdown:active .conteudo-menu,
    .nav-links-left ul .menu-dropdown:focus-within .conteudo-menu {
        display: block;
    }

    /* 3. Garante que os itens da lista não se sobreponham */
    .nav-links-left ul li {
        width: 100%;
        position: relative;
        z-index: 10;
    }

    /* Ajustes Gerais do Header Mobile */
    #header, #header.shrink {
        height: 60px;
    }

    #cabecalho-container, #header.shrink #cabecalho-container {
        padding: 0 15px;
    }

    #logopng, #header.shrink #logopng {
        width: 40px; /* Logo menor no mobile */
    }

    .nav-icons-right {
        gap: 15px;
    }
    
    #lupa, #rosto, #sacola {
        width: 20px;
    }
}
/* --- Menu de Usuário (Dropdown) --- */
.user-menu-container {
    position: relative; /* Necessário para o menu flutuar em relação a este bloco */
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
}

/* O Menu Flutuante (escondido inicialmente) */
.user-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 120%; /* Fica logo abaixo do ícone */
    right: -10px; /* Alinhado à direita */
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px; /* Bordas arredondadas */
    padding: 15px;
    text-align: left;
    z-index: 1000;
    transform: translateY(-10px); /* Começa um pouco pra cima */
    transition: all 0.3s ease; /* Animação suave */
    border: 1px solid #f0f0f0;
}

/* A setinha no topo do menu (opcional, mas fica chique) */
.user-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px; /* Posição da ponta da seta */
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg); /* Faz o quadrado virar um losango/seta */
    border-top: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
}

/* Quando passar o mouse no container, mostra o menu */
.user-menu-container:hover .user-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Desce suavemente */
}

/* Itens dentro do menu */
.user-dropdown p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666;
    font-family: 'Poppins', sans-serif; /* Ou sua fonte padrão */
}

.user-dropdown strong {
    color: #000;
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.user-dropdown hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.btn-logout-dropdown {
    background: none;
    border: none;
    color: #e74c3c; /* Vermelho suave para sair */
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
}

.btn-logout-dropdown:hover {
    color: #c0392b;
    text-decoration: underline;
}
.menu-item-dropdown {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre ícone e texto */
}

.menu-item-dropdown:hover {
    color: #000;
    text-decoration: underline;
}
/* Estilo para o link "MINHA CONTA" */
.menu-item-destaque {
    display: block;
    padding: 10px 0;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700; /* Negrito */
    letter-spacing: 1px; /* Espaçamento entre letras estilo grife */
    text-transform: uppercase;
    transition: color 0.2s, padding-left 0.2s;
}

.menu-item-destaque:hover {
    color: #555;
    padding-left: 5px; /* Efeito sutil de movimento ao passar o mouse */
}

.btn-logout-dropdown {
    margin-top: 5px;
    font-size: 11px;
    color: #999;
}
.btn-logout-dropdown:hover {
    color: #e74c3c;
    text-decoration: none;
}
/* =========================================
   CORREÇÕES EXCLUSIVAS PARA MOBILE
   ========================================= */
@media (max-width: 768px) {
    /* Centralizar a logo ignorando os ícones ao lado */
    #cabecalho-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Arrumar a barra de pesquisa e a seta (sem esmagar o X) */
    .search-container-center {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 90%;
        margin: 0 auto;
        gap: 15px;
    }

    #campo-busca {
        flex: 1;
        width: 100%;
    }

    .search-btn-action {
        flex-shrink: 0;
        position: static;
    }

    .close-search {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 35px;
        color: #000;
        z-index: 10;
    }
}