/* =========================================================
   Site.Master
   ========================================================= */

:root {
    --cor-rosa: #FE036A;
    --cor-fundo: #F9F8F6;
    --cor-texto: #1a1a1a;
    --cor-cinza: #666666;
    --cor-borda: #e5e3de;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--cor-fundo) !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--cor-texto);
}

/* 1. FAIXA DE AVISOS */
.faixa-topo {
    background-color: var(--cor-rosa);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 30px;
    letter-spacing: 0.5px;
}
.faixa-topo span { display: flex; align-items: center; gap: 6px; }

/* 2. CABEÇALHO */
.header-principal {
    background-color: #ffffff;
    padding: 35px 30px 45px 30px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo { flex: 1; display: flex; justify-content: flex-start; }
.header-logo img { max-height: 80px; width: auto; }

.header-busca-container { flex: 2; display: flex; justify-content: center; width: 100%; }
.header-busca {
    width: 100%; max-width: 600px;
    display: flex; align-items: center;
    background-color: #f4f4f4;
    border-radius: 30px;
    padding: 8px 8px 8px 25px;
    border: 1px solid transparent;
    transition: 0.3s;
}
.header-busca:focus-within {
    border-color: var(--cor-rosa);
    background-color: #fff;
    box-shadow: 0 0 10px rgba(254, 3, 106, 0.1);
}
.header-busca input {
    border: none; background: transparent; outline: none;
    width: 100%; font-size: 13px; color: var(--cor-texto);
}
.btn-busca {
    background-color: var(--cor-rosa);
    color: #fff !important; text-decoration: none; border: none;
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.btn-busca:hover { background-color: #d80056; transform: scale(1.05); }

.header-acoes { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 35px; }
.acao-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cor-texto); transition: 0.3s; }
.acao-item:hover { color: var(--cor-rosa); }
.acao-icone { font-size: 26px; position: relative; }
.acao-textos { display: flex; flex-direction: column; line-height: 1.25; }
.acao-textos span { font-size: 11px; color: var(--cor-cinza); }
.acao-textos strong { font-size: 13px; font-weight: 600; }
.badge-carrinho {
    position: absolute; top: -5px; right: -8px;
    background-color: var(--cor-rosa); color: #fff;
    font-size: 10px; font-weight: bold;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* 3. MENU - ALINHAMENTO PERFEITO */
.header-menu-wrap {
    background-color: #ffffff;
    border-top: 1px solid var(--cor-borda);
    border-bottom: 1px solid var(--cor-borda);
    position: sticky; top: 0; z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    height: 50px;
    padding-top: 15px !important;
}

.menu-links {
    display: flex; justify-content: center; align-items: center;
    gap: 30px; list-style: none; padding: 0; margin: 0;
    height: 100%;
}

.menu-links > a, .kcms-dropbtn {
    color: var(--cor-texto) !important; text-decoration: none !important;
    font-size: 13px !important; font-weight: 600 !important;
    text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center;
    position: relative; background: transparent !important;
    border: none; cursor: pointer; height: 100%;
    margin: 0; padding: 0 !important;
    font-family: inherit;
}

.menu-links > a::after, .kcms-dropbtn::after {
    content: ''; position: absolute;
    width: 0; height: 2px; bottom: 0; left: 50%;
    background-color: var(--cor-rosa);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-links > a:hover::after, .kcms-dropbtn:hover::after,
.menu-links > a.ativo::after, .kcms-dropbtn.ativo::after { width: 100%; }

.menu-links > a:hover, .kcms-dropbtn:hover,
.menu-links > a.ativo, .kcms-dropbtn.ativo { color: var(--cor-rosa) !important; }

.kcms-dropdown { position: relative; display: flex; align-items: center; height: 100%; }

.kcms-dropdown-content {
    display: none; position: absolute;
    background-color: #ffffff; min-width: 200px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.08);
    z-index: 10000; border-radius: 8px;
    border: 1px solid var(--cor-borda);
    top: 100%; left: 50%; transform: translateX(-50%);
    padding: 8px 0; overflow: hidden;
}
.kcms-dropdown:hover .kcms-dropdown-content { display: block; }
.kcms-dropdown-content a {
    color: var(--cor-texto) !important;
    padding: 10px 20px !important; height: auto;
    text-decoration: none !important; display: block !important;
    font-size: 12px !important; font-weight: 500 !important;
    transition: 0.3s;
}
.kcms-dropdown-content a:hover {
    color: var(--cor-rosa) !important;
    background-color: rgba(254, 3, 106, 0.04) !important;
    padding-left: 25px !important;
}

/* 4. MOBILE */
.btn-mobile {
    display: none; background: none; border: none;
    font-size: 24px; cursor: pointer; color: var(--cor-texto);
}
.menu-drawer-topo, .menu-overlay, .menu-nome-mobile,
a.menu-sair-mobile, .menu-links > a.menu-sair-mobile { display: none; }

/* TABLET */
@media (max-width: 1024px) {
    .faixa-topo { justify-content: center; gap: 25px; padding: 8px 20px; }
    .faixa-topo span:nth-child(2) { display: none; }

    .header-principal { flex-wrap: wrap; gap: 15px 20px; padding: 15px 20px; }
    .header-logo img { max-height: 64px; }
    .header-busca-container { order: 3; flex: 100%; max-width: 100%; }
    .header-busca { max-width: none; }
    .header-acoes { gap: 18px; }

    .menu-links { flex-wrap: wrap; gap: 0 22px; padding: 0 20px; }
}

/* CELULAR */
@media (max-width: 768px) {
    .faixa-topo { padding: 8px 15px; }
    .faixa-topo span:nth-child(3) { display: none; }

    .header-principal {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "menu logo acoes" "busca busca busca";
        align-items: center;
        gap: 12px 10px;
        padding: 12px 15px 15px;
    }
    .btn-mobile {
        grid-area: menu; justify-self: start;
        display: flex !important; align-items: center; justify-content: center;
        width: 42px !important; height: 42px !important;
        padding: 0 !important; margin: 0 !important;
        background: #f4f4f4 !important; color: var(--cor-texto) !important;
        border: none !important; border-radius: 50% !important;
        font-size: 20px !important; line-height: 1 !important; box-shadow: none !important;
    }
    .header-logo { grid-area: logo; flex: none; justify-content: center; }
    .header-logo img { max-height: 58px; display: block; }
    .header-acoes { grid-area: acoes; flex: none; justify-self: end; gap: 14px; }
    .header-busca-container { grid-area: busca; order: 0; }
    .header-busca { padding: 4px 4px 4px 16px; }
    .header-busca input { font-size: 16px; }
    .btn-busca { width: 38px; height: 38px; flex-shrink: 0; }

    .acao-textos { display: none; }
    .acao-item { cursor: pointer; }
    .acao-icone { font-size: 22px; }

    /* Gaveta lateral */
    .header-menu-wrap {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 82%; max-width: 320px;
        display: block;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100000; overflow-y: auto;
        pointer-events: auto;
        border: none; box-shadow: none;
        background-color: #ffffff;
        height: 100vh;
        margin-bottom: 0;
    }
    .header-menu-wrap.aberto { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,0.15); }
    .menu-drawer-topo {
        display: flex; align-items: center; justify-content: space-between;
        padding: 18px 20px; border-bottom: 1px solid var(--cor-borda);
        font-weight: 700; font-size: 15px;
    }
    .menu-drawer-fechar {
        background: none !important; border: none !important; box-shadow: none !important;
        font-size: 22px !important; color: var(--cor-texto) !important;
        padding: 0 !important; width: auto !important; cursor: pointer;
    }
    .menu-nome-mobile {
        display: flex; align-items: center; gap: 12px;
        padding: 18px 20px;
        background: linear-gradient(135deg, #FFF0F5 0%, #ffe3ee 100%);
        border-bottom: 1px solid var(--cor-borda);
    }
    .menu-nome-mobile .avatar {
        width: 42px; height: 42px; border-radius: 50%;
        background: var(--cor-rosa); color: #fff;
        display: flex; align-items: center; justify-content: center;
        font-size: 20px; flex-shrink: 0;
    }
    .menu-nome-mobile .texto { display: flex; flex-direction: column; line-height: 1.3; }
    .menu-nome-mobile .texto small { font-size: 11px; color: var(--cor-cinza); }
    .menu-nome-mobile .texto strong { font-size: 14px; color: var(--cor-texto); }
    .menu-overlay {
        display: block; position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none;
        transition: opacity 0.3s; z-index: 99990;
    }
    .menu-overlay.aberto { opacity: 1; pointer-events: auto; }
    body.menu-aberto { overflow: hidden; }

    .menu-links { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 0; height: auto; }
    .menu-links > a { display: block; padding: 15px 20px !important; border-bottom: 1px solid #f1f1f1; height: auto; }
    a.menu-sair-mobile, .menu-links > a.menu-sair-mobile {
        display: block !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid #f1f1f1;
        color: var(--cor-rosa) !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 13px;
        text-decoration: none; height: auto;
    }
    .kcms-dropdown { display: block; border-bottom: 1px solid #f1f1f1; height: auto; }
    .kcms-dropbtn { display: block; width: 100%; text-align: left; padding: 15px 20px !important; height: auto; }
    .menu-links > a::after, .kcms-dropbtn::after { display: none; }
    .kcms-dropdown:hover .kcms-dropdown-content { display: none; }
    .kcms-dropdown-content {
        position: static; transform: none; box-shadow: none; border: none; border-radius: 0;
        background: #f9f9f9; width: auto; min-width: 0; padding: 0;
    }
    .kcms-dropdown-content a { padding: 12px 30px !important; }

    #modalAvisoPagamento { left: 15px !important; right: 15px !important; bottom: 15px !important; }
    #modalAvisoPagamento > div { width: auto !important; }
}

/* RODAPÉ */
.conteudo { min-height: 50vh; }

.rodape { background: #ffffff; border-top: 1px solid var(--cor-borda); margin-top: 60px; font-size: 13px; color: var(--cor-cinza); }
.rodape-faixa {
    max-width: 1300px; margin: 0 auto; padding: 50px 30px 35px;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
}
.rodape-marca img { max-height: 80px; margin-bottom: 14px; }
.rodape-marca p { line-height: 1.6; margin: 0 0 18px; max-width: 280px; }
.rodape-sociais { display: flex; gap: 10px; }
.rodape-sociais a {
    width: 40px; height: 40px; border-radius: 50%;
    background: #FFF0F5; color: var(--cor-rosa);
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.rodape-sociais a:hover { background: var(--cor-rosa); color: #fff; transform: translateY(-2px); }
.rodape-sociais svg, .rodape-whats svg { width: 18px; height: 18px; }
.rodape-col h4 { color: var(--cor-texto); font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.rodape-col a, .rodape-col span { display: block; color: var(--cor-cinza); text-decoration: none; margin-bottom: 11px; transition: 0.2s; }
.rodape-col a:hover { color: var(--cor-rosa); }
.rodape-col a.rodape-whats {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--cor-rosa); color: #fff;
    padding: 11px 20px; border-radius: 30px; font-weight: 600; margin-top: 6px;
}
.rodape-col a.rodape-whats:hover { background: #d80056; color: #fff; }
.rodape-base { border-top: 1px solid var(--cor-borda); background: var(--cor-fundo); }
.rodape-base-inner {
    max-width: 1300px; margin: 0 auto; padding: 18px 30px;
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 12px; color: #999;
}
.rodape-dev a { color: var(--cor-texto); font-weight: 700; text-decoration: none; transition: 0.2s; }
.rodape-dev a:hover { color: var(--cor-rosa); }
.rodape-legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.rodape-legal a { color: #999; text-decoration: none; font-size: 12px; transition: 0.2s; }
.rodape-legal a:hover { color: var(--cor-rosa); }

@media (max-width: 1024px) {
    .rodape-faixa { grid-template-columns: 1fr 1fr; gap: 35px; padding: 40px 20px 30px; }
    .rodape-base-inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 768px) {
    .rodape { margin-top: 40px; }
    .rodape-faixa { gap: 30px 20px; padding: 35px 20px 25px; text-align: center; }
    .rodape-marca, .rodape-atendimento { grid-column: 1 / -1; }
    .rodape-marca img { display: block; margin: 0 auto 12px; max-height: 70px; }
    .rodape-marca p { margin: 0 auto 16px; }
    .rodape-sociais { justify-content: center; }
    .rodape-base-inner { flex-direction: column; text-align: center; gap: 10px; }
}

/* =========================================================
   BANNER DE COOKIES (LGPD)
========================================================= */
.cookie-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    max-width: 980px; margin: 0 auto;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 22px 26px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 99998; color: #fff;
    animation: cookieSobe 0.5s ease;
}
@keyframes cookieSobe { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-conteudo { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-texto { flex: 1; min-width: 240px; }
.cookie-texto strong { font-size: 15px; display: block; margin-bottom: 4px; }
.cookie-texto p { margin: 0; font-size: 13px; color: #bbb; line-height: 1.5; }
.cookie-texto a { color: #FE036A; text-decoration: none; font-weight: 600; }
.cookie-texto a:hover { text-decoration: underline; }
.cookie-botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn-pri, .cookie-btn-sec {
    border: none; cursor: pointer; padding: 11px 20px;
    border-radius: 30px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.2s ease; font-family: inherit;
}
.cookie-btn-pri {
    background: linear-gradient(135deg, #FE036A 0%, #B8004B 100%); color: #fff;
    box-shadow: 0 6px 18px rgba(254, 3, 106, 0.35);
}
.cookie-btn-pri:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(254, 3, 106, 0.5); }
.cookie-btn-sec {
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}
.cookie-btn-sec:hover { background: rgba(255,255,255,0.15); }

.cookie-personalizar {
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-direction: column; gap: 14px;
}
.cookie-opcao {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 14px; border-radius: 12px; background: rgba(0,0,0,0.3);
}
.cookie-opcao strong { display: block; font-size: 14px; margin-bottom: 2px; }
.cookie-opcao small { font-size: 12px; color: #999; line-height: 1.4; }

.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch span {
    position: absolute; cursor: pointer; inset: 0;
    background: #333; border-radius: 24px; transition: 0.3s;
}
.cookie-switch span::before {
    content: ""; position: absolute; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
}
.cookie-switch input:checked + span { background: #FE036A; }
.cookie-switch input:checked + span::before { transform: translateX(20px); }
.cookie-switch input:disabled + span { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 600px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px; border-radius: 16px; }
    .cookie-botoes { width: 100%; }
    .cookie-botoes button { flex: 1; min-width: 0; padding: 11px 10px; font-size: 11px; }
}
