/**
 * Arabic (RTL) layer. `dir="rtl"` flips flex/grid flow and text alignment
 * automatically — this file corrects the physical left/right properties the
 * browser cannot mirror on its own.
 */

/* Arabic type: system Arabic stacks render best with slightly looser tracking. */
body.hhm-rtl {
	letter-spacing: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif;
}

body.hhm-rtl h1,
body.hhm-rtl h2,
body.hhm-rtl h3,
body.hhm-rtl .hhm-id__title,
body.hhm-rtl .hhm-balance-heading h2 { letter-spacing: 0 !important; }

/* Header */
body.hhm-rtl .hhm-commerce-search__submit { border-radius: 12px 0 0 12px; }
body.hhm-rtl .hhm-h-nav__trade { margin: 7px auto 7px 0; }
body.hhm-rtl .hhm-h-utility__track { margin-left: 0; }

/* Breadcrumbs read right-to-left naturally; keep the delimiter spacing sane. */
body.hhm-rtl .woocommerce-breadcrumb .delimiter { transform: scaleX(-1); display: inline-block; }

/* Shop cards + rails */
body.hhm-rtl .hhm-shx-card__body { text-align: right; }
body.hhm-rtl .hhm-shx-filters__row { text-align: right; }
body.hhm-rtl .hhm-shx-filters__count { margin-right: auto; margin-left: 0; }

/* PDP */
body.hhm-rtl .hhm-stage__rail { direction: ltr; }
body.hhm-rtl .hhm-pit__price { text-align: right; }
body.hhm-rtl .hhm-supp__item { border-right: 0; }

/* Quote list drawer stays on the physical left; flip its inner alignment. */
body.hhm-rtl .hhm-ql__item-meta { text-align: right; }
body.hhm-rtl .hhm-ql__drawer { text-align: right; }

/* Chatbot panel: keep the widget on the physical right corner. */
body.hhm-rtl .hhm-bot__id { text-align: right; }
body.hhm-rtl .hhm-bot__msg p { text-align: right; }
body.hhm-rtl .hhm-bot__msg--bot { align-self: flex-end; }
body.hhm-rtl .hhm-bot__msg--user { align-self: flex-start; }
body.hhm-rtl .hhm-bot__note { text-align: right; }

/* Planner */
body.hhm-rtl .hhm-kp__opt { text-align: right; align-items: flex-end; }
body.hhm-rtl .hhm-kp h1,
body.hhm-rtl .hhm-kp__lede { text-align: right; }

/* Footer */
body.hhm-rtl .hhm-footer { text-align: right; }

/* Numbers, SKUs and prices stay LTR inside RTL text. */
body.hhm-rtl .hhm-shx-card__sku,
body.hhm-rtl .hhm-id__sku,
body.hhm-rtl .woocommerce-Price-amount {
	direction: ltr;
	unicode-bidi: embed;
}
