/* --- TEMEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-gray: #f4f4f4;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- HEADER VE MENÜ --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid #000;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
}

nav {
    flex-grow: 1;
    text-align: center;
}

nav ul {
    display: inline-flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

nav a:hover,
nav a.active {
    opacity: 0.6;
    border-bottom: 2px solid #000;
}

/* --- SAĞ ÜST BUTONLAR (GİRİŞ/KAYIT) --- */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login,
.btn-register {
    display: inline-block;
    text-decoration: none;
    background-color: #000; /* Siyah Zemin */
    color: #fff;            /* Beyaz Yazı */
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid #000;
    border-radius: 0;       /* Dikdörtgen */
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn-register:hover {
    background-color: #fff; /* Hoverda Beyaz */
    color: #000;            /* Hoverda Siyah Yazı */
    transform: translateY(-2px);
}

/* --- GİRİŞ YAPMIŞ KULLANICI (PROFİL ALANI) --- */
.logged-in-area {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative; /* Dropdown için gerekli */
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
}

.profile-btn:hover {
    background: #f4f4f4;
    border-color: #ddd;
}

.profile-icon-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #000;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- PROFİL AÇILIR MENÜSÜ (DROPDOWN) --- */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    display: none; /* Gizli */
    z-index: 9999; /* En üstte */
    margin-top: 10px;
}

.profile-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.profile-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.profile-dropdown a:last-child {
    border-bottom: none;
}

.profile-dropdown a:hover {
    background: #f4f4f4;
    color: #000;
}

.profile-dropdown a.logout-link {
    color: #d32f2f;
    font-weight: 700;
}

.profile-dropdown a.logout-link:hover {
    background: #fff0f0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HERO BÖLÜMÜ --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
}

/* --- ÜRÜN LİSTESİ VE KARTLAR --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
    border-left: 4px solid #000;
    padding-left: 15px;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #000;
    transform: translateY(-5px);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f4f4f4;
    position: relative;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    
}

.product-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: #000;
    display: block;
}

/* --- YENİ ÜRÜN BUTONLARI (İNCELE & SATIN AL) --- */
.card-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr; /* İki eşit parça */
    gap: 10px;
    margin-top: 15px;
}

.btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #000;
    cursor: pointer;
}

/* İncele Butonu (Beyaz) */
.btn-detail {
    background-color: #fff;
    color: #000;
}

.btn-detail:hover {
    background-color: #f4f4f4;
    color: #555;
}

/* Hemen Al Butonu (Siyah) */
.btn-buy {
    background-color: #000;
    color: #fff;
}

.btn-buy:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* --- KATEGORİ KARTLARI --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cat-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.cat-card:hover {
    background: #000;
    color: #fff;
    transform: translateY(-5px);
    border-color: #000;
}

.cat-card h3 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ÜYELİK SAYFALARI (GİRİŞ/KAYIT) --- */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.auth-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-full {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 15px;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-full:hover {
    background: #333;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.auth-footer a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
}
.alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

/* --- FOOTER --- */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    margin-top: 50px;
}

/* --- MOBİL UYUM --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    nav ul {
        display: none;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
    }

    .hero h1 { font-size: 2rem; }
    
    .product-grid { gap: 20px; }
    
    .form-row { grid-template-columns: 1fr; }
}
/* --- SEPET İKONU VE DROPDOWN --- */

/* Sepet Kapsayıcısı */
.cart-area {
    position: relative;
    margin-right: 15px; /* Profil butonuyla arasına boşluk */
}

/* Sepet Butonu */
.cart-btn {
    position: relative;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}

.cart-btn:hover {
    transform: scale(1.1);
}

/* Kırmızı Sayı Rozeti (Badge) */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    background-color: #d32f2f; /* Kırmızı */
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #fff;
}

/* Sepet Açılır Penceresi */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px; /* Biraz geniş olsun */
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px;
    display: none; /* Gizli */
    z-index: 2000;
    margin-top: 10px;
}

