/* ===================================================
   📱 مظهر الهيدر في مود الموبايل
   =================================================== */
body.mobile-mode header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 🔹 شعار OutMart */
body.mobile-mode header .logo a {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #004e8a;
  text-decoration: none;
}

/* 🔹 زر تسجيل الدخول / إنشاء حساب (حجم أصغر) */
body.mobile-mode header .login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(90deg, #0077ff, #00bfff);
  color: white;
  padding: 6px 8px;              /* ⬅️ كان 8px 16px — الآن أصغر */
  border-radius: 8px;             /* ⬅️ كان 10px — أخف */
  font-weight: 600;
  font-size: 6px;                /* ⬅️ كان 14px — قللناه شوي */
  border: none;
  box-shadow: 0 2px 6px rgba(0, 119, 255, 0.25);
  text-decoration: none;
  transition: 0.3s;
}
body.mobile-mode header .login-btn i {
  font-size: 15px;                /* ⬅️ أيقونة أصغر */
}
body.mobile-mode header .login-btn:hover {
  background: linear-gradient(90deg, #0066dd, #00a9e6);
  transform: translateY(-2px);
}


/* 🔸 زر القائمة (☰) */
body.mobile-mode header .menu-toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: 0.2s;
}
body.mobile-mode header .menu-toggle:hover {
  color: #0077ff;
}

/* 🔹 ترتيب العناصر */
body.mobile-mode header .right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
  
/* 🚫 إخفاء زر القائمة الثلاثية في مود الموبايل */
body.mobile-mode header .menu-toggle {
  display: none !important;
}

/* ===================================================
   🏷️ شريط المتاجر (مود الموبايل)
   =================================================== */
