.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(3, 4, 9, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: initial;
    padding-bottom: 0;
    margin-bottom: 0;
}

.site-header::after {
    content: none;
}

body.cart-open .site-header {
    pointer-events: none;
}

.header-wrapper {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
}

.header-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: block;
}

.header-logo::before,
.header-logo::after {
    content: none;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.header-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.header-menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.header-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.nav-active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.2);
}

@media (max-width: 920px) {
    .header-wrapper {
        position: relative;
        align-items: center;
    }

    .header-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.55rem);
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.7rem;
        background: rgba(7, 10, 19, 0.95);
        border: var(--border-glass);
        border-radius: 0.9rem;
        box-shadow: var(--shadow-glass);
        z-index: 100;
    }

    .header-nav.is-open {
        display: flex;
    }

    .header-nav a {
        width: 100%;
        min-height: 44px;
        align-items: center;
        display: inline-flex;
        padding: 0.65rem 0.8rem;
        border-radius: 0.65rem;
    }
}