
/* ============================================================
   🎨 RENK KUTUCUKLARI (GLOBAL CLEAN-UP)
   ============================================================ */

/* 1. ORTAK TASARIM (Hem Filtre Hem Kartlar İçin) */
.color-circle, 
.swatch-circle {
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: inline-block !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
}

/* 2. FİLTRE ALANI (Sidebar & Mobil Filtre Menüsü) */
.color-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Mobilde sığmazsa repeat(3, 1fr) yapılabilir */
    gap: 15px;
    padding: 15px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.color-circle {
    width: 32px !important;
    height: 32px !important;
    box-shadow: inset 0 0 0 2px #fff; /* İç beyaz halka efekti */
}

/* Filtre Seçili Durumu */
.filter-input:checked + .color-circle {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #000 !important;
    transform: scale(1.1);
}

.color-name {
    font-size: 11px;
    color: #444;
    font-weight: 500;
    text-align: center;
}

/* 3. ÜRÜN KARTLARI (Product Swatches) */
/* Ana Kapsayıcı */
.product-colors-wrapper {
    display: flex;
    align-items: center; /* Dikeyde tam orta */
    gap: 8px;
    margin-top: 10px;
}

/* Renk Kutuları Grubu */
.product-colors-swatches {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* Her Bir Renk Linki */
.swatch-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

/* Renk Kutusu (Daire) */
.swatch-circle {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease;
}

.swatch-circle:hover {
    transform: scale(1.1); /* Üzerine gelince hafif büyüme efekti */
}

/* "X färger" Metni */
.color-count-text {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
    
    /* Milimetrik Hizalama Sırrı */
    display: inline-flex;
    align-items: center;
    height: 16px; /* Kutularla aynı yükseklik */
    line-height: 1;
    margin-top: 1px; /* Font karakterine göre gerekirse ince ayar */
   margin-left: 2px;
}

/* 4. MOBİL ÖZEL AYAR (Responsive) */
@media (max-width: 768px) {
    .color-filter-grid {
        grid-template-columns: repeat(4, 1fr); /* Filtreleri 4'lü yapmaya devam et */
        gap: 10px;
    }
    
    .color-circle {
        width: 28px !important; /* Mobilde filtre butonlarını hafif küçült */
        height: 28px !important;
    }

    .swatch-circle {
        width: 14px !important; /* Kartlardaki renkleri mobilde hafif küçült */
        height: 14px !important;
    }
}

/* ============================================================
   📦 ÜRÜN KARTI BİLGİ ALANLARI (Ölçü, Fiyat, Badge)
   ============================================================ */
   .category-page-wrapper {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-grid-container {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 25px 20px !important;
    width: 100% !important;
    margin: 30px auto !important;
}

.image-box { 
    background: #f8f8f8; 
    aspect-ratio: 1 / 1.35; 
    position: relative; 
    overflow: hidden;
}

.image-box img { width: 100%; height: 100%; object-fit: cover; }


/* Ürün Başlığı Üç Nokta (...) Ayarı */
.product-info .product-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important; /* Tek satırda keser */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 1.1em;
    margin-bottom: 2px!important;
    font-size: 16px;
    font-weight: 500;
}


/* --- 5. Wishlist (Kalp) Butonu --- */
.wishlist-btn {
    position: absolute;
    top: 5px;
    right: 0px;
    background: transparent !important;
    border: none !important;
    z-index: 5;
}

.wishlist-btn i { font-size: 1.3rem;
color: #000; 
text-shadow: 0 0 2px #fff;
}

.wishlist-btn.active i {
    color: #D30000 !important;
    font-weight: 900; 
    
}


.wishlist-btn:hover {
    transform: scale(1.1);
    color: #e02020;
}

   

/* 1. Ölçü Alanı (Dinamik & ACF) */
.product-meta-row {
    margin-top: 0px !important;
    margin-bottom: 10px;
    min-height: 18px;
    display: block;
    line-height: 1.2;
}

.product-acf-dimension {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
    letter-spacing: -0.2px;
}

.dimension-plus-text {
    font-size: 12px !important;
    color: #888 !important;
    font-weight: 500 !important;
    margin-left: 3px;
    height: 18px;
}


.unit-text {
    font-size: 0.8em; /* Fiyattan biraz daha küçük */
    color: #666;      /* Hafif gri tonu */
    margin-left: 4px; /* Fiyatla arasına boşluk */
    font-weight: 500; /* Kalın olmasın */
}

/* 3. Resim Üzeri Rozetler (Badge) */
.image-box { position: relative; overflow: hidden; }

.rea-badge, .out-of-stock-badge, .image-bottom-badge {
    position: absolute;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 2px;
    z-index: 5;
    text-transform: uppercase;
}

.price-sale-badge {
    color: #000 !important; /* Beyaz yazı */
    padding: 2px 6px;          /* İç boşluk */
    border-radius: 4px;        /* Köşeleri yuvarla */
    font-size: 13px;           /* Yazı boyutu */
    font-weight: 500;          /* Kalın yazı */
    margin-left: 0px;          /* Fiyatla arasındaki mesafe */
    display: inline-block;     /* Yan yana durması için */
    vertical-align: middle;    /* Hizalama */
    line-height: 1;            /* Satır yüksekliği */
}


.rea-badge { top: 5px; left: 5px; background: #000; color: #fff; }
.image-bottom-badge { bottom: 10px; left: 10px; background: #f3f3f3; color: #333; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.out-of-stock-badge { top: 5px; right: 5px; background: #f8d7da; color: #721c24; }

/* ============================================================
   1. GLOBAL & TİPOGRAFİ (Fiyat ve Metin Ayarları)
   ============================================================ */
   .category-header-bar h1.product-title {
    display: block !important;
    width: 100% !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    margin: 20px 0 !important;
    padding-left: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}
   
/* İndirimli Fiyat */
.product-price ins, .product-price ins .woocommerce-Price-amount, .product-price ins bdi {
    color: #d0011b !important;
     font-size: 1.10rem !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Eski Fiyat */
.product-price del, .product-price del .woocommerce-Price-amount, .product-price del bdi {
    color: #666 !important;
    font-size: 1.05rem !important;
    text-decoration: line-through !important;
    font-weight: 700 !important;
}

.product-price {
    display: flex !important;
    align-items: baseline;
    gap: 4px;
   font-size: 1.10rem !important;
    font-weight: 700;
}


/* Birim Metni (m2, st, vb.) Stili */
.unit-text {
    font-size: 0.85em !important; /* Ana fiyattan biraz daha küçük olsun */
    color: #444 !important;       /* Daha soft bir gri */
    font-weight: 500 !important;  /* Kalın olmasın, fiyatla karışmasın */
    margin-left: 0px;             /* Fiyatla arasında çok az boşluk */
    letter-spacing: 0.2px;
}

/* Fiyat ve Birimi kapsayan div için (Eğer varsa) */
.price-container {
    display: flex;
    align-items: baseline; /* Metinlerin alt hizasını eşitler, daha düzgün durur */
    flex-wrap: wrap;       /* Dar alanlarda taşmayı önler */
}

/* Mobilde birim yazısını hafifçe daha da küçültebiliriz */
@media (max-width: 768px) {
    .unit-text {
        font-size: 0.8em !important;
    }
}

/* ============================================================
     CHIPS BUTONLARI
   ============================================================ */
   /* --- Kategori Çipleri (Chips) Güncel --- */
.category-chips-wrapper { 
    max-width: 1800px !important;
    padding-left: 0px !important;
    margin-right: auto !important;
    text-align: center !important;
    /* margin-top'u negatif yaparak yukarı çektik */
    margin: -15px 0 25px 0 !important; 
    padding-bottom: 0px;
    padding-top: 0 !important;
    overflow-x: auto; 
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch;
}

/* Standart Hali (Beyaz Arka Plan) */
.category-chip {
    display: inline-block; 
    padding: 10px 22px; 
    background-color: #ffffff !important; /* Arka plan bembeyaz */
    border: 1px solid #cccccc; /* Hafif bir çerçeve (beyaz zeminde belli olması için) */
    border-radius: 25px; 
    margin-right: 12px; 
    text-decoration: none !important; 
    color: #444444 !important; 
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
}

/* Üzerine Gelince (Hover) */
.category-chip:hover {
    background-color: #f0f0f0 !important; /* İstediğin gri tonu */
    border-color: #f0f0f0;
    color: #000 !important;
}

/* Tıklanınca / Aktifken (Active) */
.category-chip.active { 
    background-color: #f0f0f0 !important; /* Seçili olduğunda gri kalacak */
    color: #000 !important; 
    border-color: #f0f0f0;
    font-weight: 700; /* Seçili olduğunu belirtmek için fontu kalınlaştırdık */
}

/* Kaydırma çubuğunu gizlemek istersen (daha temiz durur) */
.category-chips-wrapper::-webkit-scrollbar {
    display: none;
}
.category-chips-wrapper {
    -ms-overflow-style: none;  /* IE ve Edge */
    scrollbar-width: none;  /* Firefox */
}

   
   .category-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 15px;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.category-chips-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-chip.back-btn {
    background: #e9ecef;
    border-color: #dee2e6;
      margin-right: 6px;
}


/* ============================================================
   3. FILTRE & CONTROLS (Ana Bar)
   ============================================================ */
  .filter-controls-wrapper {
    max-width: 1800px;
   margin: 5px auto 10px auto !important;
    border-top: 1px solid #e0e0e0;    /* Gri üst çizgi */
    border-bottom: 1px solid #e0e0e0; /* Gri alt çizgi */
    padding: 0px 0;                  /* Buton ile çizgiler arasında boşluk */
} 
   
#filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* Kapalıyken solda */
    width: 450px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    padding: 30px;
}

#filter-sidebar.active { left: 0; }

/* --- Çekmece Genel Yapısı --- */
.filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    direction: rtl; /* Scrollbar'ı sola almak için */
    
}

.filter-drawer.active { right: 0; }

.drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: -15px 15px !important;
    direction: ltr !important;
    border-bottom: 1px solid #eeeeee !important; 
    background-color: #ffffff; /* Arka planın temiz durması için */
}

.filter-badge {
    background-color: #000 !important;
    color: #fff !important;
    min-width: 22px; height: 22px;
    border-radius: 50% !important;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; margin-left: 8px;
}

#close-filter-sidebar {
    order: 2; /* X butonu sağda */
    background: none !important;
    border: none !important;
    font-size: 1.8rem !important;
    cursor: pointer;
    color: #000 !important;
    transition: opacity 0.2s;
}
 
 #close-filter-sidebar:hover {
    color: #666 !important; /* Kırmızı yerine koyu gri hover */
    opacity: 0.7;
}

