/* ==========================================================================
   GOLDEN WOO THEME — RTL LAYER (v2.0.0)

   The main stylesheet now uses CSS logical properties (inset-inline-start/end,
   padding-inline, margin-inline), so most of the old physical-property flipping
   is no longer needed and has been removed. What remains here is only what
   third-party WooCommerce CSS still hard-codes in physical directions.
   ========================================================================== */

body { direction: rtl; }

/* --- WooCommerce core overrides (Woo ships LTR floats) --- */
.woocommerce-product-gallery__trigger { left: .5em !important; right: auto !important; }

.woocommerce-loop-product__link,
.woocommerce-product-details__short-description,
.woocommerce-tabs .panel,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { text-align: right; }

div.product p.price,
div.product span.price { text-align: right; }

.woocommerce-review-link { margin-left: 0; margin-right: 10px; }

.woocommerce-tabs ul.tabs li {
    float: right !important;
    margin-right: 0 !important;
    margin-left: 10px !important;
}

table.shop_attributes th {
    text-align: right !important;
    padding-left: 15px !important;
    padding-right: 0 !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button { float: left !important; }

@media (max-width: 768px) {
    /* Stacked cart cards read right-to-left */
    .woocommerce table.shop_table_responsive tr td { text-align: right !important; }
    .woocommerce-tabs ul.tabs li { float: none !important; margin-left: 0 !important; }
    .woocommerce-message .button,
    .woocommerce-info .button,
    .woocommerce-error .button { float: none !important; }
}

/* --- Icon direction: arrows must point the Arabic way --- */
.gwt-btn .fa-arrow-left,
.gwt-banner-btn .fa-arrow-left { transform: scaleX(1); }