body.mobile-mode .store-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #f8f9fc;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 🔘 الأزرار */
body.mobile-mode .store-bar button {
  background: white;
  color: #004e8a;
  border: 1px solid #c7d8ff;
  border-radius: 25px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Tajawal", sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 🟦 عند التمرير أو اللمس */
body.mobile-mode .store-bar button:hover {
  background: linear-gradient(90deg, #0077ff, #00bfff);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 119, 255, 0.2);
}

/* 💡 زر المتجر المميز */
body.mobile-mode .store-bar .featured {
  background: linear-gradient(90deg, #ffb300, #ff9500);
  color: white;
  border: none;
  box-shadow: 0 3px 8px rgba(255, 149, 0, 0.3);
}
body.mobile-mode .store-bar .featured:hover {
  background: linear-gradient(90deg, #ff9500, #ffb300);
}

/* 📱 تحسين المظهر في الشاشات الصغيرة */
@media (max-width: 480px) {
  body.mobile-mode .store-bar button {
    font-size: 13px;
    padding: 6px 12px;
  }
}


/* ===================================================
   🎬 شريط الترحيب المتحرك (من اليسار إلى اليمين)
   =================================================== */
.welcome-bar {
  width: 100%;
  overflow: hidden;
  background: #f9fbff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 6px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.welcome-bar .welcome-text {
  display: inline-block;
  white-space: nowrap;
  color: #004c97;
  font-size: 14px;
  font-weight: 600;
  font-family: "Tajawal", sans-serif;

  /* ✅ الحركة المعكوسة */
  animation: welcomeScrollReverse 18s linear infinite;
  -webkit-animation: welcomeScrollReverse 18s linear infinite;
}

/* 🌀 حركة من اليسار إلى اليمين */
@keyframes welcomeScrollReverse {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 💫 توقف مؤقت عند اللمس */
.welcome-bar .welcome-text:hover {
  animation-play-state: paused;
  cursor: pointer;
}


/* ===================================================
   📱 إخفاء السلايدر في مود الموبايل فقط
   =================================================== */
body.mobile-mode .custom-slider {
  display: none !important;
  visibility: hidden !important;
}


/* ===================================================
   📱 تنسيق احترافي لقسم المميزات (features-section)
   خاص بمود الموبايل فقط
   =================================================== */

body.mobile-mode .features-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 12px;
  background: #fff8e7; /* لون ناعم متناسق مع الموقع */
  text-align: center;
}

body.mobile-mode .features-section .feature {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 18px 10px;
  transition: 0.3s;
}

body.mobile-mode .features-section .feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* 🔹 العناوين */
body.mobile-mode .features-section .feature h3 {
  color: #004c97;
  font-size: 18px;
  margin-bottom: 8px;
  border-bottom: 2px solid #ffb703;
  display: inline-block;
  padding-bottom: 3px;
}

/* 🔸 النصوص */
body.mobile-mode .features-section .feature p {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}


/* ===================================================
   🎬 دخول متناوب (يمين / يسار) للبطاقات عند تحميل الصفحة
   =================================================== */

/* الحالة الأولية قبل التحميل */
body.mobile-mode .features-section .feature {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s ease-out;
}

/* البطاقات الزوجية تبدأ من الجهة المعاكسة */
body.mobile-mode .features-section .feature:nth-child(even) {
  transform: translateX(-60px);
}

/* الحالة بعد التحميل */
body.mobile-mode .features-section .feature.show {
  opacity: 1;
  transform: translateX(0);
}


/* ===================================================
   🛒 تنسيق احترافي لقسم "كيفية الشراء من OutMart"
   خاص بمود الموبايل فقط
   =================================================== */

body.mobile-mode .buy-steps {
  background: #fffaf0;
  padding: 25px 15px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 25px 10px;
}

body.mobile-mode .buy-steps h2 {
  text-align: center;
  color: #004c97;
  margin-bottom: 25px;
  font-size: 20px;
  position: relative;
}

body.mobile-mode .buy-steps .step-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 15px 15px 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  transition: all 0.3s ease;
}

body.mobile-mode .buy-steps .step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* 🎯 الأيقونة */
body.mobile-mode .buy-steps .step-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077ff, #00b8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* 📝 النص */
body.mobile-mode .buy-steps .step-content h3 {
  color: #004c97;
  margin: 0 0 5px;
  font-size: 16px;
}

body.mobile-mode .buy-steps .step-content p {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.6;
}


/* ===================================================
   💎 تصميم مميز لقسم "مميزات الشراء من OutMart"
   خاص بمود الموبايل فقط
   =================================================== */

body.mobile-mode .features-buy {
  padding: 25px 15px;
  background: linear-gradient(to bottom, #fdfcf8, #fffaf0);
  border-radius: 20px;
  margin: 25px 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

body.mobile-mode .features-buy h2 {
  text-align: center;
  color: #004c97;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* كل ميزة داخل كرت */
body.mobile-mode .features-buy .feature-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #ffffff;
  border-radius: 16px;
  padding: 15px 18px;
  margin-bottom: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

body.mobile-mode .features-buy .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* الأيقونة */
body.mobile-mode .features-buy .feature-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077ff, #00b8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}

/* النصوص */
body.mobile-mode .features-buy .feature-text h3 {
  margin: 0;
  font-size: 16px;
  color: #004c97;
}

body.mobile-mode .features-buy .feature-text p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}


/* ===================================================
   📱 فوتر شبكي (Grid) مخصص لمود الموبايل فقط
   =================================================== */

body.mobile-mode .footer-modern {
  background: linear-gradient(180deg, #fffdf7, #fffaf0);
  padding: 25px 15px 30px;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

/* 🧱 الشبكة الأساسية */
body.mobile-mode .footer-modern .footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  text-align: center;
}

/* كل كرت صغير */
body.mobile-mode .footer-modern .footer-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  padding: 10px;
  transition: all 0.3s ease;
}

body.mobile-mode .footer-modern .footer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* العناوين */
body.mobile-mode .footer-modern .footer-card h4 {
  font-size: 14px;
  color: #004c97;
  margin-bottom: 6px;
  border-bottom: 2px solid #ff9800;
  display: inline-block;
  padding-bottom: 3px;
}

/* الروابط الداخلية */
body.mobile-mode .footer-modern .footer-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mobile-mode .footer-modern .footer-card li {
  margin: 3px 0;
}

body.mobile-mode .footer-modern .footer-card a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: 0.2s ease;
}

body.mobile-mode .footer-modern .footer-card a:hover {
  color: #0077ff;
}

/* ✅ تحسين عرض الصفوف بالهواتف الصغيرة */
@media (max-width: 480px) {
  body.mobile-mode .footer-modern .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}




/* ===================================================
   📱 ترتيب الفوتر في مود الموبايل (دفع + تواصل + حقوق)
   =================================================== */

body.mobile-mode .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px; /* مسافة بين الأقسام */
  padding: 15px 0;
  background: transparent;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* 🪙 قسم الدفع */
body.mobile-mode .footer-payments {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

body.mobile-mode .footer-payments img {
  height: 24px;
  width: auto;
  transition: 0.3s ease;
}

body.mobile-mode .footer-payments img:hover {
  transform: scale(1.1);
}

/* 🌐 قسم التواصل الاجتماعي */
body.mobile-mode .footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

body.mobile-mode .footer-social a {
  font-size: 20px;
  color: #3d2e00;
  transition: 0.3s ease;
}

body.mobile-mode .footer-social a:hover {
  color: #0077ff;
  transform: translateY(-2px);
}

/* 🧾 النص السفلي */
body.mobile-mode .footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #3d2e00;
  text-align: center;
  font-weight: 500;
}





/* ===================================================
   ✅ مودال تسجيل الدخول — يظهر فقط عند الضغط
   =================================================== */

/* مخفي افتراضيًا */
body.mobile-mode #razaqAuthOverlay {
  display: none !important;
  align-items: center;
  justify-content: center;
}

/* يظهر فقط عند إضافة كلاس open */
body.mobile-mode #razaqAuthOverlay.open {
  display: flex !important;
}

/* إخفاء زر الإغلاق فقط */
body.mobile-mode #razaqAuthClose {
  display: none !important;
}

/* تحسين مظهر المودال في الموبايل */
body.mobile-mode .razaq-auth-modal {
  width: 90%;
  max-width: 380px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 25px;
  animation: fadeInModal 0.4s ease;
}

/* 🎬 تأثير دخول ناعم */
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* إخفاء رسالة "الرجاء تسجيل الدخول أو اشترك" في الموبايل فقط */
/*body.mobile-mode .side-menu,
body.mobile-mode .side-menu-desktop {
  display: none !important;
}*/

body.mobile-mode .side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  direction: rtl;
}

