/* لون خلفية ونصوص الفوتر */
footer,
footer > div,
footer section,
.s-footer-basic-outer-wrapper,
.s-footer-basic-outer-wrapper > div {
  background-color: #FEF7EB !important;
}

footer, footer a, footer p, footer span, footer li,
.s-footer-basic-outer-wrapper,
.s-footer-basic-outer-wrapper * {
  color: #B07B4F !important;
}

/* لون خلفية الهيدر */
header, .s-header-main, .s-header-wrapper {
  background-color: #FEF7EB !important;
}
header .s-header-main-item, header a, header span, header svg {
  color: #B07B4F !important;
}

/* أرقام التواصل - صف أفقي */
.s-contacts-list-vertical {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
}

/* أيقونات الدفع - صف أفقي */
.s-payments-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
}

/* تحويل الأعمدة الثلاثة لعمود واحد متوسط */
.store-footer__inner .container.grid {
  grid-template-columns: 1fr !important;
  text-align: center !important;
  justify-items: center !important;
  gap: 24px !important;
}

.store-footer__inner .container.grid > div {
  grid-column: 1 / -1 !important;
}
/* ترتيب الأقسام: تواصل معنا فوق روابط مهمة */
.store-footer__inner .container.grid > div:nth-child(1) { order: 1; }
.store-footer__inner .container.grid > div:nth-child(3) { order: 2; }
.store-footer__inner .container.grid > div:nth-child(2) { order: 3; }
/* استبدال اسم المتجر النصي في الفوتر باللوجو */
.store-footer__inner .container.grid > div:first-child h3 {
  font-size: 0 !important;
  background-image: url('https://cdn.files.salla.network/theme/600271108/b840af39-ed57-4e91-9dda-661333265066_400x101.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
  width: 180px;
  height: 55px;
  margin-bottom: 0.75rem;
}
.store-footer__inner .container.grid > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.store-footer__inner .container.grid > div:first-child h3 {
  margin: 0 auto 1rem auto !important;
}
/* توسيط قائمة التصنيفات في الهيدر */
.mm-spn--open {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}
/* رقم الموديل فوق الوصف بس */
.container--product-details .main-content {
  display: flex !important;
  flex-direction: column !important;
}
.container--product-details .main-content > h1 { order: 1 !important; }
.container--product-details .main-content > div.whitespace-nowrap { order: 2 !important; }
.container--product-details .main-content > div[class*="grid-cols-3"] { order: 3 !important; }
.container--product-details .main-content > div.product__description { order: 4 !important; }
.container--product-details .main-content > div[class*="space-x-3"] { order: 5 !important; }
.container--product-details salla-cashback-banner { order: 6 !important; }
.container--product-details salla-installment { order: 7 !important; }
.container--product-details .main-content > form.product-form { order: 8 !important; }
/* ===== تقليل المساحات البيضاء في الفوتر ===== */
.store-footer__inner {
  padding-top: 24px !important;
  padding-bottom: 16px !important;
}
.store-footer__inner .container.grid {
  gap: 14px !important;
}
.store-footer__inner h3 {
  font-size: 14px !important;
  margin-bottom: 8px !important;
}
.store-footer__inner p {
  font-size: 12.5px !important;
  margin-bottom: 4px !important;
}
.s-contacts-list-vertical {
  gap: 10px !important;
  margin-bottom: 10px !important;
}
.s-payments-list {
  gap: 8px !important;
  margin-top: 8px !important;
}

/* ===== محاولة لجعل روابط "روابط مهمة" أفقية ===== */
salla-menu[data-testid="store-footer-menu"] {
  display: block !important;
}
salla-menu[data-testid="store-footer-menu"] ul,
salla-menu[data-testid="store-footer-menu"] .menu,
salla-menu[data-testid="store-footer-menu"] nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
}
salla-menu[data-testid="store-footer-menu"] li {
  margin: 0 !important;
}
/* إخفاء قائمة الفوتر الأصلية المعزولة (Shadow DOM) واستبدالها بروابط مخصصة */
salla-menu[data-testid="store-footer-menu"] {
  display: none !important;
}
/* Hide 2nd banner slide - used only to host desktop image */
#main-slider-0 .swiper-wrapper .swiper-slide:nth-child(2) {
  display: none !important;
}
#main-slider-0 .swiper-wrapper .swiper-slide .bg-cover {
  background-size: contain !important;
  background-color: #FEF7EB !important; /* your brand cream color fills empty space instead of black */
}