/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f4f7fb;
    color: #1f1f1f;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    /* 🔥 navbar fixed olduğu üçün content aşağı düşür */
}

/* ================= ROOT ================= */
:root {
    --primary: #0077b6;
    --secondary: #00b4d8;
}

/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER (NORMAL FIXED) ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: white;
    border-bottom: 1px solid #eaeaea;

    z-index: 1000;
    /* cart-dan aşağı */
}

/* ================= HEADER CONTENT ================= */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* ================= LOGO ================= */
.logo {
    width: 130px;
    height: 50px;
    background-image: url("/assets/images/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

/* ================= NAV ================= */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav ul li a:hover {
    color: var(--primary);
}

/* underline */
.nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav ul li a:hover::after {
    width: 100%;
}

/* ================= CART BADGE ================= */
.nav ul li:last-child {
    position: relative;
}

#cart-count {
    background: red;
    color: white;
    position: absolute;
    top: -8px;
    right: -12px;

    min-width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    font-size: 11px;
}

/* ================= HAMBURGER ================= */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Dil seçim konteyneri */
.lang-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

/* Sağ tərəfə qəşəng aşağı ox işarəsi qoyuruq */
.lang-select-wrapper::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    position: absolute;
    right: 10px;
    color: #1a252f;
    pointer-events: none;
}

/* Əsas Select qutusu */
.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1a252f;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;

    /* Sol tərəfdə bayraq üçün 34px boşluq, sağda ox üçün 28px boşluq */
    padding: 6px 28px 6px 34px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;

    /* Arxa fon şəkil nizamlamaları */
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 18px auto;
}

/* Standart olaraq (və ya AZ seçiləndə) görünəcək Azərbaycan bayrağı */
.lang-select {
    background-image: url('https://flagcdn.com/w40/az.png');
}

/* Hover və fokus effektləri */
.lang-select:hover {
    border-color: #cbd5e1;
}

.lang-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        z-index: 1000;
    }

    .nav ul {
        position: absolute;
        top: 3px;
        left: 0;
        right: 0;

        background: white;
        flex-direction: column;
        gap: 15px;
        padding: 20px;

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

        display: none;
    }

    .nav ul.active {
        display: flex;
    }
}

/* ================= CART DRAWER ================= */
#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;

    width: 320px;
    height: 100vh;

    background: white;

    z-index: 9999;
    /* navbar üstündə */

    transform: translateX(100%);
    transition: 0.3s ease;
}

#cart-drawer.active {
    transform: translateX(0);
}

/* ================= OVERLAY ================= */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.4);

    z-index: 9998;

    display: none;
}

#cart-overlay.active {
    display: block;
}

/* ================= BADGE ================= */
.badge {
    background: red;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 6px;
}