header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    border-radius: 4px 0px 14px 14px;

}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #ff6b00;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.nav-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cart-header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 82, 0, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cart-header-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 82, 0, 0.45);
}

.cart-badge {
    background: #fff;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 50px;
    line-height: 1;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 14px;
        gap: 8px;
    }

    .logo {
        gap: 8px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
    }

    /* Desktop navigation links hide on mobile; they are toggled
       open as an absolute-positioned dropdown drawer by the hamburger */
    .nav-tabs {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #121217;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        border: none;
        border-top: 1px solid var(--border);
        display: none;
        z-index: 1000;
    }

    .nav-tabs.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid var(--border);
    }

    .header-actions {
        gap: 6px;
    }

    .cart-header-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        border-radius: 50px;
    }

    .cart-header-btn .cart-sum {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
        gap: 6px;
    }

    .logo {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .cart-header-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .cart-header-btn .cart-badge {
        font-size: 0.65rem;
        padding: 1px 5px;
    }
}
