/* RAGVEL — Arabic additions (loaded after the mirrored stylesheets on /ar/ pages) */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
	--main_font: 'Archivo RG', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
	--bold_font: 'Archivo RG', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
body, body button, body input, body select, body textarea { font-family: var(--main_font); }

/* Arabic letters join: letter-spacing breaks the script */
html[lang^="ar"] body, html[lang^="ar"] body *, html[lang^="ar"] body *::before, html[lang^="ar"] body *::after { letter-spacing: 0 !important; }

/* Arabic needs taller lines than the Latin display settings */
html[lang^="ar"] h1, html[lang^="ar"] h2, html[lang^="ar"] h3, html[lang^="ar"] .rg-pd-title { line-height: 1.35 !important; font-stretch: normal !important; }
html[lang^="ar"] p, html[lang^="ar"] li { line-height: 1.9; }
html[lang^="ar"] .rg-slide-heading, html[lang^="ar"] .rg-home-hero h1 { line-height: 1.3 !important; }

/* Numbers, phone numbers, e-mails and codes keep left-to-right order inside RTL text */
html[dir="rtl"] a[href^="tel:"], html[dir="rtl"] a[href^="mailto:"], html[dir="rtl"] .rg-prod-sku, html[dir="rtl"] .rg-pd-sku strong,
html[dir="rtl"] .rg-ab-stat-num, html[dir="rtl"] .rg-stat-num, html[dir="rtl"] .rg3-bento-number, html[dir="rtl"] .rg3-about-badge strong,
html[dir="rtl"] a[href*="instagram.com"], html[dir="rtl"] .rg-sol-stat-value {
	direction: ltr;
	unicode-bidi: isolate;
}
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"], html[dir="rtl"] input[type="number"] { direction: ltr; text-align: right; }

/* Arrow icons point the reading direction */
html[dir="rtl"] path[d="M5 12h14M13 6l6 6-6 6"],
html[dir="rtl"] path[d="M9 6l6 6-6 6"],
html[dir="rtl"] path[d="M15 6l-6 6 6 6"],
html[dir="rtl"] path[d="M7 17 17 7M9 7h8v8"] {
	transform: scaleX(-1);
	transform-box: fill-box;
	transform-origin: center;
}
html[dir="rtl"] .icon-left::before, html[dir="rtl"] .icon-chevron-thin-left::before, html[dir="rtl"] .icon-chevron-thin-right::before { display: inline-block; transform: scaleX(-1); }

/* The PDF catalogs are left-to-right books: the flipbook keeps its LTR layout */
html[dir="rtl"] .rg-fb { direction: ltr; }
html[dir="rtl"] .rg-fb path { transform: none; }

/* Short action buttons stay on one line */
html[dir="rtl"] .rg-prod-actions a, html[dir="rtl"] .rg-prod-card .button, html[dir="rtl"] .rg-prod-wa, html[dir="rtl"] .rg-prod-more { white-space: nowrap; }

/* Mixed Latin + Arabic lines keep a readable order */
html[dir="rtl"] .rg-copyright-row p { unicode-bidi: plaintext; text-align: right; }
html[dir="rtl"] .rg-catalog-meta bdi + bdi { white-space: nowrap; }