.cart-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Sepet İçi Ürün Listesi */
.cart-items {
    max-height: 300px;
    overflow-y: auto; /* Çok ürün varsa kaydırma çubuğu çıksın */
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
}

.cart-item-price {
    font-size: 0.8rem;
    color: #666;
}

/* Sepeti Onayla Butonu */
.btn-checkout {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: #333;
}
/* --- SEPET GÜNCELLEME BUTONLARI --- */

/* Sepet öğesini esnek kutu (flex) yapıp hizalayalım */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Ürün Resmi */
.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Ürün Bilgisi Alanı */
.cart-item-info {
    flex-grow: 1; /* Boş alanı kaplasın */
}

.cart-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.cart-item-price {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Miktar Kontrol Kutusu ( + 1 - ) */
.qty-control {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Artı/Eksi Butonları */
.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e0e0e0;
}

/* Ortadaki Sayı */
.qty-num {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 8px;
    min-width: 20px;
    text-align: center;
}

/* Silme (Çöp Kutusu) Butonu */
.btn-remove {
    color: #999;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.btn-remove:hover {
    color: #d32f2f; /* Hoverda kırmızı olsun */
}
/* =========================================
   ANA SAYFA ÖZEL TASARIMI (.ana-sayfa)
   ========================================= */

/* 1. Arka Plan Resmi */


/* 2. Siyah Perde (Yazıların okunması için resmin üstüne koyuluk atar) */



/* 3. Header'ı Şeffaf Yap */
body.ana-sayfa header {
    background: rgba(0, 0, 0, 0.8); /* Yarı saydam siyah */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header içindeki linkleri beyaz yap */
body.ana-sayfa .logo, 
body.ana-sayfa nav ul li a, 
body.ana-sayfa .auth-buttons a, 
body.ana-sayfa .profile-btn {
    color: #fff !important;
}

/* Profil ve Sepet İkonlarını Beyazlat */
body.ana-sayfa .profile-icon-svg,
body.ana-sayfa .cart-btn svg {
    color: #fff;
    stroke: #fff;
}

/* 4. Ürün Kartları - Buzlu Cam Efekti (Glassmorphism) */
body.ana-sayfa .product-card {
    background: rgba(255, 255, 255, 0.1); /* Çok hafif şeffaf beyaz */
    backdrop-filter: blur(10px); /* Arkayı buzlar */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: transform 0.3s ease, background 0.3s ease;
}

body.ana-sayfa .product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25); /* Üzerine gelince biraz parlasın */
}

body.ana-sayfa .product-card h3 {
    color: #000;
}

body.ana-sayfa .product-card p {
    color: #ddd; /* Fiyatlar hafif gri/beyaz olsun */
}