/* 2. Buton: Beyaz arka plan, siyah yazı ve gri hover */
.filter-trigger-main {
    background-color: #fff !important;
    color: #000000 !important;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border: none !important;          /* Butonun kendi sınırlarını kaldırdık */
    transition: background-color 0.2s ease;
    font-weight: 600;
}

.filter-trigger-main {
    /* Senin mevcut kodlarına ek olarak: */
    border-right: 1px solid #000000 !important; /* Sağ tarafa siyah dikey çizgi */
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-right: 15px !important; /* Çizgiyle yazı arasında boşluk */
    margin-right: 10px; /* Çizgiden sonra dış boşluk */
    border-radius: 0 !important; /* Köşeleri sıfırla ki çizgi dik dursun */
}
/* Hover durumunda arka plan f0f0f0 */
.filter-trigger-main:hover {
    background-color: #fafafa !important;
    color: #000000 !important;
}



/* Filtre Sayısı (Badge) - Siyah Yuvarlak Tasarım */
.filter-badge {
    background-color: #000 !important; /* Arka plan siyah */
    color: #fff !important;            /* Yazı beyaz */
    font-size: 14px !important;        /* Küçük ve zarif font */
    font-weight: 700 !important;
    
    /* Yuvarlak Formu Veren Kısım */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;                   /* Genişlik */
    height: 22px;                      /* Yükseklik (Genişlikle aynı olmalı ki tam daire olsun) */
    border-radius: 50% !important;     /* Tam yuvarlak yapar */
    
    /* Konumlandırma */
    margin-left: 8px;                  /* "Filtrera" yazısıyla arasına boşluk */
    padding: 2px;                      /* İç boşluk */
    line-height: 1;
}

