
/* ===== SIDEBAR WIDGET CUSTOM STYLES ===== */
.wf-custom {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 22px;
    margin-bottom: 22px;
}
.wf-custom:last-child {
    border-bottom: none;
}
.wf-custom-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0 14px;
    user-select: none;
}
.wf-custom-title span {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}
.wf-chevron {
    font-size: 12px;
    color: #444;
    transition: transform 0.25s ease;
}
.wf-custom-title[aria-expanded="false"] .wf-chevron,
.collapsed .wf-chevron {
    transform: rotate(-90deg);
}

/* Category list */
.wf-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wf-cat-item {
    border-radius: 6px;
    transition: background 0.18s;
}
.wf-cat-item.active {
    background: #f5f5f5;
}
.wf-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 8px;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
}
.wf-cat-link:hover,
.wf-cat-link.active {
    color: #c0392b;
    background: #fdf2f2;
    text-decoration: none;
}
.wf-cat-name {
    flex: 1;
}
.wf-cat-count {
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
    margin-left: 8px;
    transition: background 0.18s, color 0.18s;
}
.wf-cat-link:hover .wf-cat-count,
.wf-cat-link.active .wf-cat-count {
    background: #c0392b;
    color: #fff;
}

/* Availability */
.wf-avail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wf-avail-item {
    margin-bottom: 10px;
}
.wf-avail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}
.wf-check {
    display: none;
}
.wf-checkmark {
    width: 17px;
    height: 17px;
    border: 2px solid #ccc;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}
.wf-check:checked + .wf-checkmark {
    background: #c0392b;
    border-color: #c0392b;
}
.wf-check:checked + .wf-checkmark::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.wf-avail-text {
    flex: 1;
    font-size: 14px;
    color: #444;
}
.wf-avail-count {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Price Slider */
.wf-price-body {
    padding: 4px 0;
}
.wf-price-slider-wrap {
    margin-bottom: 12px;
}
.wf-price-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #c0392b 0%, #c0392b var(--slider-pct, 100%), #ddd var(--slider-pct, 100%), #ddd 100%);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.wf-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c0392b;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: 2px solid #fff;
}
.wf-price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c0392b;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: 2px solid #fff;
}
.wf-price-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.wf-price-range-text {
    color: #1a1a1a;
    font-weight: 600;
}
/* Sort By Dropdown */
.wf-sort-container {
    padding-top: 10px;
}
.wf-sort-btn {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: all 0.25s ease !important;
}
.wf-sort-btn:after {
    display: none !important;
}
.wf-sort-btn:hover {
    border-color: #c0392b !important;
    box-shadow: 0 4px 20px rgba(192, 57, 43, 0.1) !important;
}
.wf-sort-btn i {
    color: #888;
    transition: transform 0.25s ease;
}
.wf-sort-dropdown.show .wf-sort-btn i {
    transform: rotate(180deg);
}
.wf-sort-menu {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    overflow: hidden;
    padding: 8px 0 !important;
    margin-top: 8px !important;
}
.wf-sort-menu .dropdown-item {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    color: #444;
    transition: all 0.2s;
}
.wf-sort-menu .dropdown-item:hover {
    background: #fdf2f2;
    color: #c0392b;
}
.wf-sort-menu .dropdown-item.active {
    background: #c0392b;
    color: #fff;
}
.fw-600 { font-weight: 600; }
.fs-15 { font-size: 15px; }
.fs-10 { font-size: 10px; }
