/* ==========================================
   ESTRUTURA GERAL E RODAPÉ FIXO NO FIM
   ========================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: #2b2b2b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f7f9fa; 
}

/* ==========================================
   FUNDOS DINÂMICOS DAS ABAS (TELA CHEIA)
   ========================================== */
.vitrine-full-bg-mercado::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('../img/fundo-mercado.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.vitrine-full-bg-drogaria::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('../img/fundo-drogaria.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.page-bg-branca {
    background-color: #f7f9fa;
}

.aba-conteudo {
    display: none;
    flex: 1; 
    flex-direction: column;
}

.aba-conteudo.ativa {
    display: flex;
}

/* ==========================================
   CABEÇALHO
   ========================================== */
header {
    background-color: #fbea1d;
    padding: 10px 0;
    border-bottom: 4px solid #0026ff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marca-bloco {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-site {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

/* Aqui forcei o alinhamento para o centro */
.texto-branding {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.brand-nome {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    color: #0026ff; 
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-segmento {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0026ff; 
    line-height: 1.2;
}

/* ==========================================
   MENU NAVEGAÇÃO CENTRALIZADO
   ========================================== */
.menu-navegacao {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex: 1; 
}

.menu-navegacao a {
    text-decoration: none;
    color: #0026ff; 
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.menu-navegacao a:hover,
.menu-navegacao a.ativo {
    background-color: rgba(0, 38, 255, 0.12); 
}

.menu-navegacao a.destaque-drogaria {
    color: #d90429;
}

/* ==========================================
   ÍCONES DAS REDES SOCIAIS (REDONDOS E LIMPOS)
   ========================================== */
.header-acoes-direita {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.social-dropdown {
    position: relative;
}

.social-icon-btn {
    width: 32px; 
    height: 32px; 
    border-radius: 50%;
    border: none;
    background-color: #0026ff; 
    color: #ffffff; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

.social-icon-btn:hover {
    background-color: #0019aa;
    transform: translateY(-2px);
}

.social-icon-btn.wa-btn {
    background-color: #25d366; 
    color: #ffffff;
}

.social-icon-btn.wa-btn:hover {
    background-color: #1ebc57;
}

.social-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #ffffff;
    min-width: 225px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    border: 2px solid #0026ff;
    padding: 8px;
    z-index: 2000;
    flex-direction: column;
    gap: 6px;
}

.social-dropdown-menu.aberto {
    display: flex;
}

.dropdown-titulo {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #666;
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
}

.social-dropdown-menu a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    color: #0026ff; 
}

.social-dropdown-menu a.opcao-mercado {
    background-color: #f0f4ff;
}

.social-dropdown-menu a.opcao-mercado:hover {
    background-color: #0026ff;
    color: #fbea1d;
}

.social-dropdown-menu a.opcao-drogaria {
    color: #d90429;
    background-color: #fff0f3;
}

.social-dropdown-menu a.opcao-drogaria:hover {
    background-color: #d90429;
    color: #ffffff;
}

.menu-mobile-btn {
    display: none;
    background: transparent;
    color: #0026ff;
    border: 1px solid rgba(0, 38, 255, 0.3);
    font-size: 1.3rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* ==========================================
   ELEMENTOS DE CONTEÚDO GERAIS
   ========================================== */
.clube-vantagens-container {
    background-color: #ffffff;
    border-radius: 16px;
    width: calc(100% - 40px);
    max-width: 1110px;
    margin: 30px auto;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.clube-conteudo-texto {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
}

.clube-conteudo-texto h2 {
    color: #0026ff;
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 900;
}

.clube-conteudo-texto p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

.lista-beneficios-clube {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.lista-beneficios-clube li {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #2b2b2b;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.lista-beneficios-clube li::before {
    content: "⭐";
    margin-right: 10px;
    flex-shrink: 0;
}

.clube-bloco-botao {
    text-align: center;
    min-width: 250px;
}

.botao-registro-clube {
    background-color: #0026ff;
    color: #fbea1d;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.container {
    max-width: 1150px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.produto-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.produto-card h3 {
    font-size: 1.05rem;
    color: #0026ff;
    margin: 10px 0;
    min-height: 35px;
}

/* ==========================================
   NOVO BANNER DE IMAGEM DO CLUBE COM BOTÃO EMBUTIDO
   ========================================== */
.banner-clube-container {
    width: 100%;
    max-width: 550px; 
    margin: 40px auto 10px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.link-banner-clube {
    display: block;
    width: 100%;
    transition: transform 0.2s ease;
}

.link-banner-clube:hover {
    transform: scale(1.01);
}

.banner-clube-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: block;
    border: 3px solid #ffffff; 
    box-sizing: border-box;
}

.banner-overlay-btn {
    position: absolute;
    bottom: 10px; 
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none; 
}

.btn-pulsante-clube {
    animation: pulsoSuaveClube 2s infinite;
    font-size: 0.8rem; 
    padding: 6px 16px; 
    border-radius: 50px;
    background-color: #d90429; 
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    border: 2px solid #ffffff; 
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.5);
    pointer-events: auto; 
}

@keyframes pulsoSuaveClube {
    0% { box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(217, 4, 41, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 4, 41, 0); }
}

/* ==========================================
   CAIXA ESCURA CENTRALIZADA (VITRINE)
   ========================================== */
.container-vitrine {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 10px 20px 40px 20px; 
    box-sizing: border-box;
}

.vitrine-centro {
    justify-content: center; 
    margin-top: 0;
}

.vitrine-content-overlay {
    background: rgba(0, 0, 0, 0.65);
    padding: 35px;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    box-sizing: border-box; 
}

.vitrine-titulo {
    color: #ffffff !important;
    font-size: 2.1rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cta-online-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-ir-loja-online {
    background-color: #25d366;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
    animation: pulsoSuave 2s infinite;
}

.btn-ir-loja-online:hover {
    background-color: #1ebc57;
    transform: scale(1.05);
}

@keyframes pulsoSuave {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Botões PlayStore / AppStore */
.app-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-app {
    display: flex;
    align-items: center;
    background-color: #000000;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-app:hover {
    background-color: #333333;
    transform: translateY(-3px);
}

.btn-app-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-app-text span {
    font-size: 0.65rem;
    line-height: 1;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.btn-app-text strong {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 700;
}

/* Formulários */
.formulario-topurai {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-linha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-grupo label {
    font-weight: bold;
    color: #0026ff;
    font-size: 0.9rem;
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    padding: 10px 12px;
    border: 1px solid #ccd6dd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

/* ==========================================
   RODAPÉ FIXO NA MARGEM INFERIOR
   ========================================== */
footer {
    background-color: #fbea1d;
    color: #0026ff;
    text-align: center;
    padding: 20px;
    border-top: 4px solid #0026ff;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: auto; 
}

footer p {
    margin: 4px 0;
    font-weight: normal; 
    font-size: 1rem;
}

/* ========================================================
   TEMA VERMELHO EXCLUSIVO PARA A ABA DA DROGARIA
   ======================================================== */
body.tema-drogaria header {
    border-bottom-color: #d90429;
}

/* Quando entra na aba Drogaria, o botão pinta de vermelho com texto branco */
body.tema-drogaria .menu-navegacao a.ativo,
body.tema-drogaria .menu-navegacao a.destaque-drogaria.ativo {
    background-color: #d90429;
    color: #ffffff !important;
}

body.tema-drogaria footer {
    border-top-color: #d90429;
    color: #d90429;
}

/* ==========================================
   AJUSTES PARA TELEMÓVEIS
   ========================================== */
@media (max-width: 860px) {
    .header-container {
        flex-wrap: wrap;
    }
    .menu-mobile-btn {
        display: block;
    }
    .menu-navegacao {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 12px;
        background: #fff9a6; /* Fundo amarelo claro no mobile */
        padding: 12px;
        border-radius: 8px;
    }
    .menu-navegacao.aberto {
        display: flex;
    }
    .clube-vantagens-container {
        padding: 20px;
        margin: 20px auto;
    }
    .vitrine-content-overlay {
        padding: 25px 15px;
    }
    .vitrine-titulo {
        font-size: 1.8rem;
    }
    .vitrine-full-bg-mercado::before,
    .vitrine-full-bg-drogaria::before {
        background-attachment: scroll; 
    }
}