/* MANSOUR STORE | HEADER v3.0 - استبدل CSS السابق بالكامل بهذا الملف */
:root {
  --ms-black: #1B1C1D;
  --ms-panel: #111318;
  --ms-cyan: #12c7ec;
  --ms-blue: #238de8;
  --ms-yellow: #ffda17;
  --ms-orange: #ff8a00;
  --ms-white: #f7f9fc;
}
html, body, body.dark, #app, .app-inner, main, #main-content {
  background-color: var(--ms-black) !important;
}
.store-header, .store-header .main-nav-container,
.store-header .main-nav-container .inner, .store-header #mainnav {
  background: var(--ms-black) !important;
  box-shadow: none !important;
}

/* أخف الشريط الأصلي فقط بعد نجاح إعادة بناء الهيدر */
.store-header.ms-header-ready .top-navbar,
.store-header.ms-header-ready .s-topnav,
.store-header.ms-header-ready .ms-original-row,
.store-header .theme-mode-btn { display: none !important; }

.store-header .ms-layout { position: relative; direction: rtl; width: 100%; padding: 9px 0; }
.store-header .ms-top {
  display: grid !important;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  grid-template-areas: 'brand nav actions';
  align-items: center;
  column-gap: clamp(12px, 1.7vw, 24px);
  min-height: 69px;
}
.store-header .ms-brand {
  grid-area: brand; display: flex; align-items: center;
  justify-content: flex-start; min-width: 0; gap: 8px;
}
.store-header .ms-brand .navbar-brand,
.store-header .ms-brand .header-logo,
.store-header .ms-brand .site-logo,
.store-header .ms-brand [data-testid="store-header-logo"] {
  display: inline-flex !important; align-items: center; justify-content: center;
  max-width: 105px !important; height: 62px !important;
  margin: 0 !important; padding: 0 !important;
}
.store-header .ms-brand img {
  display: block !important; width: auto !important; height: auto !important;
  max-width: 105px !important; max-height: 62px !important; object-fit: contain !important;
}

/* وسط الهيدر: قائمة أقسام متوسّطة، والسطر يلتف حسب عدد الأقسام */
.store-header .ms-nav {
  grid-area: nav; display: flex !important; align-items: center; justify-content: center;
  min-width: 0; width: 100%; text-align: center;
  overflow: visible; padding: 5px 2px;
}
.store-header .ms-nav > * {
  display: block !important; width: 100% !important; min-width: 0 !important;
  max-width: 100% !important; margin: 0 auto !important;
}
.store-header .ms-nav custom-main-menu > ul,
.store-header .ms-nav custom-main-menu > nav > ul,
.store-header .ms-nav nav.main-menu > ul,
.store-header .ms-nav ul.main-menu,
.store-header .ms-nav > ul {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
  align-items: center !important; justify-content: center !important;
  gap: 7px 15px !important;
  margin: 0 auto !important; padding: 0 !important;
  width: 100% !important;
}
.store-header .ms-nav li { max-width: 100%; }
.store-header .ms-nav a {
  color: var(--ms-white) !important; font-size: 12px !important;
  line-height: 1.8; font-weight: 650; white-space: nowrap;
  transition: color .25s ease, text-shadow .25s ease;
}
.store-header .ms-nav a:hover, .store-header .ms-nav a:focus-visible {
  color: var(--ms-yellow) !important; text-shadow: 0 0 12px rgba(255,218,23,.28);
}

