/**
 * =========================================================
 * ARQUIVO : /assets/css/hfstyle.css
 * PROJETO : BomVendedor
 * MÓDULO  : Header/Footer público
 * VERSÃO  : V8 PROFESSIONAL RESPONSIVE
 * DATA    : 04/05/2026
 * =========================================================
 */

.bv-header {
    position: sticky;
    top: 0;
    z-index: 5000;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(13,27,61,.10);
    box-shadow: 0 12px 35px rgba(13,27,61,.06);
}
.bv-header__bar { height: 4px; background: linear-gradient(90deg, var(--bv-navy), var(--bv-blue), var(--bv-gold)); }
.bv-header__container { padding-block: 12px 10px; }
.bv-header__top { display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; align-items: center; gap: 18px; }
.bv-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 232px; text-decoration: none; color: var(--bv-navy); }
.bv-brand__logo { width: 232px; height: auto; max-height: 72px; object-fit: contain; object-position: left center; display: block; }
.bv-brand__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--bv-navy), #12306b); color: #fff; font-weight: 950; box-shadow: var(--bv-shadow-sm); position: relative; }
.bv-brand__mark::after { content: ""; position: absolute; right: -4px; bottom: 7px; width: 24px; height: 10px; border-left: 5px solid var(--bv-gold); border-bottom: 5px solid var(--bv-gold); transform: rotate(-45deg); border-radius: 2px; }
.bv-brand__text { display: grid; line-height: 1; }
.bv-brand__text strong { font-size: 22px; font-weight: 950; letter-spacing: -.04em; }
.bv-brand__text small { margin-top: 5px; color: var(--bv-muted); font-weight: 700; font-size: 12px; }

