/* Header */
#site-header {
    width: 100%;
    position: relative;
    z-index: 999;
}



/* Container de Categorias */
.top-categories {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    padding: 8px 0;
    text-align: center;
}

.category-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    font-size: 0.95rem;
}
.category-nav a:hover {
    text-decoration: underline;
}

/* Container Principal */
.main-header {
    background-color: #212529;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 77px;
    padding: 0 20px;
    position: sticky;
    top: 0;
}

/* Menu hamburguer */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

/* Logo */
.logo {
    height: 50px;
    cursor: pointer;
}

/* Campo de busca */
.search-bar input {
    width: 206px;
    height: 42px;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    background-color: #fff;
}

/* Estado fixo (quando rola a página) */
.fixed-header {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Quando as categorias forem escondidas */
.top-categories.hidden {
    display: none !important;
}

.btn-hamburguer {
    position: relative; /* ou absolute/fixed se necessário */
    z-index: 10001;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Menu toggle*/
.side-menu {
    position: fixed;
    top: 0;
    left: -320px; 
    width: 320px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
}

/* Quando aberto, move o menu para a esquerda da tela */
.side-menu.open {
    left: 0;
}

/* Botão de fechar (X) */
.btn-fechar {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Lista de categorias */
.menu-categorias {
    list-style: none;
    padding: 50px 0 20px;
    margin: 0;
}

.menu-categorias li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

/* Ícones sociais */
.mobile-social-container {
    display: none;
}

.social-icons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #ccc;
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    background: #f5f5f5;
    margin-top: 30px;
}

.mobile-social-icons a {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mobile-social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Mantém os estilos originais para desktop */
.side-menu .social-icons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.side-menu .social-icons a {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: background 0.3s;
}

.side-menu .social-icons a:hover {
    background: #ccc;
}

/* E-mail */
.email-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-top: 20px;
}

/* Media Queries para Header Mobile Simplificado */
@media (max-width: 768px) {
    /* Remover completamente a área de top links */
    .top-categories {
        display: none !important;
    }

    .mobile-social-container {
        display: block;
    }
    
    /* Header principal - versão mobile */
    #site-header {
        position: relative; /* Remove o comportamento fixo */
        z-index: 999;
    }
    
    .main-header {
        position: relative !important; /* Remove sticky/fixed */
        top: auto;
        box-shadow: none;
        height: 60px;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Container para centralização perfeita do logo */
    .logo-container {
        position: absolute;
        left: 0;
        right: 0;
        text-align: center;
        pointer-events: none; /* Permite clicar nos elementos por trás */
    }
    
    /* Logo perfeitamente centralizada */
    .logo {
        height: 40px;
        display: inline-block;
        pointer-events: auto; /* Habilita clique no logo */
        position: relative;
        z-index: 1;
    }
    
    /* Menu hamburguer alinhado à esquerda */
    .menu-toggle {
        font-size: 2rem;
        padding: 5px;
        position: relative;
        z-index: 2; /* Garante que fique acima do logo container */
        background: none;
        border: none;
        color: white;
    }
    
    /* Campo de busca alinhado à direita */
    .search-bar {
        position: relative;
        z-index: 2; /* Garante que fique acima do logo container */
    }
    
    .search-bar input {
        width: 150px;
        height: 36px;
        padding: 6px 10px;
        border-radius: 4px;
        border: none;
    }
    
    /* Ajustes no menu lateral para mobile */
    .side-menu {
        width: 280px;
        left: -280px;
        top: 0;
        height: 100vh;
    }
    
    /* Remover seções não necessárias no mobile */
    .side-menu .social-icons,
    .side-menu .email-section {
        display: none;
    }

    .mobile-social-icons {
        display: flex; /* Mostra os ícones no footer em mobile */
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .search-bar input {
        width: 120px;
    }
    
    .menu-toggle {
        font-size: 1.8rem;
    }
    
    .logo {
        height: 35px;
    }
}


/* Orientação horizontal */
@media (max-width: 768px) and (orientation: landscape) {
    .main-header {
        height: 50px;
    }
    
    .logo {
        height: 32px;
    }
    
    .search-bar input {
        width: 120px;
        height: 32px;
    }
}