/* الفوتر كامل */
.store-footer,
.store-footer__inner {
    --tw-bg-opacity: 1 !important;
    background-color: #293242 !important;
}

/* أي عناصر داخل الفوتر تورّث لون مختلف */
.store-footer div,
.store-footer section {
    --tw-bg-opacity: 1 !important;
    background-color: #293242 !important;
}

/* إزالة أي لون أسود من آخر شريط */
.store-footer .container,
.store-footer .md\:flex,
.store-footer .py-4 {
    --tw-bg-opacity: 1 !important;
    background-color: #293242 !important;
}

/* إزالة الحدود الفاتحة */
.store-footer__inner {
    border: none !important;
}
/* تغيير لون نص الحقوق */
.copyright-text p {
    color: #ffffff !important; /* أو أي لون تبغاه */
}
/* إزالة المسافات فوق وتحت الشريط الإعلاني */
salla-news-ticker,
.ticker-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* لو فيه سكشن مغلف الشريط */
salla-news-ticker::part(container) {
    margin: 0 !important;
    padding: 0 !important;
}


/* Add custom CSS styles below */ 
html, body {
  overflow-x: hidden !important;
}

.s-slider,
.s-slider * {
  max-width: 100% !important;
}

.container,
.s-block {
  max-width: 100% !important;
  overflow: hidden;
}

.sicon-shopping-bag::before {
  display: inline-block !important;
  overflow: visible !important;
  position: relative;
  z-index: 2;
}


.container, .s-block {
    max-width: 100% !important;
    overflow: unset;
}

/* تكبير اللوجو */
.navbar-brand img {
  width: 140px !important;
  height: auto !important;
  max-width: none !important;
}

/* للموبايل */
@media (max-width: 768px) {
  .navbar-brand img {
    width: 110px !important;
  }
}


/* =========================================
   DRYPER — SALLA RAED THEME SPACING FIX
   ضبط الهيدر + الشريط الإعلاني + الهيرو + الجوال
========================================= */

