/* ==========================================================================
   🎯 ULTRA PREMİUM ÜRÜN LİSTESİ FİLTRE VE KATEGORİ MODÜLÜ (urun-liste-filtre.css)
   ========================================================================== */

/* --- 1. SIDEBAR ANA İSKELET VE KART YAPISI --- */
.sidebar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* --- 2. TEPE BAŞLIK (FİLTRELEME & SIFIRLA) --- */
.sidebar-header {
    background: var(--filter-header, #111827); /* 🎯 Degrade kaldırıldı, %100 panelden gelen renge bağlandı! */
    color: #ffffff;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-header h3 { 
    margin: 0; 
    font-size: 0.85rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reset-link { 
    color: #f8fafc; 
    font-size: 0.75rem; 
    opacity: 0.85; 
    font-weight: 600; 
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.2s ease;
}
.reset-link:hover { 
    opacity: 1; 
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* --- 3. FİLTRE KUTULARININ ORTAK STİLİ --- */
.filter-box { 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 8px;
}
.filter-box:last-child { 
    border-bottom: none; 
    padding-bottom: 15px;
}

.box-title {
    background: #fdfdfe;
    padding: 16px 22px 12px 22px;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.box-title i {
    color: var(--theme-color, #f97316);
    font-size: 0.95rem;
}

/* --- 4. KATEGORİ AĞACI VE ÖZEL SCROLL --- */
.cat-wrapper {
    padding: 5px 15px 10px 15px;
}
.cat-list { 
    list-style: none; padding: 0; margin: 0; 
    max-height: 380px; 
    overflow-y: auto; 
    scrollbar-width: thin; 
    scrollbar-color: #cbd5e1 transparent;
}
.cat-list::-webkit-scrollbar { width: 5px; }
.cat-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.cat-item { margin-bottom: 2px; }
.cat-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 14px; 
    border-radius: 10px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-header:hover { 
    background-color: #f8fafc; 
    transform: translateX(3px);
}

.cat-link { 
    text-decoration: none; 
    color: #475569; 
    font-weight: 600; 
    font-size: 0.92rem; 
    flex: 1; 
    text-transform: capitalize; 
    transition: color 0.2s;
}
.cat-link.active { 
    color: var(--theme-color, #f97316); 
    font-weight: 800; 
}
.cat-toggle { 
    cursor: pointer; 
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b; 
    font-size: 0.75rem;
    transition: all 0.3s ease; 
}
.cat-header:hover .cat-toggle { background: #e2e8f0; color: #0f172a; }
.cat-sub.show + .cat-header .cat-toggle, 
.cat-item:has(.cat-sub.show) > .cat-header .cat-toggle { 
    transform: rotate(180deg); 
    background: var(--theme-color, #f97316);
    color: #ffffff;
}

.main-cat-link {
    color: var(--sidebar-title-color, #0f172a) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}

.cat-sub { 
    display: none; 
    padding-left: 12px; 
    border-left: 2px solid #e2e8f0; 
    margin: 4px 0 8px 18px; 
    list-style: none; 
}
.cat-sub .cat-header { padding: 7px 12px; border-radius: 8px; }
.cat-sub .cat-link { font-size: 0.85rem; color: #64748b; font-weight: 500; }
.cat-sub .cat-link:before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; margin-right: 8px; vertical-align: middle; transition: 0.2s; }
.cat-sub .cat-link.active, 
.cat-sub .cat-link:hover { color: var(--theme-color, #f97316); font-weight: 700; }
.cat-sub .cat-link.active:before, 
.cat-sub .cat-link:hover:before { background: var(--theme-color, #f97316); transform: scale(1.3); }
.cat-sub.show { display: block; animation: filterFadeIn 0.35s ease-in-out; }

@keyframes filterFadeIn { 
    from { opacity: 0; transform: translateY(-6px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* --- 5. ÖZEL PREMİUM CHECKBOX & RADYO BUTONLARI --- */
.checkbox-list { 
    padding: 8px 22px 14px 22px; 
    max-height: 240px; 
    overflow-y: auto; 
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.checkbox-list::-webkit-scrollbar { width: 5px; }
.checkbox-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.custom-check { 
    display: flex; 
    align-items: center; 
    margin-bottom: 12px; 
    cursor: pointer; 
    font-size: 0.9rem; 
    color: #475569;
    font-weight: 500;
    user-select: none;
    transition: all 0.2s;
}
.custom-check:last-child { margin-bottom: 4px; }
.custom-check:hover { color: #0f172a; transform: translateX(2px); }

/* Gizli Orijinal Checkbox/Radio */
.custom-check input { 
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Kutu / Yuvarlak Tasarımı */
.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.custom-check input[type="radio"] ~ .checkmark { border-radius: 50%; }

/* Hover ve Seçili Durumlar */
.custom-check:hover input ~ .checkmark { border-color: #94a3b8; background-color: #f1f5f9; }
.custom-check input:checked ~ .checkmark { 
    background-color: var(--theme-color, #f97316); 
    border-color: var(--theme-color, #f97316); 
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}

/* Tik / Nokta İkonu */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.custom-check input:checked ~ .checkmark:after { display: block; }

/* Checkbox Tik Çizgisi */
.custom-check input[type="checkbox"] ~ .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Radyo Buton İç Noktası */
.custom-check input[type="radio"] ~ .checkmark:after {
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

/* --- 6. FİYAT ARALIĞI PREMİUM GİRİŞİ --- */
.price-range { padding: 10px 22px 18px 22px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.p-input { 
    display: flex; 
    align-items: center; 
    border: 1.5px solid #e2e8f0; 
    border-radius: 10px; 
    padding: 0 8px; 
    background: #f8fafc; 
    flex: 1; 
    height: 42px;
    transition: all 0.2s;
}
.p-input:focus-within {
    border-color: var(--theme-color, #f97316);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.p-input input { 
    border: none; 
    background: transparent;
    width: 100%; 
    font-size: 0.88rem; 
    outline: none; 
    text-align: center; 
    font-weight: 700; 
    color: #0f172a; 
}
.p-input input::placeholder { color: #94a3b8; font-weight: 500; }

.filter-apply-btn { 
    background: var(--filter-header, #111827); 
    color: white; 
    border: none; 
    width: 42px; 
    height: 42px; 
    border-radius: 10px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.filter-apply-btn:hover { 
    background: var(--theme-color, #f97316); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}

/* --- 7. MOBİL OFF-CANVAS (YAN EKRAN) AYARLARI --- */
.btn-mobile-filter { display: none; }
.sidebar-mobile-header { display: none; } 

@media (max-width: 900px) {
    .btn-mobile-filter { 
        display: inline-flex !important; 
        align-items: center; 
        gap: 8px; 
        background: var(--filter-header, #111827);
        color: #fff; 
        padding: 10px 18px; 
        border-radius: 10px; 
        font-weight: 700; 
        font-size: 0.85rem; 
        border: none; 
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .sidebar { 
        position: fixed; 
        top: 0; 
        left: -340px; 
        width: 310px; 
        height: 100%; 
        z-index: 1000000; 
        border-radius: 0; 
        border: none;
        box-shadow: 15px 0 35px rgba(0, 0, 0, 0.25); 
        overflow-y: auto; 
        padding-bottom: 80px; 
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .sidebar.active { left: 0; }
    .sidebar-mobile-header { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 20px 22px; 
        background: var(--filter-header, #111827); 
        color: #fff; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .sidebar-mobile-header h3 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: 0.5px; }
    .sidebar-mobile-header button { 
        display: flex; 
        align-items: center; 
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.15); 
        border-radius: 50%;
        border: none; 
        color: #fff; 
        font-size: 1.1rem; 
        cursor: pointer;
        transition: 0.2s;
    }
    .sidebar-mobile-header button:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
}