.bfe-filter-box {
    background: #fff;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    font-family: "IRANSans", sans-serif;
    color: #222;
    transition: all 0.3s ease;
}

.bfe-section {
    margin-top: 25px;
}

.bfe-section h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #111;
    font-weight: 600;
}

.bfe-select-group {
    display: flex;
    gap: 15px;
}

.bfe-select-group select,
#sort-by {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    transition: all 0.3s;
    cursor: pointer;
}

.bfe-select-group select:hover,
#sort-by:hover {
    border-color: #0088cc;
}

.bfe-select-group select:focus,
#sort-by:focus {
    outline: none;
    box-shadow: 0 0 0 3px #0088cc33;
}

.bfe-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bfe-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.bfe-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bfe-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.bfe-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.bfe-switch input:checked + .bfe-slider {
    background-color: #fed70f;
}

.bfe-switch input:checked + .bfe-slider:before {
    transform: translateX(22px);
}

.products.bfe-loading {
    opacity: 0.5;
    position: relative;
    transition: opacity 0.3s ease;
}

.products.bfe-loading::after {
    content: "در حال بارگذاری...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    color: #0088cc;
    font-size: 14px;
}

.bfe-filter-box select,
.bfe-filter-box input[type="checkbox"] {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.bfe-filter-box select:focus,
.bfe-filter-box input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px #0088cc33;
    outline: none;
}

.bfe-filter-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
