/* ============================================
   WC İndirim Oranı Filtresi — v3.0
   ============================================ */

.wcdf-widget-wrap { margin: 0; padding: 0; }

.wcdf-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
    padding: 0;
    text-transform: none;
}

/* Ayırıcı */
.wcdf-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 16px 0;
}

/* ---- Kategori Dropdown ---- */
.wcdf-cat-wrap {
    position: relative;
    margin-bottom: 4px;
}

.wcdf-cat-select {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    font-size: 13.5px;
    color: #444;
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
}

.wcdf-cat-select:hover,
.wcdf-cat-select:focus {
    border-color: #1a7a5e;
}

/* ---- Checkbox Listesi ---- */
.wcdf-checkbox-list {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.wcdf-checkbox-list::-webkit-scrollbar { width: 5px; }
.wcdf-checkbox-list::-webkit-scrollbar-track { background: #f5f5f5; }
.wcdf-checkbox-list::-webkit-scrollbar-thumb { background: #bbb; border-radius: 3px; }

/* ---- Checkbox Satırı ---- */
.wcdf-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s;
    user-select: none;
}

.wcdf-checkbox-item:hover { background: #f6f6f6; }
.wcdf-checkbox-item.wcdf-checked { color: #1a7a5e; }

/* ---- Native Checkbox ---- */
.wcdf-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all .15s;
    flex-shrink: 0;
}

.wcdf-checkbox:checked {
    background: #1a7a5e;
    border-color: #1a7a5e;
}

.wcdf-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}

.wcdf-checkbox:hover:not(:checked) { border-color: #1a7a5e; }

/* ---- Label & Count ---- */
.wcdf-checkbox-label {
    flex: 1;
    font-size: 13.5px;
    color: #444;
    line-height: 1.3;
}

.wcdf-checkbox-item.wcdf-checked .wcdf-checkbox-label {
    color: #1a7a5e;
    font-weight: 500;
}

.wcdf-checkbox-count {
    font-size: 12.5px;
    color: #999;
    margin-left: auto;
    white-space: nowrap;
}

/* ---- Temizle ---- */
.wcdf-clear-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color .15s;
}
.wcdf-clear-btn:hover { color: #e74c3c; text-decoration: none; }

/* ---- Mobil ---- */
@media (max-width: 768px) {
    .wcdf-checkbox-list { max-height: none; overflow: visible; }
}
