/**
 * PouchPick — Arabic TEXT direction inside the established left-to-right composition (INTL-EXPANSION-02 COMBINED,
 * owner decision 2026-11-08). Loaded ONLY where the route's text is right-to-left but its layout is not (Core
 * RouteDirection: the UAE storefront); every other route never loads it.
 *
 * The page keeps PouchPick's composition: WordPress runs the route left to right (no dir="rtl"), so the logo,
 * navigation, search, Market selector, hero, grids, cards, product page, cart, Club, Nicopedia and footer sit where
 * they sit on every storefront, and interface text keeps the alignment the composition gives it. This file gives the
 * Arabic TEXT its own direction — the paragraph's base direction, Arabic wrapping and punctuation, list markers —
 * aligns long-form reading text from its start (right) edge, and isolates the Latin runs inside it. Every rule is
 * zero-specificity (:where) and scoped by :lang(ar), so a component's own alignment wins, and English islands
 * (lang="en", dir="ltr") and other-language labels (the Market selector's endonyms) keep their own direction.
 */

/* Interface and running text read right to left whatever word they start with (many Arabic sentences open with a
   Latin brand or product name): headings, paragraphs, definitions, quotes, captions, table cells. The line keeps the
   alignment of its place in the composition (match-parent: left where the layout is left, centred where centred);
   a table keeps its column order. */
:where(h1, h2, h3, h4, h5, h6, p, dt, dd, blockquote, figcaption, caption, th, td, legend):where(:lang(ar)) {
	direction: rtl;
	text-align: -webkit-match-parent;
	text-align: match-parent;
}

/* Rows that lay out an icon, a dot or a figure beside their text keep the composition's order (their text runs
   are isolated by the rule for labels below). */
:where(.pp-hero-eyebrow, .pp-home-eyebrow-lime, .pp-spot-indicator, .pp-pdpi-cmp-row dd, .pp-club-offer-v, .pp-club-hero-note, .pp-ed-name--hub, .pp-ed-sec-head h2, .pp-sg-key):where(:lang(ar)) {
	direction: ltr;
}

/* Labels, links, buttons, list items and form fields take the direction of their own text: an Arabic label right
   to left, a Latin brand or product name left to right, each isolated from its neighbours (unicode-bidi never moves
   a box, so flex and grid order stay the composition's), on the composition's alignment where one is a block. Typed
   Arabic in a field runs right to left. */
:where(a, button, span, label, summary, li, small, strong, em, b, i, output, input, textarea, select, option):where(:lang(ar)) {
	unicode-bidi: plaintext;
	text-align: -webkit-match-parent;
	text-align: match-parent;
}

/* Long-form reading text — Nicopedia articles, legal pages, Help Centre answers, product information, brand and
   category guides — is aligned from the right, so every line starts at the edge an Arabic reader starts from; its
   lists run right to left, their markers on the right inside the list's indent. */
:where(.pp-ed-art-head, .pp-ed-body, .pp-ed-sources, .pp-body, .pp-hc-acc-a, .pp-pdpi-acc-body, .pp-bp-module-copy, .pp-bp-faq-item, .pp-bp-mobfold-body, .pp-cg-block, .pp-sg-essay) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dt, dd, blockquote, figcaption):where(:lang(ar)) {
	direction: rtl;
	text-align: start;
	unicode-bidi: isolate;
}

/* Components that align a cell or a title from a logical edge keep the physical edge of the composition. */
.pp-bp-table th:lang(ar),
.pp-cartpage-empty-title:lang(ar) {
	text-align: left;
}

.pp-bp-minifacts dd:lang(ar),
.pp-bh-count:lang(ar) {
	text-align: right;
}

/* Product and brand names, SKUs, mg values and prices are their own runs: a Latin name reads left to right from the
   card's edge, an AED amount in the Arabic order of its symbol — never reordered across the neighbouring text. */
:where(.pp-price-primary, .pp-price-slot, .pp-price-line, .pp-tiers .pp-tier, .pp-card-brand, .pp-card-title, .pp-pdp-title, .pp-pdp-sku, .pp-bp-stat, .pp-ship-slot):where(:lang(ar)) {
	unicode-bidi: plaintext;
	text-align: -webkit-match-parent;
	text-align: match-parent;
}
