/* ============================================================================
   Flavor Header — JonasCoins Edition
   PlayStation Aesthetic — Sticky, glassmorphism, neon-blue accents
   + Account Popup (Cliente / Afiliado)
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Base — Sticky header
   ---------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky, 200);
    background-color: rgba(8, 15, 28, 0.82);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid #192D44;
    border-bottom: 1px solid var(--color-border, #192D44);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Shadow quando scrollado (adicionado via JS) */
.site-header.is-scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 168, 232, 0.08);
}



/* ----------------------------------------------------------------------------
   Glow bar no topo — igual ao footer mas mais fina
   ---------------------------------------------------------------------------- */
.header__glow-bar {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #003087 10%,
        #0070D1 30%,
        #00A8E8 50%,
        #0070D1 70%,
        #003087 90%,
        transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.header__glow-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: header-shimmer 4s ease-in-out infinite;
}

@keyframes header-shimmer {
    0%   { left: -60%; }
    100% { left: 160%; }
}

/* ----------------------------------------------------------------------------
   Inner layout
   ---------------------------------------------------------------------------- */
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    gap: 8px;
}

/* ----------------------------------------------------------------------------
   Logo
   ---------------------------------------------------------------------------- */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.header__logo-mark {
    filter: drop-shadow(0 0 8px rgba(0, 112, 209, 0.55));
    transition: filter 0.2s ease;
}

.header__logo:hover .header__logo-mark {
    filter: drop-shadow(0 0 14px rgba(0, 168, 232, 0.75));
}

.header__logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: filter 0.2s ease;
}

.header__logo:hover .header__logo-img {
    filter: brightness(1.1);
}

.header__logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-family: var(--font-display, 'Barlow Condensed', sans-serif);
    font-weight: 800;
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    color: var(--color-text-primary, #FFFFFF);
    line-height: 1;
}

