/* ============================================================
   SH CITY — HEADER.CSS (REDESIGNED)
   Theme: Modern Minimal Purple
   ============================================================ */

/* ─── HEADER RESET ───────────────────────────────────── */
header {
    all: unset;
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}

/* ─── TOP BAR ────────────────────────────────────────── */
.sh-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 68px;
    background: rgba(7,5,15,0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(168,85,247,0.12);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled .sh-header-top {
    background: rgba(7,5,15,0.96);
    border-bottom-color: rgba(168,85,247,0.2);
    box-shadow: 0 1px 40px rgba(0,0,0,0.4);
}

/* ─── LOGO ───────────────────────────────────────────── */
.sh-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: opacity 0.22s ease;
}

.sh-logo-wrap:hover { opacity: 0.85; }

.sh-logo-img {
    height: 42px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(168,85,247,0.4));
    transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.sh-logo-wrap:hover .sh-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 18px rgba(168,85,247,0.7));
}

.sh-logo-word {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(120deg, #d8b4fe 0%, #a855f7 60%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* ─── HEADER ACTIONS ─────────────────────────────────── */
.sh-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-btn-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    background: none;
}

.sh-btn-cart {
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.18) !important;
    color: #c084fc;
}

.sh-btn-cart:hover {
    background: rgba(168,85,247,0.18);
    border-color: rgba(168,85,247,0.4) !important;
    box-shadow: 0 0 16px rgba(168,85,247,0.3);
    transform: translateY(-2px);
    color: #e9d5ff;
}

.sh-btn-admin {
    background: rgba(74,222,128,0.07);
    border: 1px solid rgba(74,222,128,0.18) !important;
    color: #86efac;
}

.sh-btn-admin:hover {
    background: rgba(74,222,128,0.16);
    border-color: rgba(74,222,128,0.38) !important;
    box-shadow: 0 0 14px rgba(74,222,128,0.22);
    transform: translateY(-2px);
}

/* cart badge */
.sh-cart-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-family: 'JetBrains Mono', 'Space Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(168,85,247,0.5);
    animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* mobile hamburger */
.sh-mobile-btn {
    display: none;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.18) !important;
    color: #c084fc;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sh-mobile-btn:hover {
    background: rgba(168,85,247,0.18);
    box-shadow: 0 0 12px rgba(168,85,247,0.25);
}

/* ─── NAV BAR ────────────────────────────────────────── */
.sh-nav-bar {
    width: 100%;
    background: rgba(9,6,20,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168,85,247,0.08);
    display: flex;
    justify-content: center;
    transition: background 0.4s ease;
}

header.scrolled .sh-nav-bar {
    background: rgba(9,6,20,0.92);
}

.sh-nav-bar nav {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
}

.sh-nav-bar .nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.sh-nav-bar .nav-links li a {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: rgba(241,238,255,0.45) !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 20px !important;
    height: 46px !important;
    position: relative !important;
    transition: color 0.22s ease !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}

.sh-nav-bar .nav-links li a i {
    font-size: 0.82rem;
    opacity: 0.6;
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* animated underline */
.sh-nav-bar .nav-links li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) scaleX(0) !important;
    transform-origin: center !important;
    width: 55% !important;
    height: 2px !important;
    background: linear-gradient(90deg, #9333ea, #a855f7, #c084fc) !important;
    border-radius: 2px 2px 0 0 !important;
    box-shadow: none !important;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.sh-nav-bar .nav-links li a:hover {
    color: rgba(241,238,255,0.9) !important;
    background: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.sh-nav-bar .nav-links li a:hover i {
    opacity: 1;
    transform: translateY(-1px);
}

.sh-nav-bar .nav-links li a:hover::after {
    transform: translateX(-50%) scaleX(1) !important;
}

/* active state */
.sh-nav-bar .nav-links li a.active {
    color: #c084fc !important;
    background: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.sh-nav-bar .nav-links li a.active i { opacity: 1; }

.sh-nav-bar .nav-links li a.active::after {
    transform: translateX(-50%) scaleX(1) !important;
    background: linear-gradient(90deg, #9333ea, #c084fc) !important;
    box-shadow: 0 0 8px rgba(168,85,247,0.45) !important;
}

/* ─── MAIN PADDING ───────────────────────────────────── */
/* 68px top bar + 46px nav = 114px */
main { padding-top: 114px !important; }

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .sh-header-top { padding: 0 20px; height: 60px; }
    .sh-logo-img   { height: 36px; }
    .sh-logo-word  { display: none; }
    .sh-mobile-btn { display: flex; }

    .sh-nav-bar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(7,4,18,0.98);
        border-top: 1px solid rgba(168,85,247,0.12);
        padding: 8px 0 12px;
    }

    .sh-nav-bar .nav-links.active { display: flex; }
    .sh-nav-bar .nav-links li { width: 100%; }

    .sh-nav-bar .nav-links li a {
        height: 48px !important;
        padding: 0 28px !important;
        width: 100% !important;
        justify-content: flex-start !important;
        border-radius: 0 !important;
    }

    .sh-nav-bar .nav-links li a::after {
        bottom: auto !important;
        top: 0 !important;
        left: 0 !important;
        transform: translateX(0) scaleY(0) !important;
        transform-origin: top !important;
        width: 3px !important;
        height: 100% !important;
        border-radius: 0 3px 3px 0 !important;
        transition: transform 0.22s ease !important;
    }

    .sh-nav-bar .nav-links li a:hover::after,
    .sh-nav-bar .nav-links li a.active::after {
        transform: translateX(0) scaleY(1) !important;
    }

    main { padding-top: 106px !important; }
}

@media (max-width: 480px) {
    .sh-header-top { height: 56px; }
    .sh-logo-img   { height: 32px; }
    main { padding-top: 102px !important; }
}