/* يسار الهيدر: البحث بجانب الحساب ثم السلة ثم العملة */
.store-header .ms-actions {
  grid-area: actions; display: flex !important; flex-direction: row !important;
  align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap;
}
.store-header .ms-action {
  display: inline-flex !important; position: relative; align-items: center;
  justify-content: center; flex: 0 0 auto; min-width: 41px; min-height: 42px;
  padding: 5px 8px; isolation: isolate;
  color: var(--ms-cyan);
  background: linear-gradient(145deg,#16191c,#09090b);
  border: 1px solid rgba(18,199,236,.31); border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.store-header .ms-action::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  pointer-events: none; opacity: 0;
  background: linear-gradient(135deg,rgba(18,199,236,.14),rgba(255,218,23,.09),rgba(255,138,0,.1));
  transition: opacity .25s ease;
}
.store-header .ms-action:hover, .store-header .ms-action:focus-within {
  transform: translateY(-2px); border-color: var(--ms-cyan);
  box-shadow: 0 4px 15px rgba(18,199,236,.15);
}
.store-header .ms-action:hover::before, .store-header .ms-action:focus-within::before { opacity: 1; }
.store-header .ms-action.ms-cart-action {
  color: var(--ms-yellow); border-color: rgba(255,218,23,.30);
}
.store-header .ms-action.ms-currency-action {
  color: var(--ms-orange); border-color: rgba(255,138,0,.35);
}
.store-header .ms-action.ms-currency-action:hover {
  border-color: var(--ms-orange); box-shadow: 0 4px 15px rgba(255,138,0,.17);
}
.store-header .ms-action salla-user-menu,
.store-header .ms-action salla-cart-summary {
  display: inline-flex !important; min-height: 25px;
  align-items: center; justify-content: center; margin: 0 !important;
}
.store-header .ms-action .header-btn { margin: 0 !important; }
.store-header .ms-action i, .store-header .ms-action svg { color: inherit; }
.store-header button.ms-icon-button {
  display: inline-flex; flex-direction: row; gap: 5px; align-items: center;
  justify-content: center; padding: 0; margin: 0; background: transparent !important;
  border: 0; outline-offset: 4px; color: inherit !important;
  font-family: inherit; font-size: 12px; font-weight: 750;
  cursor: pointer; min-height: 29px;
}
.store-header .ms-icon-button svg { width: 21px; height: 21px; flex-shrink: 0; }
.store-header .ms-currency-label { direction: ltr; unicode-bidi: isolate; }

/* تظهر خانة البحث عند الضغط على أيقونة المكبّر، دون أخذ مساحة دائمة */
.store-header .ms-search-panel[hidden] { display: none !important; }
.store-header .ms-search-panel {
  display: block !important; position: absolute; left: 0; top: calc(100% + 2px);
  width: min(560px, calc(100vw - 34px)); max-width: 100%; z-index: 150;
  padding: 2px; border-radius: 15px;
  background: linear-gradient(115deg,var(--ms-cyan),var(--ms-blue),var(--ms-yellow),var(--ms-orange),var(--ms-cyan));
  background-size: 280% 280%; animation: ms-border-flow 8s ease infinite;
  box-shadow: 0 10px 34px rgba(0,0,0,.65),0 0 16px rgba(18,199,236,.2);
}
.store-header .ms-search, .store-header .ms-search > *,
.store-header .ms-search .header-search,
.store-header .ms-search salla-search, .store-header .ms-search form {
  display: block !important; min-width: 0; width: 100% !important;
  max-width: 100% !important;
}
.store-header .ms-search > *, .store-header .ms-search .header-search {
  background: var(--ms-panel) !important; margin: 0 !important;
  border: 0 !important; border-radius: 13px !important;
}
.store-header .ms-search input {
  background: var(--ms-panel) !important; color: var(--ms-white) !important;
  border: 0 !important; box-shadow: none !important; min-height: 45px;
}
.store-header .ms-search input::placeholder { color: #a3aab5 !important; }
.store-header .ms-search-open .ms-search-action {
  border-color: var(--ms-yellow); box-shadow: 0 0 18px rgba(255,218,23,.14);
}

/* توهج بسيط رفيع أسفل الهيدر، دون شريط إضافي */
.store-header .ms-layout::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: linear-gradient(90deg,transparent,var(--ms-cyan),var(--ms-blue),var(--ms-yellow),var(--ms-orange),transparent);
  opacity: .55; pointer-events: none;
}
@media (min-width: 992px) {
  .store-header .ms-brand .mburger, .store-header .ms-brand .menu-trigger {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .store-header .ms-layout { padding: 7px 0; }
  .store-header .ms-top {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: 'brand actions';
    gap: 6px; min-height: 57px;
  }
  .store-header .ms-brand img { max-width: 76px !important; max-height: 48px !important; }
  .store-header .ms-brand .navbar-brand,
  .store-header .ms-brand [data-testid="store-header-logo"] {
    max-width: 84px !important; height: 52px !important;
  }
  .store-header .ms-nav { display: none !important; }
  .store-header .ms-actions { gap: 5px; }
  .store-header .ms-action { min-width: 32px; min-height: 36px; border-radius: 9px; padding: 4px 6px; }
  .store-header .ms-icon-button svg { width: 18px; height: 18px; }
  .store-header .ms-currency-label { font-size: 10px; }
  .store-header .ms-search-panel { left: 0; right: 0; width: 100%; max-width: 100%; }
}
/* على الجوال الصغير نفصل سطر الأيقونات لتبقى صورة الشعار كاملة */
@media (max-width: 600px) {
  .store-header .ms-top {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: 'brand' 'actions';
    row-gap: 7px;
  }
  .store-header .ms-brand { justify-content: flex-start; }
  .store-header .ms-actions { justify-content: center; }
  .store-header .ms-search-panel { top: calc(100% + 2px); }
}
@media (max-width: 390px) {
  .store-header .ms-actions { gap: 4px; }
  .store-header .ms-action { min-width: 29px; padding: 4px; }
  .store-header .ms-brand img { max-width: 65px !important; }
}
@keyframes ms-border-flow {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .store-header .ms-search-panel { animation: none; }
  .store-header .ms-action { transition: none; }
  .store-header .ms-action:hover { transform: none; }
}



/* إخفاء زر العملات فقط - منصور ستور */
.store-header .ms-currency-action,
.store-header .ms-open-currency {
    display: none !important;
}



/* منصور ستور - توحيد الشعار والأيقونات في الجوال فقط */

@media (max-width: 600px) {

  .store-header .ms-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    grid-template-areas: "brand actions" !important;
    align-items: center !important;
    column-gap: 6px !important;
    row-gap: 0 !important;
  }

  /* الشعار والقائمة على اليمين */
  .store-header .ms-brand {
    grid-area: brand !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    gap: 5px !important;
  }

  /* الأيقونات على اليسار بنفس السطر */
  .store-header .ms-actions {
    grid-area: actions !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  .store-header .ms-actions .ms-action {
    flex-shrink: 0 !important;
  }
}

/* ضبط المقاسات للشاشات الصغيرة جدًا */
@media (max-width: 390px) {
  .store-header .ms-brand img {
    max-width: 55px !important;
  }

  .store-header .ms-actions {
    gap: 3px !important;
  }

  .store-header .ms-action {
    padding: 3px !important;
    min-width: 27px !important;
  }
}



/* منصور ستور - توحيد حجم البحث بالكمبيوتر والجوال */

.store-header .ms-actions .ms-search-action {
    width: 48px !important;
    height: 46px !important;
    min-width: 48px !important;
    min-height: 46px !important;
    padding: 0 !important;
    flex: 0 0 48px !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* توحيد حجم أيقونة العدسة */
.store-header .ms-search-action svg {
    width: 21px !important;
    height: 21px !important;
}



/* ==========================================
   MANSOUR STORE
   ضبط المسافة بين الهيدر وأول سلايدر
   الكمبيوتر + الجوال
========================================== */


/* ==========================================
   1 - الكمبيوتر
========================================== */

@media (min-width: 768px) {

  /* إزالة الفراغ أعلى المحتوى */
  body.index #main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* إزالة المسافة الزائدة من أول عنصر */
  body.index #main-content > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* ضبط السلايدر */
  body.index #main-content .s-block--photos-slider {
    margin-top: 10px !important;
    padding-top: 0 !important;
  }

  /* الحاوية الداخلية */
  body.index #main-content .s-block--photos-slider > .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* المحافظة على موضع السلايدر */
  body.index #main-content
  .s-block--photos-slider salla-slider.photos-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* أول قسم في الصفحة */
  body.index #main-content > .s-block:first-child {
    margin-top: 10px !important;
    padding-top: 0 !important;
  }

}


/* ==========================================
   2 - الجوال
========================================== */

@media (max-width: 767px) {

  /* تقليل ارتفاع الهيدر */
  body.index .store-header.ms-header-ready #mainnav {
    height: 90px !important;
    min-height: 0 !important;
    padding-top: 9px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* إزالة الفراغات الداخلية */
  body.index .store-header.ms-header-ready #mainnav > .inner,
  body.index .store-header.ms-header-ready #mainnav .container {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* المحافظة على ترتيب الشعار والأيقونات */
  body.index .store-header.ms-header-ready .ms-layout {
    margin: 0 !important;
    padding: 0 0 7px !important;
  }

  body.index .store-header.ms-header-ready .ms-top {
    min-height: 64px !important;
    margin: 0 !important;
  }

  /* إزالة الفراغ أعلى المحتوى */
  body.index #main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* تقريب أول سلايدر من الهيدر */
  body.index #main-content .s-block--photos-slider {
    margin-top: 8px !important;
    padding-top: 0 !important;
  }

}