/* منع أي فراغات أفقية أو تمدد */
html,
body {
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ضبط عرض الصفحة */
body,
.app-inner,
main,
.main-content,
.store-home,
.salla-theme {
  width: 100% !important;
  max-width: 100% !important;
}

/* =========================================
   HEADER FIX
========================================= */

/* تقليل ارتفاع الهيدر والمساحات الداخلية */
.store-header,
.main-nav-container,
.main-menu,
.header,
.site-header {
  margin-bottom: 0 !important;
}

/* الهيدر الأساسي */
.main-nav-container,
.store-header .main-nav-container,
.store-header__content,
.navbar,
.s-header {
  min-height: 68px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* اللوجو */
.store-header img,
.navbar-brand img,
.logo img,
.s-logo img {
  max-height: 46px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* روابط القائمة */
.main-menu,
.main-menu li,
.main-menu a,
.navbar a {
  line-height: 1.4 !important;
}

/* إزالة أي فراغ بعد الهيدر */
.store-header + *,
.main-nav-container + *,
header + * {
  margin-top: 0 !important;
}

/* =========================================
   TOP AD / TICKER BAR FIX
========================================= */

/* شريط الإعلان */
.ticker-container,
.salla-news-ticker,
.s-ticker,
[class*="ticker"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 14px !important;
  min-height: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  background: #293242 !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

/* نص شريط الإعلان */
.ticker-container *,
.salla-news-ticker *,
.s-ticker *,
[class*="ticker"] * {
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 38px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* إزالة الفراغ أعلى الشريط */
section:has(.ticker-container),
section:has([class*="ticker"]),
.s-block:has(.ticker-container),
.s-block:has([class*="ticker"]) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* العنصر بعد الشريط مباشرة */
.ticker-container + *,
[class*="ticker"] + * {
  margin-top: 0 !important;
}

/* =========================================
   HERO / MAIN SLIDER FIX
========================================= */

/* سكشن السلايدر الرئيسي */
.s-block-bundle-elite-slider,
.s-block-bundle-slider,
.s-block-slider,
section[class*="slider"],
section[class*="hero"],
salla-slider {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* إزالة الفراغ بين شريط الإعلان والهيرو */
.ticker-container + .s-block,
.ticker-container + section,
[class*="ticker"] + .s-block,
[class*="ticker"] + section,
.s-block-bundle-elite-slider {
  margin-top: 0 !important;
}

/* السلايدر */
.s-block-bundle-elite-slider .swiper,
.s-block-bundle-elite-slider .swiper-wrapper,
.s-block-bundle-elite-slider .swiper-slide,
.s-block-bundle-slider .swiper,
.s-block-bundle-slider .swiper-wrapper,
.s-block-bundle-slider .swiper-slide,
section[class*="slider"] .swiper,
section[class*="slider"] .swiper-wrapper,
section[class*="slider"] .swiper-slide {
  margin-top: 0 !important;
}

/* ارتفاع الهيرو على الديسكتوب */
.s-block-bundle-elite-slider,
.s-block-bundle-slider,
.s-block-slider {
  min-height: auto !important;
}

/* صور السلايدر */
.s-block-bundle-elite-slider img,
.s-block-bundle-slider img,
.s-block-slider img,
section[class*="slider"] img {
  display: block !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* لو فيه فراغ أعلى صورة البانر */
.s-block-bundle-elite-slider .container,
.s-block-bundle-slider .container,
.s-block-slider .container {
  padding-top: 0 !important;
}

/* =========================================
   GENERAL SECTION SPACING
========================================= */

/* تقليل المسافات الكبيرة بين السكاشن */
.s-block,
section.s-block,
.s-block-wrapper,
.home-section,
section {
  margin-top: 0 !important;
}

/* لا نلغي كل البادنج، فقط نضبطه بشكل احترافي */
.s-block:not(.s-block-bundle-elite-slider):not(.s-block-bundle-slider) {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}

/* سكاشن المحتوى النصي */
.s-block-bundle-html-content,
.s-block-bundle-features,
.s-block-bundle-products,
.s-block-bundle-categories {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}

/* الحاويات */
.container,
.s-container,
main .container {
  max-width: 1200px !important;
}

/* =========================================
   HOME CTA / TEXT BLOCK FIX
========================================= */

.s-block-bundle-html-content h1,
.s-block-bundle-html-content h2,
.s-block-bundle-html-content h3,
.s-block h1,
.s-block h2,
.s-block h3 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.35 !important;
}

.s-block-bundle-html-content p,
.s-block p {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  line-height: 1.8 !important;
}

/* الأزرار */
.s-button,
button,
a.btn,
a.button {
  border-radius: 10px !important;
}

/* =========================================
   PRODUCT CARDS / PRODUCTS SECTIONS
========================================= */

.s-products-list,
.s-products-grid,
.products-grid,
.s-product-card {
  margin-top: 0 !important;
}

.s-product-card-entry,
.s-product-card,
.product-entry {
  border-radius: 16px !important;
  overflow: hidden !important;
}

.s-product-card-image img,
.s-product-card img {
  object-fit: cover !important;
}

/* =========================================
   FOOTER FIX
========================================= */

.store-footer,
footer {
  margin-top: 0 !important;
  background-color: #293242 !important;
}

.store-footer *,
footer * {
  color: inherit;
}

/* =========================================
   MOBILE FIX
========================================= */

@media (max-width: 768px) {

  /* تقليل ارتفاع الهيدر في الجوال */
  .main-nav-container,
  .store-header .main-nav-container,
  .store-header__content,
  .navbar,
  .s-header {
    min-height: 58px !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .store-header img,
  .navbar-brand img,
  .logo img,
  .s-logo img {
    max-height: 38px !important;
  }

  /* شريط الإعلان في الجوال */
  .ticker-container,
  .salla-news-ticker,
  .s-ticker,
  [class*="ticker"] {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
  }

  .ticker-container *,
  .salla-news-ticker *,
  .s-ticker *,
  [class*="ticker"] * {
    font-size: 12.5px !important;
    line-height: 34px !important;
  }

  /* إزالة الفراغ الكبير أعلى الهيرو */
  .ticker-container + *,
  [class*="ticker"] + *,
  .s-block-bundle-elite-slider,
  .s-block-bundle-slider,
  .s-block-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* ضبط الهيرو للجوال */
  .s-block-bundle-elite-slider img,
  .s-block-bundle-slider img,
  .s-block-slider img,
  section[class*="slider"] img {
    min-height: 360px !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* تقليل مسافات السكاشن */
  .s-block:not(.s-block-bundle-elite-slider):not(.s-block-bundle-slider),
  .s-block-bundle-html-content,
  .s-block-bundle-features,
  .s-block-bundle-products,
  .s-block-bundle-categories {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .container,
  .s-container,
  main .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .s-block h1,
  .s-block h2,
  .s-block h3 {
    line-height: 1.35 !important;
  }

  .s-block p {
    line-height: 1.75 !important;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .main-nav-container,
  .store-header .main-nav-container,
  .store-header__content,
  .navbar,
  .s-header {
    min-height: 54px !important;
  }

  .store-header img,
  .navbar-brand img,
  .logo img,
  .s-logo img {
    max-height: 34px !important;
  }

  .ticker-container,
  .salla-news-ticker,
  .s-ticker,
  [class*="ticker"] {
    min-height: 32px !important;
    height: 32px !important;
  }

  .ticker-container *,
  .salla-news-ticker *,
  .s-ticker *,
  [class*="ticker"] * {
    font-size: 11.5px !important;
    line-height: 32px !important;
  }

  .s-block-bundle-elite-slider img,
  .s-block-bundle-slider img,
  .s-block-slider img,
  section[class*="slider"] img {
    min-height: 330px !important;
  }

  .s-block:not(.s-block-bundle-elite-slider):not(.s-block-bundle-slider),
  .s-block-bundle-html-content,
  .s-block-bundle-features,
  .s-block-bundle-products,
  .s-block-bundle-categories {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}

/* Force remove white gap above ticker */
body > div,
body > section,
.app-inner > div,
.app-inner > section {
  margin-top: 0 !important;
}

.main-nav-container + div,
.main-nav-container + section,
.store-header + div,
.store-header + section {
  margin-top: 0 !important;
}