/* =========================================
   1. GENEL SIFIRLAMA VE YAPI
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f7f6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. ESKİ SAYFALARDAKİ HAM LİNKLERİ BUTONA ÇEVİRME
   (product.php ve sepetim.php'deki üst menüler için)
   ========================================= */
body > p > a[href*=".php"], 
body > a[href*=".php"],
.sepet-sayfasi > p > a,
.sepet-sayfasi > a {
    display: inline-flex !important;
    align-items: center;
    padding: 8px 18px !important;
    margin: 5px 5px 20px 0 !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #e1e8ed !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
}

body > p > a[href*=".php"]:hover, 
body > a[href*=".php"]:hover,
.sepet-sayfasi > p > a:hover,
.sepet-sayfasi > a:hover {
    background: #f0ebff !important;
    color: #6e27fb !important;
    border-color: #b06bff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(110, 39, 251, 0.15) !important;
}

/* =========================================
   3. BUTON MOTORU VE RENKLER (TEMA UYUMU)
   ========================================= */
button:not(.f-button):not(.kapat-btn):not(.toast-kapat):not(.btn-ozellik), 
input[type="submit"], 
.buton:not(.f-button) {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    background: #6e27fb; 
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

button:not(.f-button):hover, 
input[type="submit"]:hover, 
.buton:not(.f-button):hover {
    background: #b06bff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(110, 39, 251, 0.3);
}

/* Sepet ve Ürün Detay Aksiyon Butonları */
.btn-sepete-ekle { background: #6e27fb !important; color: white !important; }
.btn-sepete-ekle:hover { background: #b06bff !important; }

.btn-hemen-al { background: #e67e22 !important; color: white !important; }
.btn-hemen-al:hover { background: #d35400 !important; }

/* Gri Geri Dön Butonu */
.btn-geri, a[href*="Geri"] { background: #95a5a6 !important; color: white !important; border: none !important;}
.btn-geri:hover { background: #7f8c8d !important; }

/* =========================================
   4. SİPARİŞİ TAMAMLA BUTONU (ÖZEL TASARIM)
   ========================================= */
a[href*="siparis_tamamla"], button[name="siparis_tamamla"], .btn-satin-al {
    background: linear-gradient(135deg, #6e27fb 0%, #b06bff 100%) !important;
    color: white !important;
    padding: 15px 40px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    
    /* İŞTE SİHİRLİ ORTALAMA KODLARI BURADA */
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    text-align: center !important;
    
    border: none !important;
    box-shadow: 0 6px 20px rgba(110, 39, 251, 0.3) !important;
    transition: 0.3s !important;
    text-decoration: none !important;
}

a[href*="siparis_tamamla"]:hover, button[name="siparis_tamamla"]:hover, .btn-satin-al:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(110, 39, 251, 0.4) !important;
    filter: brightness(1.1);
}

/* =========================================
   5. SEPET İÇİ İŞLEM BUTONLARI (+, -, Sil)
   ========================================= */
a[href*="artir"], a[href*="azalt"], a[href*="sil"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    background: #ffffff !important;
    color: #333 !important;
    margin: 2px !important;
    min-width: 32px;
    height: 32px;
    border: 1px solid #ddd !important;
    text-decoration: none !important;
    transition: 0.2s !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

a[href*="artir"]:hover, a[href*="azalt"]:hover {
    background: #f0ebff !important;
    border-color: #b06bff !important;
    color: #6e27fb !important;
}

a[href*="sil"] {
    color: #e74c3c !important; 
    font-size: 13px !important;
    border-color: #fce4e4 !important;
    background: #fdf3f3 !important;
}

a[href*="sil"]:hover {
    background: #e74c3c !important;
    color: white !important;
    border-color: #e74c3c !important;
}

/* Sepet sayfasındaki ürün adı linki bozulmasın diye koruma */
.sepet-sayfasi h3 a, td a:not(.btn-geri):not([href*="sil"]) {
    background: transparent !important;
    color: #3498db !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: inline !important;
}
.sepet-sayfasi h3 a:hover, td a:not(.btn-geri):not([href*="sil"]):hover {
    color: #2980b9 !important;
    text-decoration: underline !important;
}

/* =========================================
   6. ÜRÜN KARTLARI VE IZGARA (INDEX)
   ========================================= */
.urun-konteynir {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px;
}

.urun-kart {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.urun-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(110, 39, 251, 0.1), 0 0 15px rgba(110, 39, 251, 0.05);
    border-color: #b06bff;
    z-index: 10;
}

.kart-resim-alanı {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #fdfdfd;
}

.kart-resim-alanı img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kart-link {
    text-decoration: none;
    color: #2c3e50;
    display: block;
}

.urun-kart h3 {
    font-size: 15px;
    margin: 5px 0 10px 0;
    color: #34495e;
    height: 38px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fiyat {
    font-size: 18px;
    font-weight: 800;
    color: #6e27fb; 
    margin-bottom: 10px;
}

/* =========================================
   7. EKSTRA BİLEŞENLER (Arama, Toast, Modal)
   ========================================= */
.arama-sonuc-kutusu {
    position: absolute !important;
    top: 100% !important; 
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    z-index: 99999 !important;
    max-height: 350px !important;
    overflow-y: auto !important;
    display: none;
    margin-top: 8px !important;
    border: 1px solid #eee;
}

.arama-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 12px 15px !important;
    text-decoration: none !important;
    color: #333 !important;
    border-bottom: 1px solid #f8f9fa !important;
    transition: 0.2s !important;
}

.arama-item:hover { background: #f0ebff !important; }

.arama-item img { 
    width: 50px !important; 
    height: 50px !important;
    min-width: 50px !important;
    object-fit: contain !important; 
    border-radius: 6px !important; 
    background: #fff !important;
    padding: 2px !important;
    border: 1px solid #eee !important;
}

.toast-bildirim {
    position: fixed; 
    bottom: 30px;
    right: 30px; 
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 15px 20px;
    z-index: 99999;
    border-left: 5px solid #6e27fb; 
    transform: translateY(200%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast-bildirim.goster { transform: translateY(0); }
.toast-icerik { cursor: pointer; flex: 1; }
.toast-baslik { font-weight: bold; color: #2f3542; margin: 0; font-size: 14px; }
.toast-alt { color: #747d8c; font-size: 12px; margin: 0; }
.toast-kapat { background: none; border: none; font-size: 18px; color: #a4b0be; cursor: pointer; padding: 0; }
.toast-kapat:hover { color: #ff4757; }

.favori-btn {
    position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.95);
    border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; z-index: 5; transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.favori-btn:hover { background: #fff; transform: scale(1.1); }
.favori-btn svg { width: 20px; height: 20px; fill: #bdc3c7; transition: 0.3s; }
.favori-btn.aktif svg { fill: #e74c3c; transform: scale(1.15); }

/* --- MOBİL UYUMLULUK DÜZELTMELERİ --- */

@media (max-width: 768px) {

    /* 1. Sorun: Sepetim Sayfası Ürün Resmi (image_7.png) */
    /* Karınca kadar küçük resmi büyütüyoruz */
    .sepet-urun-listesi .sepet-urun-resim img {
        width: 100px !important; /* Resmi görünür bir boyuta getir */
        height: auto;
        max-width: none !important;
        margin-right: 15px; /* Yanındaki yazı ile arasını aç */
    }

    /* 2. Sorun: "Siparişi Tamamla" Yazısı (image_7.png) */
    /* Metni butonun ortasına alıyoruz */
    #sepet-ozet-kutusu .buton-tamamla {
        text-align: center; /* Yazıyı ortala */
        display: flex;
        justify-content: center; /* Flex ise yatayda ortala */
        align-items: center; /* Dikeyde ortala */
        padding-left: 10px; /* Varsa kaydıran sol paddingi temizle */
        padding-right: 10px;
    }

    /* 3. Sorun: Footer "Hakkımızda" Kısmı (image_8.png) */
    /* Sığmayan ve kayan sütunu düzenliyoruz */
    footer .footer-kolon {
        width: 100% !important; /* Mobilde her kolon tam genişlik olsun */
        float: none;
        margin-bottom: 25px; /* Sütunlar arası boşluk */
        text-align: left; /* Metinleri sola yasla (image_8.png'deki gibi) */
        padding: 0 15px; /* Kenarlara sıkışmaması için boşluk */
        box-sizing: border-box;
    }
}

/* =========================================
   HIZLI MENÜ BUTONLARI (product.php vb. sayfalar için)
   ========================================= */
.hizli-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 18px !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #e1e8ed !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
}

.hizli-menu-btn:hover {
    background: #f0ebff !important;
    color: #6e27fb !important;
    border-color: #b06bff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(110, 39, 251, 0.15) !important;
}

/* =========================================
   ÜST MENÜ SADE LİNKLERİ VE ÇIKIŞ BUTONU (ust-header)
   ========================================= */
.ust-header a.link-sade, 
.ust-header a[href*="cikis.php"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 18px !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #e1e8ed !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
}

/* Sade Linkler Hover (Mor Parlama) */
.ust-header a.link-sade:hover {
    background: #f0ebff !important;
    color: #6e27fb !important;
    border-color: #b06bff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(110, 39, 251, 0.15) !important;
}

/* Çıkış Yap Butonu Özel Hover (Kırmızı Parlama) */
.ust-header a[href*="cikis.php"] {
    color: #e74c3c !important;
    border-color: #fadbd8 !important;
}

.ust-header a[href*="cikis.php"]:hover {
    background: #fdf3f3 !important;
    color: #c0392b !important;
    border-color: #e74c3c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.15) !important;
}

/* =========================================
   MOBİL CİHAZLAR İÇİN 2 SÜTUNLU KART TASARIMI
   ========================================= */
@media screen and (max-width: 768px) {
    /* Konteyneri mobilde zorla 2 eşit sütun yapıyoruz */
    .urun-konteynir {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important; /* Kartlar arası boşluğu daralt */
        padding: 10px !important;
    }

    /* Ürün kartının dış ve iç boşluklarını küçültüyoruz */
    .urun-kart {
        padding: 8px !important;
        border-radius: 8px !important;
    }

    /* Resim alanını daraltıyoruz ki dikeyde çok yer kaplamasın */
    .kart-resim-alanı {
        height: 120px !important; 
        margin-bottom: 8px !important;
    }

    /* Ürün Başlığı (2 satırdan uzunsa üç nokta ile kesilsin) */
    .urun-kart h3 {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
    }

    /* Fiyat yazısını biraz küçültüyoruz */
    .urun-kart .fiyat {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    /* Sepete Ekle ve Hemen Al Butonları */
    /* Yan yana sıkışıp çirkin durmamaları için mobilde alt alta alıyoruz */
    .ilk-ekleme {
        flex-direction: column !important; 
        gap: 5px !important;
    }

    .ilk-ekleme button {
        padding: 6px !important;
        font-size: 11px !important;
        width: 100% !important;
    }
    
    /* Miktar Arttır/Azalt Alanını Daraltıyoruz */
    .miktar-grubu {
        padding: 2px !important;
    }
    .btn-miktar {
        width: 25px !important;
        height: 25px !important;
        font-size: 16px !important;

    display: flex !important;
    align-items: center !important; /* Dikeyde (Yukarıdan aşağı) tam ortala */
    justify-content: center !important; /* Yatayda (Sağdan sola) tam ortala */
    padding: 0 !important; /* Varsa eski iç boşlukları sıfırla ki kaydırma yapmasın */
}
    .miktar-sayi {
        font-size: 13px !important;
    }
    
    /* Stokta Yok ve Kargo Bedava Yazıları */
    .urun-kart div[style*="font-size:11px"] {
        font-size: 10px !important;
        padding: 2px 4px !important;
    }
}

/* =========================================
   MODERN E-TİCARET HEADER VE MEGA MENÜ
   ========================================= */
.modern-header-container {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ust-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

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

/* Logo Metni - Tek Satıra Sabitlendi */
.header-logo h1 {
    margin: 0; 
    font-size: 26px; 
    color: #6e27fb; 
    font-weight: 800; 
    letter-spacing: -0.5px;
    white-space: nowrap !important; /* YAZIYI ZORLA TEK SATIRDA TUTAR */
    overflow: hidden !important; 
    text-overflow: ellipsis !important; /* Sığmazsa 2. satıra inmek yerine ... koyar */
}

/* Modern Arama Çubuğu */
.header-arama {
    flex: 1 1 auto !important; /* Ekranda sağda ve solda ne kadar boşluk varsa hepsini sahiplen */
    width: 100% !important;
    min-width: 300px !important; /* Çok küçülmesini engeller */
    max-width: 850px !important; /* Maksimum uzama sınırı */
    position: relative !important;
    margin: 0 30px !important;
}

.header-arama input {
    width: 100% !important; /* İŞTE SİHİRLİ KISIM BURASI: Kutuyu %100 doldur */
    padding: 14px 120px 14px 20px !important; /* Sağdan buton için 120px boşluk bırakır, yazı butonun altına girmez */
    border-radius: 30px !important;
    border: 2px solid #f0ebff !important;
    background: #f9f9fb !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-sizing: border-box !important; /* Padding değerlerinin kutuyu taşırmasını engeller */
}

.header-arama input:focus {
    border-color: #6e27fb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(110, 39, 251, 0.1);
}

.header-arama button {
    position: absolute !important;
    right: 5px !important;
    top: 5px !important;
    height: calc(100% - 10px) !important;
    border-radius: 25px !important;
    border: none !important;
    background: #6e27fb !important;
    color: #fff !important;
    padding: 0 30px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: background 0.2s !important;
}

.header-arama button:hover {
    background: #5a1ad5;
}

/* Sağ Taraf İkonlu Butonlar */
.header-butonlar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s;
}

.header-btn i, .header-btn span.icon {
    font-size: 22px;
    margin-bottom: 4px;
    color: #6e27fb;
}

.header-btn:hover {
    background: #f0ebff;
    color: #6e27fb;
}

.sepet-wrapper {
    position: relative;
}

.sepet-badge {
    position: absolute;
    top: -2px;
    right: 5px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #fff;
}

/* Alt Kategori Barı (Yatay Menü) */
.header-kategori-bar {
    background: linear-gradient(135deg, #6e27fb 0%, #b06bff 100%);
    padding: 0 40px;
    position: relative; 
}

.kategori-listesi {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.kategori-listesi::-webkit-scrollbar {
    display: none; /* Scroll çubuğunu gizle ama kaydırma çalışsın */
}

.kategori-listesi li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.kategori-listesi li a:hover {
    background: rgba(255,255,255,0.15);
}

/* Mobil Uyum */
@media screen and (max-width: 768px) {
    .header-logo h1 {
        font-size: 20px !important; /* Mobilde yazıyı biraz küçült */
    }
    
    .ust-header-modern {
        padding: 10px !important; /* Üst alt boşlukları kıs */
        gap: 10px !important; /* Elemanlar arası boşluğu daralt */
    }
    
    .header-arama {
        width: 100%;
    }
    .header-butonlar {
        width: 100%;
        justify-content: space-around;
    }
    .header-kategori-bar {
        padding: 0 10px;
    }
}

/* =========================================
   MEGA MENÜ (AÇILIR ALT KATEGORİLER)
   ========================================= */
.dropdown-kapsayici {
    position: relative; /* Menünün kendisini bu butona göre hizalamasını sağlar */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px; /* Menüyü biraz daha genişlettik */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); /* Gölgeyi belirginleştirdik */
    border-radius: 0 0 12px 12px;
    z-index: 99999 !important; /* SAYFADAKİ HER ŞEYİN ÜSTÜNDE GÖRÜNMESİNİ ZORLAR */
    padding: 10px 0;
    margin: 0;
    border: 1px solid #f0ebff;
}

.dropdown-kapsayici:hover .dropdown-menu {
    display: block; 
    animation: menuyukari 0.2s ease-out forwards;
}

@keyframes menuyukari {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    color: #2c3e50 !important;
    padding: 12px 25px !important;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid #f9f9fb; /* Alt kategorilerin arasına ince bir çizgi çektik */
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: #f0ebff !important;
    color: #6e27fb !important;
    padding-left: 32px !important; 
}

/* =========================================
   LOGO VE MENÜ TAŞMA (SIKIŞMA) ENGELLEYİCİ
   ========================================= */

/* Logo Asla İki Satıra İnmesin, Sığmazsa 3 Nokta Koysun */
.header-logo {
    min-width: 0 !important;
    flex-shrink: 1 !important;
    max-width: 100%; /* Sınırı belirle */
}

.header-logo h1 {
    white-space: nowrap !important;
    overflow: hidden !important; 
    text-overflow: ellipsis !important;
    font-size: 26px;
    margin: 0;
}

/* =========================================
   MOBİL E-TİCARET HEADER OPTİMİZASYONU
   (Trendyol / Amazon Tarzı Kompakt Görünüm)
   ========================================= */
@media screen and (max-width: 900px) {
    /* 1. Üst Alanı Satır Haline Getir (Yan Yana) */
    .ust-header-modern {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        padding: 10px 15px !important;
        gap: 10px !important;
    }
    
    /* 2. Logo Sol Üste Dayalı */
    .header-logo {
        width: auto !important;
        flex: 1 !important;
        justify-content: flex-start !important;
    }
    
    .header-logo h1 {
        font-size: 18px !important; 
        text-align: left !important;
    }
    
    /* 3. Butonlar Sağ Üste Dayalı */
    .header-butonlar {
        width: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        gap: 5px !important;
    }
    
    /* SİHİRLİ DOKUNUŞ: Mobilde buton yazilerini gizle, sadece ikonlar kalsın! */
    .header-btn span:not(.icon):not(.sepet-badge) {
        display: none !important;
    }
    
    .header-btn {
        padding: 5px !important;
        background: transparent !important;
    }
    
    .header-btn i, .header-btn span.icon {
        font-size: 22px !important;
        margin: 0 !important; /* Mobilde ikonun altındaki boşluğu sıfırla */
    }
    
    /* 4. Arama Çubuğu Alt Satıra (İkinci Satır - Tam Genişlik) */
    .header-arama {
        width: 100% !important;
        order: 3 !important; /* Arama çubuğunu zorla en alta iter */
        margin: 0 !important;
    }
    
    .header-arama input {
        padding: 12px 90px 12px 15px !important; /* Mobilde arama kutusu biraz daha ince olsun */
    }

  /* Mobilde faviconu biraz küçültelim ki yazıya yer kalsın */
    .header-logo img {
        height: 30px !important; /* 45px'ten 30px'e düştü */
        width: 30px !important;
    }

    /* =========================================
       MOBİL KATEGORİ KAYDIRMA (TAŞMA) ÇÖZÜMÜ
       ========================================= */
    .header-kategori-bar {
        width: 100% !important; /* Ekranı germesini engeller */
        overflow-x: auto !important; /* Sığmayanları sağa doğru kaydırılabilir yapar */
        -webkit-overflow-scrolling: touch !important; /* iOS/Android'de yağ gibi kaymasını sağlar */
        padding: 0 !important;
    }

    /* Mobilde çirkin alt kaydırma çubuğunu (scrollbar) gizle */
    .header-kategori-bar::-webkit-scrollbar {
        display: none !important;
    }

    .kategori-listesi {
        width: max-content !important; /* İçindeki yazılar kadar yana uzasın, alta inmesin */
        display: flex !important;
        padding: 0 10px !important;
    }

    /* Dokunmatik ekranda hover çalışmayacağı ve ekranı bozacağı için açılır menüleri mobilde kapat */
    .dropdown-kapsayici .dropdown-menu {
        display: none !important;
    }
} 

.header-logo {
    flex-shrink: 0 !important; /* ESKİDEN 1 İDİ, 0 YAPTIK - Asla küçülme, alanını koru! */
    min-width: max-content !important; /* Metnin uzunluğu ne kadarsa tam o kadar yer ayır */
}

/* Sağdaki Butonlar da Ezilmesin */
.header-butonlar {
    flex-shrink: 0 !important;
}