body.ana-sayfa .hero h1 {
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
/* =========================================
   ANA SAYFA ÖZEL TASARIMI (.ana-sayfa)
   ========================================= */

/* ... (Önceki body ve header kodları aynen kalsın) ... */

/* 4. Ürün Kartları - Düzenleme */
body.ana-sayfa .product-card {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: transform 0.3s ease, background 0.3s ease;
    
    /* Kartların içindeki hizalamayı düzeltelim */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Kart boyunu eşitlemeye yardımcı olur */
}

/* --- YENİ EKLENECEK KISIM (RESİM DÜZELTMESİ) --- */
body.ana-sayfa .product-card img {
    width: 100%;           /* Genişliği kutuya yay */
    height: 250px;         /* Hepsini sabit yükseklikte tut (Örn: 250px) */
    object-fit: cover;     /* Resmi bozmadan, artan kısımları kırparak doldur */
    object-position: center; /* Resmi ortala */
    border-radius: 8px;    /* Köşeleri yuvarlat */
    background-color: #fff; /* Şeffaf/küçük resimlerin arkası beyaz olsun (Naruto yüzük gibi) */
    margin-bottom: 15px;   /* Yazıyla resim arasına boşluk */
}

/* ... (Diğer kodlar aynen kalsın) ... */
/* Linkin altındaki çizgiyi kaldır */
body.ana-sayfa .product-card a {
    text-decoration: none !important; /* Alt çizgiyi siler */
    color: inherit; /* Rengi karttan miras alır (Beyaz kalır) */
    display: block; /* Tıklama alanını düzeltir */
}
/* =========================================
   DROPDOWN MENÜ DÜZELTMESİ
   ========================================= */

/* Profil ve Sepet menülerindeki tüm yazıları siyah yap */
.profile-dropdown a, 
.profile-dropdown span,
.cart-dropdown,
.cart-dropdown a,
.cart-dropdown span,
.cart-dropdown p,
.cart-dropdown div {
    color: #000 !important; /* Zorla Siyah */
    text-shadow: none !important; /* Gölge varsa kaldır */
}

/* Linklerin üzerine gelince koyu gri olsun */
.profile-dropdown a:hover,
.cart-dropdown a:hover {
    color: #333 !important;
    background-color: #f5f5f5; /* Hafif gri arka plan */
}
/* ============================================================
   DROPDOWN MENÜ KESİN ÇÖZÜM (High Specificity Fix) 🚀
   ============================================================ */

/* 1. Kapsayıcıyı (Dropdown Kutusunu) Beyaz Yap */
body.ana-sayfa .auth-buttons .logged-in-area .profile-dropdown,
body.ana-sayfa .auth-buttons .cart-area .cart-dropdown {
    background-color: #ffffff !important;
    text-align: left !important;
    border: 1px solid #ddd !important;
}

/* 2. Linkleri SİYAH Yap (Çok Güçlü Seçici) */
/* Buradaki püf nokta: .auth-buttons ve .logged-in-area sınıflarını da yazdık ki diğer beyaz kuralını ezsin */
body.ana-sayfa .auth-buttons .logged-in-area .profile-dropdown a,
body.ana-sayfa .auth-buttons .cart-area .cart-dropdown a,
body.ana-sayfa .auth-buttons .cart-area .cart-dropdown span,
body.ana-sayfa .auth-buttons .cart-area .cart-dropdown div {
    color: #000000 !important; /* KESİN SİYAH */
    text-shadow: none !important;
}

/* 3. Mouse ile üzerine gelince (Hover) */
body.ana-sayfa .auth-buttons .logged-in-area .profile-dropdown a:hover,
body.ana-sayfa .auth-buttons .cart-area .cart-dropdown a:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
}

/* 4. Sepet İkonundaki Kırmızı Sayı (Beyaz kalmalı) */
body.ana-sayfa .cart-badge {
    color: #ffffff !important;
}
/* =========================================
   KATEGORİLER SAYFASI ÖZEL TASARIMI (.kategoriler-sayfasi)
   ========================================= */

/* 1. Arka Plan Resmi ve Beyaz Yazı Rengi */
body.kategoriler-sayfasi {
    background: url('../img/kategoriler.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff !important; /* Tüm yazılar beyaz */
    position: relative;
    z-index: 0;
}

/* 2. Siyah Perde (Yazıların okunması için) */
body.kategoriler-sayfasi::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* %60 Siyahlık */
    z-index: -1;
}

/* 3. Header'ı Şeffaf ve Linkleri Beyaz Yap */
body.kategoriler-sayfasi header {
    background: rgba(0, 0, 0, 0.8); /* Yarı saydam siyah */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.kategoriler-sayfasi .logo,
body.kategoriler-sayfasi nav ul li a,
body.kategoriler-sayfasi .auth-buttons a,
body.kategoriler-sayfasi .profile-btn {
    color: #fff !important;
}

/* İkonları Beyazlat */
body.kategoriler-sayfasi .profile-icon-svg,
body.kategoriler-sayfasi .cart-btn svg {
    color: #fff;
    stroke: #fff;
}

/* 4. Kategori Kartları (.cat-card) - Buzlu Cam Efekti */
body.kategoriler-sayfasi .cat-card {
    background: rgba(255, 255, 255, 0.1) !important; /* Şeffaf beyaz */
    backdrop-filter: blur(10px); /* Buzlama */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

body.kategoriler-sayfasi .cat-card:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-5px);
    border-color: #fff !important;
}

