.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-0);
    border-bottom: 1px solid var(--border);
    min-height: var(--header-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-5);
    min-height: var(--header-h);
}

/* Logo (esquerda) */
.site-header__brand {
    justify-self: start;
    display: flex;
    align-items: center;
}
.site-header__brand img {
    height: 40px;
    width: auto;
    display: block;
}

/* Nav central */
.site-header__nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.site-header__nav > a {
    color: var(--text-1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-2) 0;
}
.site-header__nav > a:hover {
    color: var(--accent);
}
.site-header__nav > a::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s var(--ease);
}
.site-header__nav > a:hover::after { transform: scaleX(1); }

/* CTAs (direita) */
.site-header__cta {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.site-header__cart {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-1);
    transition: background .15s var(--ease), color .15s var(--ease);
}
.site-header__cart:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.site-header__cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-0);
}
.site-mobile-menu__badge {
    margin-left: 8px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Botão hamburger (só mobile) */
.site-header__toggle {
    display: none;
    justify-self: end;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color .15s var(--ease);
}
.site-header__toggle:hover { border-color: var(--accent); }
.site-header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-0);
    border-radius: 2px;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent);
}

/* Drawer mobile */
.site-mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg-0);
    padding: var(--space-4) var(--space-5) var(--space-5);
    animation: slide-down .2s var(--ease);
}
.site-mobile-menu:not([hidden]) { display: block; }
.site-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-bottom: var(--space-4);
    border-bottom: 1px dashed var(--border);
    margin-bottom: var(--space-4);
}
.site-mobile-menu__nav a {
    color: var(--text-0);
    font-weight: 600;
    font-size: 1.05rem;
    padding: var(--space-3) 0;
}
.site-mobile-menu__nav a:hover { color: var(--accent); }
.site-mobile-menu__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.site-mobile-menu__cta .btn { width: 100%; justify-content: center; }

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Breakpoint */
@media (max-width: 820px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
    }
    .site-header__nav,
    .site-header__cta {
        display: none;
    }
    .site-header__toggle {
        display: flex;
    }
}
