/* 
   VR Hair - Estilos do Cabeçalho Mobile
*/

/* Regras de visibilidade do Header */
header.mobile-header {
    display: none;
}

/* Em telas menores que 992px, esconde o header principal e mostra o mobile */
@media (max-width: 991.98px) {
    header:not(.mobile-header) {
        display: none !important;
    }

    header.mobile-header {
        display: block;
    }

    body {
        padding-top: 60px; /* Compensa a altura do header mobile fixo */
    }
}


:root {
    --primary-color: #000000; /* Preto */
    --secondary-color: #e6d1b1; /* Bege claro */
    --dark-color: #333333;
    --light-color: #FFFFFF;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

body.no-scroll {
    overflow: hidden;
}

/* Oculta o header principal em telas mobile. A regra foi movida para o topo do arquivo. */

/* Estilos do Header Mobile */
.mobile-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle, .mobile-header-icons .icon-link {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

.mobile-logo .logo {
    height: 67px !important;
    width: auto;
}

.mobile-header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Barra de Pesquisa */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1040;
    align-items: flex-start;
    padding-top: 80px;
}

.mobile-search-overlay.open {
    display: flex;
}

.mobile-search-bar {
    width: 90%;
    margin: 0 auto;
    background: var(--light-color);
    display: flex;
    border-radius: 25px;
    padding: 5px;
}

.mobile-search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 10px 15px;
    background: transparent;
    font-size: 16px;
}

.mobile-search-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    padding: 0 15px;
}

/* Menu Lateral */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px; /* Começa fora da tela */
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 20px;
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav.open {
    left: 0; /* Desliza para dentro da tela */
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.close-menu {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 30px;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.mobile-nav-links li {
    margin-bottom: 10px;
}

.mobile-nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    display: block;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.mobile-nav-links a i {
    margin-right: 10px;
}


/* Overlay para o fundo */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1045; /* Abaixo do menu, acima do conteúdo */
}

.nav-overlay.open {
    display: block;
} 

/* Ocultar o cabeçalho de desktop em telas menores */
@media (max-width: 991.98px) {
    .header-desktop {
        display: none !important;
    }
    body {
        padding-top: 120px; /* Ajuste para o cabeçalho fixo */
    }
}

/* Exibir o cabeçalho móvel apenas em telas menores */
.header-mobile {
    display: none;
    background-color: var(--primary-color); /* Cor de fundo do cabeçalho */
    color: white;
    padding: 8px 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .header-mobile {
        display: block;
    }
}

.header-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mobile-logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 22px;
    color: white;
    text-decoration: none;
}

.mobile-icons {
    display: flex;
    align-items: center;
}

.mobile-icons .icon-link,
.mobile-icons .navbar-toggler {
    color: white;
    font-size: 22px;
    margin-left: 18px;
    position: relative;
}

.mobile-icons .cart-icon .cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-icons .navbar-toggler {
    background: none;
    border: 1px solid white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-icons .navbar-toggler:focus {
    outline: none;
}

.mobile-icons .navbar-toggler i {
    font-size: 18px;
}

.header-mobile-search .search-bar {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 25px;
    padding: 5px 8px;
    position: relative;
}

.header-mobile-search .search-input {
    border: none;
    background: transparent;
    flex-grow: 1;
    margin: 0 5px;
    padding: 5px;
    color: #333;
}

.header-mobile-search .search-input::placeholder {
    color: #888;
}

.header-mobile-search .search-input:focus {
    outline: none;
}

.header-mobile-search .mic-button,
.header-mobile-search .search-button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
}

.header-mobile-search .search-results-container {
    position: absolute;
    top: 110%; /* Posiciona abaixo da barra de busca */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
}

/* Dropdown do usuário */
.mobile-icons .dropdown-menu {
    margin-top: 10px;
} 

/* Drawer lateral mobile */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #fff;
    color: #333;
    z-index: 2000;
    box-shadow: -2px 0 8px rgba(0,0,0,0.08);
    transition: right 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}
.mobile-drawer.open {
    right: 0;
}
.mobile-drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 10px 16px;
}
.close-drawer {
    background: none;
    border: none;
    font-size: 26px;
    color: #333;
    cursor: pointer;
}
.mobile-drawer-links {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
}
.mobile-drawer-links li {
    margin-bottom: 18px;
}
.mobile-drawer-links a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.mobile-drawer-links a.btn-salao {
    color: #5D6D54;
    font-weight: bold;
}
.mobile-drawer-links a:hover {
    color: #5D6D54;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 1999;
} 