/*
 * RTL Styles for Kidz-Child Theme - Adomeez Arabic Support
 * These styles enhance Arabic (RTL) layout compatibility
 */

/* Base RTL Direction */
body.rtl {
  direction: rtl;
  text-align: right;
}

/* Arabic-friendly font */
body.rtl,
body.rtl *:not(.fa):not(.fas):not(.far):not(.fab):not([class*="icon"]):not(.eicon) {
  font-family: 'Cairo', 'Roboto', 'Tahoma', sans-serif !important;
}

/* Navigation RTL */
body.rtl .site-header .main-navigation,
body.rtl .mega-menu {
  direction: rtl;
}

body.rtl .site-header .main-navigation ul {
  text-align: right;
}

body.rtl .site-header .main-navigation ul ul {
  left: auto;
  right: 0;
}

/* WooCommerce RTL Fixes */
body.rtl .woocommerce ul.products li.product {
  float: right;
}

body.rtl .woocommerce .price,
body.rtl .woocommerce .amount {
  direction: ltr;
  unicode-bidi: embed;
}

body.rtl .woocommerce form .form-row {
  text-align: right;
}

body.rtl .woocommerce form .form-row label {
  text-align: right;
}

/* Elementor RTL adjustments */
body.rtl .elementor-widget-heading .elementor-heading-title {
  text-align: right;
}

body.rtl .elementor-widget-text-editor {
  text-align: right;
}

body.rtl .elementor-widget-icon-box .elementor-icon-box-wrapper {
  direction: rtl;
}

/* Breadcrumbs RTL */
body.rtl .woocommerce-breadcrumb {
  direction: rtl;
  text-align: right;
}

/* Product listing RTL */
body.rtl .woocommerce .woocommerce-ordering,
body.rtl .woocommerce .woocommerce-result-count {
  float: right;
}

/* Cart & Checkout RTL */
body.rtl .woocommerce-cart .cart-collaterals {
  float: left;
}

body.rtl .woocommerce table.cart td.actions {
  text-align: left;
}

/* Footer RTL */
body.rtl .site-footer {
  direction: rtl;
  text-align: right;
}

/* Buttons maintain padding */
body.rtl .elementor-button {
  direction: rtl;
}

/* Search bar */
body.rtl .search-field {
  text-align: right;
}

/* Mobile menu RTL */
@media (max-width: 768px) {
  body.rtl .site-header .main-navigation {
    text-align: right;
  }
  
  body.rtl .menu-toggle {
    float: left;
  }
}
