body {
  direction: rtl;
  text-align: right;
}



/* محاذاة */
.text-start { text-align: right !important; }
.text-end { text-align: left !important; }

i.la-angle-right,
i.las.la-arrow-right {
  transform: scaleX(-1);
}

/* المسافات */
.ms-1 { margin-right: .25rem !important; margin-left: 0 !important; }
.me-1 { margin-left: .25rem !important; margin-right: 0 !important; }
/* قلب ترتيب العمودين فقط داخل عنوان الكاتيجوريز */
html[dir="rtl"] .tc-categories-style2 .title .row { /* ما منقلب كل .row عامة، بس هذي */
  flex-wrap: wrap;
}
html[dir="rtl"] .tc-categories-style2 .title .col-lg-4 { /* العنوان */
  order: 2;
  text-align: left;
}
html[dir="rtl"] .tc-categories-style2 .title .col-lg-8 { /* رابط All Categories */
  order: 1;
  text-align: right;
}
/* مسافة الأيقونة بس */
html[dir="rtl"] .tc-categories-style2 .title .col-lg-8 .ms-2 {
  margin-left: 0 !important;
  margin-right: .5rem !important;
}
/* اقلب زاوية السهم فقط لو ضفت له الكلاس */
html[dir="rtl"] .tc-categories-style2 .title .col-lg-8 i.icon-dir-rtl { 
  transform: scaleX(-1); 
}
/* اضبط مسافات الدفع (me-3) عشان bootstrap عندك LTR */
html[dir="rtl"] .tc-footer-style2 .pay-imgs .me-3 {
  margin-right: 0 !important;
  margin-left: .75rem !important;
}

/* لو لقيت أيقونات سهم بالفوتر وحاب تقلبها */
html[dir="rtl"] .tc-footer-style2 i.icon-dir-rtl { 
  transform: scaleX(-1); 
}
/* ===== RTL footer patch (scoped) ===== */
html[dir="rtl"] .tc-footer-style2 { direction: rtl; text-align: right; }

/* لا تعكس جميع .row بشكل عام! نضبط الفوتر فقط */
html[dir="rtl"] .tc-footer-style2 .links ul,
html[dir="rtl"] .tc-footer-style2 .links ul li { list-style: none; margin: 0; padding: 0; }

/* أي رابط فيه أيقونة ونص: خلي الأيقونة على يسار النص في RTL */
html[dir="rtl"] .tc-footer-style2 .links a.d-inline-flex { flex-direction: row-reverse; }

/* هوامش الأيقونات داخل روابط العناوين (الخريطة/الهاتف/الايميل) */
html[dir="rtl"] .tc-footer-style2 .links a.d-inline-flex .fsz-16,
html[dir="rtl"] .tc-footer-style2 .links a.d-inline-flex i { 
  margin-left: .5rem !important; 
  margin-right: 0 !important; 
}

/* بدل padding-left المستخدم في LTR */
html[dir="rtl"] .tc-footer-style2 .links.ps-lg-4 { 
  padding-left: 0 !important; 
  padding-right: 1.5rem !important; 
}

/* قسم "خدماتنا / Dr.Mattress" داخل نصف الفوتر: بدّل ترتيب العمودين فقط */
html[dir="rtl"] .tc-footer-style2 .half-links .row { flex-wrap: wrap; }
html[dir="rtl"] .tc-footer-style2 .half-links .col-6:first-child { order: 2; } /* Our Services */
html[dir="rtl"] .tc-footer-style2 .half-links .col-6:last-child  { order: 1; } /* Dr.Mattress */

/* شريط الدفع السفلي: عدّل me-3 لأنها منطقية لـ LTR */
html[dir="rtl"] .tc-footer-style2 .pay-imgs .me-3 {
  margin-left: .75rem !important;
  margin-right: 0 !important;
}

/* اصطياد محاذاة النص المنطقية في السطر السفلي */
html[dir="rtl"] .tc-footer-style2 .foot .text-lg-start { text-align: right !important; }
html[dir="rtl"] .tc-footer-style2 .foot .text-lg-end   { text-align: left  !important; }

/* أيقونة الكرة الأرضية: قلب الهامش */
html[dir="rtl"] .tc-footer-style2 .dropdown-toggle .me-2 { 
  margin-left: .5rem !important; 
  margin-right: 0 !important; 
}

