/* ============================================================================
   Porto di Vino — header e rodapé novos (handoff "Nova Home", Figma 1920px).

   Mantém o markup e o comportamento do header.master (dropdowns de Clube/Loja,
   popover de login, offcanvas do carrinho, menu mobile) e troca só o visual.
   Desktop a partir de 992px (mesmo corte de .desktopEnabled no site.css).
   ========================================================================= */

/* ---------------------------------------------------------------- Header */
.pdv-header .pdv-sacola__badge {
    position: absolute; top: -6px; right: -8px; z-index: 2;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: #620205; color: #fff; border: 2px solid #fff;
    font: 700 12px/16px Montserrat, Arial, sans-serif; text-align: center;
    pointer-events: none;
}
.pdv-header .pdv-sacola__badge[hidden] { display: none; }

/* Botões redondos (Entrar / Sacola / busca): vermelho da marca + ícone branco por máscara. */
.pdv-header .bola {
    position: relative;
    background-color: #BE2128 !important; border-color: #BE2128 !important;
    background-image: none !important;
}
.pdv-header .bola:hover { background-color: #620205 !important; border-color: #620205 !important; }
.pdv-header .bola::before {
    content: ""; position: absolute; inset: 18%; background: #F8F8F8;
    -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.pdv-header .bola.cadastro::before, .pdv-header .bola.cadastro_on::before { -webkit-mask-image: url('/img/header/user.svg'); mask-image: url('/img/header/user.svg'); inset: 16%; }
.pdv-header .bola.carrinho::before { -webkit-mask-image: url('/img/header/bag.svg'); mask-image: url('/img/header/bag.svg'); inset: 19%; }
.pdv-header .bola.busca::before { -webkit-mask-image: url('/img/header/search.svg'); mask-image: url('/img/header/search.svg'); inset: 19%; }

.pdv-header .pdv-icone--mobile { position: relative; display: inline-block; }
.pdv-header .pdv-icone--mobile .pdv-sacola__badge { top: -4px; right: 2px; }

@media (min-width: 992px) {
    .pdv-header {
        position: sticky; top: 0; z-index: 1030;
        border-bottom: 1px solid #DDDDDD;
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.12);
    }
    .pdv-header-sombra { display: none; }

    .pdv-header .navbar.desktopEnabled {
        padding: clamp(10px, 1.3vw, 24px) clamp(16px, 3.3vw, 64px);
        min-height: clamp(64px, 7.7vw, 148px);
        font-family: Montserrat, -apple-system, "Helvetica Neue", Arial, sans-serif;
    }
    .pdv-header .navbar.desktopEnabled > .container-xxl { max-width: 1920px; padding: 0; align-items: center; }
    .pdv-header #navbars { top: 0 !important; }

    .pdv-header .pdv-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; padding: 0; }
    .pdv-header .pdv-logo__taca { height: clamp(34px, 3.6vw, 70px); width: auto; }
    .pdv-header .pdv-logo__nome { width: clamp(70px, 7.3vw, 140px); height: auto; }

    /* Menu: Clube, Loja, Eventos, Dicas */
    .pdv-header #navbars > .navbar-nav.m-auto { gap: clamp(20px, 2.8vw, 54px); margin-left: clamp(20px, 4vw, 80px) !important; }
    .pdv-header #navbars > .navbar-nav.m-auto > .nav-item > .nav-link {
        font-family: Montserrat, Arial, sans-serif; font-weight: 400;
        font-size: clamp(18px, 1.6vw, 30px); line-height: 1.2; color: #000;
        padding: 0 0 6px; border-bottom: 1.5px solid transparent;
    }
    .pdv-header #navbars > .navbar-nav.m-auto > .nav-item > .nav-link:hover { color: #BE2128; }
    .pdv-header #navbars > .navbar-nav.m-auto > .nav-item.is-ativo > .nav-link { border-bottom-color: #746D6D; }
    .pdv-header .desktopEnabled .dropdown-menu.clube, .pdv-header .desktopEnabled .dropdown-menu.loja { top: 100%; }

    /* Busca: pílula cinza com o botão redondo sobreposto à direita */
    .pdv-header #navbars fieldset > .navbar-nav { align-items: center; gap: clamp(10px, 2vw, 40px); }
    .pdv-header #navbars .input-group { position: relative; flex-wrap: nowrap; align-items: center; }
    .pdv-header .buscaHeader {
        width: clamp(110px, 15.6vw, 300px) !important; height: clamp(28px, 1.95vw, 37.5px);
        border: 0; border-radius: 27px !important; background: #DDDDDD;
        padding: 0 clamp(36px, 2.6vw, 50px) 0 16.5px;
        font-family: Montserrat, Arial, sans-serif; font-weight: 300; font-size: clamp(11px, 0.94vw, 18px); color: #525050;
    }
    .pdv-header .buscaHeader::placeholder { text-transform: uppercase; color: #525050; }
    .pdv-header .buscaHeader:focus { box-shadow: none; background: #e6e6e6; }
    .pdv-header #aBusca {
        position: absolute; right: -4px; top: 50%; transform: translateY(-50%); z-index: 5;
        width: clamp(32px, 2.32vw, 44.5px); height: clamp(32px, 2.32vw, 44.5px);
        border-radius: 50% !important; margin: 0;
    }

    /* Entrar / Sacola: círculo de 45px + legenda */
    .pdv-header .pdv-icone {
        position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
        font-family: Montserrat, Arial, sans-serif; font-size: 0; color: #000;
        margin: 0 !important;
    }
    .pdv-header .pdv-icone .bola { width: clamp(30px, 2.34vw, 45px); height: clamp(30px, 2.34vw, 45px); margin: 0 !important; padding: 0; }
    .pdv-header .pdv-icone__legenda { font-size: clamp(10px, 0.94vw, 18px); line-height: 1.1; white-space: nowrap; }
    .pdv-header .pdv-icone .pdv-sacola__badge { right: calc(50% - clamp(30px, 2.34vw, 45px) / 2 - 8px); }
}

