/* ============================================
   RTL (Right-to-Left) Styles for Persian/Arabic
   ============================================ */

body.rtl,
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
.rtl .header-inner {
    direction: rtl;
}

.rtl .desktop-nav a::after {
    left: auto;
    right: 0;
}

.rtl .desktop-nav a:hover::after,
.rtl .desktop-nav a.active::after {
    width: 100%;
}

.rtl .cart-count {
    right: auto;
    left: -5px;
}

/* Hero */
.rtl .hero-content {
    direction: rtl;
}

.rtl .hero-badge {
    direction: rtl;
}

/* Features */
.rtl .feature-card {
    text-align: right;
}

.rtl .feature-icon {
    margin-left: auto;
    margin-right: 0;
}

/* Products */
.rtl .product-meta {
    direction: rtl;
}

.rtl .product-title {
    text-align: right;
}

.rtl .product-category {
    text-align: right;
}

/* Footer */
.rtl .footer-grid {
    direction: rtl;
}

.rtl .footer-column ul {
    padding-right: 0;
}

.rtl .footer-social {
    direction: rtl;
}

/* Forms */
.rtl .form-group {
    text-align: right;
}

.rtl .form-control {
    text-align: right;
}

/* Checkout */
.rtl .checkout-grid {
    direction: rtl;
}

/* Cart */
.rtl .cart-product {
    direction: rtl;
}

.rtl .cart-table th,
.rtl .cart-table td {
    text-align: right;
}

/* Account */
.rtl .account-grid {
    direction: rtl;
}

.rtl .account-menu a {
    direction: rtl;
}

/* Steps */
.rtl .steps {
    direction: rtl;
}

/* FAQ */
.rtl .faq-question {
    direction: rtl;
    text-align: right;
}

.rtl .faq-answer {
    text-align: right;
}

/* Testimonials */
.rtl .testimonial-author {
    direction: rtl;
}

/* Mobile Menu */
.rtl .mobile-menu a {
    text-align: right;
}

.rtl .mobile-menu a:hover {
    padding-right: 1rem;
    padding-left: 1.5rem;
}

/* Toast */
.rtl .toast-container {
    right: auto;
    left: 2rem;
}

/* Pagination */
.rtl .pagination .nav-links {
    direction: rtl;
}

/* Breadcrumbs */
.rtl .breadcrumbs {
    direction: rtl;
}

/* General RTL utilities */
.rtl .text-left {
    text-align: right;
}

.rtl .text-right {
    text-align: left;
}

/* Buttons with icons */
.rtl .btn svg,
.rtl .btn-icon svg {
    transform: scaleX(-1);
}

/* Feature cards grid */
.rtl .features-grid {
    direction: rtl;
}

/* Product grid */
.rtl .products-grid {
    direction: rtl;
}

/* Crypto grid */
.rtl .crypto-grid {
    direction: rtl;
}

/* Stats grid */
.rtl .stats-grid {
    direction: rtl;
}

/* Testimonials grid */
.rtl .testimonials-grid {
    direction: rtl;
}

/* WooCommerce specific RTL */
.rtl .woocommerce-product-gallery {
    direction: rtl;
}

.rtl .woocommerce-tabs {
    direction: rtl;
}

.rtl .woocommerce-MyAccount-navigation {
    direction: rtl;
}

.rtl .woocommerce-MyAccount-content {
    direction: rtl;
}

.rtl .woocommerce-info,
.rtl .woocommerce-message,
.rtl .woocommerce-error {
    direction: rtl;
    text-align: right;
}

.rtl .woocommerce-checkout-review-order-table {
    direction: rtl;
}

.rtl .woocommerce-checkout-payment {
    direction: rtl;
}

/* Select dropdown arrow */
.rtl select.form-control {
    background-position: left 1rem center;
    padding-left: 2.5rem;
    padding-right: 1rem;
}

/* Summary rows */
.rtl .summary-row {
    direction: rtl;
}

/* Data tables */
.rtl .data-table {
    direction: rtl;
}

.rtl .data-table th,
.rtl .data-table td {
    text-align: right;
}

/* Quantity input */
.rtl .quantity-input {
    direction: ltr;
}

/* Search overlay */
.rtl .search-container {
    direction: rtl;
}

.rtl .search-form {
    direction: rtl;
}

/* Posts */
.rtl .post-card {
    direction: rtl;
}

.rtl .post-meta {
    direction: rtl;
}

/* No results */
.rtl .no-results {
    direction: rtl;
    text-align: center;
}