header {
    background: var(--color-white);
    box-shadow: var(--shadow-header);
    height: var(--header-height);
    z-index: var(--z-header);
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 25px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 15.5px;
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a .icon {
    display: none;
}

.nav-sidebar-header {
    display: none;
}

/* Hesap işlemleri (Giriş Yap/Hesabım, Kayıt Ol/Çıkış Yap) masaüstünde top-bar'da gösteriliyor;
   bu öğeler yalnızca mobil kenar menüsünde görünür. */
.nav-mobile-account {
    display: none;
}

.nav-links .nav-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-links .nav-cta a:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-nav-panel);
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
    }

    .logo img {
        height: 20px;
    }

    .nav-right {
        gap: 16px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        max-width: 80%;
        background: var(--color-white);
        box-shadow: var(--shadow-nav-panel);
        padding: 24px;
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: var(--z-nav-panel);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links.active li {
        animation: fadeInUp 0.4s ease both;
    }

    .nav-links.active li:nth-child(1) {
        animation-delay: 0.05s;
    }

    .nav-links.active li:nth-child(2) {
        animation-delay: 0.1s;
    }

    .nav-links.active li:nth-child(3) {
        animation-delay: 0.15s;
    }

    .nav-links.active li:nth-child(4) {
        animation-delay: 0.2s;
    }

    .nav-links.active li:nth-child(5) {
        animation-delay: 0.25s;
    }

    .nav-links.active li:nth-child(6) {
        animation-delay: 0.3s;
    }

    .nav-links.active li:nth-child(7) {
        animation-delay: 0.35s;
    }
    
    .nav-links.active li:nth-child(8) {
        animation-delay: 0.4s;
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--color-border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 16px 4px;
        font-size: 17px;
    }

    .nav-links a .icon {
        display: inline-block;
        color: var(--color-primary);
        flex-shrink: 0;
    }

    .nav-mobile-account {
        display: block;
    }

    .nav-mobile-account form {
        width: 100%;
    }

    .nav-links button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 16px 4px;
        font-family: inherit;
        font-size: 17px;
        font-weight: 500;
        color: var(--color-text-light);
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
    }

    .nav-links button:hover {
        color: var(--color-primary);
    }

    .nav-links button .icon {
        display: inline-block;
        color: var(--color-primary);
        flex-shrink: 0;
    }

    .nav-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-bottom: 16px;
    }

    .nav-sidebar-header .logo {
        position: static;
        transform: none;
    }

    .nav-sidebar-close {
        background: transparent;
        border: none;
        color: var(--color-text-muted);
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 50%;
        transition: var(--transition-base);
    }

    .nav-sidebar-close:hover {
        background: var(--color-bg);
        color: var(--color-text);
    }

    .nav-links .nav-cta {
        margin-top: auto;
        border-bottom: none;
        padding-top: 16px;
    }

    .nav-links .nav-cta a {
        justify-content: center;
        background: var(--color-primary);
        color: var(--color-white);
        padding: 14px;
        border-radius: var(--radius-base);
        font-weight: 700;
        width: 100%;
    }

    .nav-links .nav-cta a .icon {
        color: var(--color-white);
    }

    .nav-links .nav-cta a:hover {
        background: var(--color-primary-dark);
    }

    .nav-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: var(--z-nav-overlay);
        animation: fadeIn 0.35s ease;
    }
}