 
/* =============================================================================
 * RTL CORE
 * =============================================================================
 * Loaded only when is_rtl() returns true.
 * Rules apply to components that appear across the whole storefront:
 * product cards, product content containers, and the description text of a
 * product.
 * ============================================================================= */


/* -----------------------------------------------------------------------------
 * Product card body row (shop archive, categories, search)
 * -----------------------------------------------------------------------------
 * Category label at the right, price at the left.
 * --------------------------------------------------------------------------- */
body.rtl .rbt-card-body.d-flex.justify-content-between {
    flex-direction: row-reverse;
}

body.rtl .rbt-card-title,
body.rtl .rbt-category-subtitle,
body.rtl .rbt-card-body {
    text-align: right;
}


/* -----------------------------------------------------------------------------
 * Product card quick links row
 * -----------------------------------------------------------------------------
 * Compare / wishlist / share row. Order reverses in RTL.
 * --------------------------------------------------------------------------- */
body.rtl .rbt-quick-link-grp.d-flex {
    flex-direction: row-reverse;
}


/* -----------------------------------------------------------------------------
 * Single product content direction
 * -----------------------------------------------------------------------------
 * The theme forces direction: ltr on the outer container. This block restores
 * RTL for the container.
 * --------------------------------------------------------------------------- */
body.rtl.single-product .rbt-single-product-content {
    direction: rtl;
    text-align: right;
}


/* -----------------------------------------------------------------------------
 * Latin content inside RTL containers
 * -----------------------------------------------------------------------------
 * Product titles, prices, and meta with Latin characters stay internally LTR
 * but align to the right edge of their container.
 * --------------------------------------------------------------------------- */
body.rtl.single-product .rbt-single-product-content .rbt-card-title,
body.rtl.single-product .rbt-single-product-content .product_title,
body.rtl.single-product .rbt-single-product-content .product_meta {
    direction: ltr;
    text-align: right;
    unicode-bidi: embed;
}


/* -----------------------------------------------------------------------------
 * Product short description
 * -----------------------------------------------------------------------------
 * Arabic paragraph aligned right, first line at the top.
 * --------------------------------------------------------------------------- */
body.rtl.single-product .woocommerce-product-details__short-description,
body.rtl.single-product .woocommerce-product-details__short-description p {
    direction: rtl;
    text-align: right;
}


/* -----------------------------------------------------------------------------
 * Single product button group
 * -----------------------------------------------------------------------------
 * Add-to-Cart at the right, quantity at the left, Buy Now wrapped below and
 * right-aligned.
 * --------------------------------------------------------------------------- */
body.rtl.single-product .prodbtn-grp {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

body.rtl.single-product .prodbtn-grp .single_add_to_cart_button {
    order: 1;
    margin-left: 0;
    margin-right: 0;
}

body.rtl.single-product .prodbtn-grp .rbt-qty-area {
    order: 2;
    margin-right: 12px;
    margin-left: 0;
}

body.rtl.single-product .prodbtn-grp .button[name="buy_now"] {
    order: 3;
    flex-basis: 100%;
    margin-top: 12px;
}
