/* ==================================================
   الأضواء العربية | HEADER
   ================================================== */

:root {
  --al-navy: #0B2A45;
  --al-dark-navy: #071B33;
  --al-gold: #D9A441;
  --al-white: #FFFFFF;
  --al-cream: #F8F6F1;

  /* ألوان التصنيفات */
  --category-section-bg: #F6F6F4;
  --category-bg: #ECECE8;
}


/* ===== خلفية الهيدر ===== */

.store-header,
.main-nav-container {
  background-color: var(--al-navy) !important;
}


/* ==================================================
   الكمبيوتر فقط
   ================================================== */

@media (min-width: 1024px) {

  /* ===== الهيدر الرئيسي ===== */

  .main-nav-container,
  .main-nav-container .inner,
  .main-nav-container .container {
    height: 74px !important;
    min-height: 74px !important;
  }

  .main-nav-container {
    padding: 0 !important;
  }

  .main-nav-container .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .main-nav-container .container > .flex {
    height: 74px !important;
    align-items: center !important;
  }

  .main-nav-container .container > .flex > .flex:first-child {
    height: 74px !important;
    align-items: center !important;
  }


  /* ===== الشعار ===== */

  .navbar-brand {
    height: 74px !important;
    display: flex !important;
    align-items: center !important;
    margin-left: 24px !important;
    padding: 0 !important;
  }

  .navbar-brand img {
    max-height: 54px !important;
    width: auto !important;
    object-fit: contain !important;
  }


  /* ==================================================
     القائمة الرئيسية
     ================================================== */

  custom-main-menu {
    position: relative !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  custom-main-menu > ul > li > a,
  custom-main-menu > nav > ul > li > a {
    color: var(--al-white) !important;
    opacity: 1 !important;
  }

  custom-main-menu > ul > li > a:hover,
  custom-main-menu > nav > ul > li > a:hover {
    color: var(--al-gold) !important;
  }


  /* ==================================================
     القائمة المنسدلة الطويلة
     ================================================== */

  custom-main-menu ul ul,
  custom-main-menu .sub-menu,
  custom-main-menu .dropdown-menu {
    max-height: calc(100vh - 110px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    overscroll-behavior: contain !important;

    z-index: 9999 !important;
  }


  /* ===== شكل السكرول داخل القائمة ===== */

  custom-main-menu ul ul::-webkit-scrollbar,
  custom-main-menu .sub-menu::-webkit-scrollbar,
  custom-main-menu .dropdown-menu::-webkit-scrollbar {
    width: 6px !important;
  }

  custom-main-menu ul ul::-webkit-scrollbar-track,
  custom-main-menu .sub-menu::-webkit-scrollbar-track,
  custom-main-menu .dropdown-menu::-webkit-scrollbar-track {
    background: #F3F3F3 !important;
  }

  custom-main-menu ul ul::-webkit-scrollbar-thumb,
  custom-main-menu .sub-menu::-webkit-scrollbar-thumb,
  custom-main-menu .dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--al-gold) !important;
    border-radius: 10px !important;
  }


  /* ==================================================
     البحث
     ================================================== */

  .store-header {
    position: relative !important;
  }

  .top-navbar {
    display: block !important;
    position: absolute !important;

    top: 19px !important;
    left: 280px !important;

    width: 250px !important;
    height: 36px !important;

    z-index: 50 !important;
    background: transparent !important;

    padding: 0 !important;
    margin: 0 !important;
  }


  /* تثبيت البحث عند النزول */

  .store-header:has(#mainnav.fixed-header) .top-navbar {
    position: fixed !important;

    top: 19px !important;
    left: 280px !important;

    width: 250px !important;
    height: 36px !important;

    z-index: 100 !important;
  }


  /* ===== حاوية البحث ===== */

  .top-navbar .container {
    width: 250px !important;
    max-width: 250px !important;

    min-height: 36px !important;
    height: 36px !important;

    padding: 0 !important;
    margin: 0 !important;
  }

  .top-navbar .container > .flex-1 {
    width: 250px !important;
    height: 36px !important;
  }


  /* نخفي محتويات الشريط القديم ونبقي البحث فقط */

  .top-navbar salla-menu,
  .top-navbar .header-buttons,
  .top-navbar salla-bullet-delivery-tag,
  .top-navbar .btn--rounded-gray,
  .top-navbar salla-contacts {
    display: none !important;
  }


  .top-navbar .header-search {
    display: block !important;

    width: 250px !important;
    max-width: 250px !important;

    padding: 0 !important;
    margin: 0 !important;
  }

  .top-navbar salla-search {
    display: block !important;
    width: 250px !important;
  }

  .s-search-input,
  input[type="search"] {
    height: 36px !important;

    background: #FFFFFF !important;

    border: 1px solid rgba(217, 164, 65, 0.45) !important;
    border-radius: 14px !important;

    margin: 0 !important;
  }

  .s-search-icon,
  salla-search svg {
    color: var(--al-gold) !important;
  }


  /* ===== الحساب والسلة ===== */

  .main-nav-container
  .container
  > .flex
  > .flex:last-child {
    height: 74px !important;

    align-items: center !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

}


/* ==================================================
   إعداد البحث العام
   ================================================== */

.s-search-input,
input[type="search"] {
  background: #FFFFFF !important;

  border: 1px solid rgba(217, 164, 65, 0.35) !important;

  border-radius: 14px !important;
}

.s-search-icon,
salla-search svg {
  color: var(--al-gold) !important;
}


/* ==================================================
   توفل | عنوان قسم فقط
   ================================================== */

custom-main-menu a[href$="c272047164"] {
  pointer-events: none !important;

  cursor: default !important;

  color: #D9A441 !important;

  font-size: 18px !important;
  font-weight: 800 !important;

  display: block !important;

  padding-bottom: 10px !important;
  margin-bottom: 10px !important;

  border-bottom: 1px solid rgba(217, 164, 65, 0.35) !important;

  background: transparent !important;
}


/* ==================================================
   البانر الرئيسي | الكمبيوتر
   ================================================== */

@media (min-width: 1024px) {

  .home-slider,
  .main-slider,
  section.home-slider,
  section.main-slider {
    max-height: 440px !important;

    overflow: hidden !important;
  }


  .home-slider .swiper,
  .home-slider .swiper-wrapper,
  .home-slider .swiper-slide,

  .main-slider .swiper,
  .main-slider .swiper-wrapper,
  .main-slider .swiper-slide {
    height: 440px !important;
    max-height: 440px !important;
  }


  .home-slider .swiper-slide img,
  .main-slider .swiper-slide img {
    width: 100% !important;
    height: 440px !important;

    object-fit: cover !important;
    object-position: center center !important;
  }


  .home-slider .lazy__bg,
  .main-slider .lazy__bg {
    height: 440px !important;

    background-size: cover !important;
    background-position: center center !important;
  }

}


/* ==================================================
   تصفح حسب التصنيف
   ================================================== */


/* ==================================================
   خلفية ممتدة بعرض الشاشة كامل
   ================================================== */

section:has(.square-photos-grid--equal-2),
.s-block:has(.square-photos-grid--equal-2) {
  position: relative !important;

  background: transparent !important;

  padding-top: 16px !important;
  padding-bottom: 16px !important;

  isolation: isolate !important;
}


/*
   الخلفية الرمادية تمتد من يمين الشاشة إلى يسارها
*/

section:has(.square-photos-grid--equal-2)::before,
.s-block:has(.square-photos-grid--equal-2)::before {
  content: "" !important;

  position: absolute !important;

  top: 0 !important;
  bottom: 0 !important;

  left: 50% !important;

  width: 100vw !important;

  transform: translateX(-50%) !important;

  background: var(--category-section-bg) !important;

  z-index: -1 !important;
}


/* ===== المسافات الخارجية ===== */

section:has(.square-photos-grid--equal-2) {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.s-block:has(.square-photos-grid--equal-2) {
  margin-top: 0 !important;
}


/* ===== الحاوية الداخلية ===== */

div:has(> .square-photos-grid--equal-2) {
  background: transparent !important;

  width: 100% !important;
  max-width: 100% !important;

  padding: 0 !important;
  margin: 0 !important;
}


/* ==================================================
   عنوان التصنيفات
   ================================================== */

section:has(.square-photos-grid--equal-2) .s-block__title,
div:has(> .square-photos-grid--equal-2) .s-block__title {
  text-align: right !important;

  display: flex !important;
  flex-direction: column !important;

  align-items: flex-end !important;
  justify-content: flex-end !important;

  margin-bottom: 12px !important;
}


section:has(.square-photos-grid--equal-2)
.s-block__title > *,

div:has(> .square-photos-grid--equal-2)
.s-block__title > * {
  text-align: right !important;

  width: 100% !important;
}


/* ===== الوصف تحت العنوان ===== */

section:has(.square-photos-grid--equal-2)
.s-block__title::after {
  content: "اكتشف تشكيلتنا واختر ما يناسب مساحتك";

  display: block !important;

  width: 100% !important;

  margin-top: 4px !important;

  text-align: right !important;
  direction: rtl !important;

  color: #7A7E82 !important;

  font-size: 14px !important;
  font-weight: 400 !important;

  line-height: 1.6 !important;
}


/* ==================================================
   إخفاء أسهم التصنيفات
   ================================================== */

section:has(.square-photos-grid--equal-2)
.s-slider-block__title-nav,

section:has(.square-photos-grid--equal-2)
.s-slider-nav,

section:has(.square-photos-grid--equal-2)
.s-slider-nav-arrow,

section:has(.square-photos-grid--equal-2)
.s-slider-prev,

section:has(.square-photos-grid--equal-2)
.s-slider-next,

section:has(.square-photos-grid--equal-2)
.swiper-button-prev,

section:has(.square-photos-grid--equal-2)
.swiper-button-next {
  display: none !important;
}


/* ==================================================
   الكمبيوتر | التصنيفات
   ================================================== */

@media (min-width: 1024px) {

  .square-photos-grid--equal-2 {
    display: grid !important;

    grid-template-columns:
      repeat(auto-fit, 215px) !important;

    direction: rtl !important;

    justify-content: start !important;

    justify-items: stretch !important;
    align-items: stretch !important;

    gap: 18px !important;

    width: 100% !important;
    max-width: 100% !important;
  }


  /* ===== البطاقة الخارجية البيضاء ===== */

  .square-photos-grid--equal-2
  .banner-entry.square-photos {
    position: relative !important;

    width: 215px !important;
    height: auto !important;

    aspect-ratio: 350 / 200 !important;

    overflow: hidden !important;

    background: #FFFFFF !important;

    border-radius: 16px !important;
    border: none !important;

    box-shadow:
      0 3px 12px rgba(11, 42, 69, 0.07) !important;

    padding: 0 !important;
    margin: 0 !important;

    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease !important;
  }


  .square-photos-grid--equal-2
  .banner-entry.square-photos:hover {
    transform: translateY(-3px) !important;

    box-shadow:
      0 7px 18px rgba(11, 42, 69, 0.09) !important;
  }


  /* ===== الصورة داخل البطاقة ===== */

  .square-photos-grid--equal-2
  .banner-entry.square-photos
  .lazy__bg {
    position: absolute !important;

    inset: 4px !important;

    width: auto !important;
    height: auto !important;

    border-radius: 12px !important;

    background-size: cover !important;
    background-position: center center !important;

    background-repeat: no-repeat !important;

    background-color: var(--category-bg) !important;
  }

}


/* ==================================================
   محاذاة قسم تصفح حسب التصنيف | الكمبيوتر
   ================================================== */

@media (min-width: 1024px) {

  section:has(.square-photos-grid--equal-2),
  .s-block:has(.square-photos-grid--equal-2) {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding-left: 80px !important;
    padding-right: 80px !important;

    box-sizing: border-box !important;
  }

}


/* ==================================================
   الجوال والتابلت
   ================================================== */

@media (max-width: 1023px) {

  section:has(.square-photos-grid--equal-2),
  .s-block:has(.square-photos-grid--equal-2) {
    position: relative !important;

    background: transparent !important;

    padding-top: 18px !important;
    padding-bottom: 18px !important;

    isolation: isolate !important;
  }


  section:has(.square-photos-grid--equal-2)::before,
  .s-block:has(.square-photos-grid--equal-2)::before {
    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    bottom: 0 !important;

    left: 50% !important;

    width: 100vw !important;

    transform: translateX(-50%) !important;

    background: var(--category-section-bg) !important;

    z-index: -1 !important;
  }


  div:has(> .square-photos-grid--equal-2) {
    background: transparent !important;

    width: 100% !important;
    max-width: 100% !important;

    padding: 0 !important;
    margin: 0 !important;
  }


  section:has(.square-photos-grid--equal-2)
  .s-block__title,

  div:has(> .square-photos-grid--equal-2)
  .s-block__title {
    text-align: right !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: flex-end !important;
    justify-content: flex-end !important;

    margin-bottom: 10px !important;
  }


  section:has(.square-photos-grid--equal-2)
  .s-block__title::after {
    font-size: 12px !important;

    margin-top: 3px !important;
  }


  .square-photos-grid--equal-2 {
    direction: rtl !important;

    justify-content: start !important;

    gap: 12px !important;

    width: 100% !important;
  }


  .square-photos-grid--equal-2
  .banner-entry.square-photos {
    position: relative !important;

    aspect-ratio: 350 / 200 !important;

    overflow: hidden !important;

    background: #FFFFFF !important;

    border-radius: 14px !important;
    border: none !important;

    box-shadow:
      0 3px 10px rgba(11, 42, 69, 0.06) !important;

    padding: 0 !important;
    margin: 0 !important;
  }


  .square-photos-grid--equal-2
  .banner-entry.square-photos
  .lazy__bg {
    position: absolute !important;

    inset: 4px !important;

    width: auto !important;
    height: auto !important;

    border-radius: 10px !important;

    background-size: cover !important;
    background-position: center center !important;

    background-repeat: no-repeat !important;

    background-color: var(--category-bg) !important;
  }

}


/* ==================================================
   خلفية المتجر الأساسية
   ================================================== */

body,
main,
.app-inner {
  background: #FFFFFF !important;
}


/* ==================================================
   منتجات مميزة | الأضواء العربية
   نسخة نظيفة ومحددة على سلايدر المنتجات فقط
   ================================================== */


/* ==================================================
   القسم الخارجي
   ================================================== */

section[data-testid="store-home-products-slider"]:has(salla-products-slider[source="selected"]),
section:has(salla-products-slider[source="selected"]),
.s-block:has(salla-products-slider[source="selected"]) {
  position: relative !important;
  isolation: isolate !important;

  background: #FCFCFB !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;

  box-sizing: border-box !important;
  overflow: visible !important;
}


/* ==================================================
   عنوان القسم
   ================================================== */

section[data-testid="store-home-products-slider"]:has(salla-products-slider[source="selected"])::before,
section:has(salla-products-slider[source="selected"])::before,
.s-block:has(salla-products-slider[source="selected"])::before {
  content: "منتجات مميزة" !important;

  display: block !important;
  width: 100% !important;

  margin: 0 0 2px 0 !important;

  color: #071B33 !important;

  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;

  text-align: right !important;
  direction: rtl !important;
}


/* ==================================================
   مكوّن المنتجات + الوصف
   ================================================== */

salla-products-slider[source="selected"] {
  position: relative !important;

  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  box-sizing: border-box !important;
  overflow: visible !important;
}


salla-products-slider[source="selected"]::before {
  content: "منتجات مميزة من مختلف أقسام المتجر" !important;

  display: block !important;
  width: 100% !important;

  margin: 0 0 10px 0 !important;

  color: #7A7E82 !important;

  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;

  text-align: right !important;
  direction: rtl !important;
}


/* ==================================================
   عنوان سلة الأصلي
   نخفي النص فقط ونُبقي منطقة الأسهم
   ================================================== */

salla-products-slider[source="selected"]
.s-slider-block__title {
  display: block !important;

  position: static !important;

  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;

  pointer-events: none !important;
}


salla-products-slider[source="selected"]
.s-slider-block__title-right {
  display: none !important;
}


/* ==================================================
   حاوية الأسهم تغطي السلايدر بالكامل
   ================================================== */

salla-products-slider[source="selected"]
.s-slider-block__title-nav {
  display: block !important;

  position: absolute !important;

  inset: 0 !important;

  width: auto !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;

  z-index: 80 !important;

  pointer-events: none !important;
}


/* ==================================================
   المستطيل الأبيض حول المنتجات
   ================================================== */

salla-products-slider[source="selected"]
.s-slider-container {
  position: relative !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 9px !important;

  background: #FFFFFF !important;

  border: 1px solid #F0F1F2 !important;
  border-radius: 10px !important;

  box-shadow:
    0 2px 7px rgba(11, 42, 69, 0.025) !important;

  box-sizing: border-box !important;

  overflow: hidden !important;
}


salla-products-slider[source="selected"]
.s-slider-container .swiper {
  position: relative !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  border-radius: 8px !important;

  box-sizing: border-box !important;
}


salla-products-slider[source="selected"]
.swiper-wrapper {
  margin: 0 !important;
  padding: 0 !important;

  align-items: flex-start !important;

  box-sizing: border-box !important;
}


/* ==================================================
   بطاقة المنتج
   ================================================== */

salla-products-slider[source="selected"]
.s-product-card-entry {
  position: relative !important;

  display: flex !important;
  flex-direction: column !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  background: #FFFFFF !important;

  border: 1px solid rgba(11, 42, 69, 0.055) !important;
  border-radius: 9px !important;

  overflow: hidden !important;

  box-shadow:
    0 2px 7px rgba(11, 42, 69, 0.035) !important;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease !important;
}


salla-products-slider[source="selected"]
.s-product-card-entry:hover {
  transform: translateY(-2px) !important;

  box-shadow:
    0 5px 13px rgba(11, 42, 69, 0.06) !important;
}


salla-products-slider[source="selected"]
.s-product-card-horizontal {
  display: flex !important;
  flex-direction: column !important;

  height: auto !important;
  min-height: 0 !important;
}


/* ==================================================
   صورة المنتج
   ================================================== */

salla-products-slider[source="selected"]
.s-product-card-image {
  position: relative !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  aspect-ratio: 1 / 1 !important;

  background: #F8F8F7 !important;

  overflow: hidden !important;
}


salla-products-slider[source="selected"]
.s-product-card-image > a {
  display: block !important;

  width: 100% !important;
  height: 100% !important;
}


salla-products-slider[source="selected"]
.s-product-card-image img {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center center !important;

  transition: transform 0.3s ease !important;
}


salla-products-slider[source="selected"]
.s-product-card-entry:hover
.s-product-card-image img {
  transform: scale(1.018) !important;
}


/* ==================================================
   إخفاء القلب والمعاينة
   ================================================== */

salla-products-slider[source="selected"]
.s-product-card-wishlist-btn,

salla-products-slider[source="selected"]
.s-product-card-buttons,

salla-products-slider[source="selected"]
.s-product-card-eye-btn {
  display: none !important;
}


/* ==================================================
   محتوى البطاقة
   ================================================== */

salla-products-slider[source="selected"]
.s-product-card-content {
  display: flex !important;
  flex-direction: column !important;

  flex: 0 0 auto !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  padding: 11px 12px 12px !important;

  text-align: right !important;
  direction: rtl !important;
}


salla-products-slider[source="selected"]
.s-product-card-content-main {
  width: 100% !important;

  height: auto !important;
  min-height: 0 !important;
}


/* ==================================================
   اسم المنتج
   ================================================== */

salla-products-slider[source="selected"]
.s-product-card-content-title {
  margin: 0 0 7px !important;

  min-height: 42px !important;

  color: #071B33 !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;

  text-align: right !important;
}


salla-products-slider[source="selected"]
.s-product-card-content-title a {
  color: #071B33 !important;

  display: -webkit-box !important;

  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;

  overflow: hidden !important;
}


/* ==================================================
   السعر والتقييم
   ================================================== */

salla-products-slider[source="selected"]
.s-product-card-content-sub {
  display: flex !important;

  flex-wrap: wrap !important;

  align-items: center !important;
  justify-content: space-between !important;

  gap: 6px !important;

  margin-top: 0 !important;
  margin-bottom: 8px !important;
}


salla-products-slider[source="selected"]
.s-product-card-price,

salla-products-slider[source="selected"]
.s-product-card-sale-price h4,

salla-products-slider[source="selected"]
.s-product-card-starting-price h4 {
  color: #071B33 !important;

  font-size: 15px !important;
  font-weight: 800 !important;
}


salla-products-slider[source="selected"]
.s-product-card-sale-price span {
  color: #9A9EA3 !important;

  font-size: 11px !important;

  text-decoration: line-through !important;
}


salla-products-slider[source="selected"]
.s-product-card-rating {
  color: #D9A441 !important;

  font-size: 12px !important;
}


/* ==================================================
   زر أضف إلى السلة
   ================================================== */

salla-products-slider[source="selected"]
.s-product-card-content-footer {
  position: relative !important;

  display: flex !important;
  align-items: center !important;

  width: 100% !important;

  gap: 6px !important;

  margin-top: 6px !important;
  padding: 0 !important;
}


salla-products-slider[source="selected"]
.s-product-card-content-footer
salla-add-product-button {
  display: block !important;

  width: 100% !important;

  flex: 1 1 auto !important;
}


salla-products-slider[source="selected"]
.s-product-card-content-footer
salla-add-product-button
.s-button-btn {
  width: 100% !important;

  min-height: 38px !important;

  background: #0B2A45 !important;
  color: #FFFFFF !important;

  border-color: #0B2A45 !important;
  border-radius: 8px !important;

  box-shadow: none !important;

  font-size: 13px !important;
  font-weight: 700 !important;
}


salla-products-slider[source="selected"]
.s-product-card-content-footer
salla-add-product-button
.s-button-btn:hover {
  background: #071B33 !important;
  border-color: #071B33 !important;
}


/* ==================================================
   الكمبيوتر | خمسة منتجات + أسهم
   ================================================== */

@media (min-width: 1024px) {

  section[data-testid="store-home-products-slider"]:has(salla-products-slider[source="selected"]),
  section:has(salla-products-slider[source="selected"]),
  .s-block:has(salla-products-slider[source="selected"]) {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding: 22px 80px 30px !important;
  }


  /* ==================================================
     خمس شرائح بالضبط
     لا gap ولا margin لأنهم كانوا يربكون Swiper
     المسافة أصبحت داخل الشريحة نفسها
     ================================================== */

  salla-products-slider[source="selected"]
  .swiper-wrapper {
    gap: 0 !important;
  }


  salla-products-slider[source="selected"]
  .swiper-slide {
    flex: 0 0 20% !important;

    width: 20% !important;
    max-width: 20% !important;

    height: auto !important;
    min-height: 0 !important;

    align-self: flex-start !important;

    margin: 0 !important;

    padding-left: 7px !important;
    padding-right: 7px !important;

    box-sizing: border-box !important;
  }


  /* منع تمدد الكرت */

  salla-products-slider[source="selected"]
  .swiper-slide > *,

  salla-products-slider[source="selected"]
  salla-product-card,

  salla-products-slider[source="selected"]
  .s-product-card-entry,

  salla-products-slider[source="selected"]
  .s-product-card-horizontal,

  salla-products-slider[source="selected"]
  .s-product-card-content,

  salla-products-slider[source="selected"]
  .s-product-card-content-main {
    height: auto !important;
    min-height: 0 !important;
  }


  /* ==================================================
     الأسهم | تثبيت نهائي حسب DOM الحقيقي
     ================================================== */

  /* نجعل salla-slider هو مرجع التموضع */

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  salla-slider {
    position: relative !important;
  }


  /* منطقة العنوان تغطي السلايدر بدون التأثير على المحتوى */

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  .s-slider-block__title {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    pointer-events: none !important;

    z-index: 60 !important;
  }


  /* العنصر الوسيط الحقيقي الظاهر في Elements */

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  .s-slider-block__title-left {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    pointer-events: none !important;
  }


  /* حاوية السهمين تمتد من طرف المستطيل إلى الطرف الآخر */

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  .s-slider-block__title-nav {
    position: absolute !important;

    top: 58% !important;
    right: -18px !important;
    left: -18px !important;

    width: calc(100% + 36px) !important;
    height: 36px !important;

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

    margin: 0 !important;
    padding: 0 !important;

    transform: translateY(-50%) !important;

    overflow: visible !important;

    pointer-events: none !important;

    z-index: 80 !important;
  }


  /* الزران نفسهما */

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  .s-slider-block__title-nav
  button.s-slider-nav-arrow {
    position: static !important;

    inset: auto !important;

    flex: 0 0 36px !important;

    width: 36px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;

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

    background: #FFFFFF !important;
    color: #77828E !important;

    border: 1px solid #E5E8EC !important;
    border-radius: 50% !important;

    box-shadow:
      0 3px 10px rgba(11, 42, 69, 0.09) !important;

    pointer-events: auto !important;

    z-index: 100 !important;
  }


  /* أيقونة السهم */

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  .s-slider-block__title-nav
  button.s-slider-nav-arrow svg {
    width: 15px !important;
    height: 15px !important;

    color: #77828E !important;
    fill: currentColor !important;
  }


  /* السهم المعطل يبقى ظاهرًا بخفة */

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  button.s-slider-nav-arrow.swiper-button-disabled,

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  button.s-slider-nav-arrow[aria-disabled="true"] {
    opacity: 0.35 !important;
  }

}


/* ==================================================
   التابلت
   ================================================== */

@media (min-width: 768px) and (max-width: 1023px) {

  section[data-testid="store-home-products-slider"]:has(salla-products-slider[source="selected"]),
  section:has(salla-products-slider[source="selected"]),
  .s-block:has(salla-products-slider[source="selected"]) {
    width: 100% !important;

    margin: 0 !important;

    padding: 20px 24px 28px !important;
  }


  salla-products-slider[source="selected"]
  .s-slider-container {
    padding: 10px !important;
  }


  /* في التابلت نعتمد السحب */

  salla-products-slider[source="selected"]
  .s-slider-block__title-nav {
    display: none !important;
  }

}


/* ==================================================
   الجوال
   ================================================== */

@media (max-width: 767px) {

  section[data-testid="store-home-products-slider"]:has(salla-products-slider[source="selected"]),
  section:has(salla-products-slider[source="selected"]),
  .s-block:has(salla-products-slider[source="selected"]) {
    width: 100% !important;

    margin: 0 !important;

    padding: 18px 14px 24px !important;
  }


  section[data-testid="store-home-products-slider"]:has(salla-products-slider[source="selected"])::before,
  section:has(salla-products-slider[source="selected"])::before,
  .s-block:has(salla-products-slider[source="selected"])::before {
    font-size: 19px !important;
  }


  salla-products-slider[source="selected"]::before {
    margin-bottom: 10px !important;

    font-size: 12px !important;
  }


  salla-products-slider[source="selected"]
  .s-slider-container {
    padding: 8px !important;

    border-radius: 10px !important;
  }


  salla-products-slider[source="selected"]
  .s-product-card-entry {
    border-radius: 9px !important;
  }


  salla-products-slider[source="selected"]
  .s-product-card-content {
    padding:
      9px 9px 10px !important;
  }


  salla-products-slider[source="selected"]
  .s-product-card-content-title {
    min-height: 38px !important;

    font-size: 12px !important;
  }


  salla-products-slider[source="selected"]
  .s-product-card-price,

  salla-products-slider[source="selected"]
  .s-product-card-sale-price h4,

  salla-products-slider[source="selected"]
  .s-product-card-starting-price h4 {
    font-size: 14px !important;
  }


  salla-products-slider[source="selected"]
  .s-product-card-content-footer
  salla-add-product-button
  .s-button-btn {
    min-height: 36px !important;

    font-size: 12px !important;
  }


  /* في الجوال نعتمد السحب */

  salla-products-slider[source="selected"]
  .s-slider-block__title-nav {
    display: none !important;
  }

}


/* ==================================================
   منتجات مميزة | لمسة نهائية للأسهم
   ================================================== */

@media (min-width: 1024px) {

  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  .s-slider-block__title-nav {
    right: -16px !important;
    left: -16px !important;

    width: calc(100% + 32px) !important;
    height: 34px !important;
  }


  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  .s-slider-block__title-nav
  button.s-slider-nav-arrow {
    flex: 0 0 34px !important;

    width: 34px !important;
    height: 34px !important;

    box-shadow:
      0 2px 7px rgba(11, 42, 69, 0.07) !important;
  }


  section[data-testid="store-home-featured-products-tabs"]
  salla-products-slider[source="selected"]
  .s-slider-block__title-nav
  button.s-slider-nav-arrow svg {
    width: 14px !important;
    height: 14px !important;
  }

}


/* ==================================================
   بانر "اختيارات تكمل مساحتك" فقط
   component-id: 1045437575
   لا يؤثر على البانر الرئيسي أو أي بانر آخر
   ================================================== */

@media (min-width: 1024px) {

  section[component-id="1045437575"][data-testid="store-home-fixed-banner"] {
    width: 100% !important;
    max-width: 100% !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 6px !important;
    padding-bottom: 6px !important;

    box-sizing: border-box !important;
  }


  section[component-id="1045437575"][data-testid="store-home-fixed-banner"]
  > .container {
    width: 96% !important;
    max-width: 1600px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 0 !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
  }


  section[component-id="1045437575"][data-testid="store-home-fixed-banner"]
  .banner--fixed {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;

    overflow: hidden !important;
  }


  section[component-id="1045437575"][data-testid="store-home-fixed-banner"]
  picture {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  section[component-id="1045437575"][data-testid="store-home-fixed-banner"]
  img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: auto !important;

    margin: 0 auto !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;
  }

}


/* ==================================================
   تقليل الفراغ قبل قسم المنتجات الذي يلي البانر
   ================================================== */

@media (min-width: 1024px) {

  section[component-id="612911164"][data-testid="store-home-fixed-products"] {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }

}


/* ==================================================
   الأسئلة الشائعة - الأضواء العربية
   نسخة نهائية نظيفة
   ================================================== */

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

@media (min-width: 1024px) {

  div.s-block.s-block--faqs.s-block--full-bg {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 20px 0 26px !important;

    background: #F8F8F6 !important;

    box-sizing: border-box !important;
  }


  /* الحاوية الداخلية */

  div.s-block.s-block--faqs.s-block--full-bg
  > .lp-container {
    width: 94% !important;
    max-width: 1600px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 0 !important;

    box-sizing: border-box !important;
  }


  /* عنوان القسم */

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title {
    display: block !important;

    width: 100% !important;

    margin: 0 0 14px !important;
    padding: 0 !important;

    border: 0 !important;

    text-align: right !important;
    direction: rtl !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title > * {
    width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    border: 0 !important;

    text-align: right !important;
    direction: rtl !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title h2,

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title h3 {
    margin: 0 0 3px !important;

    color: #071B33 !important;

    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;

    text-align: right !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title p {
    margin: 0 !important;

    color: #7A7E82 !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    text-align: right !important;
  }


  /* إزالة الخط الزخرفي أعلى العنوان */

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title::before,

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title::after,

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title hr,

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title [class*="line"] {
    content: none !important;
    display: none !important;
    border: 0 !important;
  }


  /* أربعة أسئلة في صف واحد */

  div.s-block.s-block--faqs.s-block--full-bg
  .list {
    display: grid !important;

    grid-template-columns:
      repeat(4, minmax(0, 1fr)) !important;

    grid-auto-flow: row !important;
    align-items: start !important;

    gap: 12px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
  }


  /* بطاقة السؤال */

  div.s-block.s-block--faqs.s-block--full-bg
  .list > .faq-item {
    grid-column: auto !important;
    grid-row: auto !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #FFFFFF !important;

    border: 1px solid #E7E9EC !important;
    border-radius: 9px !important;

    box-shadow:
      0 1px 4px rgba(11, 42, 69, 0.025) !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item__inner {
    width: 100% !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #FFFFFF !important;

    overflow: visible !important;

    box-sizing: border-box !important;
  }


  /* ==================================================
     السؤال
     مهم: زر + موجود في الجهة اليسرى.
     لذلك نحجز المساحة من اليسار وليس من اليمين.
     ================================================== */

  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item label {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 64px !important;
    max-height: none !important;

    margin: 0 !important;

    /* أعلى | يمين | أسفل | يسار */
    padding: 14px 14px 14px 52px !important;

    color: #071B33 !important;
    background: #FFFFFF !important;

    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;

    text-align: right !important;
    direction: rtl !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    word-break: normal !important;
    overflow-wrap: break-word !important;

    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;

    box-sizing: border-box !important;
  }


  /* تثبيت زر + في اليسار وعدم تركه يأخذ مساحة النص */

  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item label::after {
    left: 14px !important;
    right: auto !important;

    inset-inline-start: auto !important;
    inset-inline-end: 14px !important;
  }


  /* الإجابة عند فتح السؤال */

  div.s-block.s-block--faqs.s-block--full-bg
  .faq-answer {
    width: 100% !important;

    margin: 0 !important;

    padding: 0 14px 12px !important;

    color: #666B70 !important;
    background: #FFFFFF !important;

    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;

    text-align: right !important;
    direction: rtl !important;

    box-sizing: border-box !important;
  }

}


/* ==================================================
   التابلت
   ================================================== */

@media (min-width: 768px) and (max-width: 1023px) {

  div.s-block.s-block--faqs.s-block--full-bg {
    margin: 0 !important;
    padding: 20px 0 24px !important;

    background: #F8F8F6 !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  > .lp-container {
    width: calc(100% - 32px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 0 !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title {
    margin: 0 0 14px !important;

    border: 0 !important;

    text-align: right !important;
    direction: rtl !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title::before,

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title::after {
    content: none !important;
    display: none !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .list {
    display: grid !important;

    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    align-items: start !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .list > .faq-item {
    grid-column: auto !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    background: #FFFFFF !important;

    border: 1px solid #E7E9EC !important;
    border-radius: 9px !important;

    overflow: hidden !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item__inner {
    overflow: visible !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item label {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 56px !important;

    /* أعلى | يمين | أسفل | يسار */
    padding: 12px 14px 12px 46px !important;

    font-size: 13px !important;
    line-height: 1.5 !important;

    text-align: right !important;
    direction: rtl !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    word-break: normal !important;
    overflow-wrap: break-word !important;

    box-sizing: border-box !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item label::after {
    left: 12px !important;
    right: auto !important;

    inset-inline-start: auto !important;
    inset-inline-end: 12px !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-answer {
    padding: 0 14px 12px !important;

    font-size: 12.5px !important;
    line-height: 1.75 !important;
  }

}


/* ==================================================
   الجوال
   ================================================== */

@media (max-width: 767px) {

  div.s-block.s-block--faqs.s-block--full-bg {
    margin: 0 !important;

    padding: 18px 0 20px !important;

    background: #F8F8F6 !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  > .lp-container {
    width: calc(100% - 24px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 0 !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title {
    margin: 0 0 12px !important;

    border: 0 !important;

    text-align: right !important;
    direction: rtl !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title > * {
    width: 100% !important;

    text-align: right !important;
    direction: rtl !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title h2,

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title h3 {
    margin: 0 0 3px !important;

    font-size: 18px !important;
    line-height: 1.4 !important;

    color: #071B33 !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title p {
    margin: 0 !important;

    font-size: 12px !important;
    line-height: 1.6 !important;

    color: #7A7E82 !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title::before,

  div.s-block.s-block--faqs.s-block--full-bg
  .lp-title::after {
    content: none !important;
    display: none !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .list {
    display: grid !important;

    grid-template-columns:
      minmax(0, 1fr) !important;

    align-items: start !important;

    gap: 8px !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .list > .faq-item {
    grid-column: auto !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    background: #FFFFFF !important;

    border: 1px solid #E7E9EC !important;
    border-radius: 8px !important;

    overflow: hidden !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item__inner {
    overflow: visible !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item label {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 52px !important;

    /* أعلى | يمين | أسفل | يسار */
    padding: 11px 12px 11px 44px !important;

    font-size: 13px !important;
    line-height: 1.5 !important;

    text-align: right !important;
    direction: rtl !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    word-break: normal !important;
    overflow-wrap: break-word !important;

    box-sizing: border-box !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-item label::after {
    left: 10px !important;
    right: auto !important;

    inset-inline-start: auto !important;
    inset-inline-end: 10px !important;
  }


  div.s-block.s-block--faqs.s-block--full-bg
  .faq-answer {
    padding: 0 12px 12px !important;

    font-size: 12px !important;
    line-height: 1.7 !important;
  }

}


/* ==================================================
   Footer | الأضواء العربية
   ================================================== */

footer[data-testid="store-footer"],
footer[data-testid="store-footer"] .store-footer__inner,
footer[data-testid="store-footer"] > div:last-child {
  background: #0B2A45 !important;
}



/* ==================================================
   بانر الصور المتحركة الرئيسي - عرض كامل للصفحة
   component-id="1992983220"
   ================================================== */

section[component-id="1992983220"][data-testid="store-home-photos-slider"] {
  width: 100vw !important;
  max-width: none !important;

  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  overflow: hidden !important;
}

section[component-id="1992983220"][data-testid="store-home-photos-slider"]
salla-slider {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

section[component-id="1992983220"][data-testid="store-home-photos-slider"]
.swiper,
section[component-id="1992983220"][data-testid="store-home-photos-slider"]
.swiper-wrapper,
section[component-id="1992983220"][data-testid="store-home-photos-slider"]
.swiper-slide,
section[component-id="1992983220"][data-testid="store-home-photos-slider"]
.swiper-slide > a {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

section[component-id="1992983220"][data-testid="store-home-photos-slider"]
.swiper-slide img {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  height: auto !important;

  object-fit: contain !important;

  margin: 0 !important;

  border-radius: 0 !important;
}



/* إزالة الفراغ فوق البانر الرئيسي فقط */
section[component-id="1992983220"][data-testid="store-home-photos-slider"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* تقليل الفراغ السفلي داخل الفوتر فقط */
footer[data-testid="store-footer"] .store-footer__inner {
    padding-bottom: 0.75rem !important;
}


/* ==================================================
   تقليل الفراغ بين الأسئلة الشائعة والفوتر
   الصفحة الرئيسية فقط
   ================================================== */

body.index section.s-block--faqs.s-block--full-bg {
  margin-bottom: 0 !important;
  padding-bottom: 28px !important;
}

body.index main#main-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.index footer[data-testid="store-footer"] {
  margin-top: 0 !important;
}



/* ==================================================
   بانر "اختيارات تكمل مساحتك"
   نفس الحجم الحالي - بدون تمدد أو تشويه
   ================================================== */

section[component-id="1045437575"][data-testid="store-home-fixed-banner"] img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: none !important;
    scale: none !important;
}

/* ==================================================
   صفحة أفياش ومفاتيح | شبكة التصنيفات الفرعية
   تعتمد على class: al-switches-category الذي يضيفه JavaScript
   الصور الأصلية تبقى 350×200
   ================================================== */

/* ===== الجوال: بطاقتان في الصف ===== */
@media (max-width: 767px) {

  body.al-switches-category
  section:has(.square-photos-grid--equal-2),
  body.al-switches-category
  .s-block:has(.square-photos-grid--equal-2) {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.al-switches-category
  .square-photos-grid--equal-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;

    gap: 10px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    direction: rtl !important;
    justify-content: stretch !important;
    align-items: stretch !important;

    transform: none !important;
    overflow: visible !important;
  }

  body.al-switches-category
  .square-photos-grid--equal-2
  .banner-entry.square-photos {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    height: auto !important;
    aspect-ratio: 350 / 200 !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: none !important;
  }
}


/* ===== التابلت: 3 بطاقات في الصف ===== */
@media (min-width: 768px) and (max-width: 1023px) {

  body.al-switches-category
  section:has(.square-photos-grid--equal-2),
  body.al-switches-category
  .s-block:has(.square-photos-grid--equal-2) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.al-switches-category
  .square-photos-grid--equal-2 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;

    gap: 12px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    direction: rtl !important;
    justify-content: stretch !important;
    align-items: stretch !important;

    transform: none !important;
    overflow: visible !important;
  }

  body.al-switches-category
  .square-photos-grid--equal-2
  .banner-entry.square-photos {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    height: auto !important;
    aspect-ratio: 350 / 200 !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: none !important;
  }
}


/* ===== الكمبيوتر: 5 بطاقات في الصف ===== */
@media (min-width: 1024px) {

  body.al-switches-category
  .square-photos-grid--equal-2 {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;

    gap: 18px !important;

    width: 100% !important;
    max-width: 1147px !important;

    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;

    direction: rtl !important;
    justify-content: center !important;
    align-items: stretch !important;

    transform: none !important;
    overflow: visible !important;
  }

  body.al-switches-category
  .square-photos-grid--equal-2
  .banner-entry.square-photos {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    height: auto !important;
    aspect-ratio: 350 / 200 !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: none !important;
  }
}

/* ==============================================================
   الأضواء العربية | إصلاح الجوال V2 - 2026-10-28
   يستبدل إصلاح الجوال السابق، وليس كودًا يضاف بعده.
   نطاق التعديل: الجوال <= 767px فقط؛ كود الكمبيوتر أعلاه دون تغيير.
   ============================================================== */
@media screen and (max-width: 767px) {


  /* 2) تصفح حسب التصنيف: بطاقة واحدة متناسبة مع 350:200. */
  body.index .square-photos-grid--equal-2 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100% - 20px) !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 10px !important;
    justify-items: stretch !important;
  }

  body.index .square-photos-grid--equal-2 .banner-entry.square-photos {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 350 / 200 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }

  body.index section:has(.square-photos-grid--equal-2),
  body.index .s-block:has(.square-photos-grid--equal-2) {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 8px !important;
  }

  /* 3) المنتجات المميزة: تقليل الجزء المقصوص من البطاقة المجاورة.
     يعتمد تحريك السلايدر نفسه على Salla/Swiper وقد يتطلب إعدادًا
     من الثيم إذا لم تتطابق نقاط التوقف مع الأحجام الجديدة. */
  body.index salla-products-slider[source="selected"] .s-slider-container {
    max-width: 100% !important;
    padding: 7px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.index salla-products-slider[source="selected"] .swiper {
    overflow: hidden !important;
  }

  body.index salla-products-slider[source="selected"] .swiper-slide {
   
    min-width: 0 !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  body.index salla-products-slider[source="selected"] .s-product-card-entry {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }


body.index salla-products-slider[source="selected"] .s-product-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}


  body.index salla-products-slider[source="selected"] .s-product-card-content {
    min-width: 0 !important;
    padding: 10px !important;
  }

  body.index salla-products-slider[source="selected"] .s-product-card-content-title a {
    overflow-wrap: anywhere !important;
  }



  /* 5) الأسئلة الشائعة: مسافات هادئة دون تغيير طريقة عملها. */
  body.index div.s-block.s-block--faqs.s-block--full-bg {
    padding-top: 12px !important;
    padding-bottom: 14px !important;
  }

  body.index div.s-block.s-block--faqs.s-block--full-bg .list {
    gap: 8px !important;
  }
}





/* ARABIAN LIGHTS - MOBILE CATEGORY MENU */

@media (max-width: 767px) {

  .store-header .al-mobile-category-bar {
    direction: rtl !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 45px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    gap: 10px !important;
    background: #0B2A45 !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
    box-sizing: border-box !important;
  }

  .store-header .al-mobile-category-bar
  > a.al-mobile-category-toggle {
    display: flex !important;
    flex: 0 0 35px !important;
    width: 35px !important;
    height: 43px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
  }

  .store-header .al-mobile-category-toggle .sicon-menu {
    color: #D9A441 !important;
    font-size: 23px !important;
    opacity: 1 !important;
  }

  .store-header .al-mobile-category-scroll {
    direction: rtl !important;
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    min-width: 0 !important;
    height: 45px !important;
    gap: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .store-header
  .al-mobile-category-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .store-header .al-mobile-category-scroll > a,
  .store-header .al-mobile-category-scroll > button {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    height: 45px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
  }

  .store-header
  .al-mobile-category-scroll
  > .al-mobile-category-more {
    color: #D9A441 !important;
  }
}

@media (min-width: 768px) {
  .store-header .al-mobile-category-bar {
    display: none !important;
  }
}





/* =====================================
   Arabian Lights - Mobile Layout Fix
   التصنيفات + المميزات الخمس
   ===================================== */

@media screen and (max-width: 767px) {

  /* التصنيفات: بطاقتان في كل صف */

  body.index .square-photos-grid--equal-2 {
    display: grid !important;
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 10px !important;
    direction: rtl !important;
  }

  body.index
  .square-photos-grid--equal-2
  .banner-entry.square-photos {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 350 / 200 !important;
  }

  /* المميزات: شريط أفقي قابل للسحب */

  body.index
  #aladwaa-store-features
  .aladwaa-features-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 6px 0 12px !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  body.index
  #aladwaa-store-features
  .aladwaa-features-container::-webkit-scrollbar {
    display: none !important;
  }

  body.index
  #aladwaa-store-features
  .aladwaa-feature,
  body.index
  #aladwaa-store-features
  .aladwaa-feature:last-child {
    display: flex !important;
    flex: 0 0 160px !important;
    grid-column: auto !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    margin: 0 !important;
    padding: 14px 10px !important;
    border: 1px solid #E7E9EC !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
  }

}






/* =====================================
   الأضواء العربية
   استعادة حجم صور المنتجات وتوحيد المحاذاة
   الجوال فقط
   ===================================== */

@media (max-width: 767px) {

  body.index
  salla-products-slider[source="selected"]
  .swiper-wrapper {
    align-items: flex-start !important;
  }

  body.index
  salla-products-slider[source="selected"]
  .swiper-slide {
    align-self: flex-start !important;
    height: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.index
  salla-products-slider[source="selected"]
  .swiper-slide > * {
    height: auto !important;
    min-height: 0 !important;
  }

  body.index
  salla-products-slider[source="selected"]
  .s-product-card-entry,
  body.index
  salla-products-slider[source="selected"]
  .s-product-card-horizontal {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
  }

  /* الصورة ترجع كبيرة ومربعة */
  body.index
  salla-products-slider[source="selected"]
  .s-product-card-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
  }

  body.index
  salla-products-slider[source="selected"]
  .s-product-card-content {
    flex: 0 0 auto !important;
  }

  body.index
  salla-products-slider[source="selected"]
  .s-product-card-content-footer {
    margin-top: 6px !important;
  }

}


/* =====================================
   الأضواء العربية | إصلاح أيقونات الفوتر
   الجوال فقط - بدون تغيير الكمبيوتر
   ===================================== */

@media (max-width: 767px) {

  /* إخفاء نسخة التواصل المكررة */
  footer[data-testid="store-footer"]
  #aladwaa-contact-socials {
    display: none !important;
  }

  /* إظهار الأيقونات الأصلية تحت تواصل معنا */
  footer[data-testid="store-footer"]
  .contact-social {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
  }

  footer[data-testid="store-footer"]
  .contact-social salla-social {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ترتيب الأيقونات في صف واحد */
  footer[data-testid="store-footer"]
  .contact-social .s-social-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
  }

  footer[data-testid="store-footer"]
  .contact-social .s-social-link {
    margin: 0 !important;
    padding: 0 !important;
  }

  footer[data-testid="store-footer"]
  .contact-social .s-social-link a {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
  }

}



  
/* ==================================================
   فوتر الجوال | إظهار مجموعة التواصل النهائية فقط
   وحذف رابط إنستقرام المكرر خارجها
   لا يؤثر في الكمبيوتر أو أزرار واتساب/الجوال
   ================================================== */
@media (max-width: 767px) {

  /* إخفاء المكوّن الاجتماعي القديم والإبقاء على المجموعة النهائية */
  footer[data-testid="store-footer"] salla-social {
    display: none !important;
  }

  footer[data-testid="store-footer"]
  #al-footer-icons-final salla-social {
    display: block !important;
  }

  /* رابط إنستقرام المنفرد خارج المجموعة النهائية */
  footer[data-testid="store-footer"] a[href*="instagram" i],
  footer[data-testid="store-footer"] .contact-social .s-social-link a[href*="instagram" i] {
    display: none !important;
  }

  /* إنستقرام المطلوب داخل الصف النهائي يظل ظاهرًا */
  footer[data-testid="store-footer"]
  #al-footer-icons-final a[href*="instagram" i] {
    display: inline-flex !important;
  }

  /* بعض قوالب سلة تضع الإطار على حاوية الرابط نفسها */
  footer[data-testid="store-footer"] .s-social-link:has(a[href*="instagram" i]) {
    display: none !important;
  }

  footer[data-testid="store-footer"]
  #al-footer-icons-final .s-social-link:has(a[href*="instagram" i]) {
    display: inline-flex !important;
  }
}


/* ===========================================================
   الأضواء العربية | البانر الرئيسي للجوال - نسخة موحدة
   - أقصى عرض متاح للصورة من دون قص أو مط
   - إزالة الهوامش البيضاء غير الضرورية
   - لا يمس الكمبيوتر أو سلايدر المنتجات
   =========================================================== */
@media screen and (max-width: 767px) {

  /* منطقة البانر: بعرض شاشة الجوال بالكامل */
  body.index [data-testid="store-home-photos-slider"] {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 calc(50% - 50vw) 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* إلغاء padding المضاف من حاويات القالب داخل البانر فقط */
  body.index [data-testid="store-home-photos-slider"] .container,
  body.index [data-testid="store-home-photos-slider"] .s-slider-container,
  body.index [data-testid="store-home-photos-slider"] salla-slider,
  body.index [data-testid="store-home-photos-slider"] .swiper,
  body.index [data-testid="store-home-photos-slider"] .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }

  /* أزل التحديد الثابت لارتفاع شريحة البانر */
  body.index [data-testid="store-home-photos-slider"] .swiper,
  body.index [data-testid="store-home-photos-slider"] .swiper-wrapper,
  body.index [data-testid="store-home-photos-slider"] .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.index [data-testid="store-home-photos-slider"] .swiper-slide > a,
  body.index [data-testid="store-home-photos-slider"] .swiper-slide picture {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* الحفاظ على كامل الصورة والنسبة الأصلية، بلا تكبير 140% */
  body.index [data-testid="store-home-photos-slider"] .swiper-slide img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  /* تقليل الفراغ بين البانر وأول قسم بعده */
  body.index section:has(.square-photos-grid--equal-2),
  body.index .s-block:has(.square-photos-grid--equal-2) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
  }
}






/* الأضواء العربية - البانر المتحرك للجوال */
@media (max-width: 767px) {

  body.index section[data-testid="store-home-photos-slider"] {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #0B2A45 !important;
  }

  body.index section[data-testid="store-home-photos-slider"]
  :is(salla-slider, .container, .s-slider-container, .swiper) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body.index section[data-testid="store-home-photos-slider"] .swiper-wrapper {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
  }

  body.index section[data-testid="store-home-photos-slider"] .swiper-slide {
    position: relative !important;
    aspect-ratio: 9 / 5 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.index section[data-testid="store-home-photos-slider"] .swiper-slide > a {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index section[data-testid="store-home-photos-slider"] .swiper-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    background: #0B2A45 !important;
  }

  body.index section:has(.square-photos-grid--equal-2) {
    padding-top: 8px !important;
  }
}




/* ==============================================================
   الأضواء العربية | هيدر الجوال - نسخة موحّدة
   نقطة تحكم واحدة للبحث + الشعار + الأقسام
   لا تمس الكمبيوتر أو أقسام الصفحة أسفل الهيدر
   =============================================================== */
@media screen and (max-width: 767px) {

  /* منع تثبيت هيدر الجوال عند التمرير */
  body .store-header,
  body .store-header #mainnav,
  body .store-header #mainnav.fixed-header,
  body .store-header .main-nav-container,
  body .store-header .main-nav-container.fixed-header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .store-header,
  body .store-header .top-navbar,
  body .store-header .main-nav-container {
    background-color: #0B2A45 !important;
  }

  /* نفس هامش 12px للصفوف الثلاثة */
  body .store-header .top-navbar {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    box-sizing: border-box !important;
  }

  /* لا يتجاوز مجموع البحث واللغة عرض الشاشة */
  body .store-header .top-navbar .container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  body .store-header .top-navbar .container > .flex-1,
  body .store-header .top-navbar .header-search {
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .store-header .top-navbar salla-search {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }

  body .store-header .top-navbar .s-search-input,
  body .store-header .top-navbar input[type="search"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    font-size: 14px !important;
    border-radius: 13px !important;
    box-sizing: border-box !important;
  }

  /* الصف الثاني: هامش جانبي متساوٍ دون تضييق الشعار والأيقونات */
  body .store-header .main-nav-container,
  body .store-header .main-nav-container > .container,
  body .store-header .main-nav-container > .container > .flex {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  body .store-header .main-nav-container > .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 12px !important;
  }

  body .store-header .main-nav-container > .container > .flex {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-inline: 0 !important;
    align-items: center !important;
  }

  body .store-header .navbar-brand {
    display: flex !important;
    align-items: center !important;
    height: 50px !important;
    max-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .store-header .navbar-brand img {
    width: auto !important;
    max-width: 115px !important;
    max-height: 40px !important;
    object-fit: contain !important;
  }

  /* المحافظة على اللون الأبيض للأيقونات على خلفية كحلية */
  body .store-header .main-nav-container,
  body .store-header .main-nav-container a,
  body .store-header .main-nav-container button,
  body .store-header .main-nav-container i,
  body .store-header .main-nav-container .header-buttons,
  body .store-header .main-nav-container .header-buttons *,
  body .store-header .main-nav-container salla-cart-summary,
  body .store-header .main-nav-container salla-cart-summary *,
  body .store-header .main-nav-container salla-user-menu {
    color: #FFFFFF !important;
  }

  body .store-header .main-nav-container .header-buttons svg,
  body .store-header .main-nav-container salla-cart-summary svg {
    color: #FFFFFF !important;
  }

  body .store-header .main-nav-container .header-buttons svg [stroke]:not([stroke="none"]),
  body .store-header .main-nav-container salla-cart-summary svg [stroke]:not([stroke="none"]) {
    stroke: #FFFFFF !important;
  }

  /* الصف الثالث: القائمة الأفقية مع زر ☰ */
  body .store-header .al-mobile-category-bar {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 12px !important;
    gap: 8px !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  body .store-header .al-mobile-category-bar > a.al-mobile-category-toggle {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 44px !important;
  }

  body .store-header .al-mobile-category-scroll {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    gap: 12px !important;
    overflow-x: auto !important;
  }

  body .store-header .al-mobile-category-scroll > a,
  body .store-header .al-mobile-category-scroll > button {
    height: 44px !important;
  }
}


/* ============================================================
   الأضواء العربية | إصلاح فعلي لترتيب بحث الجوال
   الاستهداف الصحيح: .container > .flex-1 > (.header-buttons, .header-search)
   البحث على اليمين / اختيار اللغة والعملة على اليسار
   لا يغير الكمبيوتر أو صف الشعار أو قائمة الأقسام
   ============================================================ */
@media screen and (max-width: 767px) {

  body .store-header .top-navbar .container > .flex-1 {
    display: flex !important;
    flex-direction: row-reverse !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
  }

  body .store-header .top-navbar .container > .flex-1 > .header-buttons {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .store-header .top-navbar .container > .flex-1 > .header-search {
    display: block !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
  }
}

/* ============================================================
   الأضواء العربية | جميع قوائم التصنيفات الفرعية للجوال
   يعالج تعدد قوائم عناصر سلة (حتى 6 صور في كل قائمة).
   JavaScript يضيف al-category-grid إلى كل شبكة وal-category-card
   لا يعتمد على اسم modifier مثل square-photos-grid--equal-2.
   ============================================================ */

/* أسماء التصنيفات الجديدة للجوال فقط، دون تغيير الكمبيوتر */
body.al-switches-category .al-category-card .al-category-name {
  display: none !important;
}

@media screen and (max-width: 767px) {
  body.al-switches-category .al-category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    direction: rtl !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  body.al-switches-category .al-category-grid > .al-category-card,
  body.al-switches-category .al-category-grid .banner-entry.square-photos.al-category-card {
    display: flex !important;
    flex-direction: column !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
  }

  /* صورة التصنيف: نفس النسبة الأصلية 350×200 */
  body.al-switches-category .al-category-grid .al-category-card .lazy__bg,
  body.al-switches-category .al-category-grid .al-category-card > img,
  body.al-switches-category .al-category-grid .al-category-card > picture {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 350 / 200 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  body.al-switches-category .al-category-grid .al-category-card > picture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  body.al-switches-category .al-category-grid .al-category-card .al-category-name {
    display: block !important;
    position: static !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 7px 4px 9px !important;
    color: #071B33 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }
}


/* ============================================================
   الأضواء العربية | إنهاء تنسيق قوائم التصنيفات | الجوال فقط
   1) توحيد خلفية القوائم المتعددة (6 + 6 + 6 + 2)
   2) إزالة الإطار الأبيض والظل المختلف من آخر بطاقتين
   3) تخفيف المسافات أعلى أول قائمة بعد مسار الصفحة
   يُستخدم مع JavaScript الحالي الذي يضيف al-category-grid/card.
   لا يغير الرئيسية أو الكمبيوتر أو أسماء التصنيفات.
   ============================================================ */
@media screen and (max-width: 767px) {

  /* منع الخلفية الرمادية التي يضيفها قالب قائمة العناصر
     لبعض القوائم فقط (خاصة القائمة ذات الصورتين). */
  body.al-switches-category section:has(.al-category-grid),
  body.al-switches-category .s-block:has(.al-category-grid) {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 8px !important;
  }

  body.al-switches-category section:has(.al-category-grid)::before,
  body.al-switches-category .s-block:has(.al-category-grid)::before {
    content: none !important;
    display: none !important;
  }

  /* جميع الشبكات بخلفية ومسافات متساوية،
     من غير التأثير على عمودين أو النصوص أسفل الصور. */
  body.al-switches-category .al-category-grid {
    background: transparent !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* إزالة الصندوق والظل المحيط بآخر بطاقتين؛
     نطبق القاعدة على كل البطاقات لتبقى موحدة مستقبلًا. */
  body.al-switches-category
  .al-category-grid .banner-entry.square-photos.al-category-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* شكل الصور مثل البقية: زوايا علوية مستديرة دون تمديد أو قص. */
  body.al-switches-category .al-category-grid
  .al-category-card .lazy__bg,
  body.al-switches-category .al-category-grid
  .al-category-card > img,
  body.al-switches-category .al-category-grid
  .al-category-card > picture {
    border-radius: 12px 12px 0 0 !important;
    box-shadow: none !important;
  }

  body.al-switches-category .al-category-grid
  .al-category-card .al-category-name {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* تقليل المسافة بعد مسار الصفحة وقبل شبكة التصنيفات. */
  body.al-switches-category main:has(.al-category-grid) {
    padding-top: 0 !important;
  }

  body.al-switches-category salla-breadcrumb,
  body.al-switches-category .breadcrumb,
  body.al-switches-category .breadcrumbs,
  body.al-switches-category [data-testid="breadcrumbs"] {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
  }
}


/* ===============================================================
   الأضواء العربية | ضبط نسخة اللابتوب للتصنيفات العشرين
   - 5 بطاقات في الصف مع الاسم أسفل كل صورة
   - جميع القوائم تجتمع في شبكة واحدة بواسطة JS عند عرض >=1024px
   - بدون تغيير شكل الجوال المعتمد
   =============================================================== */
@media screen and (min-width: 1024px) {

  /* إلغاء القوائم التي أصبحت خالية بعد تجميع صورها في الشبكة الأولى */
  body.al-switches-category .al-desktop-empty-section,
  body.al-switches-category .al-desktop-empty-grid {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.al-switches-category .al-category-grid.al-desktop-merged-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    direction: rtl !important;
    gap: 18px !important;
    width: min(100%, 1147px) !important;
    max-width: 1147px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-content: stretch !important;
    justify-items: stretch !important;
    align-items: start !important;
  }

  body.al-switches-category .al-category-grid.al-desktop-merged-grid > .banner-entry.square-photos.al-category-card {
    display: flex !important;
    position: relative !important;
    flex-direction: column !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-decoration: none !important;
  }

  body.al-switches-category .al-category-grid.al-desktop-merged-grid > .al-category-card > .lazy__bg,
  body.al-switches-category .al-category-grid.al-desktop-merged-grid > .al-category-card > img,
  body.al-switches-category .al-category-grid.al-desktop-merged-grid > .al-category-card > picture {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 350 / 200 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 11px !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    object-fit: contain !important;
    object-position: center center !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.al-switches-category .al-category-grid.al-desktop-merged-grid > .al-category-card > picture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* سابقًا كانت هذه الأسماء مخفية على الكمبيوتر display:none!important */
  body.al-switches-category .al-category-grid.al-desktop-merged-grid > .al-category-card > .al-category-name {
    display: block !important;
    position: static !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 4px 7px !important;
    color: #071B33 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }
}

/* التابلت: نُظهر أسماء التصنيفات ونثبت ثلاث بطاقات في الصف */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  body.al-switches-category .al-category-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: calc(100% - 32px) !important;
    margin: 0 auto !important;
    direction: rtl !important;
  }
  body.al-switches-category .al-category-grid > .al-category-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  body.al-switches-category .al-category-grid > .al-category-card .lazy__bg {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 350 / 200 !important;
    background-size: contain !important;
  }
  body.al-switches-category .al-category-grid > .al-category-card .al-category-name {
    display: block !important;
    position: static !important;
    width: 100% !important;
    padding: 8px 4px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #071B33 !important;
  }
}




/* توفل الذهبي في القائمة الجانبية للجوال */
@media (max-width: 767px) {
  a[href*="c272047164"],
  a[href*="c272047164"] span,
  a[href*="c272047164"] strong {
    color: #D9A441 !important;
    font-weight: 800 !important;
    text-align: right !important;
    text-shadow:
      0 0 6px rgba(217,164,65,.55),
      0 0 14px rgba(217,164,65,.30) !important;
  }
}