/* Butonun genel hizalamasını bozmamak için */
.filter-trigger-main {
    display: inline-flex;
    align-items: center;
}

/* Geri Dön Butonu Yazısı ve İkonu */
.back-to-main {
    background: none !important;
    border: none !important;
    color: #000 !important; /* Normalde siyah */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

/* Çekmece Başlık Alanı */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
}

.drawer-header h3 {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
    color: #1a1a1a;
}

/* Kapatma Butonu (X) */
.close-btn, #close-filter-sidebar, #close-sort-drawer {
    
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.5s ease;
}

.close-btn:hover {
    background: #000;
  
}



/* Grid Filtreleme (Genişlik/Bredd için) */
.filter-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Yan yana 3'lü butonlar */
    gap: 10px;
    padding: 15px;
}

.grid-filter-item input {
    display: none; /* Checkbox'ı gizle */
}

.grid-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.grid-filter-item input:checked + .grid-label {
    background-color: #000;
    color: #fff;
    border-color: #000;
}



/* Återställ (Sıfırla) Metni */
.reset-link {
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.reset-link:hover {
    color: #000 !important;
}

/* 2. ÇEKMECE İÇİNDEKİ "VISA PRODUKTER" BUTONU */
.apply-btn, 
.apply-btn:hover, 
.apply-btn:focus, 
.apply-btn:active {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.apply-btn:hover {
    background-color: #222 !important; /* Kırmızı yerine koyu gri/siyah tonu */
    color: #fff !important;
}

/* 3. GERİ DÖNÜŞ VE DİĞER TEXT BUTONLAR */
.back-to-main:hover, 
.close-filter-sidebar:hover {
    background: transparent !important;
    color: #000 !important;
    border: none !important;
}

/* Alt Panel (Sub-panel) Header ve Geri Dön Butonu */
.sub-header {
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}







.active-category-indicator {
    display: inline-flex;
    align-items: center;
    background: #fafafa; /* Hafif gri arka plan */
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 6px 14px;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.indicator-label {
    border-right: 1px solid #ccc;
    padding-right: 10px;
}

.remove-category-x {
    color: #888;
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-category-x:hover {
    color: #ff0000; /* Kapatma üzerine gelince kırmızı olsun */
    transform: scale(1.1);
}

/* Kategori çiplerinden Tillbaka'yı kaldırdığımız için orayı sadeleştirelim */
.category-chip.back-btn {
    display: none !important;
}

/* Rensa (Temizle) Butonu Tasarımı */
.filter-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background-color: #ffffff !important; /* Arka plan beyaz */
    color: #444444 !important;            /* Yazı rengi koyu gri */
    
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

/* Rensa Butonu Hover - Kırmızıyı Siler */
.filter-clear-all:hover {
    background-color: #f0f0f0 !important; /* İstediğin gri hover */
    color: #000000 !important;            /* Yazı tam siyah olsun */
    border-color: #dddddd !important;     /* Çerçeve bir tık belirginleşsin */
}

/* İçindeki İkonun Rengini Sabitleyelim */
.filter-clear-all i {
    font-size: 12px;
    color: #666;
}

.filter-clear-all:hover i {
    color: #000;
}

/* Her iki overlay için ortak stil */
#sort-overlay, #filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Karartma rengi */
    z-index: 9998; /* Çekmeceden bir tık düşük olmalı */
    display: none; /* Varsayılan kapalı */
}

/* Aktif olduğunda görünür yap */
#sort-overlay.active, #filter-overlay.active {
    display: block !important;
}

/* Çekmecelerin z-index'i overlay'den yüksek olmalı */
.filter-drawer {
    z-index: 1000001!important;
}

/* Sayfa zıplamasını engellemek için */
html {
    /* Her zaman scroll çubuğu varmış gibi yer ayırır */
    scrollbar-gutter: stable;
}

.drawer-header h3 {
    margin: 0 !important;
    order: 1; /* Yazı solda */
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    
}

/* --- Panel Alanları --- */
.drawer-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    direction: ltr; /* İçeriği tekrar normale çevir */
}

.drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    padding-bottom: 100px;
}

