/* ============================================================
   Souq Theme - RTL Styles (Arabic)
   Updated for v2.6.2 — covers all pages including Frida & Reviews
   ============================================================ */

body.rtl { direction: rtl; text-align: right; }

/* ════════════════ Header & Nav ════════════════ */
body.rtl .souq-header-inner { flex-direction: row; }
body.rtl .souq-menu .sub-menu { left: auto; right: 0; }
body.rtl .souq-menu .sub-menu .sub-menu { left: auto; right: 100%; }
body.rtl .souq-menu-link:hover,
body.rtl .souq-footer-menu a:hover { padding-left: 0; padding-right: 8px; }
body.rtl .souq-cart-count { right: auto; left: 3px; }
body.rtl .souq-mini-cart { right: auto; left: 0; }
body.rtl .souq-mini-cart-item-inner { flex-direction: row; }

/* RTL: mini-cart items */
body.rtl .woocommerce-mini-cart-item .remove { left: auto; right: 58px; }
body.rtl .souq-mini-cart-item-meta { flex-direction: row; }
body.rtl .souq-sub-toggle { left: auto; right: 8px; }


/* ════════════════ Product Card ════════════════ */
body.rtl .souq-product-badge { left: auto; right: 12px; }
body.rtl .souq-product-price del { margin-right: 0; margin-left: 6px; }

/* ════════════════ Promo Banner ════════════════ */
body.rtl .souq-promo-content { padding: 40px 0 40px 40px; }

/* ════════════════ Trust / Why Us ════════════════ */
body.rtl .souq-trust-badge,
body.rtl .souq-why-item { flex-direction: row; }

/* ════════════════ WooCommerce ════════════════ */
body.rtl .woocommerce-message .button { float: right; margin: 0 0 0 12px; }
body.rtl .woocommerce-breadcrumb { direction: rtl; }
body.rtl .woocommerce-pagination ul { flex-direction: row; }
body.rtl .souq-product-info-tabs,
body.rtl .souq-tab-nav,
body.rtl .souq-comparison-table { flex-direction: row; }

/* ════════════════ Form elements ════════════════ */
body.rtl input, body.rtl select, body.rtl textarea { text-align: right; }

/* ════════════════ Frida Single Product (frida-single.css) ════════════════ */
body.rtl .frida-product-row { flex-direction: row; }
body.rtl .frida-gallery-col .woocommerce-product-gallery { margin: 0 20px 0 0 !important; }
body.rtl .frida-summary { text-align: right; }
body.rtl .frida-summary .price { flex-direction: row; }
body.rtl .frida-summary .price del { order: 2; }
body.rtl .frida-summary form.cart { flex-direction: row; }
body.rtl .frida-summary .quantity { float: none; }
body.rtl .frida-shipping-promise { flex-direction: row; }

/* Sticky ATC Bar */
body.rtl .frida-sticky-atc { flex-direction: row; }
body.rtl .frida-sticky-details { flex-direction: row; }
body.rtl .frida-sticky-price del { margin-left: auto; margin-right: 20px; }

/* Accordion */
body.rtl .frida-acc-trigger { text-align: right; }
body.rtl .frida-acc-panel ul,
body.rtl .frida-full-description ul { padding-right: 24px; padding-left: 0; }
body.rtl .frida-acc-panel li { padding-right: 5px; padding-left: 0; }
body.rtl .frida-full-description { text-align: right; }

/* Related Products Slider */
body.rtl .frida-related-track { direction: rtl; }
body.rtl .frida-rel-prev { left: auto; right: 0; }
body.rtl .frida-rel-next { right: auto; left: 0; }
body.rtl .frida-rel-prev svg,
body.rtl .frida-rel-next svg { transform: rotateY(180deg); }
body.rtl .frida-rel-price { flex-direction: row; }

@media (max-width: 1200px) {
	body.rtl .frida-product-row { flex-direction: column; }
	body.rtl .frida-gallery-col .woocommerce-product-gallery { margin: 0 !important; }
}
@media (max-width: 768px) {
	body.rtl .frida-summary form.cart { flex-direction: column; }
	body.rtl .frida-sticky-atc { flex-wrap: nowrap; }
}

