/* UrbanArt Languages — Arabic (RTL) layer. Loaded on /ar/ only, after the theme's own rtl.css. */

/* Arabic glyphs for the theme fonts: the Latin families keep their own files, Arabic characters
   fall through to IBM Plex Sans Arabic via unicode-range, so no selector has to be overridden. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(fonts/plex-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/plex-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/plex-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(fonts/plex-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 600 900; font-display: swap; src: url(fonts/plex-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url(fonts/plex-arabic-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 500 600; font-display: swap; src: url(fonts/plex-arabic-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700 900; font-display: swap; src: url(fonts/plex-arabic-700.woff2) format('woff2'); }

html[dir="rtl"] body { font-family: 'Montserrat', 'IBM Plex Sans Arabic', Tahoma, sans-serif; }

/* Arabic needs more line height and no tracking; uppercase transforms do nothing useful. */
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] li { line-height: 1.8; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .button, html[dir="rtl"] button, html[dir="rtl"] .menu-label, html[dir="rtl"] .heading-title { letter-spacing: 0 !important; line-height: 1.45; }

/* Prices, SKUs, phone numbers and dimensions stay left-to-right inside Arabic text. */
html[dir="rtl"] .woocommerce-Price-amount,
html[dir="rtl"] .sku,
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .ua-tel { unicode-bidi: isolate; direction: ltr; display: inline-block; }
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"] { direction: ltr; text-align: right; }

/* Keep labels and layout RTL; keep email, telephone and one-time codes readable. */
html[dir="rtl"] .uauth-card,
html[dir="rtl"] .wpcf7 form,
html[dir="rtl"] .woocommerce-checkout form.checkout { direction: rtl; }
html[dir="rtl"] .uauth-form input:not([type="email"]):not([type="hidden"]),
html[dir="rtl"] .wpcf7 textarea { text-align: start; }
html[dir="rtl"] input[autocomplete="one-time-code"] { direction: ltr; text-align: center; }
html[dir="rtl"] footer .popup-offer-newsletter-inline-group { display: flex; direction: rtl; }
html[dir="rtl"] footer .popup-offer-newsletter-email { flex: 1 1 0; min-inline-size: 0; }
html[dir="rtl"] footer .popup-offer-newsletter-submit { flex: 0 0 auto; }
html[dir="rtl"] footer .popup-offer-newsletter-submit svg { transform: scaleX(-1); }

/* These components calculate horizontal positions in LTR; keep only their geometry LTR. */
html[dir="rtl"] .rmp-elegant-carousel { direction: ltr; }
html[dir="rtl"] .rmp-elegant-card { direction: rtl; text-align: start; }
html[dir="rtl"] .rmp-elegant-arrow i { transform: none; }
html[dir="rtl"] .ua-bf-layout { direction: ltr; }
html[dir="rtl"] .ua-bf-copy,
html[dir="rtl"] .ua-bf-product-line,
html[dir="rtl"] .ua-bf-feature { direction: rtl; text-align: start; }
html[dir="rtl"] .ua-bf-copy { align-items: flex-end; }
html[dir="rtl"] .ua-bf-countdown { direction: ltr; }
/* Both controls use a shared center instead of the captured RTL-specific right offsets. */
html[dir="rtl"] .ua-compiled-slider > .ua-control { right: auto !important; margin-inline: 0 !important; }
html[dir="rtl"] .ua-compiled-slider > .ua-prev { left: calc(50% - 10px) !important; translate: -100% 0 !important; }
html[dir="rtl"] .ua-compiled-slider > .ua-next { left: calc(50% + 10px) !important; }
html[dir="rtl"] .ua-compiled-slider > .ua-nav-mobile { left: 50% !important; }

/*
 * NOVA desktop: mirror the whole composition (photo, frosted panel, its rounded corner and the theme's
 * per-breakpoint paddings), then flip each readable leaf back. `scale` is used instead of `transform`
 * because the eyebrow, steps and button animate `transform`. Mobile is a stacked layout: untouched.
 */
@media (min-width: 783px) {
	html[dir="rtl"] .urbanart-ai-showcase { scale: -1 1; }
	html[dir="rtl"] .urbanart-ai-showcase__mobile,
	html[dir="rtl"] .urbanart-ai-showcase__content > :not(.urbanart-ai-showcase__steps-inline):not(.urbanart-ai-showcase__actions),
	html[dir="rtl"] .urbanart-ai-showcase__step,
	html[dir="rtl"] .urbanart-ai-showcase__button { scale: -1 1; }
	/* Layout containers keep the French LTR flow so the mirror places items at the reading start. */
	html[dir="rtl"] .urbanart-ai-showcase__desktop { direction: ltr; }
	html[dir="rtl"] .urbanart-ai-showcase__content > :not(.urbanart-ai-showcase__steps-inline):not(.urbanart-ai-showcase__actions),
	html[dir="rtl"] .urbanart-ai-showcase__step,
	html[dir="rtl"] .urbanart-ai-showcase__button { direction: rtl; text-align: right; }
}
html[dir="rtl"] .urbanart-ai-showcase__button::after { scale: -1 1; }
html[dir="rtl"] .urbanart-ai-showcase__mobile { text-align: right; }

/* Directional icons point the reading way. */
html[dir="rtl"] .fa-angle-right, html[dir="rtl"] .fa-angle-left,
html[dir="rtl"] .fa-chevron-right, html[dir="rtl"] .fa-chevron-left,
html[dir="rtl"] .fa-arrow-right, html[dir="rtl"] .fa-arrow-left,
html[dir="rtl"] .fa-long-arrow-alt-right, html[dir="rtl"] .fa-long-arrow-alt-left { transform: scaleX(-1); }

/*
 * Elements parked off-screen with a large negative `left` are harmless in LTR, but in RTL the page
 * scrolls toward negative x, so they stretch the document thousands of pixels sideways.
 * Park them on the right instead (Review Manager Pro's rating-modal bridge sits at left:-9999px).
 */
html[dir="rtl"] .rmp-rating-modal-bridge { left: auto !important; right: -9999px !important; }
