/* X1Store Command Bar — global public-site navigation */

body:not(.admin-page) {
    --x1-command-bg: #050814;
    --x1-command-panel: #090e1d;
    --x1-command-line: rgba(148, 163, 184, .15);
    --x1-command-text: #f7f8ff;
    --x1-command-muted: #8c97ad;
    --x1-command-blue: #4f7cff;
    --x1-command-violet: #8b5cf6;
}

.site-header-utility {
    display: none;
    height: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .09);
    background: #040711;
}

.site-header-utility-inner {
    width: min(1360px, calc(100% - 48px));
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-inline: auto;
    color: #7c879d;
    font-size: .64rem;
    font-weight: 650;
}

.site-header-utility-inner span,
.site-header-utility-inner a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
}

.site-header-utility-inner a:hover { color: #c8cfdf; }
.site-header-utility-inner i { color: #8d72ff; }

.site-header.site-header-command {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .11);
    background: rgba(5, 8, 20, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.site-header.site-header-command::before { display: none; }

.site-header-command .site-header-command-top {
    width: min(1360px, calc(100% - 48px));
    max-width: 1360px;
    min-height: 76px;
    display: grid;
    grid-template-columns: 225px minmax(340px, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin-inline: auto;
    padding: 0;
}

.site-header-command .site-header-logo { min-width: 0; }
.site-header-command .site-header-logo > a { display: inline-flex; align-items: center; }
.site-header-command .site-header-brand-logo { width: 178px; height: auto; max-height: none; display: block; }
.site-header-brand-mark { width: 58px; height: auto; display: block; }
.site-header-admin-shell .site-header-brand-logo { width: 146px; }

.site-header-command .site-header-search {
    width: min(100%, 650px);
    height: 46px;
    justify-self: center;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 38px;
    align-items: center;
    gap: 11px;
    padding: 4px 5px 4px 15px;
    border: 1px solid rgba(122, 136, 171, .24);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(14, 20, 39, .84), rgba(8, 13, 27, .9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.site-header-command .site-header-search:focus-within {
    border-color: rgba(105, 100, 255, .66);
    box-shadow: 0 0 0 3px rgba(91, 72, 226, .12);
}

.site-header-command .site-header-search > i { color: #71809a; font-size: 1rem; }
.site-header-command .site-header-search input { min-width: 0; height: 36px; border: 0; outline: 0; color: #eef1fa; background: transparent; font-size: .8rem; }
.site-header-command .site-header-search input::placeholder { color: #65728a; }
.site-header-command .site-header-search button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, #3d4ee9, #7541e7);
    cursor: pointer;
}
.site-header-command .site-header-search button:hover { filter: brightness(1.12); }

.site-header-command .site-header-actions { gap: 8px; }
.site-header-command .site-header-support { display: none; }
.site-header-command .site-header-cart {
    width: 42px;
    height: 42px;
    border-color: rgba(148, 163, 184, .16);
    border-radius: 9px;
    background: rgba(148, 163, 184, .045);
}

.site-header-command .site-header-account-link,
.site-header-command .site-header-btn-outline {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 9px;
    color: #dce1ee;
    background: rgba(148, 163, 184, .04);
    font-size: .76rem;
    font-weight: 700;
}

.site-header-command .site-header-avatar-btn { width: 42px; height: 42px; }
.site-header-command .site-header-menu-btn { display: none; }

.site-header-command-nav { border-top: 1px solid rgba(148, 163, 184, .09); }
.site-header-command-nav-inner {
    width: min(1360px, calc(100% - 48px));
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-inline: auto;
}

.site-header-primary-nav { height: 48px; display: flex; align-items: stretch; gap: 34px; }
.site-header-primary-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #8f9aaf;
    font-size: .77rem;
    font-weight: 700;
    text-decoration: none;
}
.site-header-primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #4f7cff, #9a55f5);
    opacity: 0;
    transform: scaleX(.5);
    transition: opacity .18s ease, transform .18s ease;
}
.site-header-primary-nav a:hover { color: #e7ebf6; }
.site-header-primary-nav a.active { color: #fff; }
.site-header-primary-nav a.active::after { opacity: 1; transform: scaleX(1); }

.site-header-promises { display: flex; align-items: center; gap: 28px; color: #7b879c; font-size: .67rem; font-weight: 650; }
.site-header-promises span { display: inline-flex; align-items: center; gap: 7px; }
.site-header-promises i { color: #8798ff; }

.site-header-mobile-brand img { width: 154px; height: auto; }

.site-footer-x1-logo img {
    display: block;
    width: 154px;
    height: auto;
}

.site-footer-x1-logo small {
    color: #8d98b3;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 1080px) {
    .site-header-command .site-header-command-top { grid-template-columns: 185px minmax(260px, 1fr) auto; gap: 18px; }
    .site-header-command .site-header-brand-logo { width: 160px; }
    .site-header-promises span:last-child { display: none; }
}

@media (max-width: 820px) {
    .site-header-utility { display: none; }
    .site-header-command .site-header-command-top {
        width: min(100% - 28px, 1360px);
        min-height: 70px;
        display: flex;
        gap: 14px;
    }
    .site-header-command .site-header-brand-logo { width: 146px; }
    .site-header-command .site-header-search,
    .site-header-command .site-header-auth,
    .site-header-command .site-header-cart,
    .site-header-command .site-header-avatar { display: none; }
    .site-header-command .site-header-actions { margin-left: auto; }
    .site-header-command .site-header-menu-btn { display: inline-flex; }
    .site-header-command-nav { display: none; }
}

@media (max-width: 420px) {
    .site-header-command .site-header-brand-logo { width: 136px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-primary-nav a::after { transition: none; }
}
