/* یکدست کردن بک‌گراند ویجت و حذف کادر اضافه قالب */
.widget_gcf_unified_filter_widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.gcf-widget-box,
.gcf-widget-box * {
    font-family: inherit;
    box-sizing: border-box !important;
}

.gcf-widget-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 14px;
    direction: rtl;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}

.gcf-widget-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.gcf-section-header {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.gcf-section-header:before {
    content: '';
    width: 3px;
    height: 12px;
    background: #d80064;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-block;
}

/* کانتینر اسلایدر دوطرفه RTL */
.gcf-slider-container {
    padding: 10px 8px 16px 8px;
}

.gcf-noui-slider {
    height: 5px;
    border-radius: 999px;
    border: none;
    background: #e2e8f0;
    box-shadow: none;
}

.gcf-noui-slider .noUi-connect {
    background: #d80064;
    border-radius: 999px;
}

.gcf-noui-slider .noUi-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #d80064;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    outline: none;
    top: -6.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gcf-noui-slider .noUi-handle:before,
.gcf-noui-slider .noUi-handle:after {
    display: none;
}

.gcf-noui-slider .noUi-handle:hover,
.gcf-noui-slider .noUi-handle:active {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(216, 0, 100, 0.18);
}

/* باکس‌های مقادیر قیمت */
.gcf-price-display-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.gcf-price-input-box {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.gcf-prefix {
    font-size: 11px;
    font-weight: 800;
}

.from-prefix {
    color: #d80064;
}

.to-prefix {
    color: #2563eb;
}

/* لیست خصوصیات */
.gcf-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
    padding-left: 4px;
}

.gcf-terms-list::-webkit-scrollbar {
    width: 4px;
}

.gcf-terms-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.gcf-term-item {
    margin-bottom: 3px;
    transition: opacity 0.2s ease;
}

/* مخفی‌سازی اقلام با شمارنده صفر */
.gcf-term-item.gcf-hidden {
    display: none !important;
}

.gcf-term-label {
    display: flex;
    align-items: center;
    padding: 5px 4px;
    color: #334155;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.gcf-term-label:hover {
    background: #f1f5f9;
}

.gcf-real-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #d80064;
    cursor: pointer;
    margin-left: 8px !important;
    margin-right: 0 !important;
}

.gcf-term-name {
    flex: 1;
}

.gcf-term-count {
    font-size: 11px;
    color: #94a3b8;
    margin-right: 4px;
}

/* دکمه‌های اعمال و ریست */
.gcf-buttons-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
}

.gcf-filter-submit {
    flex: 1;
    height: 38px !important;
    background: #d80064 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(216, 0, 100, 0.25) !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    display: flex;
    align-items: center!important;
    justify-content: center !important;
}

.gcf-filter-submit:hover {
    background: #b80055 !important;
    transform: translateY(-1px);
}

.gcf-filter-reset {
    height: 38px;
    padding: 0 14px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.gcf-filter-reset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ریسپانسیو موبایل و لمسی */
@media (max-width: 768px) {
    .gcf-widget-box {
        padding: 14px 10px;
    }
    .gcf-noui-slider .noUi-handle {
        width: 22px;
        height: 22px;
        top: -8.5px;
    }
    .gcf-term-label {
        padding: 7px 4px;
    }
    .gcf-real-checkbox {
        width: 18px;
        height: 18px;
    }
}