/* Baladi Translate — RTL fixes for Hebrew (/he/).
   Hello Elementor + Elementor honor dir="rtl" for most layout;
   these rules patch the leftovers. */

html[dir="rtl"] body {
	direction: rtl;
	text-align: right;
}

/* Keep the brand wordmark + fixed English phrases LTR inside RTL flow. */
html[dir="rtl"] .notranslate,
html[dir="rtl"] [translate="no"] {
	direction: ltr;
	unicode-bidi: isolate;
}

/* Prices and numbers read LTR. */
html[dir="rtl"] .woocommerce-Price-amount,
html[dir="rtl"] .price {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

/* WooCommerce bits that hardcode left/right. */
html[dir="rtl"] .woocommerce .woocommerce-ordering,
html[dir="rtl"] .woocommerce-page .woocommerce-ordering {
	float: left;
}
html[dir="rtl"] .woocommerce .woocommerce-result-count {
	float: right;
}
html[dir="rtl"] .woocommerce ul.products li.product,
html[dir="rtl"] .woocommerce-page ul.products li.product {
	float: right;
}
html[dir="rtl"] .woocommerce div.product div.summary {
	text-align: right;
}
html[dir="rtl"] .woocommerce #review_form #respond textarea {
	direction: rtl;
}

/* Elementor icon/text gaps flip. */
html[dir="rtl"] .elementor-icon-list-item .elementor-icon-list-icon {
	margin-left: 8px;
	margin-right: 0;
}

/* Forms. */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
	text-align: right;
}
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"] {
	direction: ltr;
	text-align: right;
}

/* --------------------------------------------------------------------------
   Hebrew typography — ONE font on Hebrew pages (Laliv: "תקפיד שיהיה רק אותו").

   Assistant covers Latin as well as Hebrew, and it is used for BOTH here on
   purpose. An earlier build put Inter ahead of Assistant so English words
   kept a Latin face; the side effect was that any title mixing the two
   scripts — "Baladi, מהיסוד" — rendered half in Inter and half in Assistant,
   i.e. the font visibly changed inside one heading (Laliv: "ובעברית הכותרת
   משתנה הפונט"). One family for every glyph is what she asked for and it
   keeps mixed titles even.

   This whole file is scoped to html[dir="rtl"], so the English and French
   sites keep their own typography untouched (Cormorant headings, theme UI
   font) — "אל תשנה את הפונטים באנגלית".
   -------------------------------------------------------------------------- */
:root { --baladi-he-font: "Assistant", "Arial Hebrew", Arial, sans-serif; }

/* Catch-all: every element under Hebrew inherits the one font. Using a very
   broad selector with !important guarantees uniformity even for widgets and
   third-party markup we don't enumerate. */
html[dir="rtl"] body,
html[dir="rtl"] body * {
	font-family: var(--baladi-he-font) !important;
	letter-spacing: 0 !important; /* theme's Latin tracking looks broken on Hebrew */
}

/* Headings keep the same family, just a touch heavier for hierarchy. */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .elementor-heading-title,
html[dir="rtl"] .product_title,
html[dir="rtl"] .baladi-title-main,
html[dir="rtl"] .related.products > h2,
html[dir="rtl"] .baladi-set__title {
	font-family: var(--baladi-he-font) !important;
	font-weight: 600;
}

/* Only the "Baladi." wordmark keeps its Latin DIN brand face. Everything else
   (incl. prices and the EN·עב·FR controls) stays on the one Hebrew font. */
html[dir="rtl"] .baladi-logo {
	font-family: "DIN OT", "D-DIN", "Helvetica Neue", Arial, sans-serif !important;
}

/* Uppercase tracking is a Latin idea — Hebrew has no case, keep it calm. */
html[dir="rtl"] .baladi-nav li a,
html[dir="rtl"] .baladi-trust span,
html[dir="rtl"] .elementor-button {
	text-transform: none !important;
}
