.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 12px 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo {
    display: flex; align-items: center; text-decoration: none;
}
.site-logo__img {
    height: 56px; width: auto; display: block;
    mix-blend-mode: multiply;
}
.main-nav .nav-links {
    list-style: none; display: flex; gap: 4px; padding: 0; margin: 0;
}
.main-nav .nav-links li a {
    padding: 8px 18px; font-size: 14px; font-weight: 500;
    color: var(--text-muted); border-radius: var(--radius-sm);
    transition: all var(--transition); text-decoration: none;
}
.main-nav .nav-links li a:hover,
.main-nav .nav-links li.current-menu-item a {
    color: var(--text-heading); background: rgba(0,0,0,0.04);
}
.header-actions {
    display: flex; align-items: center; gap: 12px;
}
.header-social { display: flex; gap: 6px; }
.header-social .social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    color: var(--text-muted); transition: all var(--transition);
}
.header-social .social-icon:hover {
    color: var(--accent); background: rgba(15,15,15,0.06);
}
.header-icon {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    color: var(--text-muted); background: transparent; border: none;
    cursor: pointer; transition: all var(--transition); position: relative;
}
.header-icon:hover { color: var(--text-heading); background: rgba(0,0,0,0.04); }
.cart-count {
    position: absolute; top: 2px; right: 2px;
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.cart-count:empty, .cart-count:contains("0") { display: none; }

/* --- Account entry point (2026-07-21) --------------------------------- */
/* Kept to a max height of 40px so the header height — which the announcement
   bar offset and .site-main padding depend on — is unchanged. */
.header-auth { display: flex; align-items: center; gap: 8px; }
.header-auth__login {
    display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    border-radius: var(--radius-sm); text-decoration: none;
    transition: all var(--transition); white-space: nowrap;
}
.header-auth__login:hover { color: var(--text-heading); background: rgba(0,0,0,0.04); }
.header-auth__register {
    display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
    font-size: 14px; font-weight: 600; color: #fff; background: var(--accent);
    border-radius: var(--radius-sm); text-decoration: none;
    transition: all var(--transition); white-space: nowrap;
}
.header-auth__register:hover {
    background: var(--accent-hover); box-shadow: 0 4px 14px var(--accent-glow);
}

/* Auth links inside the mobile drawer; hidden on desktop. */
.nav-auth { display: none; }

.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-toggle span {
    width: 22px; height: 2px; background: var(--text-heading); border-radius: 2px;
    transition: all var(--transition);
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-social { display: none; }
    .mobile-toggle { display: flex; }
    .main-nav.active {
        display: flex; position: fixed; inset: 0; top: 70px;
        background: var(--bg); z-index: 99; padding: 32px 24px;
    }
    .main-nav.active .nav-links {
        flex-direction: column; gap: 8px; width: 100%;
    }
    .main-nav.active .nav-links li a {
        font-size: 20px; padding: 16px; display: block;
    }

    /* Narrow header: keep only the compact "Log In" pill next to the cart —
       the full pair lives in the drawer below. */
    .header-auth__register { display: none; }
    .header-auth__login {
        height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600;
        color: #fff; background: var(--accent);
    }
    .header-auth__login:hover { color: #fff; background: var(--accent-hover); }

    .main-nav.active .nav-auth {
        display: flex; flex-direction: column; gap: 10px;
        width: 100%; margin-top: 24px; padding-top: 24px;
        border-top: 1px solid var(--border);
    }
    .nav-auth a {
        display: block; width: 100%; padding: 16px; text-align: center;
        font-size: 17px; font-weight: 600; border-radius: var(--radius-sm);
        text-decoration: none; transition: all var(--transition);
    }
    .nav-auth__register { color: #fff; background: var(--accent); }
    .nav-auth__login, .nav-auth__logout {
        color: var(--text-heading); border: 1px solid var(--border-hover);
    }
}

@media (max-width: 380px) {
    .header-inner { gap: 10px; padding: 0 16px; }
    .header-auth__login { padding: 0 12px; font-size: 13px; }
}