.bv-search { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 10px; align-items: center; }
.bv-search__box { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid rgba(13,27,61,.13); border-radius: 999px; background: #f8fafc; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.bv-search__icon { color: var(--bv-blue); font-size: 22px; line-height: 1; font-weight: 900; }
.bv-search input { width: 100%; border: 0; background: transparent; outline: 0; color: var(--bv-navy); font: 700 14px/1 var(--bv-font); }
.bv-search input::placeholder { color: #7b8799; }
.bv-search__button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--bv-navy), #12306b); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 12px 28px rgba(13,27,61,.20); }
.bv-search__button:hover { transform: translateY(-1px); }

.bv-header__actions { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.bv-action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.bv-action-link--ghost { color: var(--bv-navy); border: 1px solid rgba(13,27,61,.12); background: #fff; }
.bv-action-link--primary { background: linear-gradient(135deg, var(--bv-gold), #ffd76d); color: var(--bv-navy); box-shadow: 0 10px 24px rgba(245,183,0,.24); }
.bv-account { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid rgba(13,27,61,.12); text-decoration: none; color: var(--bv-navy); box-shadow: var(--bv-shadow-sm); }
.bv-account__avatar-wrap { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(54,180,229,.35); }
.bv-account__avatar { width: 100%; height: 100%; object-fit: cover; }
.bv-account__content { display: grid; line-height: 1.1; }
.bv-account__content strong { font-size: 13px; font-weight: 900; max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bv-account__content small { font-size: 11px; color: var(--bv-muted); font-weight: 700; }

.bv-header__bottom { margin-top: 10px; display: flex; justify-content: center; }
.bv-nav { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(13,27,61,.045); border: 1px solid rgba(13,27,61,.08); }
.bv-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: #334155; font-weight: 850; font-size: 14px; }
.bv-nav a:hover, .bv-nav a.is-active { background: #fff; color: var(--bv-navy); box-shadow: 0 8px 18px rgba(13,27,61,.08); }
.bv-nav__account { color: #075985 !important; }
.bv-nav__logout { color: #991b1b !important; }

.bv-mobile-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(13,27,61,.12); border-radius: 14px; background: #fff; align-items: center; justify-content: center; gap: 4px; flex-direction: column; }
.bv-mobile-toggle span { display: block; width: 20px; height: 2px; border-radius: 4px; background: var(--bv-navy); transition: .2s ease; }
.bv-mobile-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bv-mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.bv-mobile-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.bv-footer { margin-top: 54px; padding: 44px 0 24px; background: radial-gradient(circle at 15% 0%, rgba(54,180,229,.22), transparent 30%), linear-gradient(135deg, var(--bv-navy), #071229); color: #fff; }
.bv-footer a { text-decoration: none; }
.bv-footer__cta { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(255,255,255,.08); box-shadow: 0 22px 60px rgba(0,0,0,.20); margin-bottom: 30px; }
.bv-footer__eyebrow { color: var(--bv-gold); text-transform: uppercase; letter-spacing: .08em; font-weight: 950; font-size: 12px; }
.bv-footer__cta h2 { margin: 6px 0 8px; font-size: clamp(26px, 4vw, 42px); line-height: 1; letter-spacing: -.05em; }
.bv-footer__cta p { margin: 0; color: rgba(255,255,255,.76); line-height: 1.6; }
.bv-footer__cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--bv-gold); color: var(--bv-navy); font-weight: 950; box-shadow: 0 12px 28px rgba(245,183,0,.25); }
.bv-footer__grid { display: grid; grid-template-columns: 1.1fr .7fr 1.2fr; gap: 28px; }
.bv-footer h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.02em; }
.bv-footer p { color: rgba(255,255,255,.72); line-height: 1.65; }
.bv-footer__cnpj { font-size: 12px; }
.bv-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bv-footer__social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.10); color: #fff; font-size: 13px; font-weight: 800; }
.bv-footer__social span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(54,180,229,.22); }
.bv-footer__links { display: grid; align-content: start; gap: 9px; }
.bv-footer__links a { color: rgba(255,255,255,.78); font-weight: 750; }
.bv-footer__links a:hover { color: #fff; }
.bv-footer-form { display: grid; gap: 10px; }
.bv-footer-form__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.bv-footer-form input[type="email"] { min-height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.10); color: #fff; padding: 0 16px; outline: 0; font-weight: 750; }
.bv-footer-form input[type="email"]::placeholder { color: rgba(255,255,255,.60); }
.bv-footer-form button { min-height: 46px; border-radius: 999px; border: 0; background: var(--bv-gold); color: var(--bv-navy); font-weight: 950; padding: 0 18px; cursor: pointer; }
.bv-footer-form__consent { display: flex; gap: 8px; align-items: flex-start; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.4; }
.bv-footer__stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; }
.bv-footer__stores a { display: grid; place-items: center; width: 104px; height: 50px; border-radius: 16px; background: #fff; border: 1px solid rgba(255,255,255,.20); }
.bv-footer__stores img { max-width: 78px; max-height: 32px; object-fit: contain; }
.bv-footer__trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.bv-footer__trust span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.82); font-weight: 850; font-size: 13px; }
.bv-footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; color: rgba(255,255,255,.60); font-size: 12px; }
.bv-footer__legal nav { display: flex; flex-wrap: wrap; gap: 14px; }
.bv-footer__legal a { color: rgba(255,255,255,.72); }
.bv-footer__legal a:hover { color: #fff; }

.bv-cookie-banner { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 30px); width: min(720px, calc(100% - 28px)); opacity: 0; pointer-events: none; z-index: 9990; transition: .28s ease; }
.bv-cookie-banner.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bv-cookie-container { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 20px; background: rgba(13,27,61,.96); color: #fff; box-shadow: var(--bv-shadow-lg); }
.bv-cookie-text { font-size: 13px; color: rgba(255,255,255,.78); }
.bv-cookie-text a { color: var(--bv-gold); font-weight: 900; }
.bv-cookie-button { border: 0; border-radius: 999px; min-height: 36px; padding: 0 16px; background: var(--bv-gold); color: var(--bv-navy); font-weight: 950; cursor: pointer; }

.bv-newsletter-toast { position: fixed; right: 22px; bottom: 26px; z-index: 9999; display: flex; align-items: flex-start; gap: 12px; max-width: 420px; padding: 16px 18px; border-radius: 18px; box-shadow: 0 18px 40px rgba(2,6,23,.22); border: 1px solid transparent; background: #fff; transform: translateY(18px); opacity: 0; transition: all .28s ease; }
.bv-newsletter-toast.is-visible { transform: translateY(0); opacity: 1; }
.bv-newsletter-toast--success { background: linear-gradient(135deg,#ecfdf5 0%,#ffffff 100%); border-color:#86efac; }
.bv-newsletter-toast--error { background: linear-gradient(135deg,#fff7ed 0%,#ffffff 100%); border-color:#fdba74; }
.bv-newsletter-toast__icon { font-size:20px; line-height:1; margin-top:2px; }
.bv-newsletter-toast__content { display:grid; gap:4px; }
.bv-newsletter-toast__content strong { font-size:14px; color:#0f172a; }
.bv-newsletter-toast__content span { font-size:13px; line-height:1.5; color:#475569; }
.bv-newsletter-toast__close { margin-left:auto; border:none; background:transparent; color:#64748b; font-size:22px; line-height:1; cursor:pointer; padding:0 0 0 8px; }

@media (max-width: 980px) {
    .bv-header__top { grid-template-columns: auto 1fr auto; }
    .bv-brand { min-width: 0; }
    .bv-brand__logo { width: 204px; max-height: 63px; }
    .bv-header__actions { display: none; }
    .bv-mobile-toggle { display: inline-flex; }
    .bv-header__bottom { display: none; }
    .bv-header__bottom.is-open { display: block; }
    .bv-nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 20px; margin-top: 10px; }
    .bv-nav a { justify-content: center; }
    .bv-footer__grid { grid-template-columns: 1fr; }
    .bv-footer__trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .bv-header__top { grid-template-columns: 1fr auto; gap: 12px; }
    .bv-brand__logo { width: 184px; max-height: 57px; }
    .bv-search { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .bv-search__button { width: 100%; }
    .bv-nav { grid-template-columns: 1fr 1fr; }
    .bv-footer__cta { grid-template-columns: 1fr; }
    .bv-footer-form__row { grid-template-columns: 1fr; }
    .bv-footer__trust { grid-template-columns: 1fr; align-items: start; }
    .bv-footer__legal { flex-direction: column; align-items: flex-start; }
    .bv-cookie-container { flex-direction: column; align-items: flex-start; }
    .bv-cookie-button { width: 100%; }
    .bv-newsletter-toast { left: 14px; right: 14px; bottom: 18px; max-width: none; }
}