/* 5. Ürün Kartları (Bir kategori seçildiğinde çıkanlar) - Buzlu Cam Efekti */
body.kategoriler-sayfasi .product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.kategoriler-sayfasi .product-card h3,
body.kategoriler-sayfasi .product-price,
body.kategoriler-sayfasi .hero p,
body.kategoriler-sayfasi .section-title,
body.kategoriler-sayfasi p {
    color: #fff !important;
}

/* Alt çizgileri kaldır */
body.kategoriler-sayfasi .cat-card,
body.kategoriler-sayfasi .product-card a {
    text-decoration: none !important;
}
/* ============================================================
   KATEGORİLER SAYFASI - DROPDOWN MENÜ DÜZELTMESİ 🛠️
   ============================================================ */

/* 1. Kutuların Kendisini Beyaz, Yazıları Siyah Yap */
body.kategoriler-sayfasi .auth-buttons .logged-in-area .profile-dropdown,
body.kategoriler-sayfasi .auth-buttons .cart-area .cart-dropdown {
    background-color: #ffffff !important; /* Arka plan beyaz */
    color: #000000 !important;            /* Genel yazı rengi siyah */
    text-align: left !important;
    border: 1px solid #ddd !important;
}

/* 2. İçindeki Linkleri, Yazıları, Fiyatları Zorla SİYAH Yap */
body.kategoriler-sayfasi .auth-buttons .logged-in-area .profile-dropdown a,
body.kategoriler-sayfasi .auth-buttons .cart-area .cart-dropdown a,
body.kategoriler-sayfasi .auth-buttons .cart-area .cart-dropdown span,
body.kategoriler-sayfasi .auth-buttons .cart-area .cart-dropdown div,
body.kategoriler-sayfasi .auth-buttons .cart-area .cart-dropdown p {
    color: #000000 !important; /* KESİN SİYAH */
    text-shadow: none !important; /* Gölgeyi kaldır */
}

/* 3. Mouse ile üzerine gelince (Hover) - Gri zemin, siyah yazı */
body.kategoriler-sayfasi .auth-buttons .logged-in-area .profile-dropdown a:hover,
body.kategoriler-sayfasi .auth-buttons .cart-area .cart-dropdown a:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
}

/* 4. İSTİSNA: Sepet İkonundaki Kırmızı Sayı (Beyaz kalmalı) */
body.kategoriler-sayfasi .cart-badge {
    color: #ffffff !important;
}
/*/* ============================================================
   AÇILIR SEPET (POP-UP) TASARIMI - GÖRSELDEKİ GİBİ
   ============================================================ */

/* Dropdown Kutusunun Kendisi */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 20px;
    display: none;
    z-index: 2000;
    margin-top: 10px;
    text-align: left;
}

.cart-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Ürün Satırı (Flex Yapısı) */
.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Sağa ve sola yay */
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

/* Ürün Resmi (Solda) */
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #f9f9f9;
}

/* Ürün Bilgisi (Ortada) */
.cart-item-info {
    flex: 1; /* Kalan boşluğu doldur */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
    line-height: 1.2;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

/* Adet Kutusu (Sağda - Görseldeki x1 kutusu gibi) */
.qty-control {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px;
}

.qty-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #ddd;
    color: #000; /* Hoverda siyah kalsın */
}

.qty-num {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0 6px;
    color: #000;
}

/* Toplam Alanı */
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #000; /* Kalın siyah çizgi */
    font-weight: 900;
    color: #000;
    font-size: 1rem;
    text-transform: uppercase;
}

