.cpaf-filter-wrapper {
    margin-bottom: 40px !important;
    direction: rtl !important;
    font-family: IRANSansX !important;
}

.cpaf-accordion-group {
    background: #fff !important;
    border: none !important;
    margin-bottom: 20px !important;
}

.cpaf-accordion-toggle {
    width: 100% !important;
    background: none !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 16px !important;
    color: #000 !important;
    padding: 12px 5px !important;
    border-bottom: 1px solid #DFDFDF !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    font-family: IRANSansX !important;
}

.cpaf-toggle-icon {
    width: 20px !important;
    height: 20px !important;
}

.cpaf-accordion-content label {
    display: flex !important;
    align-items: right !important;
    justify-content: flex-start !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #4E4949 !important;
    line-height: 22px !important;
    padding: 4px 0 !important;
    font-family: IRANSansX !important;
    text-align: right !important;
    gap: 8px !important;
    direction: rtl !important;
}

.cpaf-pagination-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin-top: 30px !important;
    width: 100% !important;
}

.cpaf-pagination {
    display: flex !important;
    gap: 6px !important;
}

.cpaf-page-btn {
    width: 36px !important;
    height: 36px !important;
    text-align: center !important;
    line-height: 34px !important;
    background: #fff !important;
    border: 1px solid #E7E9EC !important;
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-family: IRANSansX !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.cpaf-page-btn.active {
    background: #4C8ADA !important;
    color: #fff !important;
    border-color: #4C8ADA !important;
}

.cpaf-page-btn:hover {
    background: #F5F5F5 !important;
}

/* گرید محصولات */
.cpaf-product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
    min-height: 400px;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.cpaf-product-grid.loaded {
    opacity: 1;
}

/* لودینگ وسط کل محصولات با زمینه سفید */
.cpaf-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* تماماً سفید */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9;
}

.cpaf-loading-overlay img {
    width: 64px;
    height: 64px;
}

/* فیلتر ویژگی‌ها آکاردئون */
.cpaf-accordion-group {
    margin-bottom: 20px;
}

.cpaf-accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 16px;
    color: #000 !important;
    padding: 12px 5px;
    border-bottom: 1px solid #DFDFDF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: IRANSansX;
}

.cpaf-toggle-icon {
    width: 20px;
    height: 20px;
}

.cpaf-accordion-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease;
    padding: 0 !important;
    opacity: 0 !important;
}

.cpaf-accordion-content {
    padding-right: 0 !important;
}

.cpaf-accordion-content label {
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.cpaf-accordion-content.open {
    max-height: 500px !important; /* مقدار کافی برای محتوا */
    padding: 12px 5px 10px 5px !important;
    opacity: 1 !important;
}


.cpaf-accordion-content label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4E4949;
    line-height: 22px;
    padding: 4px 0;
    font-family: IRANSansX;
}

/* صفحه‌بندی */
.cpaf-pagination-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin-top: 30px !important;
    width: 100% !important;
}

.cpaf-pagination {
    display: flex !important;
    gap: 6px !important;
}

.cpaf-page-btn {
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 34px;
    background: #fff;
    border: 1px solid #E7E9EC;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    font-family: IRANSansX;
    transition: all 0.2s ease;
    padding: 0;
}

.cpaf-page-btn.active {
    background: #4C8ADA;
    color: #fff;
    border-color: #4C8ADA;
}

.cpaf-page-btn:hover {
    background: #F5F5F5;
}

/* موبایل */
@media (max-width: 768px) {
    .cpaf-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cpaf-page-btn {
        width: 32px;
        height: 32px;
        line-height: 30px;
        font-size: 13px;
    }
}
.woocommerce-widget-layered-nav-list li {
    list-style-type: none !important;
}

.woocommerce-widget-layered-nav-list li::marker {
    display: none !important;
    content: '' !important;
}

.woocommerce-widget-layered-nav-list li::before {
    display: none !important;
    content: none !important;
}
.cpaf-filter-wrapper li::marker {
    display: none !important;
    content: '' !important;
}

.cpaf-filter-wrapper li {
    list-style-type: none !important;
}
.cpaf-filter-wrapper,
.cpaf-accordion-group {
    padding-right: 0 !important;
    margin-right: 0 !important;
}
.woocommerce-widget-layered-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
    direction: rtl !important;
}
.cpaf-accordion-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
    direction: rtl !important;
}
.cpaf-product-grid {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
}

.cpaf-product-grid.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}