.drawer-panel::-webkit-scrollbar {
    width: 4px;
}
.drawer-panel::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.main-panel { transform: translateX(0); z-index: 1; }
.main-panel.slide-out { transform: translateX(-100%); }
.sub-panel { transform: translateX(100%); z-index: 2; }
.sub-panel.slide-in { transform: translateX(0); }

/* --- Menü ve Liste Elemanları --- */
.menu-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.sub-header {
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 10;
}

.back-to-main {
    background: none; border: none; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
}

/* --- Ölçü Listesi (Dikey) --- */
.filter-vertical-list { display: flex; flex-direction: column; }
.filter-row { border-bottom: 1px solid #f5f5f5; }
.filter-row-label {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 25px; cursor: pointer;
}

.filter-input { display: none; }
.check-icon { color: #000; opacity: 0; transition: 0.2s; }
.filter-input:checked + .filter-row-label { background: #fafafa; font-weight: 600; }
.filter-input:checked + .filter-row-label .check-icon { opacity: 1; }



/* --- Sabit Alt Buton --- */
.sticky-filter-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #fff;
    direction: ltr;
}

.apply-btn {
    width: 100%; background: #000; color: #fff; border: none;
    padding: 18px; border-radius: 4px; font-weight: 700; cursor: pointer;
}

/* 1. Kapsayıcı (Wrapper): 1300px genişlik ve gri çizgiler */

/* Eğer yukarıdaki her tarayıcıda çalışmazsa alternatif yöntem: */
body.modal-open {
    padding-right: 15px; /* Scroll çubuğunun ortalama genişliği */
}

/* ============================================================
   SORT CEKMECESI
   ============================================================ */
   /* Sort Drawer Özel Stilleri */
.sort-drawer {
    position: fixed;
    top: 0;
    left: -100%; /* Soldan gizli */
    width: 450px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sort-drawer.active {
    left: 0; /* Açıldığında */
}

.sort-radio-list {
    padding: 20px;
}

.sort-radio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 15px;
}

/* Radio Buton Tasarımı */
.sort-radio-item input { display: none; }

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
}

.sort-radio-item input:checked + .radio-custom {
    border-color: #000;
}

.sort-radio-item input:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Radio buton gizlensin ama label üzerinden kontrol edilsin */
.sort-radio-item input[type="radio"] {
    display: none;
}

/* Seçili olan radio'nun yanındaki metni kalın yap */
.sort-radio-item input[type="radio"]:checked + .radio-custom::after {
    content: "\f00c"; /* FontAwesome Check ikonu */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #000;
}


/* Ana sayfadaki Sortera butonunun kırmızısını temizle */
#sort-menu-btn.sort-trigger {
    background: transparent !important; /* Arka planı boşalt */
    color: #333 !important;             /* Yazı ve ikon rengi koyu gri/siyah */
   border: none !important;
    padding: 8px 16px !important;       /* İç boşluk */
    margin-left: -22px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;                /* İkon ve yazı arası mesafe */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;        /* Elementor gölgesi varsa kaldır */
    text-transform: none !important;    /* Büyük harf zorlamasını kaldır */
}