/* شبكة صور إنستغرام: خَلّيها تبدأ من اليمين على الشاشات الكبيرة */
@media (min-width: 992px) {
  html[dir="rtl"] .tc-footer-style2 .insta-imgs { justify-content: flex-start !important; }
}
/* ===== Footer columns layout (RTL only) ===== */
html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"] {
  flex: 0 0 auto;                      /* لا تتمدد تلقائياً */
}

/* LG ≥ 992px  ==>  3 | 2 | 4 | 3  (تماماً مثل الصورة) */
@media (min-width: 992px) {
  html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"]:nth-child(1) { width: 25% !important; }      /* اللوجو  col-lg-3 */
  html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"]:nth-child(2) { width: 16.6667% !important; } /* العنوان/الهاتف col-lg-2 */
  html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"]:nth-child(3) { width: 33.3333% !important; } /* خدماتنا+Dr  col-lg-4 */
  html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"]:nth-child(4) { width: 25% !important; }      /* انستغرام  col-lg-3 */
}

/* MD بين 768px و 991.98px  ==>  6 | 6 | 12 | 12 (زي اللي بالصورة) */
@media (min-width: 768px) and (max-width: 991.98px) {
  html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"]:nth-child(1),
  html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"]:nth-child(2) { width: 50% !important; } /* col-md-6 */
  html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"]:nth-child(3),
  html[dir="rtl"] .tc-footer-style2 .row.align-items-start > [class*="col-"]:nth-child(4) { width: 100% !important; } /* col-md-12 */
}

/* اختياري: على الشاشات الصغيرة خلّيهم يتكدسوا تلقائياً (Bootstrap يعملها) */

/* ملاحظات صغيرة للفوتر بالـ RTL */
html[dir="rtl"] .tc-footer-style2 .links.ps-lg-4 { padding-right: 1.5rem !important; padding-left: 0 !important; }
html[dir="rtl"] .tc-footer-style2 .pay-imgs .me-3 { margin-left: .75rem !important; margin-right: 0 !important; }
/* ===== RTL patch: section titles with arrows (safe & scoped) ===== */

html[dir="rtl"] .title.mb-40 > .row { 
  flex-wrap: wrap; /* عشان ما يتكسّر على الشاشات الصغيرة */
}

@media (min-width: 992px) {
  html[dir="ltr"] .title.mb-40 > .row > .col-lg-8 { 
    order: 2;                
    text-align: start !important;
  }
  html[dir="ltr"] .title.mb-40 > .row > .col-lg-4 { 
    order: 1;                
    text-align: end !important; 
  }
}


/* تنظيم الأسهم في RTL */
html[dir="rtl"] .title.mb-40 .arrows {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end; /* يمين */
}

/* اقلب شكل الأيقونات فقط (لا تغيّر الكلاسات) */
html[dir="rtl"] .title.mb-40 .arrows i.la,
html[dir="rtl"] .title.mb-40 .arrows i.las,
html[dir="rtl"] .title.mb-40 .arrows i.fal {
  transform: scaleX(-1); /* ←↔→ */
  display: inline-block;
}

/* لو عندك .ms-*/.me-* جوّا العنوان، عدّل منطقيًا للـ RTL */
html[dir="rtl"] .title.mb-40 .ms-1 { margin-right: .25rem !important; margin-left: 0 !important; }
html[dir="rtl"] .title.mb-40 .ms-2 { margin-right: .5rem  !important; margin-left: 0 !important; }
html[dir="rtl"] .title.mb-40 .ms-3 { margin-right: 1rem  !important; margin-left: 0 !important; }

/* ===== اختياري (Swiper) =====
   إذا حسّيت السلايدر بمشي بالعكس، جرّب أحد الخيارين:
*/

/* الخيار A: خلي الحاوية RTL والداخل LTR (غالبًا الأكثر استقرارًا) */
html[dir="rtl"] .products-slider { direction: rtl; }
html[dir="rtl"] .products-slider .swiper-wrapper { direction: ltr; }

    .text-lg-start {
        text-align: right !important;
    }
.tc-footer-style2 .links.half-links ul {
width:100%;
}
.row .align-items-start .gx-0{ padding: 0px 30px ; 
}
.row{flex-direction: row-reverse;}
.breadcrumb-item+.breadcrumb-item::before {
    float: right;
    padding-left: .5rem;}
    span{
    	direction: ltr;
    }
    .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1330px !important;
    padding-right: 15px;
    padding-left: 15px;
    direction: rtl;
}
.col-lg-5 .col-md-12 .mb-4 .mb-lg-0{padding: 0px 3%}