/* ---------------------------------------------------------------- Rodapé */
.pdv-rodape {
    position: relative; background: #F5F3E6; color: #000;
    border-top-right-radius: clamp(80px, 22.5vw, 433px);
    font-family: Montserrat, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
/* site.css aplica "* { font-size: 14px; font-family: montserrat-medium }". */
.pdv-rodape * { box-sizing: border-box; font-family: inherit; font-size: inherit; }

.pdv-rodape__grade {
    max-width: 1920px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 80px); align-items: flex-start;
    padding: clamp(32px, 3.6vw, 69px) clamp(16px, 3.3vw, 63px) clamp(28px, 2.6vw, 50px);
}

.pdv-rodape__news {
    flex: 0 1 424px; width: 100%; background: #620205;
    padding: clamp(20px, 1.3vw, 24.5px) clamp(20px, 1.9vw, 36.5px) clamp(24px, 1.5vw, 28px);
    display: flex; flex-direction: column; gap: clamp(12px, 1vw, 18px);
}
/* Validadores do Web Forms são <span> invisíveis: fora do fluxo para não somar ao gap. */
.pdv-rodape__news > span[id], .pdv-rodape__news > div[id] { position: absolute; }
.pdv-rodape__news { position: relative; }
.pdv-rodape__news-titulo { color: #fff; font-weight: 700; font-size: clamp(16px, 1.25vw, 24px); line-height: 1.15; text-align: center; text-transform: uppercase; }
.pdv-rodape .pdv-rodape__campo {
    width: 100%; height: clamp(46px, 3.1vw, 60px);
    border-radius: 5px; border: 1px solid #fff; background: transparent; color: #fff;
    padding: 0 22.5px; font-weight: 500; font-size: clamp(15px, 1.04vw, 20px); outline: none;
}
.pdv-rodape .pdv-rodape__campo::placeholder { color: rgba(255, 255, 255, 0.71); text-transform: uppercase; }
.pdv-rodape .pdv-rodape__enviar {
    width: 100%; height: clamp(46px, 3.1vw, 60px);
    border-radius: 5px; border: 1px solid #fff; background: #F5F3E6; color: #620205;
    font-weight: 700; font-size: clamp(15px, 1.04vw, 20px); text-transform: uppercase; cursor: pointer;
}
.pdv-rodape .pdv-rodape__enviar:hover { background: #fff; }

.pdv-rodape__colunas { flex: 1 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: clamp(24px, 2.2vw, 42px); }
.pdv-rodape__coluna { display: flex; flex-direction: column; gap: clamp(12px, 0.8vw, 15px); }
.pdv-rodape__titulo {
    font-weight: 800; font-size: clamp(18px, 1.67vw, 32px); line-height: 1; text-transform: uppercase;
    padding-bottom: clamp(10px, 0.8vw, 15px); border-bottom: 1px solid #620205;
}
.pdv-rodape__links { display: flex; flex-direction: column; gap: 4px; font-weight: 400; font-size: clamp(13px, 1.13vw, 21.68px); line-height: 1.23; text-transform: uppercase; }
.pdv-rodape__links a { color: #000; text-decoration: none; }
.pdv-rodape__links a:hover { color: #BE2128; }
.pdv-rodape__contatos a { display: flex; align-items: center; gap: 12px; line-height: 1.4; }
.pdv-rodape__icone {
    width: clamp(20px, 1.53vw, 29.4px); height: clamp(20px, 1.53vw, 29.4px); flex-shrink: 0;
    background: #620205; display: flex; align-items: center; justify-content: center;
}
.pdv-rodape__icone svg { width: 64%; height: 64%; fill: #fff; }

.pdv-rodape__cartoes { display: grid; grid-template-columns: repeat(2, minmax(0, 110px)); gap: clamp(10px, 1vw, 18px) clamp(16px, 1.6vw, 30px); align-items: center; }
.pdv-rodape__cartoes img { width: 100%; max-width: 90px; height: auto; }

.pdv-rodape__18 {
    width: min(100% - 32px, 1000px); margin: 0 auto clamp(16px, 1.3vw, 24px);
    background: #000; color: #fff; text-align: center; text-transform: uppercase;
    font-weight: 500; font-size: clamp(10px, 0.97vw, 18.54px); padding: 6px clamp(12px, 1.5vw, 28px);
}
.pdv-rodape__legal { margin: 0; padding: 0 16px clamp(16px, 1.3vw, 24px); text-align: center; color: rgba(0, 0, 0, 0.5); font-size: 12px; }
