/**
 * ============================================================================
 * ARQUIVO  : assets/css/hfstyle.css
 * PROJETO  : BomVendedor.com.br
 * MÓDULO   : Header + Footer Global — Design Premium
 * VERSAO   : 1.0.0 — Identidade visual exclusiva .com.br
 * DATA     : 2026-04-13
 * ============================================================================
 */

/* ============================================================
   RESET E BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { margin: 0; padding: 0; overflow-x: hidden; scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: #f5f2ee;
    color: #1a1614;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }

.container {
    width: 100%; max-width: 1280px;
    margin: 0 auto; padding-left: 20px; padding-right: 20px;
}


/* ============================================================
   HEADER
   ============================================================ */
.bv-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, #1a0f00 0%, #261506 55%, #1e1003 100%);
    border-bottom: 1px solid rgba(251,146,60,0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(251,146,60,0.06) inset;
}

.bv-header__top {
    display: flex; align-items: center;
    gap: 20px; padding: 14px 0;
}

.bv-header__bottom {
    display: flex; align-items: center;
    gap: 4px; padding: 10px 0 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Logo */
.bv-brand {
    flex: 0 0 auto; display: inline-flex;
    align-items: center; gap: 10px; transition: opacity 0.18s;
}
.bv-brand:hover { opacity: 0.85; }
.bv-brand__logo {
    max-height: 44px; width: auto; object-fit: contain;
    filter: brightness(1.08) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.bv-brand__fallback { display: inline-flex; flex-direction: column; line-height: 1.1; }
.bv-brand__bom      { font-size: 1.5rem; font-weight: 900; color: #fb923c; letter-spacing: -0.02em; }
.bv-brand__vendedor { font-size: 1.5rem; font-weight: 900; color: #ffffff; letter-spacing: -0.02em; }
.bv-brand__tag      { font-size: 0.65rem; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }

/* Busca */
.bv-search {
    flex: 1 1 auto; display: flex; align-items: center;
    gap: 8px; min-width: 0; max-width: 680px; margin: 0 auto;
}
.bv-search__box {
    flex: 1 1 auto; display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06); border: 1.5px solid rgba(251,146,60,0.18);
    border-radius: 999px; padding: 0 16px; height: 46px; overflow: hidden;
    transition: all 0.18s;
}
.bv-search__box:focus-within {
    border-color: rgba(251,146,60,0.55);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(251,146,60,0.12);
}
.bv-search__icon { flex: 0 0 auto; color: rgba(251,146,60,0.65); transition: color 0.18s; }
.bv-search__box:focus-within .bv-search__icon { color: #fb923c; }
.bv-search input[type="text"] {
    flex: 1 1 auto; min-width: 0; height: 100%;
    border: 0; outline: none; background: transparent;
    color: #ffffff; font-size: 0.9rem; font-weight: 500;
}
.bv-search input[type="text"]::placeholder { color: rgba(255,255,255,0.32); font-weight: 400; }

.bv-search button[type="submit"] {
    flex: 0 0 auto; height: 46px; padding: 0 22px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff; font-size: 0.875rem; font-weight: 800;
    border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
    transition: all 0.18s; box-shadow: 0 4px 14px rgba(249,115,22,0.35);
    letter-spacing: 0.01em;
}
.bv-search button[type="submit"]:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 6px 20px rgba(249,115,22,0.45);
    transform: translateY(-1px);
}

/* Ações header */
.bv-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }

.bv-account {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 8px; border-radius: 999px;
    border: 1.5px solid rgba(251,146,60,0.18);
    background: rgba(255,255,255,0.05); transition: all 0.18s; max-width: 200px;
}
.bv-account:hover { border-color: rgba(251,146,60,0.45); background: rgba(255,255,255,0.1); }
.bv-account__avatar-wrap {
    flex: 0 0 32px; width: 32px; height: 32px;
    border-radius: 50%; overflow: hidden; border: 2px solid rgba(251,146,60,0.4);
}
.bv-account__avatar { width: 100%; height: 100%; object-fit: cover; }
.bv-account__content { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bv-account__content strong {
    font-size: 0.8125rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px;
}
.bv-account__content small { font-size: 0.7rem; color: rgba(255,255,255,0.42); font-weight: 500; }

.bv-action-link {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 18px; border-radius: 999px;
    font-size: 0.875rem; font-weight: 700;
    transition: all 0.18s; white-space: nowrap; border: 1.5px solid transparent;
}
.bv-action-link--ghost { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.75); background: transparent; }
.bv-action-link--ghost:hover { border-color: rgba(255,255,255,0.45); color: #fff; background: rgba(255,255,255,0.06); }
.bv-action-link--primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: #fff;
    box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}
.bv-action-link--primary:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

/* Nav */
.bv-nav {
    display: flex; align-items: center; gap: 4px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.bv-nav::-webkit-scrollbar { display: none; }
.bv-nav a {
    display: inline-flex; align-items: center;
    padding: 6px 16px; border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.55);
    transition: all 0.18s; white-space: nowrap; border: 1px solid transparent;
}
.bv-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.bv-nav a.is-active {
    color: #fb923c; background: rgba(251,146,60,0.1);
    border-color: rgba(251,146,60,0.2); font-weight: 700;
}


/* ============================================================
   FOOTER
   ============================================================ */
.bv-footer {
    background: linear-gradient(180deg, #1a0f00 0%, #120b00 100%);
    border-top: 1px solid rgba(251,146,60,0.1);
    padding: 56px 0 0;
    margin-top: 72px;
    color: rgba(255,255,255,0.65);
}

.bv-footer__top {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bv-footer__title  { font-size: 1.05rem; font-weight: 800; color: #fff; margin: 0 0 12px; }
.bv-footer__text   { font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.45); margin: 0 0 8px; }
.bv-footer__text--small { font-size: 0.8rem; }
.bv-footer__label  { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251,146,60,0.55); margin: 18px 0 10px; }

/* Sociais */
.bv-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.bv-footer__social-link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.6);
    transition: all 0.18s;
}
.bv-footer__social-link:hover { background: rgba(251,146,60,0.1); border-color: rgba(251,146,60,0.28); color: #fb923c; }
.bv-footer__social-icon { width: 16px; height: 16px; flex: 0 0 auto; display: flex; align-items: center; }
.bv-footer__social-icon svg { width: 16px; height: 16px; }

/* Lojas */
.bv-footer__stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bv-footer__store {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 12px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; transition: all 0.18s;
}
.bv-footer__store:hover { background: rgba(255,255,255,0.1); border-color: rgba(251,146,60,0.22); transform: translateY(-2px); }
.bv-footer__store img { height: 22px; width: auto; object-fit: contain; filter: brightness(0.85) saturate(0.7); transition: filter 0.18s; }
.bv-footer__store:hover img { filter: brightness(1) saturate(1); }

/* Newsletter form */
.bv-footer-form { margin-top: 6px; }
.bv-footer-form__row { display: flex; gap: 8px; margin-bottom: 10px; }
.bv-footer-form__input {
    flex: 1 1 auto; height: 46px; padding: 0 16px;
    background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 999px; color: #fff; font-size: 0.875rem;
    outline: none; transition: all 0.18s; min-width: 0;
}
.bv-footer-form__input::placeholder { color: rgba(255,255,255,0.28); }
.bv-footer-form__input:focus {
    border-color: rgba(251,146,60,0.45);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(251,146,60,0.1);
}
.bv-footer-form__button {
    flex: 0 0 auto; height: 46px; padding: 0 22px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff; font-size: 0.875rem; font-weight: 800;
    border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
    transition: all 0.18s; box-shadow: 0 4px 14px rgba(249,115,22,0.28);
}
.bv-footer-form__button:hover { background: linear-gradient(135deg, #fb923c 0%, #f97316 100%); transform: translateY(-1px); }
.bv-footer-form__consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.bv-footer-form__consent input[type="checkbox"] { margin-top: 3px; flex: 0 0 auto; accent-color: #f97316; }
.bv-footer-form__consent span { font-size: 0.8125rem; color: rgba(255,255,255,0.4); line-height: 1.55; }
.bv-footer__contact { margin-top: 20px; font-size: 0.8125rem; color: rgba(255,255,255,0.4); display: flex; flex-direction: column; gap: 5px; }
.bv-footer__contact strong { color: rgba(255,255,255,0.6); }

/* Selos */
.bv-footer__trust { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.bv-footer__trust-item {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.4);
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03);
}
.bv-footer__trust-item svg { width: 14px; height: 14px; color: #fb923c; flex: 0 0 auto; stroke: currentColor; }

/* Legais */
.bv-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.bv-footer__legal-link { font-size: 0.8125rem; color: rgba(255,255,255,0.38); transition: color 0.18s; }
.bv-footer__legal-link:hover { color: #fb923c; }

/* Copyright */
.bv-footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; padding: 18px 0;
    font-size: 0.8125rem; color: rgba(255,255,255,0.28);
}
.bv-footer__muted { color: rgba(255,255,255,0.18); }


/* ============================================================
   TOAST NEWSLETTER
   ============================================================ */
.bv-nl-toast {
    position: fixed; right: 20px; bottom: 24px; z-index: 9999;
    display: flex; align-items: flex-start; gap: 12px;
    max-width: 400px; padding: 16px 18px;
    border-radius: 16px; border: 1px solid transparent;
    background: #1a1614; box-shadow: 0 20px 48px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.28s ease, transform 0.28s ease; pointer-events: none;
}
.bv-nl-toast--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.bv-nl-toast--success { border-color: rgba(16,185,129,0.3); }
.bv-nl-toast--error   { border-color: rgba(249,115,22,0.3); }
.bv-nl-toast__icon { font-size: 1.25rem; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.bv-nl-toast__body { display: flex; flex-direction: column; gap: 3px; }
.bv-nl-toast__body strong { font-size: 0.875rem; color: #fff; }
.bv-nl-toast__body span  { font-size: 0.8125rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.bv-nl-toast__close { margin-left: auto; border: 0; background: transparent; color: rgba(255,255,255,0.35); font-size: 1.375rem; line-height: 1; cursor: pointer; padding: 0 0 0 8px; flex-shrink: 0; transition: color 0.18s; }
.bv-nl-toast__close:hover { color: #fff; }

/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.bv-cookie-banner {
    position: fixed; bottom: 0; left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 9998; width: min(640px, 100%); transition: transform 0.35s ease;
}
.bv-cookie-banner--show { transform: translateX(-50%) translateY(0); }
.bv-cookie-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin: 0 12px 12px; padding: 14px 20px;
    background: #1a0f00; border: 1px solid rgba(251,146,60,0.18);
    border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.bv-cookie-inner p { margin: 0; font-size: 0.8125rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.bv-cookie-inner a { color: #fb923c; text-decoration: underline; }
.bv-cookie-inner button {
    flex-shrink: 0; padding: 8px 20px; border-radius: 999px; border: 0;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff; font-size: 0.8125rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: all 0.18s;
    box-shadow: 0 4px 12px rgba(249,115,22,0.28);
}
.bv-cookie-inner button:hover { background: linear-gradient(135deg, #fb923c 0%, #f97316 100%); }


/* ============================================================
   RESPONSIVO GERAL
   ============================================================ */
@media (max-width: 960px) {
    .bv-header__top { gap: 12px; flex-wrap: wrap; }
    .bv-account__content { display: none; }
    .bv-account { padding: 6px 10px; }
    .bv-action-link--ghost { display: none; }
}

@media (max-width: 640px) {
    .bv-header__top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    .bv-brand            { grid-column: 1; grid-row: 1; }
    .bv-header__actions  { grid-column: 3; grid-row: 1; }
    .bv-search           { grid-column: 1 / -1; grid-row: 2; max-width: 100%; margin: 0; }
    .bv-search button[type="submit"] { padding: 0 14px; font-size: 0.8rem; }
    .bv-brand__bom, .bv-brand__vendedor { font-size: 1.2rem; }
    .bv-footer__top { grid-template-columns: 1fr; gap: 32px; }
    .bv-footer { margin-top: 48px; padding-top: 40px; }
    .bv-footer__bottom, .bv-footer__trust, .bv-footer__legal { justify-content: center; }
    .bv-footer-form__row { flex-direction: column; }
    .bv-footer-form__button { width: 100%; justify-content: center; }
    .bv-nl-toast { left: 14px; right: 14px; bottom: 18px; max-width: none; }
    .bv-cookie-inner { flex-direction: column; text-align: center; }
}