/* SEPETE GİT BUTONU (Siyah -> Beyaz) */
.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: 1px solid #000; /* Siyah Çerçeve */
    
    /* VARSAYILAN: Siyah Zemin, Beyaz Yazı */
    background-color: #000 !important;
    color: #fff !important;
    
    transition: all 0.3s ease;
}

/* HOVER: Beyaz Zemin, Siyah Yazı */
.btn-checkout:hover {
    background-color: #fff !important;
    color: #000 !important;
}

/* Sepet Boş Mesajı */
.cart-empty-msg {
    text-align: center;
    color: #666;
    padding: 30px 0;
    font-size: 0.9rem;
}
/* ============================================================
   SEPETE GİT BUTONU RENK DÜZELTMESİ 🛠️
   (Bu kod diğer tüm renk kurallarını ezer)
   ============================================================ */
/* ============================================================
   SEPETE GİT BUTONU - KESİN ÇÖZÜM (SUPER SPECIFIC) 🚀
   ============================================================ */

/* 1. NORMAL HALİ: Siyah Zemin, Beyaz Yazı */
/* ID (#cartDropdown) kullanarak diğer genel kuralları eziyoruz */
#cartDropdown a.btn-checkout {
    display: block !important;
    width: 100% !important;
    padding: 12px !important;
    margin-top: 15px !important;
    text-align: center !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    text-decoration: none !important;

    /* RENK AYARLARI */
    background-color: #000000 !important; /* Zemin Siyah */
    color: #ffffff !important;            /* Yazı BEYAZ */
    border: 1px solid #000000 !important;
}

/* 2. HOVER HALİ: Beyaz Zemin, Siyah Yazı */
#cartDropdown a.btn-checkout:hover {
    background-color: #ffffff !important; /* Zemin Beyaz */
    color: #000000 !important;            /* Yazı SİYAH */
    cursor: pointer !important;
}
/* =========================================
   YENİ PANDA ARKA PLAN CSS
   ========================================= */

body.ana-sayfa {
    /* Resim klasörünün yoluna göre 'img/panda.png' veya 'panda.png' olarak düzenle */
    background: url('../img/pandakilic.jpeg') no-repeat center center fixed; 
    background-size: cover;
    position: relative;
    z-index: 0;
    min-height: 100vh;
}

/* Yazıların okunabilmesi için arkaplana koyu bir perde (overlay) */
body.ana-sayfa::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* %70 Siyahlık. Rengi açmak için 0.7'yi 0.5 yapabilirsin */
    z-index: -1;
}

