.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 12px 0;
    background: rgba(7, 10, 22, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(4, 7, 18, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.store-navbar {
    min-height: 54px;
    padding: 0;
}

.header-container {
    gap: 28px;
}

.store-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
    padding: 0;
    color: #fff !important;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #5b7cff, #7655f7);
    box-shadow: 0 8px 22px rgba(91, 124, 255, 0.34);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-copy {
    font-weight: 500;
}

.brand-copy strong {
    font-weight: 800;
}

.store-nav-links {
    align-items: center;
    gap: 4px;
}

.header-search {
    display: flex;
    width: min(320px, 28vw);
    height: 42px;
    align-items: center;
    gap: 9px;
    margin-left: 24px;
    padding: 0 7px 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.065);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.header-search:focus-within {
    border-color: rgba(105, 128, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(93, 112, 255, 0.12);
}

.header-search svg {
    width: 17px;
    min-width: 17px;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 0.86rem;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.44);
}

.header-search input::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: 0.5;
}

.header-search button {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 0.8rem;
}

.store-navbar .nav-link {
    padding: 9px 14px !important;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease;
}

.store-navbar .nav-link:hover,
.store-navbar .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-login {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 160ms ease, border-color 160ms ease;
}

.header-login:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    text-decoration: none;
}

.profile-avatar {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    outline: none;
    background: linear-gradient(145deg, #ff4f8b, #7357ff);
    box-shadow: 0 7px 20px rgba(92, 74, 220, 0.32);
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.profile-avatar:hover,
.profile-avatar:focus {
    transform: translateY(-1px);
    box-shadow: 0 9px 26px rgba(92, 74, 220, 0.48);
}

.presence-dot {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 11px;
    height: 11px;
    border: 2px solid #090c19;
    border-radius: 50%;
    background: #35d397;
}

.profile-dropdown {
    min-width: 220px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid rgba(19, 27, 55, 0.1);
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(12, 18, 38, 0.2);
}

.profile-summary {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 6px;
}

.profile-summary span {
    color: #8a91a6;
    font-size: 0.72rem;
}

.profile-summary strong {
    overflow: hidden;
    color: #171b2c;
    font-size: 0.9rem;
    text-overflow: ellipsis;
}

.profile-dropdown .dropdown-item {
    padding: 9px 12px;
    border-radius: 9px;
    color: #30364d;
    font-size: 0.86rem;
    font-weight: 600;
}

.profile-dropdown .dropdown-item:hover {
    background: #f1f3fa;
}

.profile-dropdown .dropdown-signout {
    color: #d33f63;
}

.store-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 991.98px) {
    .site-header {
        padding: 9px 0;
    }

    .store-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        background: #101426;
    }

    .store-nav-links {
        align-items: stretch;
    }

    .header-search {
        width: 100%;
        margin: 12px 0 2px;
    }

    .header-actions {
        margin-top: 10px;
        margin-left: 0 !important;
        padding: 8px 12px 2px;
    }
}
