/* =========================================
   8. CORREÇÃO DA BARRA DE BUSCA
========================================= */
.conteudo-topo .busca form {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100%;
    position: relative !important;
}

.conteudo-topo .busca input {
    width: 100% !important;
    border-radius: 200px !important;
    margin-bottom: 0 !important;
    height: 45px !important;
    padding: 0 45px 0 20px !important;
    border: 1px solid #d1d1d1 !important;
    box-shadow: none !important;
}

.conteudo-topo .busca button {
    margin-bottom: 0 !important;
    position: absolute !important;
    right: 10px !important;
    background: transparent !important;
    border: none !important;
    color: #2A7D35 !important;
    font-size: 18px !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

/* =========================================
   9. CORREÇÃO DEFINITIVA DA LOGO (AUMENTADA)
========================================= */
#cabecalho .span6 {
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#cabecalho .logo,
#cabecalho h1.logo,
#cabecalho .logo a {
    height: auto !important;
    max-height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

#cabecalho .logo img {
    max-height: 95px !important; /* Tamanho da logo aumentado */
    width: auto !important;
    object-fit: contain !important;
}

/* =========================================
   A JUSTE DO MENU SUPERIOR (DESKTOP)
========================================= */
@media (min-width: 768px) {
    .menu.superior {
        background-color: #ffffff !important;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .menu.superior > .nivel-um {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 10px !important;
        scrollbar-width: none; /* Firefox */
    }

    .menu.superior > .nivel-um::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .menu.superior > .nivel-um > li {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .menu.superior .nivel-um > li > a {
        padding: 10px 12px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
    }

    .menu.superior .nivel-um > li a strong {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        text-transform: uppercase;
        color: #2A7D35 !important;
    }
}

/* =========================================
   10. OCULTAR AVISO DE COOKIES
========================================= */
.mostrarAvisoCookie #avisoCookies {
    display: none !important;
}

/* =========================================
   11. MODERNIZAÇÃO DA VITRINE DE PRODUTOS
========================================= */
.listagem .listagem-item {
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px;
    padding: 15px !important;
    background-color: #ffffff;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.listagem .listagem-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: #e0e0e0 !important;
    transform: translateY(-3px);
}

.listagem-item .imagem-produto img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.listagem-item:hover .imagem-produto img {
    transform: scale(1.03);
}

.listagem-item .nome-produto {
    font-size: 13px !important;
    color: #444444 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 !important;
}

.listagem-item .preco-promocional {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #2A7D35 !important;
}

/* Forçando o Botão Comprar a ficar IGUAL no Mobile e PC */
.listagem-item .acoes-produto .botao-comprar,
.listagem .listagem-item .acoes-produto a.botao,
.listagem .listagem-item .botao-comprar,
.listagem .listagem-item .acoes-produto-responsiva .tag-comprar {
    background-color: #2A7D35 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    margin-top: 10px !important;
    display: block !important;
    box-shadow: none !important;
    text-align: center !important;
    position: static !important;
    box-sizing: border-box !important;
}

.listagem-item .acoes-produto .botao-comprar:hover,
.listagem .listagem-item .acoes-produto a.botao:hover,
.listagem .listagem-item .acoes-produto-responsiva .tag-comprar:hover {
    background-color: #1e5a26 !important;
    box-shadow: 0 4px 10px rgba(42, 125, 53, 0.3) !important;
}

.listagem .listagem-item .acoes-produto-responsiva {
    position: static !important;
    display: block !important;
    width: 100% !important;
}

.listagem .listagem-item .acoes-produto-responsiva .tag-comprar i {
    display: none !important;
}

.listagem .titulo-categoria {
    border: none !important;
    background: transparent !important;
    text-align: center;
    margin-bottom: 25px !important;
}

.listagem .titulo-categoria strong {
    font-size: 22px !important;
    color: #333333 !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
}

/* =========================================
   12. PACOTE DE ÍCONES MODERNOS
========================================= */
[class^="icon-"]::before, 
[class*=" icon-"]::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
}