body.mobile-mode .side-menu.active {
  right: 0;
}


/* 📱 منسدلة حسابي - خاصة بالموبايل */
/* 📱 تصحيح ترتيب OutMart و حسابي في الموبايل فقط */
@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: row-reverse; /* يعكس الاتجاه العام */
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
  }

  /* الشعار OutMart يرجع يسار */
  .left-section {
    order: 1; /* يخليها تظهر بالأيسر */
    text-align: left;
  }

  .left-section .site-name {
    font-family: "Tajawal", sans-serif;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
  }

  /* القسم الأيمن (القائمة + حسابي) */
  .right-section {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 8px;
  }

  .account-dropdown {
    position: relative;
  }

  .account-btn {
    background: #0077ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
  }

  /* القائمة المنسدلة */
  .account-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 999;
  }

  .account-dropdown.open .account-menu {
    display: flex;
  }

  .account-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
  }

  .account-menu a:hover {
    background: #f5f8ff;
    color: #0077ff;
  }
}


/* ✅ القائمة الجانبية – إعدادات عامة */
.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  z-index: 4000;
  overflow-y: auto;
  padding: 20px;
}

/* لما تفتح */
.side-menu.active {
  right: 0;
}

/* زر الإغلاق */
.side-menu .close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 25px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: right 0.3s ease;
}

.side-menu.active {
  right: 0;
}

/* ===================================================
   ✅ عرض القائمة الجانبية بالموبايل
   =================================================== */

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  direction: rtl;
}

