.cfw-filters-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.child-filter-group {
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease-in-out;
}

.child-filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.child-filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.cfw-apply-filters{
    font-size: 16px !important;
    font-weight: 400 !important;
    color: white !important;
    background: #009eb4 !important;
}

.cfw-reset-filters{
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #009eb4 !important;
    background: white !important;
	border: 1px solid #009eb4 !important;
}

/* استایل‌های عمومی */
.cfw-filters-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cfw-filters-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* استایل‌های فیلترهای والد */
.cfw-parent-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* استایل‌های فیلترهای دراپ‌داون */
.cfw-dropdown-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.cfw-dropdown-filters select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background-color: white;
    transition: border-color 0.3s ease;
}

.cfw-dropdown-filters select:hover {
    border-color: #adb5bd;
}

.cfw-dropdown-filters select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.cfw-child-filters {
    margin: 15px 0 0 0;
}

.cfw-child-filter-group {
    margin-bottom: 15px;
}

.cfw-child-filter-group h4 {
    margin-bottom: 10px;
    color: #808181;
    font-size: 14px;
}

.cfw-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.cfw-checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px;
    transition: all 0.3s ease;
}

.cfw-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.cfw-filter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cfw-apply-filters,
.cfw-reset-filters {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cfw-apply-filters {
    background-color: #007bff;
    color: white;
    border: none;
}

.cfw-apply-filters:hover {
    background-color: #0056b3;
}

.cfw-reset-filters {
    background-color: #6c757d;
    color: white;
    border: none;
}

.cfw-reset-filters:hover {
    background-color: #545b62;
}

/* استایل‌های محصولات */
.cfw-products {
    margin-top: 30px;
}

.cfw-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cfw-product-item {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.cfw-product-item:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.cfw-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cfw-product-info {
    padding: 15px;
}

.cfw-product-title {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333;
}

.cfw-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #009EB4;
}

/* استایل‌های صفحه‌بندی */
.cfw-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
    clear: both;
}

.cfw-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.cfw-pagination ul.page-numbers li {
    margin: 0 5px;
    display: inline-block;
}

.cfw-pagination ul.page-numbers li .page-numbers {
    font-weight: 700;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cfw-pagination ul.page-numbers li .page-numbers.current {
    background-color: #009EB4;
    color: white;
}

.cfw-pagination ul.page-numbers li .page-numbers.disabled,
.cfw-pagination ul.page-numbers li .page-numbers.dots {
    pointer-events: none;
    opacity: 0.5;
}

.cfw-pagination ul.page-numbers li .page-numbers.prev,
.cfw-pagination ul.page-numbers li .page-numbers.next {
    width: auto;
    padding: 0 15px;
}

/* اطمینان از نمایش پیجینیشن در موبایل */
@media (max-width: 768px) {
    .cfw-pagination {
        margin-top: 20px;
        overflow-x: auto;
    }
    
    .cfw-pagination ul.page-numbers {
        padding-bottom: 10px;
    }
    
    .cfw-pagination ul.page-numbers li .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* پیکربندی عمومی */
.cfw-pagination-active {
    display: flex !important;
}

/* استایل‌های دکمه‌های عملیات */
.cfw-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cfw-button {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cfw-button-primary {
    background: #0073aa;
    color: #fff;
}

.cfw-button-primary:hover {
    background: #005177;
}

.cfw-button-secondary {
    background: #f5f5f5;
    color: #333;
}

.cfw-button-secondary:hover {
    background: #e5e5e5;
}

/* استایل‌های لودینگ */
.cfw-loading {
    position: relative;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cfw-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: cfw-spin 1s linear infinite;
}

@keyframes cfw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل‌های پیام */
.cfw-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-right: 4px;
}

.cfw-message-success {
    background: #ecf7ed;
    border-color: #46b450;
    color: #2e7d32;
}

.cfw-message-error {
    background: #fbeaea;
    border-color: #dc3545;
    color: #dc3545;
}

/* اضافه کردن استایل برای پیام پیش‌فرض فیلتر فرزند */
/* .cfw-default-child-message {
    padding: 10px;
    margin: 10px 0;
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
} */

/* استایل‌های ریسپانسیو */
@media screen and (max-width: 768px) {
	 h4 {
		font-size:14px;
	}
    .cfw-parent-filters {
        grid-template-columns: 1fr;
    }
    
    .cfw-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cfw-product-image {
        height: 150px;
    }
    
    .cfw-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cfw-button {
        width: 100%;
    }
	.kolcat {
		padding-bottom:10px;
	}
}

.cfw-parent-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
}

.cfw-filter-group {
    flex: 1;
    min-width: 200px;
}

.cfw-filter-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cfw-filter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* استایل برای فیلتر نوع سازه با چک‌باکس و عکس شاخص */
/* .cfw-filter-group[data-filter-title="نوع سازه"] {
    width: 100%;
    order: -1; 
} */


.cfw-filter-group[data-filter-title="نوع سازه"] .cfw-checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
    min-width: 150px;
    flex: 0 0 auto;
}

.cfw-parent-filters {
    display: flex;
    flex-direction: row-reverse;
}

.cfw-filter-group[data-filter-title="نوع سازه"] .cfw-checkbox-label:hover {
	border-radius: 24px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    background-color: white;
}

.cfw-filter-group[data-filter-title="نوع سازه"] .cfw-checkbox-label input:checked + .cfw-checkbox-thumb,
.cfw-filter-group[data-filter-title="نوع سازه"] .cfw-checkbox-label input:checked ~ span {
    font-weight: bold;
}

.cfw-filter-group[data-filter-title="نوع سازه"] .cfw-checkbox-label input:checked {
    box-shadow: 0 0 0 2px #009EB4;
}

.cfw-checkbox-thumb {
    width: 125px !important;
    height: 75px !important;
    object-fit: contain !important;
    border-radius: 4px;
    margin-left: 10px;
    border: 1px solid #ddd;
}

.kolcat {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

label.cfw-checkbox-label{
	padding:5px;
}

/* استایل‌های اصلی فیلترهای شرطی */
.cfw-filters-container {
    margin-bottom: 30px;
}
