/*
Theme Name:   Teeny Toys Child Theme - RTL
Description:  RTL (Right-to-Left) stylesheet for Arabic language
*/

/* ==========================================================================
   RTL STYLES FOR ARABIC
   ========================================================================== */

/* Force RTL direction for Arabic */
html[lang="ar"],
html[lang="ar"] body,
.rtl {
    direction: rtl;
    text-align: right;
}

/* ==========================================================================
   Typography RTL Adjustments
   ========================================================================== */

html[lang="ar"] body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Layout Mirroring
   ========================================================================== */

/* Navigation menus */
.rtl .menu,
.rtl ul.menu li {
    float: right;
}

.rtl .menu-item {
    text-align: right;
}

/* Float reversals */
.rtl .float-left {
    float: right !important;
}

.rtl .float-right {
    float: left !important;
}

/* Padding/Margin reversals */
.rtl .padding-left {
    padding-left: 0;
    padding-right: inherit;
}

.rtl .padding-right {
    padding-right: 0;
    padding-left: inherit;
}

/* ==========================================================================
   WooCommerce RTL
   ========================================================================== */

/* Product grids */
.rtl .woocommerce ul.products {
    direction: rtl;
}

.rtl .woocommerce ul.products li.product {
    text-align: right;
}

/* Price positioning */
.rtl .woocommerce .price {
    text-align: right;
}

/* Add to cart button */
.rtl .woocommerce .button,
.rtl .woocommerce button.button {
    text-align: center;
}

/* Cart table */
.rtl .woocommerce table.cart,
.rtl .woocommerce table.shop_table {
    direction: rtl;
    text-align: right;
}

/* Checkout form */
.rtl .woocommerce-checkout .form-row {
    text-align: right;
}

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

/* ==========================================================================
   Forms RTL
   ========================================================================== */

.rtl input[type="text"],
.rtl input[type="email"],
.rtl input[type="tel"],
.rtl textarea,
.rtl select {
    text-align: right;
    direction: rtl;
}

/* ==========================================================================
   Icons and Images RTL
   ========================================================================== */

/* Flip certain icons in RTL */
.rtl .icon-arrow-right {
    transform: scaleX(-1);
}

.rtl .breadcrumb-separator {
    transform: scaleX(-1);
}

/* ==========================================================================
   Language Switcher RTL
   ========================================================================== */

.rtl .polylang-switcher {
    direction: rtl;
    text-align: right;
}

/* ==========================================================================
   Responsive RTL
   ========================================================================== */

@media (max-width: 768px) {
    .rtl .mobile-menu {
        text-align: right;
    }
}
