/* RTL Support Styles */
html[dir="rtl"] {
  /* Text alignment */
  text-align: right;
}

/* Navigation */
html[dir="rtl"] .nav-center {
  margin-right: 0;
  margin-left: 3rem;
}

html[dir="rtl"] .navbar-nav {
  padding-right: 0;
}

html[dir="rtl"] .dropdown-menu {
  text-align: right;
}

/* Icons and SVGs */
html[dir="rtl"] .icon-box {
  flex-direction: row-reverse;
}

html[dir="rtl"] .icon-box-content {
  margin-right: 1rem;
  margin-left: 0;
}

/* Lists */
html[dir="rtl"] ul {
  padding-right: 0;
}

/* Forms */
html[dir="rtl"] .form-control {
  text-align: right;
}

html[dir="rtl"] .input-group>.form-control {
  border-radius: 0 0.25rem 0.25rem 0;
}

html[dir="rtl"] .input-group>.input-group-append>.btn {
  border-radius: 0.25rem 0 0 0.25rem;
}

/* Margins and Paddings */
html[dir="rtl"] .ms-3 {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

html[dir="rtl"] .me-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}

html[dir="rtl"] .ps-3 {
  padding-right: 1rem !important;
  padding-left: 0 !important;
}

html[dir="rtl"] .pe-3 {
  padding-left: 1rem !important;
  padding-right: 0 !important;
}

/* Arrows and Icons */
html[dir="rtl"] .arrow-right {
  transform: scaleX(-1);
}

html[dir="rtl"] .arrow-left {
  transform: scaleX(-1);
}

/* Swiper Slider */
html[dir="rtl"] .swiper-button-next {
  left: 10px;
  right: auto;
  transform: scaleX(-1);
}

html[dir="rtl"] .swiper-button-prev {
  right: 10px;
  left: auto;
  transform: scaleX(-1);
}

/* Font Adjustments for Arabic */
html[dir="rtl"] body {
  font-family: 'Jost', 'Noto Kufi Arabic', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: 'Cormorant', 'Noto Naskh Arabic', serif;
}

/* Mobile Menu */
html[dir="rtl"] .offcanvas {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

html[dir="rtl"] .offcanvas.show {
  transform: translateX(0);
}

/* Grid System Adjustments */
@media (min-width: 992px) {
  html[dir="rtl"] .offset-lg-1 {
    margin-right: 8.333333%;
    margin-left: 0;
  }
}

/* Animation Directions */
html[dir="rtl"] .animate-text {
  transform: translateX(30px);
}

html[dir="rtl"] .animate-text.animate-in {
  transform: translateX(0);
}

/* Footer Adjustments */
html[dir="rtl"] .footer-menu {
  text-align: right;
}

html[dir="rtl"] .social-links ul {
  padding-right: 0;
  flex-direction: row-reverse;
}

/* Product Cards */
html[dir="rtl"] .product-content {
  text-align: right;
}

html[dir="rtl"] .product-meta {
  flex-direction: row-reverse;
}

/* Cart and Checkout */
html[dir="rtl"] .cart-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .cart-item-details {
  text-align: right;
}

/* Form Validation Messages */
html[dir="rtl"] .invalid-feedback {
  text-align: right;
}

/* Modal Dialogs */
html[dir="rtl"] .modal-header .btn-close {
  margin: -0.5rem auto -0.5rem -0.5rem;
}

/* Testimonials */
html[dir="rtl"] .testimonial-content {
  text-align: right;
}

html[dir="rtl"] .author-detail {
  flex-direction: row-reverse;
}

/* Search Bar */
html[dir="rtl"] .search-form {
  flex-direction: row-reverse;
}

html[dir="rtl"] .search-submit {
  border-radius: 0.25rem 0 0 0.25rem;
}

/* Breadcrumbs */
html[dir="rtl"] .breadcrumb-item+.breadcrumb-item::before {
  float: right;
  padding-left: 0.5rem;
  padding-right: 0;
}

/* Utility Classes */
html[dir="rtl"] .text-start {
  text-align: right !important;
}

html[dir="rtl"] .text-end {
  text-align: left !important;
}