.side-menu.active {
  right: 0; /* 👈 هذا هو المفتاح — يخليها تنزلق وتظهر */
}

.side-menu .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 15px;
}

.side-menu-header {
  padding: 60px 20px 20px;
}

.side-menu ul {
  list-style: none;
  padding: 0;
}

.side-menu ul li a {
  display: block;
  padding: 12px 10px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.side-menu ul li a:hover {
  background: #f0f4ff;
  color: #0077ff;
}

/* ===================================================
   🪶 OutMart Elegant NeoMenu — تصميم حديث ونظيف
   =================================================== */
@media (max-width: 768px) {
  .side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: #fcfcfc;
    border-left: 1px solid #eee;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.08);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 6000;
  }

  .side-menu.active {
    right: 0;
  }

  /* زر الإغلاق */
  .side-menu .close-btn {
    position: absolute;
    top: 14px;
    left: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
  }

  .side-menu .close-btn:hover {
    color: #ff7b00;
    transform: rotate(90deg);
  }

  /* رأس القائمة */
  .side-menu-header {
    padding: 55px 20px 25px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f4f6ff);
    border-bottom: 1px solid #eee;
    border-top-left-radius: 24px;
  }

  .side-menu-header .menu-logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  .side-menu-header .menu-logo span:first-child {
    color: #004aad;
  }

  .side-menu-header .menu-logo span:last-child {
    color: #ff7b00;
  }

  .side-menu-header .user-icon {
    font-size: 42px;
    color: #004aad;
    margin: 12px 0 6px;
    opacity: 0.9;
  }

  .side-menu-header p {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
  }

  .side-menu-header strong {
    color: #004aad;
  }

  /* أزرار الملف الشخصي والخروج */
  .side-menu-header .btns.compact {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
  }

  .side-menu-header .btns.compact button {
    background: #ffffff;
    color: #004aad;
    border: 1px solid #d9e4ff;
    border-radius: 10px;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  }

  .side-menu-header .btns.compact button:hover {
    background: #004aad;
    color: #fff;
  }

  /* إشعارات ورسائل */
  .account-mobile-extra {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
  }

  .account-mobile-extra a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
  }

  .account-mobile-extra a:hover {
    color: #004aad;
  }

  /* القائمة */
  .side-menu ul {
    list-style: none;
    margin: 0;
    padding: 20px 18px 40px;
  }

  .side-menu ul li {
    margin-bottom: 10px;
  }

  .side-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px 15px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  }

  .side-menu ul li a i {
    font-size: 18px;
    color: #004aad;
  }

  .side-menu ul li a:hover {
    background: #f6f9ff;
    border-color: #d6e4ff;
    transform: translateX(-4px);
  }

  /* تأثير الدخول */
  .side-menu.active {
    animation: smoothSlideIn 0.35s ease forwards;
  }

  @keyframes smoothSlideIn {
    from { transform: translateX(100%); opacity: 0.3; }
    to { transform: translateX(0); opacity: 1; }
  }

  /* تمرير أنيق */
  .side-menu::-webkit-scrollbar {
    width: 6px;
  }
  .side-menu::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
  }
}



/* 🎯 تعديل زر الإغلاق في القائمة الجانبية للموبايل */
@media (max-width: 768px) {
  .side-menu .close-btn {
    position: absolute;
    top: 14px;
    right: 14px;        /* 🔹 بدل left */
    left: auto;         /* إلغاء التحديد القديم */
    background: none;
    border: none;
    font-size: 14px;    /* 🔹 أصغر من قبل */
    color: #666;
    cursor: pointer;
    transition: 0.2s;
  }

  .side-menu .close-btn:hover {
    color: #004aad;
    transform: scale(1.1);
  }
}

/* ✅ تجميد الصفحة تمامًا عند فتح القائمة الجانبية */
html.menu-open,
body.menu-open,
body.desktop-mode.menu-open,
body.mobile-mode.menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100vh !important;
  top: 0 !important;
  left: 0 !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

