/**
 * RTL-specific styles for Elementor WooCommerce Products Table
 */

.ewpt-products-table table {
    direction: rtl;
}

.ewpt-products-table th,
.ewpt-products-table td {
    text-align: right;
}

/* Persian Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

/* Persian Table Styles */
.ewpt-table {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
}

.ewpt-table th {
    text-align: center;
    font-weight: 600;
}

.ewpt-table td {
    text-align: right;
}

/* Persian Price Display */
.ewpt-price-cell .price {
    text-align: left;
    direction: ltr;
}

.ewpt-products-table .ewpt-add-to-cart {
    flex-direction: row-reverse;
}

.ewpt-products-table .ewpt-add-to-cart-btn {
    margin-right:16px;
    margin-left: 10px;
}

/* RTL Search Input Positioning */
.ewpt-search-wrapper {
    justify-content: flex-end;
}

.ewpt-search-input {
    text-align: right;
}

/* RTL Pagination */
.ewpt-pagination-wrapper {
    flex-direction: row-reverse;
}

.ewpt-page-link,
.ewpt-pagination-wrapper .ewpt-current {
    direction: rtl;
}

/* RTL Pagination Button Spacing */
.ewpt-pagination-wrapper .ewpt-prev {
    margin-right: 0;
    margin-left: var(--ewpt-spacing-xs);
}

.ewpt-pagination-wrapper .ewpt-next {
    margin-left: 0;
    margin-right: var(--ewpt-spacing-xs);
}