.header__logo-text span {
    color: #00A8E8;
    color: var(--color-accent, #00A8E8);
}

/* ----------------------------------------------------------------------------
   Nav Desktop
   ---------------------------------------------------------------------------- */
.header__nav {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__menu li {
    position: relative;
}

.header__menu li a {
    display: block;
    padding: 8px 14px;
    font-family: 'Barlow', sans-serif;
    font-family: var(--font-primary, 'Barlow', sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    color: #8599B2;
    color: var(--color-text-secondary, #8599B2);
    text-decoration: none;
    border-radius: 4px;
    border-radius: var(--radius-sm, 4px);
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.header__menu li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: #00A8E8;
    background: var(--color-accent, #00A8E8);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: left;
}

.header__menu li a:hover,
.header__menu li a:focus-visible,
.header__menu li.current-menu-item > a,
.header__menu li.current_page_item > a {
    color: #FFFFFF;
    color: var(--color-text-primary, #FFFFFF);
    background-color: rgba(13, 26, 42, 0.8);
}

.header__menu li a:hover::after,
.header__menu li.current-menu-item > a::after,
.header__menu li.current_page_item > a::after {
    transform: scaleX(1);
}

/* Dropdown */
.header__menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    padding: 6px;
    background: rgba(13, 26, 42, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid #192D44;
    border: 1px solid var(--color-border, #192D44);
    border-top: 2px solid #00A8E8;
    border-top: 2px solid var(--color-accent, #00A8E8);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 168, 232, 0.06);
    list-style: none;
    z-index: 100;
}

.header__menu li:hover > .sub-menu,
.header__menu li:focus-within > .sub-menu {
    display: block;
    animation: sub-menu-in 0.15s ease;
}

@keyframes sub-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.header__menu .sub-menu li a {
    padding: 8px 12px;
    font-size: 0.8125rem;
    border-radius: 2px;
}

.header__menu .sub-menu li a::after { display: none; }

/* ----------------------------------------------------------------------------
   Actions — Conta + Carrinho
   ---------------------------------------------------------------------------- */
.header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header__action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8599B2;
    color: var(--color-text-secondary, #8599B2);
    text-decoration: none;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.header__action:hover,
.header__action:focus-visible {
    color: #FFFFFF;
    color: var(--color-text-primary, #FFFFFF);
    background-color: rgba(13, 26, 42, 0.8);
}

/* Account trigger — glow ao hover */
.header__account-trigger:hover .header__icon,
.header__account-trigger[aria-expanded="true"] .header__icon {
    color: #00A8E8;
    filter: drop-shadow(0 0 6px rgba(0, 168, 232, 0.5));
}

.header__account-trigger[aria-expanded="true"] {
    color: #00A8E8;
    background-color: rgba(0, 112, 209, 0.1);
}

/* Carrinho */
.header__cart {
    position: relative;
}

.flavor-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #0070D1;
    background-color: var(--color-cta, #0070D1);
    border-radius: 9px;
    transition: transform 0.2s ease;
}

.flavor-cart-count[data-count="0"] { display: none; }

.flavor-cart-count--updated {
    animation: cart-bump 0.3s ease;
}

@keyframes cart-bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Hamburger Mobile */
.header__mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.header__mobile-toggle[aria-expanded="true"] .header__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header__mobile-toggle[aria-expanded="true"] .header__hamburger span:nth-child(2) {
    opacity: 0;
}
.header__mobile-toggle[aria-expanded="true"] .header__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================================
   ACCOUNT POPUP — Seleção Cliente / Afiliado
   ============================================================================ */

/* Overlay de fundo
   IMPORTANTE: z-index deve ser MENOR que o z-index do .site-header (200)
   O popup vive dentro do stacking context do header, então o overlay
   precisa ficar abaixo do header para não cobri-lo. */
.flavor-account-popup__overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.25s ease;
}

.flavor-account-popup__overlay--open {
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Popup container */
.flavor-account-popup {
    position: absolute;
    top: calc(100% + 6px);
    right: 80px; /* alinha próximo ao ícone de conta */
    z-index: 400;
    width: 300px;

    background: rgba(10, 18, 32, 0.96);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);

    border: 1px solid #192D44;
    border-top: none;
    border-radius: 0 0 6px 6px;

    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 168, 232, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    /* Estado inicial — oculto */
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    visibility: hidden;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;

    transform-origin: top center;
}

/* Linha glow no topo */
.flavor-account-popup__glow {
    height: 2px;
    background: linear-gradient(90deg, transparent, #0070D1 30%, #00A8E8 50%, #0070D1 70%, transparent);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.flavor-account-popup__glow::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: header-shimmer 2.5s ease-in-out infinite;
}

/* Estado aberto */
.flavor-account-popup--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

/* Header do popup */
.flavor-account-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flavor-account-popup__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-family: var(--font-display, 'Barlow Condensed', sans-serif);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8599B2;
    margin: 0;
}

.flavor-account-popup__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    color: #8599B2;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.flavor-account-popup__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

/* Cards de opção */
.flavor-account-popup__options {
    padding: 10px;
    display: flex;
    margin-top: 35%;
    flex-direction: column;
    gap: 8px;
}

.flavor-account-popup__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px;
    text-decoration: none;
    border: 1px solid #192D44;
    border: 1px solid var(--color-border, #192D44);
    border-radius: 4px;
    background: rgba(13, 26, 42, 0.7);
    position: relative;
    overflow: hidden;
    transition: all 0.22s ease;
    cursor: pointer;
}

/* Efeito glow lateral ao hover */
.flavor-account-popup__card::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 3px;
    border-radius: 4px 0 0 4px;
    background: transparent;
    transition: background 0.22s ease;
}

.flavor-account-popup__card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.22s ease;
}

/* Cliente — azul PS */
.flavor-account-popup__card[data-type="cliente"]:hover {
    border-color: #0070D1;
    box-shadow: 0 0 20px rgba(0, 112, 209, 0.15), inset 0 0 30px rgba(0, 112, 209, 0.04);
    transform: translateX(3px);
}

.flavor-account-popup__card[data-type="cliente"]:hover::before {
    background: linear-gradient(to bottom, #00A8E8, #0070D1);
}

.flavor-account-popup__card[data-type="cliente"]:hover::after {
    background: linear-gradient(135deg, rgba(0, 112, 209, 0.06) 0%, transparent 60%);
    opacity: 1;
}

/* Afiliado — verde △ PS */
.flavor-account-popup__card[data-type="afiliado"]:hover {
    border-color: #00C49A;
    box-shadow: 0 0 20px rgba(0, 196, 154, 0.14), inset 0 0 30px rgba(0, 196, 154, 0.04);
    transform: translateX(3px);
}

.flavor-account-popup__card[data-type="afiliado"]:hover::before {
    background: linear-gradient(to bottom, #00C49A, #007A60);
}

.flavor-account-popup__card[data-type="afiliado"]:hover::after {
    background: linear-gradient(135deg, rgba(0, 196, 154, 0.06) 0%, transparent 60%);
    opacity: 1;
}

/* Ícone do card */
.flavor-account-popup__card-icon {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s ease, filter 0.22s ease;
    position: relative;
    z-index: 1;
}

.flavor-account-popup__card-icon--cliente {
    background: rgba(0, 112, 209, 0.15);
    border: 1px solid rgba(0, 112, 209, 0.25);
    color: #00A8E8;
}

.flavor-account-popup__card-icon--afiliado {
    background: rgba(0, 196, 154, 0.12);
    border: 1px solid rgba(0, 196, 154, 0.22);
    color: #00C49A;
}

.flavor-account-popup__card:hover .flavor-account-popup__card-icon {
    transform: scale(1.08);
    filter: brightness(1.2);
}

/* Texto */
.flavor-account-popup__card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.flavor-account-popup__card-label {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #FFFFFF;
    color: var(--color-text-primary, #FFFFFF);
    letter-spacing: 0.01em;
}

.flavor-account-popup__card-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    color: #8599B2;
    color: var(--color-text-secondary, #8599B2);
}

/* Seta */
.flavor-account-popup__card-arrow {
    font-size: 1.25rem;
    color: #3D5470;
    color: var(--color-text-muted, #3D5470);
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.flavor-account-popup__card:hover .flavor-account-popup__card-arrow {
    transform: translateX(3px);
}

.flavor-account-popup__card[data-type="cliente"]:hover .flavor-account-popup__card-arrow {
    color: #00A8E8;
}

.flavor-account-popup__card[data-type="afiliado"]:hover .flavor-account-popup__card-arrow {
    color: #00C49A;
}

/* Símbolo PS decorativo */
.flavor-account-popup__card-sym {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 1.75rem;
    line-height: 1;
    opacity: 0.04;
    pointer-events: none;
    font-weight: 100;
    transition: opacity 0.22s ease;
}

.flavor-account-popup__card:hover .flavor-account-popup__card-sym {
    opacity: 0.1;
}

/* ============================================================================
   CART DRAWER — mantido do original, levemente atualizado
   ============================================================================ */
.flavor-drawer__overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    pointer-events: none;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.flavor-drawer__overlay--open {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.flavor-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 9999;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    background: rgba(10, 17, 32, 0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5), inset 1px 0 0 rgba(255, 255, 255, 0.04);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s ease;
}

.flavor-drawer--open {
    transform: translateX(0);
    visibility: visible;
}

.flavor-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.flavor-drawer__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.flavor-drawer__count {
    font-size: 0.6875rem;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
}

.flavor-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #8599B2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.flavor-drawer__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.flavor-drawer__items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    scrollbar-width: thin;
    scrollbar-color: #192D44 transparent;
}

.flavor-drawer__items::-webkit-scrollbar { width: 4px; }
.flavor-drawer__items::-webkit-scrollbar-track { background: transparent; }
.flavor-drawer__items::-webkit-scrollbar-thumb { background: #192D44; border-radius: 2px; }

.flavor-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 24px;
    text-align: center;
}

.flavor-drawer__empty p {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9375rem;
    color: #8599B2;
    margin: 0;
}

.flavor-drawer__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: drawer-item-in 0.3s ease;
}

@keyframes drawer-item-in {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.flavor-drawer__item:last-child { border-bottom: none; }

.flavor-drawer__item-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.flavor-drawer__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.flavor-drawer__item-thumb a { display: block; width: 100%; height: 100%; }

.flavor-drawer__item-info { flex: 1; min-width: 0; }

.flavor-drawer__item-name {
    font-family: 'Barlow', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 4px;
}

.flavor-drawer__item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.flavor-drawer__item-name a:hover { color: #0070D1; }

.flavor-drawer__item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.8125rem;
}

.flavor-drawer__item-qty { color: #8599B2; }
.flavor-drawer__item-price { color: #0070D1; font-weight: 600; }

.flavor-drawer__item-remove {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: none;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #8599B2;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.flavor-drawer__item:hover .flavor-drawer__item-remove { opacity: 1; }
.flavor-drawer__item-remove:hover { color: #ef4444; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); opacity: 1; }

.flavor-drawer__item--removing {
    animation: drawer-item-out 0.3s ease forwards;
}

@keyframes drawer-item-out {
    to { opacity: 0; transform: translateX(20px); height: 0; padding: 0; overflow: hidden; }
}

.flavor-drawer__footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    background: rgba(5, 12, 21, 0.5);
}

.flavor-drawer__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.flavor-drawer__subtotal-label {
    font-family: 'Barlow', sans-serif;
    font-size: 0.875rem;
    color: #8599B2;
}

.flavor-drawer__subtotal-value {
    font-family: 'Barlow', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
}

.flavor-drawer__actions {
    display: flex;
    gap: 10px;
}

.flavor-drawer__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.flavor-drawer__btn--secondary {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.flavor-drawer__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.flavor-drawer__btn--primary {
    color: #fff;
    background: #0070D1;
    border-color: #0070D1;
}

.flavor-drawer__btn--primary:hover {
    background: #0058A8;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 112, 209, 0.4);
}

.flavor-drawer__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.flavor-drawer__spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #192D44;
    border-top-color: #0070D1;
    border-radius: 50%;
    animation: drawer-spin 0.7s linear infinite;
}

@keyframes drawer-spin { to { transform: rotate(360deg); } }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 767px) {
    .header__inner {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .header__action-label { display: none; }
    .header__action { padding: 8px; }
    .header__mobile-toggle { display: flex; order: 3; }
    .header__logo { order: 1; }
    .header__actions { order: 2; margin-left: auto; margin-right: 4px; }

    .header__nav {
        display: none;
        order: 4;
        width: 100%;
        padding: 16px 0 8px;
        border-top: 1px solid #192D44;
        margin-top: 12px;
    }

    .header__nav--open { display: block; }

    .header__menu {
        flex-direction: column;
        gap: 2px;
    }

    .header__menu li a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .header__menu li a::after { display: none; }

    .header__menu .sub-menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 0 16px;
        background: none;
        border: none;
        box-shadow: none;
        animation: none;
    }

    /* Popup mobile — centralizado */
    .flavor-account-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.95);
        width: calc(100vw - 32px);
        max-width: 320px;
        border-radius: 6px;
        border-top: none;
    }

    .flavor-account-popup__glow {
        border-radius: 6px 6px 0 0;
    }

    .flavor-account-popup--open {
        transform: translate(-50%, -50%) scale(1);
    }

    .flavor-drawer { max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .header__menu li a { padding: 8px 10px; font-size: 0.8125rem; }
    .header__action-label { display: none; }
    .header__action { padding: 8px; }

    .flavor-account-popup { right: 8px; }
}

/* Focus visible */
.header__logo:focus-visible,
.header__action:focus-visible,
.header__mobile-toggle:focus-visible,
.flavor-account-popup__card:focus-visible {
    outline: 2px solid #0070D1;
    outline-offset: 2px;
    border-radius: 4px;
}

body.flavor-drawer-open { overflow: hidden; }