/* ════════════════ Reviews Section (reviews-custom.css) ════════════════ */
body.rtl .cr-layout { flex-direction: row; }
body.rtl .cr-review-meta { flex-direction: row; }
body.rtl .cr-review-stars { justify-content: flex-end; }
body.rtl .cr-review-images { justify-content: flex-start; }
body.rtl .cr-star-rating { flex-direction: row-reverse; justify-content: flex-end; }
body.rtl .cr-actions { flex-direction: row; }
body.rtl .cr-photo-grid { direction: rtl; }
body.rtl .cr-rating-box { text-align: center; }
body.rtl .cr-upload-label { flex-direction: row; }
body.rtl .cr-upload-preview { flex-direction: row; }
body.rtl .cr-upload-preview .cr-preview-remove { right: auto; left: 2px; }
body.rtl .cr-pagination { flex-direction: row; }
body.rtl .cr-review-body { text-align: right; }
body.rtl .cr-field input,
body.rtl .cr-field textarea { text-align: right; }
body.rtl .cr-star-rating-wrap label { text-align: right; }
body.rtl .cr-form-title { text-align: right; }

@media (max-width: 992px) {
	body.rtl .cr-layout { flex-direction: column; }
	body.rtl .cr-left { flex-direction: row; }
}
@media (max-width: 640px) {
	body.rtl .cr-left { flex-direction: column; }
	body.rtl .cr-actions { flex-direction: column; }
}

/* ════════════════ Cart Page ════════════════ */
body.rtl .souq-cart-table thead th,
body.rtl .souq-cart-table tbody td { text-align: right; }
body.rtl .souq-cart-actions-row .actions { flex-direction: row; }

/* ════════════════ Checkout ════════════════ */
body.rtl .souq-checkout-fields label { text-align: right; }
body.rtl .souq-order-item { flex-direction: row; }
body.rtl .souq-checkout-fields select { background-position: left 14px center; padding-right: 16px; padding-left: 36px; }

/* ════════════════ Thank You — order details table RTL ════════════════ */
body.rtl .woocommerce-order-details .woocommerce-table--order-details thead th,
body.rtl .woocommerce-order-details .shop_table thead th { text-align: right; }
body.rtl .woocommerce-order-details .woocommerce-table--order-details tfoot td,
body.rtl .woocommerce-order-details .shop_table tfoot td { text-align: right; }
body.rtl .souq-notice-box { flex-direction: row; }
body.rtl .souq-notice-box::before { right: auto; left: 0; }
body.rtl .souq-timeline { flex-direction: row; }

@media (max-width: 768px) {
	body.rtl .woocommerce-order-details .shop_table tbody tr,
	body.rtl .woocommerce-order-details .woocommerce-table--order-details tbody tr { flex-direction: row; }
	body.rtl .woocommerce-order-details .shop_table tbody td,
	body.rtl .woocommerce-order-details .woocommerce-table--order-details tbody td { text-align: right; }
	body.rtl .woocommerce-order-details .shop_table .product-total,
	body.rtl .woocommerce-order-details .woocommerce-table--order-details .product-total { text-align: left; }
	body.rtl .woocommerce-order-details .shop_table tfoot td,
	body.rtl .woocommerce-order-details .woocommerce-table--order-details tfoot td { text-align: right; }
	body.rtl .souq-thankyou-layout { flex-direction: column; }
}

/* ════════════════ Footer ════════════════ */
body.rtl .souq-footer-heading::after { right: 0; left: auto; }
body.rtl .footer-toggle { text-align: right; }

/* ════════════════ Scroll to Top ════════════════ */
body.rtl .souq-scroll-top { right: auto; left: 24px; }

/* ════════════════ Responsive Overrides ════════════════ */
@media (max-width: 768px) {
	body.rtl .souq-promo-content { padding: 32px; }
	body.rtl .souq-product-summary-col form.cart,
	body.rtl .souq-comparison-table { flex-direction: column; }
	body.rtl .souq-cart-actions-row .actions { flex-direction: column; }
}
