/* ==========================================================
   NAVBAR — completa e isolada (carregar DEPOIS do divulgaae.css)
   Não mexe em html/body. Cor só em .dv-navbar e .dv-nav-top.
   ========================================================== */

/* ---------- FAIXA ROXA ---------- */
html body .dv-nav-top {
    position: relative; z-index: 1001; margin: 0; padding: 0; min-height: 0; height: auto;
    background: linear-gradient(90deg, #1d0b3b 0%, #3b1a73 55%, #5b21b6 100%) !important;
    color: #fff;
}
html body .dv-nav-top .nav-bar-container {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: 36px; min-height: 0; padding: 0;
}
html body .dv-nav-top .container-custom { padding-top: 0; padding-bottom: 0; }
html body .dv-nav-top .nav-bar-links { display: flex; align-items: center; gap: 18px; }
html body .dv-nav-top .nav-bar-links .link,
html body .dv-nav-top .nav-bar-links .drop-down-btn {
    padding: 0; color: #ede7ff; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}
html body .dv-nav-top .nav-bar-links .link:hover,
html body .dv-nav-top .nav-bar-links .drop-down-btn:hover { color: #fff; }
html body .dv-nav-top .nav-bar-buttons,
html body .dv-nav-top .nav-bar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
html body .dv-nav-top .link-btn { display: inline-flex; align-items: center; }
html body .dv-nav-top .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    height: 26px; min-height: 0; padding: 0 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1;
}
html body .dv-nav-top .btn i { color: inherit; font-size: 12px; }
html body .dv-nav-top .btn-outline-light,
html body .dv-nav-top .btn-outline-primary {
    border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff;
}
html body .dv-nav-top .btn-outline-light:hover,
html body .dv-nav-top .btn-outline-primary:hover { border-color: #fff; background: rgba(255,255,255,.14); }
html body .dv-nav-top .btn-primary { border: 1px solid #fff; background: #fff; color: #5b21b6; }
html body .dv-nav-top .btn-padding { width: 30px; padding: 0; }
html body .dv-nav-top .cart-btn { position: relative; margin: 0 8px 0 2px; }
html body .dv-nav-top .cart-counter {
    position: absolute; top: 50%; right: -9px; transform: translateY(-85%);
    min-width: 16px; height: 16px; padding: 0 4px; border: 1.5px solid #3b1a73; border-radius: 999px;
    background: #8b5cf6; color: #fff; font-size: 9.5px; font-weight: 700; line-height: 13px; text-align: center;
    pointer-events: none;
}
html body .dv-nav-top .nav-bar-menu-btn { color: #fff; }
html body .dv-nav-top .nav-bar-actions .drop-down-btn {
    display: flex; align-items: center; gap: 8px; height: 36px; padding: 0; color: #fff; line-height: 1;
}
html body .dv-nav-top .nav-bar-actions .drop-down-btn .user-avatar,
html body .dv-nav-top .nav-bar-actions .drop-down-btn img {
    flex: 0 0 26px; width: 26px; height: 26px; min-width: 26px; max-width: 26px; max-height: 26px; margin: 0;
}
html body .dv-nav-top .nav-bar-actions .drop-down-btn img {
    border: 2px solid rgba(255,255,255,.65); border-radius: 50%; object-fit: cover;
}
html body .dv-nav-top .nav-bar-actions .drop-down-btn span,
html body .dv-nav-top .nav-bar-actions .drop-down-btn strong,
html body .dv-nav-top .nav-bar-actions .drop-down-btn h6 {
    margin: 0; color: #fff; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
}
html body .dv-nav-top .nav-bar-actions .drop-down-btn i { margin: 0; color: #e9ddff; font-size: 12px; }
html body .dv-nav .drop-down-menu { z-index: 1100; }

/* link rápido (celular) */
html body .dv-nav-top a.dv-top-quick {
    align-items: center; gap: 7px; color: #fff !important; font-size: 12.5px; font-weight: 600;
    line-height: 1; text-decoration: none; white-space: nowrap;
}
html body .dv-nav-top a.dv-top-quick i { color: #fcd34d; font-size: 13px; }

/* ---------- BARRA PRINCIPAL ---------- */
html body .dv-navbar {
    position: relative; z-index: 1000; margin: 0; padding: 0; min-height: 0;
    background: #f9f9f9 !important;               /* cinza-lilás: troque aqui a cor */
    border: 0; border-bottom: 1px solid #d9d4ea; border-radius: 0;
    box-shadow: 0 6px 20px rgba(36, 16, 68, .08);
}
html body .dv-navbar::before,
html body .dv-navbar::after { content: none; }
html body .dv-navbar .container,
html body .dv-navbar .nav-bar-container { background: transparent; }
html body .dv-navbar .nav-bar-container {
    display: flex; align-items: center; gap: 12px; height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
html body .dv-navbar .dv-logo { display: flex; flex: 0 0 auto; align-items: center; margin: 0 8px 0 0; }
html body .dv-navbar .dv-logo img { display: block; width: auto; height: auto; max-width: 170px; max-height: 38px; object-fit: contain; }
html body .dv-navbar .nav-bar-menu { flex: 1 1 auto; min-width: 0; }
html body .dv-navbar .nav-bar-menu-btn { color: #34234f; }
html body .dv-navbar .nav-bar-links { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 2px; }
html body .dv-navbar .nav-bar-links .link,
html body .dv-navbar .nav-bar-links .drop-down-btn {
    display: flex; align-items: center; padding: 8px 9px; border-radius: 999px;
    color: #4b4466; font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
    transition: background .2s, color .2s;
}
html body .dv-navbar .nav-bar-links .link:hover,
html body .dv-navbar .nav-bar-links .drop-down-btn:hover { background: #ddd6f1; color: #6d28d9; }

html body .dv-navbar .dv-main-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin-left: auto; }
html body .dv-navbar .dv-main-actions form { width: 160px; margin: 0; }
html body .dv-navbar .form-search { position: relative; width: 100%; }
html body .dv-navbar .form-search .form-control {
    width: 100%; height: 40px; border: 1px solid #e3dcf7; border-radius: 999px;
    background: #fff; color: #2b2340; font-size: 13px;
}
html body .dv-navbar .form-search .form-control:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
html body .dv-navbar .form-search .icon { color: #7c6fa8; }

/* botão Premium (dourado) */
html body .dv-navbar a.dv-seller {
    position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px;
    height: 40px; padding: 0 16px; overflow: hidden; border: 0; border-radius: 999px;
    font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
}
html body .dv-navbar a.dv-seller.dv-premium {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
    box-shadow: 0 6px 18px rgba(217,119,6,.38), inset 0 1px 0 rgba(255,255,255,.55);
    color: #3b1d00;
}
html body .dv-navbar a.dv-seller.dv-premium i { color: #92400e; }
html body .dv-navbar a.dv-seller::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg); transition: left .6s;
}
html body .dv-navbar a.dv-seller:hover { transform: translateY(-2px); }
html body .dv-navbar a.dv-seller:hover::after { left: 130%; }

/* links rápidos e lupa (celular) */
html body .dv-navbar a.dv-quick-search {
    display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px;
    border: 1px solid #e3dcf7; border-radius: 50%; background: #fff; color: #6d28d9; text-decoration: none;
}
html body .dv-navbar .dv-quick-links { align-items: center; gap: 4px; }
html body .dv-navbar .dv-quick-links a {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px;
    background: #fff; color: #4b4466; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
html body .dv-navbar .dv-quick-links a i { color: #8b5cf6; }
html body .dv-navbar .dv-quick-links a.is-active { background: #f1eaff; color: #6d28d9; }

/* ---------- RESPONSIVO ---------- */
@media (min-width: 1200px) {
    html body .dv-nav-top .nav-bar-menu-inner .link-btn,
    html body .dv-nav-top .nav-bar-actions .cart-btn { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    html body .dv-navbar .nav-bar-links .link,
    html body .dv-navbar .nav-bar-links .drop-down-btn { padding: 8px; font-size: 12.5px; }
    html body .dv-navbar .dv-logo img { max-width: 150px; }
    html body .dv-navbar .dv-main-actions form { display: none; }
}
@media (max-width: 1199.98px) {
    html body .dv-nav-top .nav-bar-buttons { display: none; }
    html body .dv-navbar .nav-bar-menu { flex: 0 0 auto; }
    html body .dv-navbar .dv-main-actions { order: 2; gap: 8px; }
    html body .dv-navbar .nav-bar-menu-btn { order: 3; display: flex; align-items: center; justify-content: center; margin: 0 0 0 4px; }
    html body .dv-navbar .dv-main-actions form { width: 150px; }
}
@media (max-width: 767.98px) {
    html body .dv-navbar .nav-bar-container { min-height: 56px; gap: 8px; }
    html body .dv-navbar .dv-main-actions form { display: none; }
}
@media (max-width: 575.98px) {
    html body .dv-navbar .dv-logo img { max-width: 130px; max-height: 34px; }
    html body .dv-navbar a.dv-seller { width: 40px; padding: 0; justify-content: center; }
    html body .dv-navbar a.dv-seller span { display: none; }
    html body .dv-navbar .dv-quick-links a { width: 38px; padding: 0; justify-content: center; }
    html body .dv-navbar .dv-quick-links a span { display: none; }
    html body .dv-nav-top .nav-bar-actions .drop-down-btn span,
    html body .dv-nav-top .nav-bar-actions .drop-down-btn strong,
    html body .dv-nav-top .nav-bar-actions .drop-down-btn h6 { display: none; }
}
@media (max-width: 359.98px) {
    html body .dv-nav-top a.dv-top-quick span { display: none; }
}

/* ---------- GAVETA MOBILE (escura) ---------- */
@media (max-width: 1199.98px) {
    html body .dv-nav .nav-bar-menu .nav-bar-menu-inner {
        background: radial-gradient(80% 40% at 50% 0%, #2a1360 0%, transparent 70%), #0b0618 !important;
        color: #fff; box-shadow: -12px 0 40px rgba(11,6,24,.45);
    }
    html body .dv-nav .nav-bar-menu .nav-bar-menu-header { border-bottom: 1px solid rgba(255,255,255,.1); background: transparent; }
    html body .dv-nav .nav-bar-menu .nav-bar-menu-close {
        display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
        border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff;
    }
    html body .dv-nav .nav-bar-menu-inner .nav-bar-links { flex-direction: column; align-items: stretch; gap: 2px; }
    html body .dv-nav .nav-bar-menu-inner .nav-bar-links .link,
    html body .dv-nav .nav-bar-menu-inner .nav-bar-links .drop-down-btn {
        padding: 12px 14px; border-radius: 12px; background: transparent; color: #e9ddff; font-size: 14.5px; font-weight: 600;
    }
    html body .dv-nav .nav-bar-menu-inner .nav-bar-links .link:hover,
    html body .dv-nav .nav-bar-menu-inner .nav-bar-links .drop-down-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
    html body .dv-nav .nav-bar-menu-inner .drop-down-menu { border: 0; background: rgba(255,255,255,.06); box-shadow: none; }
    html body .dv-nav .nav-bar-menu-inner .drop-down-item { background: transparent; color: #d9ccff; }
    html body .dv-nav .nav-bar-menu-inner .link-btn .btn { width: 100%; height: 42px; }
    html body .dv-nav .nav-bar-menu-inner .link-btn .btn-outline-primary { border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; }
    html body .dv-nav .nav-bar-menu-inner .link-btn .btn-primary { border: 1px solid #fff; background: #fff; color: #5b21b6; }
}

@media (prefers-reduced-motion: reduce) {
    html body .dv-navbar a.dv-seller,
    html body .dv-navbar a.dv-seller::after { transition: none; }
}
html body .nav-bar.dv-navbar a.dv-seller.dv-premium {
    padding: 0 22px 0 20px !important;
    gap: 10px !important;
}

html body .nav-bar.dv-navbar a.dv-seller.dv-premium i {
    font-size: 15px !important;
    margin-left: 2px !important;
}

/* ==========================================================
   MENU DO USUÁRIO (dropdown branco dentro da faixa roxa)
   Colar no FINAL do CSS da navbar.
   Causa do bug: .dv-nav-top { color:#fff } era herdado pelos itens.
   ========================================================== */

/* caixa do dropdown */
html body .dv-nav-top .nav-bar-actions .drop-down-menu {
    min-width: 230px;
    padding: 8px;
    background: #fff;
    color: #2b2340;
    border: 1px solid #e6e0fb;
    border-radius: 16px;
    box-shadow: 0 18px 40px -12px rgba(36, 16, 68, .28);
}

/* layout dos itens (inclui o "Sair") */
html body .dv-nav-top .nav-bar-actions .drop-down-menu .drop-down-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s, color .15s;
}
html body .dv-nav-top .nav-bar-actions .drop-down-menu .drop-down-item i {
    flex: 0 0 18px;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* itens normais: texto escuro + ícone roxo */
html body .dv-nav-top .nav-bar-actions .drop-down-menu .drop-down-item:not(.text-danger) {
    color: #2b2340 !important;
}
html body .dv-nav-top .nav-bar-actions .drop-down-menu .drop-down-item:not(.text-danger) i {
    color: #8b5cf6;
}
html body .dv-nav-top .nav-bar-actions .drop-down-menu .drop-down-item:not(.text-danger):hover {
    background: #f1eaff;
    color: #6d28d9 !important;
}

/* "Sair" */
html body .dv-nav-top .nav-bar-actions .drop-down-menu .drop-down-item.text-danger:hover {
    background: #fef2f2;
}

/* divisores */
html body .dv-nav-top .nav-bar-actions .drop-down-menu .drop-down-divider {
    height: 0;
    margin: 6px 4px;
    border: 0;
    border-top: 1px solid #eee9fb;
}

/* dropdown dos links institucionais da faixa roxa (só desktop;
   no celular eles ficam na gaveta escura, que já tem estilo próprio) */
@media (min-width: 1200px) {
    html body .dv-nav-top .nav-bar-links .drop-down-menu {
        padding: 8px;
        background: #fff;
        border: 1px solid #e6e0fb;
        border-radius: 14px;
        box-shadow: 0 18px 40px -12px rgba(36, 16, 68, .28);
    }
    html body .dv-nav-top .nav-bar-links .drop-down-menu .drop-down-item {
        padding: 9px 12px;
        border-radius: 10px;
        color: #2b2340 !important;
        font-size: 13.5px;
        font-weight: 500;
    }
    html body .dv-nav-top .nav-bar-links .drop-down-menu .drop-down-item:hover {
        background: #f1eaff;
        color: #6d28d9 !important;
    }
}