@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Lexend;
}

/* Barra de navegação - Header fixo */
.barra-navegacao {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 2rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Seção de busca */
.secao-busca {
    display: flex;
    align-items: center;
    gap: 0.5rem;

}

/* Links de navegação */
.links-navegacao {
    display: flex;
    gap: 1.5rem;
}

.links-navegacao a {
    text-decoration: none;
    color: #000000;
    padding: 0.8rem 1.2rem;
    font-size: 20px;
    font-weight: 200;
    letter-spacing: -0.36px;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.links-navegacao a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.links-navegacao a:hover::before {
    left: 100%;
}

.links-navegacao a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #b30000);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.links-navegacao a:hover::after {
    width: 80%;
}

.links-navegacao a:hover {
    background-color: rgba(255, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
}

/* Seção do logo */
.secao-logo img {
    height: 70px;
}

/* Seção do usuário */
.secao-usuario {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.usuario-logado {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.saudacao-usuario {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.secao-usuario a {
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secao-usuario a:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.secao-usuario img {
    transition: all 0.3s ease;
}

.secao-usuario a:hover img {
    transform: scale(1.1);
}

/* Carrossel de Banners */
#carrossel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}




/* Menu Mobile */
.botao-menu-mobile {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.linha-menu {
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
    transform-origin: center;
}

.botao-menu-mobile.ativo .linha-menu:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.botao-menu-mobile.ativo .linha-menu:nth-child(2) {
    opacity: 0;
}

.botao-menu-mobile.ativo .linha-menu:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: #f8f9fa;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.menu-mobile-conteudo {
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-mobile-conteudo a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: 300;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    transition: color 0.3s ease;
}

.menu-mobile-conteudo a:hover {
    color: #007bff;
}

.menu-mobile-conteudo a:last-child {
    border-bottom: none;
}

body.menu-aberto {
    overflow: hidden;
}

body.menu-aberto::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsividade */
@media (max-width: 1113px) {
    /* Ajuste do padding-top para mobile */
    body {
        padding-top: 100px !important;
    }
    
    .barra-navegacao {
        padding: 1rem;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .links-navegacao {
        display: none;
    }

    .botao-menu-mobile {
        display: flex;
        order: 3;
        margin-left: 1rem;
    }

    .secao-logo {
        order: 1;
        flex: 1;
    }

    .secao-logo img {
        height: 60px;
    }

    .secao-usuario {
        order: 2;
        gap: 0.8rem;
        margin-right: 0.5rem;
    }

    .secao-usuario img {
        width: 24px;
        height: 24px;
    }

    .saudacao-usuario {
        font-size: 12px;
        max-width: 100px;
    }

    .usuario-logado {
        gap: 0.5rem;
    }

    /* Carrossel responsivo */
    .botao-navegacao {
        padding: 10px 15px;
        font-size: 16px;
    }

    #botao-anterior {
        left: 10px;
    }

    #botao-proximo {
        right: 10px;
    }

    #indicadores-carrossel {
        bottom: 10px;
    }

    .indicador {
        width: 10px;
        height: 10px;
    }

    /* Faixa de frete responsiva */
    .faixa-frete-gratis {
        padding: 12px 0;
    }

    .texto-frete {
        font-size: 13px;
        padding-right: 80px;
    }

    .conteudo-faixa-rolante {
        animation: rolar-faixa 25s linear infinite;
    }
}

@media (max-width: 480px) {
    .barra-navegacao {
        padding: 0.5rem;
    }

    .secao-logo img {
        height: 50px;
    }

    .secao-usuario img {
        width: 20px;
        height: 20px;
    }

    .botao-navegacao {
        padding: 8px 12px;
        font-size: 14px;
    }

    #botao-anterior {
        left: 5px;
    }

    #botao-proximo {
        right: 5px;
    }

    .menu-mobile {
        width: 90%;
    }

    .menu-mobile-conteudo {
        padding: 60px 15px 15px;
    }

    .menu-mobile-conteudo a {
        font-size: 16px;
        padding: 12px 0;
    }

    /* Faixa de frete para mobile pequeno */
    .faixa-frete-gratis {
        padding: 10px 0;
    }

    .texto-frete {
        font-size: 12px;
        padding-right: 60px;
        letter-spacing: 0.5px;
    }

    .conteudo-faixa-rolante {
        animation: rolar-faixa 20s linear infinite;
    }
}