/* Butonun üzerindeki ikonu biraz küçültelim */
#sort-menu-btn.sort-trigger i {
    font-size: 13px !important;
    color: #666 !important;
}

/* Hover (Üzerine gelince) durumu */
#sort-menu-btn.sort-trigger:hover {
    background-color: #f9f9f9 !important;
    border-color: #000 !important;
    color: #000 !important;
}

/* Hover'da ikonun rengi de değişsin */
#sort-menu-btn.sort-trigger:hover i {
    color: #000 !important;
}



/* Mobilde butonların yan yana düzgün durması için wrapper'a ek */
.filter-controls-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Mobilde taşarsa kaysın */
    white-space: nowrap;
    padding-bottom: 5px;
}

/* ============================================================
   MODERN LOAD MORE & PROGRESS BAR
   ============================================================ */
.load-more-container {
    max-width: 500px; /* Biraz genişlettik ki bar daha şık dursun */
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.product-progress {
    margin-bottom: 30px;
}

.progress-text {
    font-size: 12px;
    text-transform: uppercase; /* Daha profesyonel durur */
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 15px;
}

.progress-text span {
    color: #000;
    font-weight: 600;
}

/* Çubuk: Hafif kalınlaştırdık ama rengini yumuşattık */
.progress-bar-bg {
    width: 100%;
    height: 4px; 
    background-color: #f2f2f2;
    position: relative;
    border-radius: 2px;
    overflow: hidden; /* Taşmaları engeller */
}

/* Dolan Çubuk: Siyah yerine çok koyu gri (soft black) */
.progress-bar-fill {
    height: 100%;
    background-color: #1a1a1a;
    width: 0%; 
    transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}

.load-more-wrapper {
    margin-top: 20px;
}

/* Buton: Daha ince, daha geniş ve minimal */
.visa-mer-btn {
    background-color:#000;
    color: #fff !important;
    border: 1px solid #1a1a1a !important; /* Çizgiyi incelttik */
    padding: 12px 40px; /* Yüksekliği azalttık, genişliği artırdık */
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    border-radius: 0; /* Keskin köşeler her zaman daha premiumdur */
}

.visa-mer-btn:hover {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Mobil Düzenleme */
@media (max-width: 768px) {
    .load-more-container {
        margin: 50px auto;
    }
    
    .visa-mer-btn {
        width: 50%; /* Mobilde tam genişlik ama zarif padding ile */
        padding: 14px 20px;
    }

    .progress-bar-bg {
        height: 3px; /* Mobilde biraz daha ince */
    }
}

/* Başa Dön Butonu (End of list) */
.scroll-to-top-btn {
    background-color: #000;
    color: #fff;
    border: 1px solid #ddd;
    padding: 10px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.scroll-to-top-btn:hover {
    border-color: #fff;
    background-color: #000;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   📝 SEO VE İÇERİK ALANLARI
   ============================================================ */
.category-seo-section {
    background: #fff;
    padding: 50px 20px;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.seo-content-wrapper {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.seo-content-wrapper h2, .seo-auto-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
}

.seo-content-wrapper p, .seo-text-body {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
}

/* Mobil SEO */
@media (max-width: 768px) {
    .seo-content-wrapper h2 { font-size: 24px; }
    .seo-content-wrapper p { font-size: 15px; }
}

/* ============================================================
   5. MOBİL OPTİMİZASYONU (Breakpoint: 991px & 768px)
   ============================================================ */

@media (max-width: 991px) {
    /* Konteyner Ayarları */
.product-grid-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;            /* Kartlar arası boşluğu biraz daha azalttık */
        width: 100vw !important;        /* Ekran genişliğini tam kapla */
        margin: 10px 0 !important;
        padding: 0 10px !important;      /* Sadece çok hafif 5px'lik bir nefes payı bıraktık */
        box-sizing: border-box !important;
        position: relative;
        left: 50%;
        transform: translateX(-50%);    /* Tam ortalayıp kenarlara sıfırlamak için */
    }

    /* Kart Ayarları */
    .product-card {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        margin: 0 !important;                      /* Kartın dış boşluğu olmasın, Grid yönetsin */
    }

    /* Resim Kutusu */
    .image-box {
        width: 100% !important;
        aspect-ratio: 3 / 4 !important;
        overflow: hidden;
        position: relative;
    }

    .image-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }

    /* Fiyat ve Badge Yan Yana Hizalama Fix */
.product-price {
        font-size: 0.95rem !important; /* Genel boyutu küçülttük */
        gap: 3px !important;           /* Rakamlar arası boşluğu daralttık */
        flex-wrap: wrap;               /* Sığmazsa alt satıra geçsin, kartı patlatmasın */
    }

    /* Mobilde İndirimli Fiyat */
    .product-price ins, 
    .product-price ins .woocommerce-Price-amount, 
    .product-price ins bdi {
        font-size: 0.95rem !important;    /* Masaüstündeki 1.10'u 1'e çektik */
    }

    /* Mobilde Eski (Çizili) Fiyat */
    .product-price del, 
    .product-price del .woocommerce-Price-amount, 
    .product-price del bdi {
        font-size: 0.85rem !important; /* Masaüstündeki 1.05'i 0.85'e çektik */
        font-weight: 500 !important;   /* Mobilde eski fiyatın kalınlığını azalttık ki yeni fiyat öne çıksın */
    }
}


.product-acf-dimension {
    font-size: 13px !important;
    color: #333 !important;
    font-weight: 500 !important;
    letter-spacing: -0.2px;
    margin-top: 30px !important;
}

.dimension-plus-text {
    font-size: 12px !important;
    color: #888 !important;
    font-weight: 500 !important;
    margin-left: 3px;
}

    /* Filtre ve Sıralama Drawer Sabitlemeleri */
    #filter-sidebar, .sort-drawer {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 90%;
        height: 100%;
        background: #fff;
        z-index: 99999;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        padding: 30px;
        display: flex;
        flex-direction: column;
    }



@media (max-width: 768px) {
    .filter-controls-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        padding: 0px !important;
        justify-content: center !important;
    }
    

    .filter-trigger-main, #sort-menu-btn.sort-trigger {
        width: 100% !important;
        justify-content: center !important;
    }

    .category-header-bar h1.product-title {
        font-size: 20px !important;
        padding-left: 15px !important;
        margin-bottom: 20px !important;
        margin-top: 10px !important;
    }


.category-chips-wrapper {
    max-width: 100% !important;
    /* Negatif padding yerine 0 yapıp dış konteynırdan gelen boşluğu ezdik */
    padding-left: 0px !important; 
    margin: -5px 0 15px 0 !important;
    
    /* Flex ayarları */
    display: flex !important;
    justify-content: flex-start !important; /* En sola yaslar */
    gap: 6px !important; /* Chip'lerin kendi arasındaki boşluğu 8'den 6'ya çektik */
    
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-chips-wrapper::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-block;
    /* 16px olan sağ-sol boşluğu 12px yaptık, böylece chip'ler birbirine yaklaştı */
    padding: 5px 10px !important; 
    background-color: #ffffff !important;
    border: 1px solid #cccccc;
    border-radius: 20px;
    text-decoration: none !important;
    color: #444444 !important;
    font-size: 16px !important; /* Mobilde 16px çok kaba durabilir, 14px daha zarif ve sola yakındır */
    font-weight: 700 !important;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

    .category-chip.active {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        border-color: #e0e0e0;
    }

    .active-category-indicator {
        background: #000 !important;
        color: #fff !important;
        padding: 6px 14px !important;
        font-size: 13px !important;
        border-radius: 50px !important;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        white-space: nowrap;
        max-width: 130px;
    }

    .wishlist-btn {
        position: absolute;
        top: 0px;
        right: -5px;
    }
} 

@media (max-width: 480px) {
    .category-chip {
        padding: 6px 14px;
        font-size: 13px;
    }
} /* 480px parantezi burada kapandı */

/* Genel Buton Temizliği (Media Query Dışında) */
#close-filter-sidebar, 
#close-sort-drawer, 
.close-btn {
    background-color: #ffffff !important;
    color: #333 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    opacity: 1 !important;
    line-height: 1 !important;
    padding: 0 !important;
}




