:root {
  --primary-blue: #0613b5;
  --dark-red: #fa0409;
  --radius: 20px;
}

body {
  background-color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  text-align: right; /* ضمان محاذاة النص لليمين */
}

/* --- Search RTL --- */
.search-container {
  position: relative;
  max-width: 100%;
}
.search-input {
  border-radius: 50px;
  padding-right: 20px;
  padding-left: 50px; /* عكس الحشو للزر */
  border: 1px solid #ddd;
}
.search-btn {
  position: absolute;
  left: 5px; /* الزر يكون يسار الحقل في العربية */
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-blue);
  color: white;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* --- Sidebar & Portal RTL --- */
.offcanvas {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 0;
}
.cat-img-nav {
  width: 40px;
  height: 40px;
  margin-left: 15px; /* تباعد الصورة عن النص */
}

#flyoutportal {
  position: fixed;
  z-index: 1060;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  width: 280px;
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.15);
  display: none;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  text-align: right;
}
#flyoutportal.active-state {
  opacity: 1;
  transform: translateX(-10px); /* يتحرك لليسار عند الظهور في RTL */
}

/* --- Product Cards RTL --- */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px; /* التخفيض على اليمين */
  left: auto;
  background-color: var(--dark-red);
  color: #fff;
  padding: 3px 8px;
  border-radius: 8px;
}
.heart-badge {
  position: absolute;
  top: 10px;
  left: 10px; /* القلب على اليسار */
  right: auto;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.add-btn {
  position: absolute;
  bottom: 10px;
  left: 10px; /* زر الإضافة على اليسار */
  right: auto;
  background-color: var(--primary-blue);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
}

@media (max-width: 767px) {
  .logo {
    margin-left: 0px;
    margin-right: 35px;
  }
}


/* .hero-slide { 
  margin-right: 30px !important;
  margin-left: 0 !important;
} */
/* WhatsApp Button RTL */
.whatsapp-btn {
  left: 20px; /* يسار الشاشة */
  right: auto;
  position: fixed;
  bottom: 20px;
  z-index: 1000;
  background: var(--primary-blue);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  text-decoration: none;
}

/* Swiper Fix for RTL */
/* [dir="ltr"] .swiper {
  direction: ltr !important;
} */

/* -------------------------------------------
         MOBILE STYLES (Inline Accordion)
         ------------------------------------------- */
@media (max-width: 991px) {
  .nav-item.active-menu .arrow-indicator {
    transform: rotate(270deg);
  }
}
