/* ===== HEADER / NAV ===== */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(5, 15, 10, 0.7);
    border-bottom: 1px solid var(--line);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
}

/* ЛОГО */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(132, 255, 154, 0.28);
}

.logo-mark img {
    width: 48px;
    height: 48px;
}

/* НАВИГАЦИЯ */
nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    position: relative;
    font-size: 15px;
    color: var(--muted);
    transition: 0.3s;
}

nav a:hover {
    color: var(--text);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ПРАВАЯ ЧАСТЬ */
.block-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* КОРЗИНА */
.bag {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -9px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--dark);
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(132, 255, 154, 0.35);
}

/* БУРГЕР */
.menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    font-size: 20px;
    color: var(--text);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
}

/* ===== MOBILE ===== */

@media (max-width: 1180px) {
    .logo-mark img {
        width: 42px;
        height: 42px;
    }
    nav {
        position: fixed;
        top: 84px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(6, 16, 10, 0.96);
        box-shadow: var(--shadow);
    }

    nav.active {
        display: flex;
    }

    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-btn {
        display: none !important;
    }

    .logo {
        font-size: 22px;
    }
}