/* =========================
   HEADER
   ========================= */
.header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #ccc;
    padding: 1rem 0;
}

/* =========================
   LOGO
   ========================= */
.logo img {
    width: 75px;
    height: auto;
}

/* =========================
   NAVBAR CONTAINER
   ========================= */
.navbar {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* =========================
   CATEGORIAS
   ========================= */
.navbar-nav {
    margin: 0 auto;
}
.navbar-nav .nav-item {
    margin: 0 4rem;
    position: relative;
}

/* =========================
   LINKS PRINCIPAIS
   ========================= */
.navbar-nav .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover {
    color: #e2c57f !important;
}

/* =========================
   REMOVER CARET PADRÃO
   ========================= */
.nav-link.dropdown-toggle::after {
    display: none !important;
}

/* ==================================================
   SUBMENU (DROPDOWN) - ALTERAÇÃO PRINCIPAL
   ================================================== */

/* 1. Esconde o menu por defeito */
.dropdown-menu {
    display: none; /* Em vez de opacity e visibility */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 10rem;
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    z-index: 1000;
    margin-top: 0; /* Garante que fica colado ao item pai */
}

/* 2. Mostra o menu quando o rato está sobre o item pai */
.nav-item:hover > .dropdown-menu {
    display: block; /* A forma mais simples e robusta de mostrar/esconder */
}

/* =========================
   ITENS DO SUBMENU
   ========================= */
.dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
    color: #555;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.dropdown-menu .dropdown-item:hover {
    color: #e2c57f !important;
    background-color: #f8f9fa;
}

/* --- ESTILOS PARA MOBILE E PESQUISA (permanecem iguais) --- */
.navbar-toggler {
    border-color: rgba(0,0,0,0.1) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.search-container .search-input {
    width: 0;
    padding: 0.375rem 0;
    border: none;
    opacity: 0;
    transition: width 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
}
.search-container.active .search-input {
    width: 150px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    opacity: 1;
    margin-right: -2.5rem;
    padding-right: 2.8rem;
}
.search-container #search-toggle-btn {
    z-index: 10;
    background-color: transparent;
    border: none;
}