/* ✅ قفل أي سكول داخلي */
body.menu-open main,
body.menu-open .page-container,
body.menu-open .content-wrapper,
body.menu-open #wrapper {
  overflow: hidden !important;
  pointer-events: none !important;
}


/* =====================================================
   ✨ OutMart Mobile Drawer — Elegant v4 (ثابت وراقي)
   ===================================================== */

.side-menu {
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  box-shadow: -2px 0 20px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  padding: 28px 22px 50px;
  overflow-y: auto;
}

.side-menu.active {
  transform: translateX(0);
}

/* ✅ العنوان والشعار */
.side-menu-header {
  text-align: center;
  margin-bottom: 24px;
}
.side-menu .menu-logo span {
  font-size: 28px;
  font-weight: 800;
}
.side-menu .menu-logo span:first-child {
  color: #004aad;
}
.side-menu .menu-logo span:last-child {
  color: #ff7b00;
}

/* 👤 صورة المستخدم */
.side-menu .user-icon {
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, #004aad, #007bff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: #fff;
  margin: 18px auto 10px;
  box-shadow: 0 3px 10px rgba(0,74,173,0.25);
  border: 3px solid #fff;
}

.side-menu p {
  font-size: 16px;
  color: #333;
  margin-bottom: 14px;
}
.side-menu p strong {
  color: #004aad;
}

/* 🎯 أزرار الملف والخروج */
.side-menu .btns.compact {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.side-menu .btns.compact button {
  background: linear-gradient(90deg, #004aad, #007bff);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,74,173,0.2);
  transition: all 0.25s ease;
}
.side-menu .btns.compact button:hover {
  opacity: 0.9;
}

/* 📋 الروابط */
.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-menu li {
  margin: 10px 0;
}

/* ✅ النص يمين - الأيقونة يسار */
.side-menu a,
.side-menu button {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: #f8f9fc;
  border-radius: 14px;
  border: 1px solid #e3e6ec;
  padding: 12px 18px;
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.side-menu a:hover,
.side-menu button:hover {
  background: #eaf1ff;
  transform: none;
}

.side-menu i {
  color: #004aad;
  font-size: 18px;
}

/* 💰 المحفظة */
#walletBalance {
  font-weight: 700;
  color: #004aad;
}

/* 🔔 الشارات */
.notif-badge,
.msg-badge {
  background: #ff4d4d;
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 50%;
  margin-left: 6px;
}

/* ❌ زر الإغلاق (ثابت وبسيط) */
.side-menu .close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border: 1px solid #eee;
  font-size: 22px;
  border-radius: 50%;
  color: #555;
  width: 36px;
  height: 36px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: background 0.25s ease;
}
.side-menu .close-btn:hover {
  background: #f1f1f1;
}


/* =====================================================
   🔁 تصحيح الاتجاه العربي — الأيقونة يمين / النص يسار
   ===================================================== */

.side-menu a,
.side-menu button {
  display: flex;
  flex-direction: row; /* 👈 الأيقونة يمين، النص يسار */
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #f8f9fc;
  border-radius: 14px;
  border: 1px solid #e3e6ec;
  padding: 12px 18px;
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s ease;
}

.side-menu a i,
.side-menu button i {
  order: -1; /* 👈 يجعل الأيقونة قبل النص */
  margin-right: 6px;
  color: #004aad;
  font-size: 18px;
}

.side-menu a:hover,
.side-menu button:hover {
  background: #eaf1ff;
}

/* 🎯 تصحيح زر الإغلاق */
.side-menu .close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #444;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.side-menu .close-btn:hover {
  color: #ff7b00;
}
/* =====================================================
   🎯 تحسين زر الإغلاق فقط (OutMart Close Button)
   ===================================================== */

.side-menu .close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #5a3be7; /* بنفسجي أزرق */
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.side-menu .close-btn:hover {
  background: rgba(90, 59, 231, 0.15);
  color: #ff7b00; /* يتحول برتقالي عند اللمس */
  transform: scale(1.1);
}
