/* ==========================================================================

   MARKAI - CUSTOMIZAÇÃO MASTER (V2.1 - HEADER MINIMALISTA E LIMPO)

   Responsividade, Contexto, Premium Cards e Remoção de Sujeiras do Tema

   ========================================================================== */



/* 1. SUAVIZAÇÃO GLOBAL (Adeus branco estourado) */

body, .conteudo-fundo, #corpo {

    background-color: #F8F8F6 !important;

}



/* 2. CONTEXTO DE CATEGORIAS 

   Substitua os IDs 00000 e 11111 pelos IDs reais das categorias */

body.categoria-00000 { background-color: #F2EEE9 !important; }

body.categoria-11111 { background-color: #EFF1F3 !important; }



/* 3. EFEITO FLAT TOP GLOBAL (Colado no cabeçalho/banner) */

body #corpo, body #corpo > .conteiner, body .conteudo-fundo {

    border-top-left-radius: 0 !important;

    border-top-right-radius: 0 !important;

    padding-top: 0 !important; 

    margin-top: 0 !important;

}



/* 4. BANNER FULL WIDTH (Apenas Desktop) */

@media only screen and (min-width: 768px) {

    body.pagina-inicial .span3 { display: none !important; }

    body.pagina-inicial .span9 { width: 100% !important; margin-left: 0 !important; }

    body.pagina-inicial .flexslider { width: 100% !important; }

}



/* 5. CARDS DE PRODUTO - ESTRUTURA BASE E DESKTOP */

body #corpo .listagem .listagem-item {

    border: none !important;

    border-radius: 12px !important;

    background: #fff !important;

    display: flex !important;

    flex-direction: column !important;

    transition: transform 0.3s ease !important;

}



@media only screen and (min-width: 768px) {

    body #corpo .listagem .listagem-item {

        height: 100% !important;

        box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;

    }

    body #corpo .listagem .listagem-item:hover {

        transform: translateY(-5px) !important;

        box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;

    }

    body #corpo .listagem .listagem-item .info-produto {

        min-height: 140px !important; 

        padding: 15px 10px !important;

        display: flex !important;

        flex-direction: column !important;

        justify-content: flex-start !important;

    }

}



/* 6. CORREÇÃO DE RESPONSIVIDADE (Celular e Tablet) */

@media only screen and (max-width: 767px) {

    body #corpo .listagem .listagem-item {

        margin: 5px !important;

        min-height: auto !important; 

        height: auto !important;

        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;

    }

    body #corpo .listagem .listagem-item .info-produto {

        min-height: auto !important; 

        padding: 8px !important;

        flex-grow: 1 !important;

    }

    body #corpo .listagem .listagem-item .nome-produto {

        font-size: 13px !important; 

        line-height: 1.2 !important;

        margin-bottom: 5px !important;

    }

    .slick-slide { padding: 0 5px !important; }

}



/* 7. IMAGENS E BOTÕES DOS CARDS */

body #corpo .listagem .listagem-item .imagem-produto img {

    border-radius: 12px 12px 0 0 !important;

    object-fit: cover !important;

}

body #corpo .listagem .listagem-item .acoes-produto {

    margin-top: auto !important;

    padding: 10px !important;

}

body #corpo .listagem .linha .slick-track { display: flex !important; }

body #corpo .listagem .linha .slick-slide { height: auto !important; display: flex !important; }





/* ==========================================================================

   8. RECONSTRUÇÃO DO CABEÇALHO (Busca | Logo Central | Carrinho)

   ========================================================================== */



/* Limpeza Extrema: Some com saudação, dropdowns, minha conta e pedidos */

body #cabecalho .bem-vindo, 

body #cabecalho .saudacao, 

body #cabecalho .identificacao,

body #cabecalho .acoes-conta,

body #cabecalho .menu-conta,

body #cabecalho .dropdown,

body #cabecalho a[href*="/conta/"],

body #cabecalho a[href*="/pedido/"] {

    display: none !important;

}



@media only screen and (min-width: 768px) {

    body #cabecalho .conteiner > .row-fluid {

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important; /* Alinha tudo verticalmente no meio */

        justify-content: space-between !important;

        flex-wrap: nowrap !important;

        min-height: 80px !important; 

    }



    body #cabecalho .conteiner > .row-fluid > * {

        float: none !important;

        display: block !important;

    }



    /* 1. Busca na Esquerda (Tamanho Fixo) */

    body #cabecalho .busca {

        flex: 0 0 300px !important; 

        order: 1 !important; 

        margin: 0 !important;

        display: flex !important;

        align-items: center !important;

    }

    

    /* Remove margens do formulário da busca */

    body #cabecalho .busca form {

        margin: 0 !important;

        width: 100% !important;

    }



    /* 2. Logo Exatamente no Centro */

    body #cabecalho .logo {

        flex: 1 !important;

        order: 2 !important;

        display: flex !important;

        justify-content: center !important;

        align-items: center !important;

        margin: 0 !important;

    }



    /* 3. Carrinho Solitário na Direita */

    body #cabecalho .superior {

        flex: 0 0 300px !important; 

        order: 3 !important;

        display: flex !important;

        justify-content: flex-end !important;

        align-items: center !important;

        margin: 0 !important;

        padding-right: 15px !important;

    }

}



/* Mantém a logo centralizada no celular */

@media only screen and (max-width: 767px) {

    body #cabecalho .logo {

        display: flex !important;

        justify-content: center !important;

        margin: 15px auto !important;

        text-align: center !important;

    }

}



/* ==========================================================================

   9. ESTILIZAÇÃO DO COMPONENTE DE BUSCA (Visual Premium)

   ========================================================================== */

#cabecalho .busca input {

    border: 1px solid #E0E0E0 !important;

    border-radius: 25px !important; 

    padding: 10px 20px !important;

    background-color: #F8F8F8 !important; 

    box-shadow: none !important;

    width: 100% !important; 

    box-sizing: border-box !important;

}



#cabecalho .busca input:focus {

    border: 1px solid #C4A484 !important; 

    background-color: #FFF !important;

    outline: none !important;

}



#cabecalho .busca button {

    border: none !important;

    background: transparent !important;

    position: absolute !important;

    right: 15px !important;

    top: 50% !important;

    transform: translateY(-50%) !important;

    padding: 0 !important;

}

#cabecalho .busca form {

    position: relative !important;

    margin: 0 !important;

}



/* ==========================================================================

   10. CORREÇÃO DO MENU (Centralizado e Fundo Consertado)

   ========================================================================== */

body #cabecalho .menu.superior,

body .menu.full {

    display: flex !important;

    justify-content: center !important;

    width: 100% !important;

    background-color: #FFFFFF !important; 

    border-top: 1px solid #F0F0F0 !important; 

    border-bottom: 1px solid #F0F0F0 !important;

}



body #cabecalho .menu.superior > ul.nivel-um {

    display: flex !important;

    justify-content: center !important;

    align-items: center !important;

    width: auto !important;

    float: none !important;

    margin: 0 auto !important;

    padding: 10px 0 !important;

}



body #cabecalho .menu.superior > ul.nivel-um > li {

    float: none !important;

    display: inline-block !important;

    margin: 0 15px !important;

}