/* Service Filter Styles */
.rp-service-filter-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rp-filter-header h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.rp-filter-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.rp-filter-field {
    display: flex;
    flex-direction: column;
}

.rp-filter-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.rp-filter-select {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    min-height: 46px;
    width: 100%;
    box-sizing: border-box;
}

.rp-filter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.rp-filter-select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.rp-price-range-container {
    margin-top: 8px;
}

.rp-price-range {
    width: 100%;
    margin: 10px 0;
}

.rp-price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
}

.rp-price-selected {
    font-weight: bold;
    color: #007bff;
}

.rp-filter-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    color: #6c757d;
}

.rp-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.rp-filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.rp-apply-btn, .rp-reset-btn {
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.rp-apply-btn {
    background: #007bff;
    color: white;
}

.rp-apply-btn:hover {
    background: #0069d9;
    transform: translateY(-1px);
}

.rp-reset-btn {
    background: #6c757d;
    color: white;
}

.rp-reset-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.rp-no-products {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rp-filter-fields {
        grid-template-columns: 1fr;
    }
    
    .rp-service-filter-container {
        padding: 15px;
    }
    
    .rp-filter-header h3 {
        font-size: 1.3em;
    }
    
    .rp-filter-actions {
        flex-direction: column;
    }
}

/* WooCommerce Integration */
.woocommerce .rp-service-filter-container {
    margin: 0 0 2em 0;
}

.products {
    transition: opacity 0.3s ease;
}

.products.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Price range slider styling */
input[type=range].rp-price-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
}

input[type=range].rp-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

input[type=range].rp-price-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}


/* Make product-item div behave like WooCommerce li */
ul.products div.product-item {
    display: list-item;
    list-style: none;
    margin: 0 0 30px;
    float: left;
    width: 32%; /* adjust for 3 per row (with some gap) */
    box-sizing: border-box;
}

/* Clear rows after every 3rd product */
ul.products div.product-item:nth-child(3n+1) {
    clear: both;
}

/* Match WooCommerce spacing */
ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
ul.products div.product-item {
    float: none;
    width: calc(33.333% - 20px);
}






/* Pagination styling */
/* .woocommerce-pagination {
    margin-top: 30px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-block;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    clear: both;
    border: 1px solid #d3ced2;
    border-right: 0;
}

.woocommerce-pagination ul li {
    border-right: 1px solid #d3ced2;
    padding: 0;
    margin: 0;
    float: left;
    display: inline;
    overflow: hidden;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    margin: 0;
    text-decoration: none;
    padding: 0;
    line-height: 1;
    font-size: 1em;
    font-weight: normal;
    padding: 0.75em;
    min-width: 2.5em;
    display: block;
}

.woocommerce-pagination ul li a:focus,
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: #eee;
    color: #8a8589;
} */


/* Custom Pagination Styles */
.rp-custom-pagination {
    margin: 30px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rp-pagination-info {
    margin-bottom: 15px;
    font-weight: 600;
    color: #555;
}

.rp-pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.rp-pagination-link {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.rp-pagination-link:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
}

.rp-pagination-active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.rp-pagination-prev,
.rp-pagination-next {
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 768px) {
    .rp-pagination-links {
        gap: 5px;
    }
    
    .rp-pagination-link {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 14px;
    }
}





/* .rp-products-grid .product {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
} */
