/* Moodah — إصلاحات RTL يدوية فوق النسخ المقلوبة (تُوسَّع حسب QA) */

/* منسدلات bootstrap-select تفتح بمحاذاة يمين */
.bootstrap-select .dropdown-menu { right: 0; left: auto; text-align: right; }

/* الأرقام والأسعار تبقى لاتينية القراءة داخل سياق عربي */
.price, .woocommerce-Price-amount, .countdown { unicode-bidi: plaintext; }

/* حقول البحث والإدخال */
input, textarea, select { text-align: right; }
input[type="email"], input[type="url"], input[type="tel"], input[type="number"] { direction: ltr; text-align: left; }

/* البريد في الهيدر يظهر LTR سليماً */
.header-contact a[href^="mailto:"], a[href^="mailto:"] { direction: ltr; unicode-bidi: embed; }

/* منع فائض التمرير الأفقي الأيسر في RTL (عناصر off-canvas/سلايدر أثناء التهيئة) */
html[dir="rtl"] { overflow-x: clip; }
@supports not (overflow-x: clip) {
	html[dir="rtl"] body { overflow-x: hidden; }
}

/* fw-back (خلفيات full-bleed يضبطها JS بأسلوب متماثل) — إلغاء أي قلب مزدوج من rtlcss */
html[dir="rtl"] .fw-back {
	left: 50% !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	transform: translateX(-50%) !important;
}

/* fw-block: العنصر الأعرض من حاويته يصطف يميناً في RTL فتنكسر معادلة full-bleed في JS.
   نجعل الحاوية LTR (لضبط الـ static position كما يتوقع الثيم) ونعيد RTL للمحتوى. */
html[dir="rtl"] .fw-block { direction: ltr; }
html[dir="rtl"] .fw-back > * { direction: rtl; }

/* الجوال: تمركز نص السلايدر داخل الشاشة بدل انقطاعه عند الحافة */
@media (max-width: 575px) {
	html[dir="rtl"] .main-banner .caption-wrap,
	html[dir="rtl"] .main-slider .caption-wrap {
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 20px;
		padding-right: 20px;
		text-align: center;
	}
}

/* ===== RTL audit fixes v1.1.0 (visual verification 2026-07-17) ===== */

/* نص التواصل أعلى الهيدر — كان يتراصف يساراً */
html[dir="rtl"] .header-contact-top,
html[dir="rtl"] .header-contact-top * { text-align: right; }

/* شارة التخفيض: النص "-50%" يجب أن يُقرأ LTR وإلا انعكس إلى "%50-" */
html[dir="rtl"] .onsale,
html[dir="rtl"] span.onsale,
html[dir="rtl"] .price ins,
html[dir="rtl"] .amount bdi { direction: ltr; unicode-bidi: isolate; }

/* الأسعار والأرقام تبقى LTR داخل السياق العربي مع محاذاة يمين للكتلة */
html[dir="rtl"] .price,
html[dir="rtl"] .woocommerce-Price-amount { direction: ltr; text-align: right; unicode-bidi: isolate; }

/* عنوان الميزة الذي يحوي نسبة مئوية — منع انعكاس الرقم */
html[dir="rtl"] .feature-title,
html[dir="rtl"] .features .title { unicode-bidi: plaintext; }

/* صفحات التصنيف تعرض الوصف مرتين (أعلى + أسفل) — نُبقي العلوي فقط */
.products-category-description { display: none; }
