.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    transition: box-shadow .3s ease, background .3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.site-header__brand:hover {
    transform: scale(1.03);
}

.site-header__brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-header__nav {
    display: none;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-start;
    padding-inline-start: 24px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

.site-header__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    color: #475569;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}

.site-header__link:hover {
    color: #1e8e63;
    background: rgba(30, 142, 99, .06);
}

.site-header__link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #1e8e63;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.site-header__link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.site-header__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #0f172a;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s cubic-bezier(.22, 1, .36, 1);
}

.site-header__cart:hover {
    background: #1e8e63;
    border-color: #1e8e63;
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 142, 99, .25);
    transform: translateY(-1px);
}

.site-header__cart svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.site-header__cart-label {
    display: none;
}

.site-header__cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #1e8e63;
    color: #fff;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    transition: all .25s ease;
}

.site-header__cart:hover .site-header__cart-count {
    background: #fff;
    color: #1e8e63;
}

.site-header__user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #0f172a;
    text-decoration: none;
    transition: all .25s cubic-bezier(.22, 1, .36, 1);
}

.site-header__user:hover {
    background: #1e8e63;
    border-color: #1e8e63;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 142, 99, .25);
}

.site-header__user svg {
    width: 20px;
    height: 20px;
}

.site-header__burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.22, 1, .36, 1);
}

.site-header__burger:hover {
    background: #f1f5f9;
}

.site-header__burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #0f172a;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

.site-header__burger span:nth-child(1) { transform-origin: center; }
.site-header__burger span:nth-child(3) { transform-origin: center; }

.site-header__burger[aria-expanded="true"] {
    background: #1e8e63;
    border-color: #1e8e63;
}

.site-header__burger[aria-expanded="true"] span {
    background: #fff;
}

.site-header__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    z-index: 1029;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .12);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .4s cubic-bezier(.22, 1, .36, 1), visibility .4s;
}

.mobile-menu.is-open {
    max-height: calc(100vh - 72px);
    visibility: visible;
    overflow-y: auto;
}

.mobile-menu__inner {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    background: #f8fafc;
    transition: all .2s ease;
}

.mobile-menu__link:hover {
    background: rgba(30, 142, 99, .08);
    color: #1e8e63;
}

.mobile-menu__link svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: all .2s ease;
}

.mobile-menu__link:hover svg {
    color: #1e8e63;
}

.mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-top: 4px;
    background: linear-gradient(135deg, #1e8e63, #166f4d);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(30, 142, 99, .3);
    transition: all .25s cubic-bezier(.22, 1, .36, 1);
}

.mobile-menu__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 142, 99, .35);
    color: #fff;
}

.mobile-menu__cta:active {
    transform: translateY(0) scale(.98);
}

.mobile-menu__backdrop {
    position: fixed;
    inset: 0;
    top: 72px;
    z-index: 1028;
    background: rgba(15, 23, 42, .4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}

.mobile-menu__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

[data-bs-theme="dark"] .site-header {
    background: rgba(15, 23, 42, .78);
    border-bottom-color: rgba(255, 255, 255, .06);
}

[data-bs-theme="dark"] .site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

[data-bs-theme="dark"] .site-header__link {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .site-header__link:hover {
    color: #4dab88;
    background: rgba(77, 171, 136, .1);
}

[data-bs-theme="dark"] .site-header__link::after {
    background: #4dab88;
}

[data-bs-theme="dark"] .site-header__cart,
[data-bs-theme="dark"] .site-header__user,
[data-bs-theme="dark"] .site-header__burger {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .site-header__burger span {
    background: #f1f5f9;
}

[data-bs-theme="dark"] .site-header__burger:hover {
    background: #334155;
}

[data-bs-theme="dark"] .mobile-menu {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

[data-bs-theme="dark"] .mobile-menu__link {
    background: #1e293b;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .mobile-menu__link:hover {
    background: rgba(77, 171, 136, .12);
    color: #4dab88;
}

@media (min-width: 992px) {
    .site-header__nav {
        display: flex;
    }

    .site-header__cart-label {
        display: inline;
    }

    .site-header__burger {
        display: none;
    }

    .mobile-menu,
    .mobile-menu__backdrop {
        display: none;
    }
}

@media (max-width: 991px) {
    .site-header__inner {
        gap: 8px;
        padding: 0 16px;
        height: 60px;
    }

    .site-header__brand img {
        height: 30px;
        max-width: 120px;
    }

    .site-header__actions {
        gap: 8px;
    }

    .site-header__cart {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 10px;
    }

    .site-header__cart svg {
        width: 20px;
        height: 20px;
    }

    .site-header__cart-count {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        font-size: .65rem;
        border: 2px solid #fff;
    }

    [data-bs-theme="dark"] .site-header__cart-count {
        border-color: #0f172a;
    }

    .site-header__user {
        display: none;
    }

    .site-header__burger {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .mobile-menu {
        top: 60px;
    }

    .mobile-menu.is-open {
        max-height: calc(100vh - 60px);
    }

    .mobile-menu__backdrop {
        top: 60px;
    }

    .mobile-menu__inner {
        padding: 14px 16px 20px;
        gap: 12px;
    }

    .mobile-menu__link {
        padding: 12px 14px;
        font-size: .95rem;
    }
}
