/* ─── AED Dirham currency symbol (web font) ────────────────────────────────────
   The WooCommerce currency symbol for AED is a single Private-Use character
   (U+E900) returned by laymoun_aed_currency_symbol() in functions.php. This font
   maps ONLY that code point to the UAE Dirham glyph, so a plain character renders
   as the symbol in EVERY context — storefront prices, admin Reports, and the
   React Analytics screens — with no HTML/SVG leaking as text.

   `unicode-range: U+E900` is the safety net: the browser consults this font ONLY
   for that one character, so listing it first in any font stack never affects
   normal letters, digits, or icons.
   ─────────────────────────────────────────────────────────────────────────── */
@font-face {
	font-family: 'Laymoun Dirham';
	src: url('../fonts/laymoun-dirham.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: block;      /* tiny same-origin file; avoid a flash of the box */
	unicode-range: U+E900;    /* the Dirham glyph only */
}

/* Storefront: WooCommerce wraps the symbol alone in this span (wc_price()). */
.woocommerce-Price-currencySymbol {
	font-family: 'Laymoun Dirham', sans-serif;
}

/* The native price-filter slider prints the symbol as PLAIN TEXT in the .from /
   .to spans (WooCommerce's price-slider.js — no currencySymbol span), so the
   U+E900 glyph needs the Dirham font on those spans or it renders as a tofu box.
   On the Arabic (RTL) site this needs extra weight: rtl.css force-sets Cairo on
   nearly every element with a very high-specificity `!important` mega-selector
   (body *:not(…):not(…)); it excludes the price-DISPLAY symbol
   (.woocommerce-Price-currencySymbol) but NOT these filter spans, so on Arabic
   the box came back. A leading #page (ID tier) outranks that class-only
   selector, so the Dirham font wins in both LTR and RTL. unicode-range keeps the
   Dirham font scoped to U+E900; digits fall through to Cairo (AR) / Noto (EN).
   NB: NO `.woocommerce` in the selector — that class sits on <body> (an ancestor
   ABOVE #page) and ALSO on the widget <section> itself, so
   `#page .woocommerce .widget_price_filter` would need a third, nested
   .woocommerce and never matches. `#page .widget_price_filter` is the reliable,
   still-ID-weighted path. */
#page .widget_price_filter .price_label .from,
#page .widget_price_filter .price_label .to {
	font-family: 'Laymoun Dirham', 'Cairo', 'Noto Sans', sans-serif !important;
}

/* wp-admin: prepend the font to the standard admin stack. unicode-range keeps it
   scoped to U+E900, so every other character still uses the normal admin font. */
body.wp-admin,
body.wp-admin #wpwrap,
body.wp-admin #wpwrap .wrap {
	font-family: 'Laymoun Dirham', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Analytics number tiles and any chart labels drawn as SVG <text>. */
.woocommerce-summary__item-value,
.woocommerce-table__item,
#wpbody svg text {
	font-family: 'Laymoun Dirham', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
