/* =========================
   ألوان عامة (الهوية)
   ========================= */
:root {
  --color-main: #49C1CD;
  --color-main-light: #55D7E2;
  --color-bg: #ffffff;
  --color-text: #101010;
  --color-text-soft: #565353;
  --color-border-soft: #e6f5f7;
  --color-sale: #bd1414;
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.06);
  --radius-lg: 22px;
  --radius-xl: 30px;
}

/* خلفية عامة هادئة */
body {
  background: radial-gradient(circle at top, #f4feff 0, #ffffff 55%);
}

/* =========================
   الهيدر / الشريط العلوي / البحث
   ========================= */

/* الشريط العلوي */
.top-navbar {
  background: linear-gradient(90deg, var(--color-main) 0%, var(--color-main-light) 100%) !important;
}
.top-navbar * {
  color: #fff !important;
}

/* الهيدر الرئيسي */
#mainnav {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* أيقونات المنيو / الحساب / السلة */
.sicon-menu::before,
.header-btn__icon,
.s-cart-summary-total {
  color: var(--color-text) !important;
}

.header-btn__icon {
  border-color: transparent !important;
  background-color: #ffffff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* عداد السلة */
.s-cart-summary-count {
  background-color: var(--color-main);
  color: #fff;
  border-radius: 999px;
}

/* زر القائمة بالجوال */
.s-user-menu-trigger {
  background-color: transparent !important;
}

/* مربع البحث */
.header-search input {
  background-color: #fff !important;
  border-radius: 999px;
  padding-inline: 18px;
  height: 40px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 4px 12px rgba(73, 193, 205, 0.08);
  color: var(--color-text) !important;
}
.header-search input::placeholder {
  color: #9a9a9a !important;
}
.header-search .s-search-product-details {
  color: var(--color-text) !important;
}
.header-search .s-search-icon svg {
  fill: var(--color-main) !important;
}

/* =========================
   القوائم المنسدلة وقائمة الجوال
   ========================= */
.sub-menu,
.sub-menu * {
  color: #333;
}

.mm-spn--open {
  background-color: #ffffff !important;
}

.mm-spn--open li a {
  color: var(--color-text-soft) !important;
  padding-block: 10px;
  border-bottom: 1px dashed #f0f0f0;
}

.mm-spn--open li a:hover {
  color: var(--color-main) !important;
}

/* قائمة الجوال */
@media (max-width: 1024px) {
  .mm-spn--open li,
  .mm-spn--open li a {
    color: var(--color-text-soft) !important;
  }

  .mm-spn--open li:hover,
  .mm-spn--open li a:hover {
    color: var(--color-main) !important;
  }

  #mobile-menu::after {
    background-color: var(--color-main) !important;
    color: #fff !important;
  }
}

/* =========================
   كروت المنتجات
   ========================= */

custom-salla-product-card {
  background-color: #ffffff !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--color-border-soft) !important;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* حركة عند المرور */
custom-salla-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--color-main);
}

/* نصوص المنتج */
.s-product-card-content-main * {
  color: var(--color-text-soft) !important;
}
.s-product-card-content-subtitle * {
  color: var(--color-text) !important;
  font-weight: 600;
}

/* السعر */
.s-product-card-price {
  color: var(--color-main) !important;
  font-weight: 700;
}
.s-product-card-sale-price h4 {
  color: var(--color-sale) !important;
  font-weight: 700;
}

/* زر إضافة للسلة */
salla-add-product-button button {
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-main) 0%, var(--color-main-light) 100%) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(73, 193, 205, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
salla-add-product-button:hover button {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(73, 193, 205, 0.45);
}

/* زر المفضلة */
.s-product-card-vertical .s-product-card-wishlist-btn button {
  background-color: rgba(73, 193, 205, 0.1) !important;
  color: var(--color-main);
  border-radius: 999px;
}

/* =========================
   عناوين الأقسام / السلايدر
   ========================= */
.s-slider-block__title {
  justify-content: center;
  margin-bottom: 28px;
}

.s-slider-block__title-left {
  display: none;
}

.s-slider-block__title-right {
  position: relative;
  padding-inline: 0;
}

.s-slider-block__title-right h2 {
  font-size: 30px;
  color: var(--color-text);
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* خط تركوازي تحت العنوان */
.s-slider-block__title-right h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-main) 0%, var(--color-main-light) 100%);
}

@media (max-width: 1024px) {
  .s-slider-block__title-right h2 {
    font-size: 22px;
  }
}

/* =========================
   البانرات (بنرات العرض)
   ========================= */
.s-block--fixed-banner .container {
  max-width: 100% !important;
  padding: 0 !important;
}

.index .s-block--fixed-banner img {
  background-color: transparent !important;
  border-radius: 0;
}

.s-block--fixed-banner:first-of-type {
  margin-top: 0 !important;
}

/* =========================
   قسم المميزات (Features)
   ========================= */
.s-block--features .s-block--features__item {
  border: 0;
  border-radius: var(--radius-lg);
  padding-top: 10px;
}