/* Hero arka planını temizliyoruz */
body.ana-sayfa .hero {
    background: transparent !important; 
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Beyaz temaya uygun çok hafif çizgi */
}
/* =========================================
           DÜŞEN YAPRAK EFEKTİ CSS
           ========================================= */
        #leaves-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none; /* Yapraklar tıklamaları engellemesin */
            z-index: 5; /* Sayfanın önünde uçuşsunlar, derinlik katar */
            overflow: hidden;
        }

        .leaf {
            position: absolute;
            top: -10%;
            background: linear-gradient(to bottom right, #4caf50, #1b5e20); /* Doğal yeşil degrade */
            border-radius: 0 100%; /* Sihirli CSS: Kusursuz bir yaprak şekli oluşturur */
            box-shadow: inset 2px 2px 5px rgba(255,255,255,0.2); /* Yaprağa hafif parlaklık */
            opacity: 0; /* Başlangıçta görünmez */
        }

        @keyframes fallAnim {
            0% {
                top: -10%;
                transform: translateX(0) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.8; /* Ekrana girince yavaşça belirginleşsin */
            }
            80% {
                opacity: 0.8;
            }
            100% {
                top: 110%; /* Ekranın en altına düşsün */
                transform: translateX(var(--translateX)) rotate(var(--rotation));
                opacity: 0; /* Kaybolarak çıksın */
            }
        }
        /* =========================================
           SALLANAN VE DÜŞEN PANDA EFEKTİ CSS
           ========================================= */
        #falling-panda-scene {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none; /* Site etkileşimini engellemesin */
            z-index: 1000; /* En üstte olsun */
            display: flex;
            justify-content: center;
            align-items: flex-start; /* Tavandan başlasın */
            opacity: 1;
            transition: opacity 0.5s ease-out; /* Kaybolma efekti */
        }

        #falling-panda-scene.hidden {
            opacity: 0;
            pointer-events: none; /* Tamamen devre dışı bırak */
        }

        .vine-group {
            position: relative;
            top: -10px; /* Tavandan hafifçe yukarıda başla */
            transform-origin: top center; /* Sallanma pivot noktası: Tavan */
            animation: startSwing 3s ease-in-out forwards; /* 3 saniye sallan */
        }

        .vine {
            width: 120px; /* Sarmaşık büyüklüğünü ayarla */
            display: block;
        }

        .swinging-panda {
            position: absolute;
            bottom: -50px; /* Pandayı sarmaşığın ucuna tuttur */
            left: 50%;
            transform: translateX(-50%); /* Yatayda ortala */
            width: 90px; /* Panda büyüklüğünü ayarla */
            
            /* Animasyon Döngüsü:
               1. startFall: 3.2 saniye gecikmeyle (sallanma bittikten hemen sonra) 1.5 saniyede düş.
               2. fadeOut: Düşüş bittikten sonra (4s) yavaşça kaybol. */
            animation: 
                startFall 1.5s ease-in 3.2s forwards, /* 3.2s gecikmeyle düş */
                fadeOut 1s ease-in 4s forwards; /* 4s gecikmeyle kaybol */
        }

        /* 3 saniye sallanıp, hafif açılı bitir */
        @keyframes startSwing {
            0% { transform: rotate(-15deg); }
            50% { transform: rotate(15deg); }
            100% { transform: rotate(-7deg); }
        }

        /* Düşerken sallanma açısını koruyarak tavandan aşağıya kaydır */
        @keyframes startFall {
            0% { transform: translate(-50%, 0) rotate(-7deg); }
            100% { transform: translate(-50%, 110vh) rotate(0deg); } /* Ekran dışına, düzelerek düş */
        }

        @keyframes fadeOut {
            0% { opacity: 1; }
            100% { opacity: 0; }
        }
    /* --- YÜRÜYEN PANDA HAREKET VE DÖNÜŞ ANİMASYONU --- */
#walking-panda-container {
    position: fixed;
    bottom: 0; /* Pandanın ekranın tam altında durması için */
    left: 0;
    width: 100%;
    z-index: 999; /* Her şeyin üstünde görünmesi için */
    pointer-events: none; /* Kullanıcının tıklamalarını engellememesi için */
}

#walking-panda-img {
    position: absolute;
    bottom: 10px; /* Alt kısımdan biraz boşluk */
    /* Animasyon: 20 saniye sürer, hız sabit (linear), sürekli tekrarlar (infinite) */
    animation: pandaWalkAndTurn 20s linear infinite; 
}

@keyframes pandaWalkAndTurn {
    /* Başlangıç: Ekranın sol dışından başla, yüzü sağa dönük (scaleX(1)) */
    0% { transform: translateX(-150px) scaleX(1); }
    
    /* %45: Ekranın sağ dışına var */
    45% { transform: translateX(100vw) scaleX(1); }
    
    /* %46 - %50: Yüzünü sola çevir (scaleX(-1)) ve çok kısa bir süre bekle */
    46% { transform: translateX(100vw) scaleX(-1); }
    50% { transform: translateX(100vw) scaleX(-1); }
    
    /* %95: Ekranın sol dışına geri dön */
    95% { transform: translateX(-150px) scaleX(-1); }
    
    /* %96 - %100: Yüzünü tekrar sağa çevir ve döngüyü başa sar */
    96% { transform: translateX(-150px) scaleX(1); }
    100% { transform: translateX(-150px) scaleX(1); }
}