.icon-facebook::before,
.icon-instagram::before,
.icon-whatsapp::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.icon-facebook::before { content: "\f39e" !important; }
.icon-instagram::before { content: "\f16d" !important; }
.icon-whatsapp::before { content: "\f232" !important; }
.icon-bold::before { content: "\f781" !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.icon-shopping-cart::before { content: "\f290" !important; }
.icon-user::before { content: "\f007" !important; }
.icon-search::before { content: "\f002" !important; }

.lista-redes [class^="icon-"]::before,
.lista-redes [class*=" icon-"]::before {
    font-size: 24px !important;
    vertical-align: middle;
}

/* =========================================
   13. CABEÇALHO E MENU FIXOS (DESKTOP)
========================================= */
#cabecalho {
    position: fixed !important;
    top: 40px !important; 
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #ffffff !important;
    box-shadow: none !important; 
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    #cabecalho .conteiner {
        padding-bottom: 0 !important;
    }

    /* Gruda o menu diretamente no limite inferior do cabeçalho */
    .menu.superior {
        position: fixed !important;
        top: 125px !important; /* Ajuste para encostar diretamente na base da logo/busca */
        left: 0 !important;
        width: 100% !important;
        z-index: 9998 !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important; 
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
    }

    body {
        padding-top: 185px !important; /* Espaço para o topo fixo não cobrir os produtos */
    }
    
    /* SEGURANÇA: Esconder a caixa extra de botão do mobile no PC */
    .listagem .listagem-item .acoes-produto-responsiva {
        display: none !important;
    }
}

/* =========================================
   AJUSTES EXTREMOS PARA CELULAR
========================================= */
@media (max-width: 767px) {
    .menu.superior {
        position: relative !important;
        top: 0 !important; 
        box-shadow: none !important;
    }
    
    .listagem .listagem-item .acoes-produto-responsiva {
        position: static !important;
        display: block !important;
        width: 100% !important;
    }
    
    #cabecalho {
        padding: 0 !important;
        min-height: auto !important;
        height: auto !important;
        background-color: #ffffff !important;
    }
    #cabecalho .conteiner {
        padding: 0 15px !important;
        margin: 0 auto !important;
    }
    #cabecalho .row-fluid {
        margin: 0 !important;
    }
    #cabecalho .span6 {
        margin: 0 !important;
        padding: 10px 0 !important; 
        min-height: auto !important;
    }
    
    .conteudo-topo.visible-phone {
        margin: 0 !important;
        padding: 0 0 15px 0 !important; 
        background-color: #ffffff !important; 
        position: relative;
        z-index: 10;
    }
    .conteudo-topo .busca-mobile {
        margin: 0 !important;
        padding: 0 !important; 
    }
    
    h1.logo, h2.logo, .logo {
        margin: 0 auto !important;
        padding: 0 !important;
        border: none !important;
    }
    .logo img {
        max-height: 60px !important; 
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    body {
        padding-top: 175px !important; 
    }
    #corpo {
        margin-top: 15px !important;
    }
}

/* =========================================
   14. BARRA DE AVISO ROTATIVA (TOPO)
========================================= */
#barra-aviso-topo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #2A7D35;
    z-index: 10000;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#barra-aviso-topo .aviso {
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 40px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: rotatividadeAvisos 12s infinite; 
}

#barra-aviso-topo .aviso strong {
    font-weight: 800;
    color: #f2c713; 
}

.aviso-1 { animation-delay: 0s !important; }
.aviso-2 { animation-delay: 4s !important; }
.aviso-3 { animation-delay: 8s !important; }

@keyframes rotatividadeAvisos {
    0% { opacity: 0; transform: translateY(15px); }
    5%, 28% { opacity: 1; transform: translateY(0); }
    33.33%, 100% { opacity: 0; transform: translateY(-15px); }
}

@media (max-width: 767px) {
    #barra-aviso-topo .aviso {
        font-size: 11px;
        padding: 0 5px;
    }
}

.flexslider .slides img {
    height: auto;
    margin-top: 3%;
}