.s-block--features .s-block--features__item .feature-icon {
  background-color: rgba(85, 215, 226, 0.12) !important;
  overflow: visible !important;
  margin: 10px 0 24px;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-block--features .s-block--features__item .feature-icon i {
  color: var(--color-main-light) !important;
  font-size: 58px;
}

/* =========================
   الفوتر (Footer) – 3 أعمدة + نبذة في الوسط داخل عمودها
   ========================= */
footer {
  border-radius: 40px 40px 0 0;
  background: linear-gradient(180deg, var(--color-main-light) 0%, var(--color-main) 100%) !important;
  padding-top: 8px;
  padding-bottom: 4px;
}

.store-footer__inner {
  position: relative;
  z-index: 2;
  background-color: transparent !important;
}

/* نصوص الفوتر */
.store-footer__inner *,
.store-footer h3,
.copyright-text p {
  color: #fff !important;
}

.copyright-text p {
  font-size: 11px;
  line-height: 1.3;
}

.copyright-text p a:hover {
  color: #fff !important;
  opacity: 0.8;
}

/* شبكة الفوتر: 3 أعمدة متساوية */
.store-footer__inner .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: flex-start; /* كل الأعمدة من نفس المستوى */
}

/* الأعمدة عامة */
.store-footer__inner .container > div {
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  padding-left: 0;
  padding-top: 2px;
  padding-bottom: 3px;
}

/* عمود النبذة (هو أول div في الـ DOM ويظهر يمين بسبب RTL) */
.store-footer__inner .container > div:nth-of-type(1) {
  align-items: center;
  text-align: center;
}

/* شعار المتجر داخل عمود النبذة – وسط تماماً */
.store-footer__inner .container > div:nth-of-type(1) a:first-of-type::after {
  content: "";
  background: url("https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/RANgro/0TgrAhjgoVWz4cM7rhjRssBCqLfh1OxKDzSsFqpu.png")
              center/contain no-repeat;
  display: block;
  width: 80px;
  height: 60px;
  margin: 0 auto 6px; /* في المنتصف وتحتها مسافة بسيطة */
}

/* نخفي عنوان القسم الأول (يبقى الشعار + نبذة فقط) */
.store-footer__inner > div a h3 {
  display: none;
}

/* الأعمدة الثانية والثالثة (روابط مهمة + تواصل معنا) تبقى محاذاة يمين */
.store-footer__inner .container > div:nth-of-type(2),
.store-footer__inner .container > div:nth-of-type(3) {
  align-items: flex-start;
  text-align: right;
}

/* شريط الحقوق أسفل الفوتر */
.store-footer__inner + div {
  background: transparent;
  max-width: 100%;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 992px) {
  footer {
    padding-top: 6px;
    padding-bottom: 3px;
  }

  .store-footer__inner .container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .store-footer__inner .container > div {
    align-items: center;
    text-align: center;
  }

  .store-footer__inner .container > div:nth-of-type(1) a:first-of-type::after {
    width: 70px;
    height: 50px;
  }
}

/* =========================
   Scrollbar مخصص
   ========================= */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #fff;
}
::-webkit-scrollbar-thumb {
  background: var(--color-main);
  border-radius: 999px;
}

/* =========================
   Slider الصور (الصور في الأسفل)
   ========================= */
.s-block--photos-slider {
  margin-top: 0 !important;
}

.s-block--photos-slider salla-slider {
  padding-right: 0 !important;
  padding-top: 0 !important;
}

.s-block--photos-slider .swiper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.s-block--photos-slider .swiper .swiper-slide {
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}
/* ===== إصلاح محاذاة أعمدة الفوتر (روابط مهمة – نبذة – تواصل معنا) ===== */

footer {
  border-radius: 40px 40px 0 0;
  background: linear-gradient(180deg, var(--color-main-light) 0%, var(--color-main) 100%) !important;
  padding-top: 8px;
  padding-bottom: 4px;
}

.store-footer__inner {
  position: relative;
  z-index: 2;
  background-color: transparent !important;
}

/* نستخدم Flex بدال Grid حتى تكون الأعمدة الثلاثة في صف واحد */
.store-footer__inner .container {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* كل عمود في الفوتر */
.store-footer__inner .container > div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  padding-top: 2px;
  padding-bottom: 3px;
}

/* العمود الأوسط (نبذة نزيل برو + الشعار + وثيقة العمل الحر) */
.store-footer__inner .container > div:nth-of-type(2) {
  align-items: center;
  text-align: center;
}

/* الشعار داخل عمود النبذة – يكون في المنتصف تماماً */
.store-footer__inner .container > div:nth-of-type(2) a:first-of-type::after {
  content: "";
  background: url("https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/RANgro/0TgrAhjgoVWz4cM7rhjRssBCqLfh1OxKDzSsFqpu.png")
              center/contain no-repeat;
  display: block;
  width: 80px;
  height: 60px;
  margin: 0 auto 6px; /* وسط العمود و تحته مسافة بسيطة */
}

/* نصوص الفوتر */
.store-footer__inner *,
.store-footer h3,
.copyright-text p {
  color: #fff !important;
}

/* على الجوال: نخلي الأعمدة تحت بعض */
@media (max-width: 992px) {
  .store-footer__inner .container {
    flex-direction: column;
    gap: 16px;
  }

  .store-footer__inner .container > div {
    align-items: center;
    text-align: center;
  }

  .store-footer__inner .container > div:nth-of-type(2) a:first-of-type::after {
    width: 70px;
    height: 50px;
  }
}