/* منصور ستور - تصغير دوائر السلايدر بالجوال فقط */

@media (max-width: 767px) {

  body.index .swiper-pagination-bullets
  .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    padding: 0 !important;
    margin: 0 5px !important;
    border-radius: 50% !important;
    flex: 0 0 12px !important;
  }

}


/* منصور ستور - تقريب دوائر السلايدر من الصور في الجوال */

@media (max-width: 767px) {

  body.index .s-block--photos-slider .swiper-pagination,
  body.index salla-slider.photos-slider .swiper-pagination {
    transform: translateY(-12px) !important;
  }

}




/* =====================================
   MANSOUR STORE
   التحكم بحجم الشعار
   الكمبيوتر والجوال
===================================== */

/* الكمبيوتر */
@media (min-width: 992px) {

  .store-header .ms-top {
    grid-template-columns:
      125px minmax(0, 1fr) auto !important;
  }

  .store-header .ms-brand img {
    width: 130px !important;
    max-width: 130px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .store-header .ms-brand .navbar-brand,
  .store-header .ms-brand .header-logo,
  .store-header .ms-brand .site-logo {
    max-width: none !important;
    height: auto !important;
  }
}

/* الجوال */
@media (max-width: 991px) {

  .store-header .ms-brand img {
    width: 100px !important;
    max-width: 100px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .store-header .ms-brand .navbar-brand,
  .store-header .ms-brand .header-logo,
  .store-header .ms-brand .site-logo {
    max-width: none !important;
    height: auto !important;
  }
}



/* منصور ستور - توسيط الأقسام عموديًا مع الشعار والأيقونات */
/* الكمبيوتر فقط */

@media (min-width: 992px) {

  .store-header .ms-top .ms-nav {
    align-self: center !important;
    transform: translateY(14px) !important;
  }

}



/* ==========================================
   MANSOUR STORE
   تقليل المسافات بين أقسام الصفحة الرئيسية
   الكمبيوتر + الجوال
========================================== */

/* الكمبيوتر */
@media (min-width: 768px) {

  body.index #main-content .s-block:not(.s-block--photos-slider) {
    margin-top: 30px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

}

/* الجوال */
@media (max-width: 767px) {

  body.index #main-content .s-block:not(.s-block--photos-slider) {
    margin-top: 13px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

}






/* ==========================================
   MANSOUR STORE
   تقريب بلوك الألعاب من أيقونات الأقسام
   الجوال فقط
========================================== */

@media (max-width: 767px) {

  body.index #main-content
  salla-game-cards-grid-wqfdqr {
    display: block !important;
    margin-top: -60px !important;
  }

}



/* ========================================================
   MANSOUR STORE | Footer v1
   يضاف في نهاية CSS الحالي - لا يعدل الهيدر أو صفحات المنتجات.
   يعمل فقط عند نجاح التعرف على أعمدة الفوتر بواسطة JS.
   ======================================================== */

footer.store-footer.ms-footer-ready {
  background: #1d1b1c !important;
  color: #f8f8f8 !important;
  border-top: 1px solid rgba(18, 199, 236, .20);
}

footer.store-footer.ms-footer-ready .store-footer__inner {
  background: transparent !important;
  padding-top: 26px !important;
  padding-bottom: 14px !important;
}

footer.store-footer.ms-footer-ready .ms-footer-grid {
  display: grid !important;
  direction: rtl !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) !important;
  grid-template-areas:
    'links brand contacts'
    'links social contacts' !important;
  grid-template-rows: auto min-content !important;
  column-gap: clamp(16px, 3.8vw, 64px) !important;
  row-gap: 10px !important;
  align-items: start !important;
  max-width: 1250px !important;
  margin: 0 auto !important;
  padding: 0 25px !important;
}

footer.store-footer.ms-footer-ready .ms-footer-brand {
  grid-area: brand !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  text-align: center !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

footer.store-footer.ms-footer-ready .ms-footer-brand .ms-footer-logo {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-decoration: none !important;
  margin: 0 auto 2px !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
}

footer.store-footer.ms-footer-ready .ms-footer-brand .ms-footer-logo img {
  display: block !important;
  width: 170px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 95px !important;
  object-fit: contain !important;
}

footer.store-footer.ms-footer-ready .ms-footer-hidden-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

footer.store-footer.ms-footer-ready .ms-footer-brand p,
footer.store-footer.ms-footer-ready .ms-footer-brand .leading-6,
footer.store-footer.ms-footer-ready .ms-footer-brand .max-w-sm {
  color: #e7e7e7 !important;
  text-align: center !important;
  line-height: 1.85 !important;
  margin: 0 auto !important;
  max-width: 470px !important;
}

/* الوثيقة والشارات الأصلية للمتجر، بعد الوصف وقبل أيقونات التواصل */
footer.store-footer.ms-footer-ready .ms-footer-brand salla-trust-badges,
footer.store-footer.ms-footer-ready .ms-footer-brand .flex.gap-4 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin: 4px auto 0 !important;
}

footer.store-footer.ms-footer-ready .ms-footer-links {
  grid-area: links !important;
  justify-self: center !important;
  text-align: right !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer.store-footer.ms-footer-ready .ms-footer-contacts {
  grid-area: contacts !important;
  justify-self: center !important;
  text-align: right !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer.store-footer.ms-footer-ready .ms-footer-links h3,
footer.store-footer.ms-footer-ready .ms-footer-links h4,
footer.store-footer.ms-footer-ready .ms-footer-contacts h3,
footer.store-footer.ms-footer-ready .ms-footer-contacts h4 {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
}

footer.store-footer.ms-footer-ready .ms-footer-links a,
footer.store-footer.ms-footer-ready .ms-footer-contacts a {
  color: #f4f4f4 !important;
  transition: color .22s ease !important;
}
footer.store-footer.ms-footer-ready .ms-footer-links a:hover,
footer.store-footer.ms-footer-ready .ms-footer-contacts a:hover {
  color: #12c7ec !important;
}

footer.store-footer.ms-footer-ready .ms-footer-social {
  grid-area: social !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
}
footer.store-footer.ms-footer-ready .ms-footer-social salla-social {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

/* إلغاء نسخة التواصل الاجتماعية المكررة بعد نقل النسخة الأصلية */
footer.store-footer.ms-footer-ready .ms-footer-contacts .contact-social {
  display: none !important;
}

footer.store-footer.ms-footer-ready .ms-footer-extra {
  grid-column: 3 !important;
  grid-row: 3 !important;
  justify-self: center !important;
}

/* السطر السفلي: الحقوق يمين، شعارات الدفع يسار */
footer.store-footer.ms-footer-ready .ms-footer-bottom {
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
  max-width: 1250px !important;
  margin: 10px auto 0 !important;
  padding: 18px 25px !important;
  text-align: right !important;
}
footer.store-footer.ms-footer-ready .ms-footer-bottom .copyright-text,
footer.store-footer.ms-footer-ready .ms-footer-bottom .ms-footer-copyright {
  order: 1 !important;
  margin: 0 !important;
  color: #ddd !important;
  font-size: 13px !important;
  text-align: right !important;
}
footer.store-footer.ms-footer-ready .ms-footer-bottom salla-payments,
footer.store-footer.ms-footer-ready .ms-footer-bottom .ms-footer-payments {
  order: 2 !important;
  margin: 0 !important;
}

/* الجوال: شعار، وصف، وثيقة، روابط، تواصل، تواصل اجتماعي، حقوق، دفع */
@media (max-width: 767px) {
  footer.store-footer.ms-footer-ready .store-footer__inner {
    padding-top: 22px !important;
    padding-bottom: 6px !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      'brand'
      'links'
      'contacts'
      'social'
      'extra' !important;
    grid-template-rows: auto !important;
    gap: 22px !important;
    padding: 0 18px !important;
    text-align: center !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-brand .ms-footer-logo img {
    width: 130px !important;
    max-height: 84px !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-brand,
  footer.store-footer.ms-footer-ready .ms-footer-links,
  footer.store-footer.ms-footer-ready .ms-footer-contacts {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-links > *,
  footer.store-footer.ms-footer-ready .ms-footer-contacts > * {
    text-align: center !important;
    margin-inline: auto !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-links ul,
  footer.store-footer.ms-footer-ready .ms-footer-contacts ul {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    list-style: none !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-social {
    width: 100% !important;
    justify-self: center !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-extra {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
    margin-top: 6px !important;
    padding: 19px 12px 22px !important;
  }
  footer.store-footer.ms-footer-ready .ms-footer-bottom .copyright-text,
  footer.store-footer.ms-footer-ready .ms-footer-bottom .ms-footer-copyright,
  footer.store-footer.ms-footer-ready .ms-footer-bottom salla-payments,
  footer.store-footer.ms-footer-ready .ms-footer-bottom .ms-footer-payments {
    text-align: center !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }
}



/* ==========================================
   MANSOUR STORE
   FOOTER EXTRA TUNING
   ========================================== */

/* الخلفية العامة للفوتر */
.store-footer,
footer.store-footer,
.ms-footer-wrap {
  position: relative !important;
  background:
    radial-gradient(circle at 15% 20%, rgba(18, 199, 236, 0.07) 0, transparent 22%),
    radial-gradient(circle at 85% 30%, rgba(255, 218, 23, 0.06) 0, transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(255, 138, 0, 0.05) 0, transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005)),
    #010101 !important;
  overflow: hidden !important;
}

/* باترن خفيف جدا */
.store-footer::before,
footer.store-footer::before,
.ms-footer-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.12;
  pointer-events: none;
}

/* تقويسة وخط إضاءة أعلى الفوتر */
.store-footer::after,
footer.store-footer::after,
.ms-footer-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(92%, 1280px);
  height: 18px;
  transform: translateX(-50%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(90deg,
      rgba(18,199,236,0) 0%,
      rgba(18,199,236,0.95) 18%,
      rgba(255,218,23,1) 50%,
      rgba(255,138,0,0.95) 82%,
      rgba(255,138,0,0) 100%);
  box-shadow:
    0 0 14px rgba(18,199,236,0.15),
    0 0 16px rgba(255,218,23,0.12),
    0 0 14px rgba(255,138,0,0.12);
  opacity: 0.9;
  pointer-events: none;
}

/* =========================
   عناوين أقسام الفوتر
   ========================= */
.store-footer h3,
.store-footer .ms-footer-title,
footer.store-footer h3,
footer.store-footer .ms-footer-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #fff !important;
  font-weight: 800 !important;
  position: relative;
}

/* الخط الأصفر بجانب العنوان */
.store-footer h3::after,
.store-footer .ms-footer-title::after,
footer.store-footer h3::after,
footer.store-footer .ms-footer-title::after {
  content: "";
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #12c7ec 0%, #ffda17 55%, #ff8a00 100%);
  box-shadow: 0 0 8px rgba(255, 218, 23, 0.35);
}

/* =========================
   الكمبيوتر
   ========================= */
@media (min-width: 992px) {

  /* توسيط روابط مهمة مع العنوان */
  .store-footer .ms-footer-links,
  footer.store-footer .ms-footer-links {
    text-align: center !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .store-footer .ms-footer-links ul,
  footer.store-footer .ms-footer-links ul {
    padding: 0 !important;
    margin: 14px auto 0 !important;
    list-style: none !important;
    text-align: center !important;
  }

  .store-footer .ms-footer-links li,
  footer.store-footer .ms-footer-links li {
    margin: 0 0 12px !important;
    text-align: center !important;
  }

  /* محتوى التواصل */
  .store-footer .ms-footer-contact,
  footer.store-footer .ms-footer-contact {
    text-align: center !important;
    align-items: center !important;
  }

  .store-footer .ms-footer-contact a,
  .store-footer .ms-footer-contact li,
  footer.store-footer .ms-footer-contact a,
  footer.store-footer .ms-footer-contact li {
    justify-content: center !important;
    text-align: center !important;
  }

  /* أيقونات التواصل تحت تواصل معنا */
  .store-footer .ms-footer-social,
  footer.store-footer .ms-footer-social {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 14px !important;
  }

  /* مربعات أيقونات التواصل */
  .store-footer .ms-footer-social a,
  footer.store-footer .ms-footer-social a {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    background: rgba(255,255,255,0.03) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow:
      inset 0 0 0 1px rgba(18,199,236,0.06),
      0 0 10px rgba(0,0,0,0.12);
    transition: 0.25s ease;
  }

  .store-footer .ms-footer-social a:hover,
  footer.store-footer .ms-footer-social a:hover {
    border-color: rgba(255,218,23,0.45) !important;
    box-shadow:
      0 0 12px rgba(255,218,23,0.12),
      0 0 12px rgba(18,199,236,0.08);
    transform: translateY(-2px);
  }

  /* السطر السفلي */
  .store-footer .ms-footer-bottom,
  footer.store-footer .ms-footer-bottom {
    align-items: center !important;
  }

  .store-footer .ms-footer-bottom .ms-footer-copy,
  footer.store-footer .ms-footer-bottom .ms-footer-copy {
    text-align: right !important;
  }

  .store-footer .ms-footer-bottom .ms-footer-payments,
  footer.store-footer .ms-footer-bottom .ms-footer-payments {
    text-align: left !important;
  }
}

/* =========================
   الجوال
   ========================= */
@media (max-width: 991px) {

  /* كل شيء توسيط */
  .store-footer,
  footer.store-footer {
    text-align: center !important;
  }

  .store-footer .ms-footer-brand,
  .store-footer .ms-footer-links,
  .store-footer .ms-footer-contact,
  .store-footer .ms-footer-social,
  .store-footer .ms-footer-bottom,
  footer.store-footer .ms-footer-brand,
  footer.store-footer .ms-footer-links,
  footer.store-footer .ms-footer-contact,
  footer.store-footer .ms-footer-social,
  footer.store-footer .ms-footer-bottom {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* توسيط أرقام التواصل */
  .store-footer .ms-footer-contact ul,
  .store-footer .ms-footer-contact li,
  .store-footer .ms-footer-contact a,
  footer.store-footer .ms-footer-contact ul,
  footer.store-footer .ms-footer-contact li,
  footer.store-footer .ms-footer-contact a {
    text-align: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* تقريب وتوسيط الخط الأصفر عند العناوين */
  .store-footer h3,
  .store-footer .ms-footer-title,
  footer.store-footer h3,
  footer.store-footer .ms-footer-title {
    gap: 7px !important;
  }

  .store-footer h3::after,
  .store-footer .ms-footer-title::after,
  footer.store-footer h3::after,
  footer.store-footer .ms-footer-title::after {
    width: 2px !important;
    height: 18px !important;
  }

  /* توسيط الروابط */
  .store-footer .ms-footer-links ul,
  footer.store-footer .ms-footer-links ul {
    text-align: center !important;
    padding: 0 !important;
    margin: 12px auto 0 !important;
  }

  .store-footer .ms-footer-links li,
  footer.store-footer .ms-footer-links li {
    text-align: center !important;
    margin: 0 0 10px !important;
  }

  /* أيقونات التواصل بشكل مربع */
  .store-footer .ms-footer-social,
  footer.store-footer .ms-footer-social {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 12px !important;
  }

  .store-footer .ms-footer-social a,
  footer.store-footer .ms-footer-social a {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    background: rgba(255,255,255,0.03) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* السطر السفلي */
  .store-footer .ms-footer-bottom,
  footer.store-footer .ms-footer-bottom {
    text-align: center !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .store-footer .ms-footer-copy,
  .store-footer .ms-footer-payments,
  footer.store-footer .ms-footer-copy,
  footer.store-footer .ms-footer-payments {
    text-align: center !important;
    justify-content: center !important;
  }
}



/* ==========================================
   MANSOUR STORE
   تنحيف إضاءة الفوتر + توسيط أرقام التواصل
========================================== */

/* 1 - خط إضاءة رفيع جدًا في الكمبيوتر والجوال */

.store-footer::after,
footer.store-footer::after,
.ms-footer-wrap::after {
    height: 2px !important;
    max-height: 2px !important;
    border: none !important;
    border-radius: 50px !important;

    background: linear-gradient(
        90deg,
        transparent 0%,
        #12C7EC 25%,
        #FFDA17 60%,
        #FF8A00 85%,
        transparent 100%
    ) !important;

    box-shadow:
        0 0 4px rgba(18,199,236,0.25),
        0 0 5px rgba(255,218,23,0.20) !important;
}

/* 2 - توسيط أرقام التواصل بالجوال فقط */

@media (max-width: 991px) {

    .store-footer .ms-footer-contact,
    footer.store-footer .ms-footer-contact {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* قائمة أرقام التواصل */
    .store-footer .ms-footer-contact ul {
        width: fit-content !important;
        max-width: 100% !important;
        margin: 12px auto 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        list-style: none !important;
    }

    /* كل رقم مع أيقونته */
    .store-footer .ms-footer-contact li,
    .store-footer .ms-footer-contact li a {
        width: fit-content !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .store-footer .ms-footer-contact li {
        margin-bottom: 12px !important;
    }

}



/* ==========================================
   MANSOUR STORE
   توسيط أرقام التواصل والواتساب
   الجوال فقط
========================================== */

@media (max-width: 767px) {

  /* توسيط قسم تواصل معنا */
  .store-footer .ms-footer-contact {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* توسيط حاويات أرقام التواصل */
  .store-footer #contact-slot,
  .store-footer .ms-footer-contact div:has(> a.s-contacts-item) {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* الرقم والأيقونة في منتصف الفوتر */
  .store-footer a.s-contacts-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 12px !important;
    padding: 0 !important;
    float: none !important;
    text-align: center !important;
    gap: 8px !important;
  }

  /* منع أي محاذاة جانبية للأرقام */
  .store-footer .s-contacts-item .unicode {
    text-align: center !important;
  }

}



/* منصور ستور - تقليل المسافة بين أرقام التواصل */
/* الجوال فقط */

@media (max-width: 767px) {

  .store-footer #contact-slot {
    row-gap: 4px !important;
    gap: 4px !important;
  }

  .store-footer .ms-footer-contact a.s-contacts-item {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .store-footer #contact-slot > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

}


/* ==========================================
   MANSOUR STORE
   Footer background + subtle game pattern
========================================== */

.store-footer,
footer.store-footer,
.ms-footer-wrap {
  position: relative !important;
  background: #010101 !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

/* طبقة الباترن */
.store-footer::before,
footer.store-footer::before,
.ms-footer-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* ضع هنا رابط صورة الباترن */
  background-image: url("PUT-YOUR-PATTERN-IMAGE-URL-HERE");
  background-repeat: repeat;
  background-position: center;
  background-size: 420px auto;

  opacity: 0.08; /* خفيف جدًا */
  filter: grayscale(100%) brightness(0.55) contrast(1.05);
}

/* نخلي محتوى الفوتر فوق الباترن */
.store-footer > *,
footer.store-footer > *,
.ms-footer-wrap > * {
  position: relative;
  z-index: 1;
}



/* ==========================================
   MANSOUR STORE
   Footer Background Fix
   الكمبيوتر + الجوال
========================================== */

/* خلفية الفوتر الرئيسية */
footer.store-footer,
footer.store-footer.ms-footer-ready {
    background: #010101 !important;
    background-color: #010101 !important;
    background-image: none !important;
}

/* الحاوية الداخلية للفوتر */
footer.store-footer .store-footer__inner {
    background: #010101 !important;
    background-color: #010101 !important;
    background-image: none !important;
}

/* الجزء السفلي للحقوق وشعارات الدفع */
footer.store-footer .ms-footer-bottom,
footer.store-footer .store-footer__bottom {
    background-color: #010101 !important;
}



/* ==========================================
   MANSOUR STORE
   GAMING FOOTER BACKGROUND
   الكمبيوتر + الجوال
========================================== */

/* خلفية الفوتر */
footer.store-footer,
footer.store-footer.ms-footer-ready {
    background-color: #010101 !important;
}

/* الحاوية الداخلية */
footer.store-footer .store-footer__inner {
    --ms-footer-pattern: url("https://cdn.files.salla.network/homepage/1548179547/545b578c-00ee-49b5-87aa-1d18b884a30e-original.webp");

    position: relative !important;
    isolation: isolate !important;
    background: #010101 !important;
}

/* باترن الألعاب */
footer.store-footer .store-footer__inner::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;

    background-image: var(--ms-footer-pattern) !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: 100% auto !important;

    opacity: 0.30 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* المحافظة على وضوح محتوى الفوتر */
footer.store-footer .store-footer__inner > * {
    position: relative !important;
    z-index: 1 !important;
}

/* ==========================================
   تخصيص الجوال
========================================== */

@media (max-width: 767px) {

    footer.store-footer .store-footer__inner::before {
        background-image:
            var(--ms-footer-pattern),
            var(--ms-footer-pattern) !important;

        background-size:
            760px auto,
            760px auto !important;

        background-position:
            left bottom,
            right bottom !important;

        background-repeat: no-repeat !important;

        opacity: 0.35 !important;
    }

}






/* =====================================================
   MANSOUR STORE | HOME SPLASH v2 (CSS ONLY)
   IMPORTANT: For splash to appear BEFORE the first visible
   frame, include this CSS in the initial HTML <head>.
   Pasting in late-loading custom CSS may still cause a flash.
   Remove any previous splash code before using this.
===================================================== */

:root {
  /* Replace with public HTTPS URLs to the actual assets */
  --ms-splash-logo: url("https://cdn.files.salla.network/homepage/1548179547/eda2cbf3-1fde-471f-bc7f-ec5450467927-original.webp");
  --ms-splash-pattern: url("https://cdn.files.salla.network/homepage/1548179547/545b578c-00ee-49b5-87aa-1d18b884a30e-original.webp");
}

/* Only the homepage, not products, categories or cart */
body.index::before,
body.index::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  animation: msSplashExit 3.8s ease forwards;
}

/* Black cover + softly rising decorative gaming pattern */
body.index::before {
  z-index: 2147483645;
  background-color: #010101;
  background-image:
    linear-gradient(to bottom, rgba(1,1,1,.22), rgba(1,1,1,.47)),
    var(--ms-splash-pattern);
  background-repeat: no-repeat, no-repeat;
  background-size: cover, 100% auto;
  background-position: center, center bottom;
  animation:
    msSplashExit 3.8s ease forwards,
    msPatternRise 3.5s ease-out both;
}

/* Centered shop logo, separately animated above the pattern */
body.index::after {
  z-index: 2147483646;
  background-image: var(--ms-splash-logo);
  background-repeat: no-repeat;
  background-size: 230px auto;
  background-position: center center;
  animation:
    msSplashExit 3.8s ease forwards,
    msLogoAppear 1s ease-out both;
}

/* Show immediately, hold, then softly fade out */
@keyframes msSplashExit {
  0%, 81% { opacity: 1; visibility: visible; }
  100%    { opacity: 0; visibility: hidden; }
}

@keyframes msPatternRise {
  from { background-position: center, center calc(100% + 24px); }
  to   { background-position: center, center bottom; }
}

@keyframes msLogoAppear {
  from { transform: scale(.92); }
  to   { transform: scale(1); }
}

@media (max-width: 767px) {
  body.index::before {
    background-image:
      linear-gradient(to bottom, rgba(1,1,1,.28), rgba(1,1,1,.53)),
      var(--ms-splash-pattern),
      var(--ms-splash-pattern);
    background-repeat: no-repeat;
    background-size: cover, auto 43vh, auto 43vh;
    background-position: center, left bottom, right bottom;
    animation:
      msSplashExit 3.8s ease forwards,
      msPatternRiseMobile 3.5s ease-out both;
  }
  body.index::after {
    background-size: 170px auto;
  }
}

@keyframes msPatternRiseMobile {
  from { background-position: center, left calc(100% + 18px), right calc(100% + 18px); }
  to   { background-position: center, left bottom, right bottom; }
}

@media (prefers-reduced-motion: reduce) {
  body.index::before,
  body.index::after {
    animation: msSplashExit 3.8s ease forwards;
  }
}







/* ==========================================
   MANSOUR STORE
   خلفية بلوك الأكثر مبيعاً
   الكمبيوتر والجوال
========================================== */

section.s-block--enhanced-products-slider.s-block--full-bg {
    background: #010101 !important;
    background-color: #010101 !important;
    background-image: none !important;
}

/* خلفية الحاوية الداخلية */
section.s-block--enhanced-products-slider
> .block-inner {
    background-color: transparent !important;
    background-image: none !important;
}







/* ==========================================
   MANSOUR STORE
   تقريب بنر لايف شات من البطاقات
   الكمبيوتر + الجوال
========================================== */

/* إزالة الفراغ أسفل البنر */
body.index #main-content
section.s-block--fixed-banner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* الكمبيوتر */
@media (min-width: 768px) {

  body.index #main-content
  section.s-block--fixed-banner
  + section.s-block--bundle-live-cards-grid {
      margin-top: 2px !important;
      padding-top: 0 !important;
  }

}

/* الجوال */
@media (max-width: 767px) {

  body.index #main-content
  section.s-block--fixed-banner
  + section.s-block--bundle-live-cards-grid {
      margin-top: 2px !important;
      padding-top: 0 !important;
  }

}



/* ==========================================
   MANSOUR STORE
   جميع أقسام الهيدر في سطر واحد
   الكمبيوتر فقط
========================================== */

@media (min-width: 992px) {

  /* تقليل الفراغ بين أجزاء الهيدر */
  .store-header.ms-header-ready .ms-top {
    column-gap: 8px !important;
  }

  /* منطقة الأقسام */
  .store-header.ms-header-ready .ms-nav {
    min-width: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* منع نزول الأقسام لسطر ثاني */
  .store-header .ms-nav custom-main-menu > ul,
  .store-header .ms-nav custom-main-menu > nav > ul,
  .store-header .ms-nav nav.main-menu > ul,
  .store-header .ms-nav ul.main-menu,
  .store-header .ms-nav > ul {

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;
    width: 100% !important;
    white-space: nowrap !important;
  }

  /* منع انكماش الأقسام */
  .store-header .ms-nav li {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* تناسق حجم أسماء الأقسام */
  .store-header .ms-nav a {
    font-size: 11px !important;
    white-space: nowrap !important;
  }

}









/* ==========================================
   MANSOUR STORE
   إخفاء سعر السلة في الجوال فقط
   مع إبقاء الأيقونة وعداد المنتجات
========================================== */

@media (max-width: 991px) {

  /* إخفاء السعر والنص فقط */
  .store-header salla-cart-summary
  .s-cart-summary-content {
    display: none !important;
  }

  /* توحيد حجم مربع السلة */
  .store-header salla-cart-summary {
    display: inline-flex !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex: 0 0 48px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* توسيط أيقونة السلة */
  .store-header salla-cart-summary
  .s-cart-summary-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  /* إبقاء عدد المنتجات ظاهرًا */
  .store-header salla-cart-summary
  .s-cart-summary-count {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
  }

}



/* ==========================================
   MANSOUR STORE
   توحيد حجم السلة مع الحساب والبحث
   الجوال فقط
========================================== */

@media (max-width: 991px) {

  /* مربع السلة الخارجي */
  .store-header salla-cart-summary {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex: 0 0 46px !important;

    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* توحيد مساحة الأيقونة الداخلية */
  .store-header salla-cart-summary
  .s-cart-summary-wrapper {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* إزالة المسافة الزائدة من الحاوية المباشرة */
  .store-header .ms-top
  :is(div, a, button):has(> salla-cart-summary) {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    flex: 0 0 46px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

}


/* ==========================================
   MANSOUR STORE
   توسيط دائرة أيقونة السلة داخل المربع
   الجوال فقط
========================================== */

@media (max-width: 991px) {

  /* مربع السلة */
  .store-header salla-cart-summary,
  .store-header .cart-entry,
  .store-header .cart-btn {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* الدائرة الداخلية لأيقونة السلة */
  .store-header salla-cart-summary .s-cart-summary-wrapper,
  .store-header salla-cart-summary .s-cart-summary-icon,
  .store-header salla-cart-summary .icon-bg,
  .store-header salla-cart-summary .btn--circle {
    margin: 0 auto !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* تثبيت أيقونة السلة نفسها */
  .store-header salla-cart-summary i,
  .store-header salla-cart-summary svg {
    margin: 0 !important;
  }

}






/* ==========================================
   MANSOUR STORE
   ACCOUNT ICON - DESKTOP & MOBILE
   توحيد حجم الحساب مع البحث والسلة
========================================== */

/* مقاس مربع الحساب */
.store-header .ms-account,
.store-header .ms-account salla-user-menu {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;

    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;

    flex: 0 0 46px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* مربع زر الحساب */
.store-header .s-user-menu-trigger-avatar-only,
.store-header .s-user-menu-trigger {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* توسيط حاوية الصورة */
.store-header .s-user-menu-avatar-wrap {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto !important;
}

/* حجم الصورة الشخصية بعد تسجيل الدخول */
.store-header img.s-user-menu-trigger-avatar {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;

    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* أيقونة الحساب قبل تسجيل الدخول */
.store-header .s-user-menu-trigger-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
}




/* ==========================================
   MANSOUR STORE
   إصلاح تعارض حركة الحساب
   الجوال فقط
========================================== */

@media (max-width: 767px) {

  .store-header .ms-user-action,
  .store-header .ms-user-action:hover,
  .store-header .ms-user-action:focus-within {
    transform: none !important;
    isolation: auto !important;
  }

}





/* ==========================================
   MANSOUR STORE
   إخفاء قائمة حسابي من الفوتر فقط
   الكمبيوتر + الجوال
========================================== */

footer.store-footer .s-user-menu-dropdown,
footer.store-footer .s-user-menu-dropdown-list,
footer.store-footer salla-user-menu {
    display: none !important;
}

/* إخفاء قسم الحساب إذا نُقل إلى الفوتر */
footer.store-footer .ms-footer-account {
    display: none !important;
}


/* ==========================================
   MANSOUR STORE
   إخفاء القسم الإضافي من الفوتر
   الكمبيوتر والجوال
========================================== */

footer.store-footer.ms-footer-ready
.ms-footer-extra {
    display: none !important;
}