/* ---------------------------- البودي والخلفيات ---------------------------- */
body#app {
  background-color: white;
}

.banner--fixed img,
.lazy__bg.lazy.bg-no-repeat.entered.loaded {
  background-color: white;
}

/* ---------------------------- أول بانر (الهيرو) ---------------------------- */
section.s-block.s-block--fixed-banner.wide-placeholder {
  margin-top: 0;
}

section.s-block.s-block--fixed-banner.wide-placeholder:first-of-type {
  height: 100%;
  overflow: hidden;
}

section.s-block.s-block--fixed-banner.wide-placeholder > .container {
  max-width: 80%;
  padding: 0;
}

/* ---------------------------- جريد البانرات ---------------------------- */
.s-block--banners .grid.two-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

/* عنصر البانر الأول ممتد صفين */
.two-row .banner-entry:first-child {
  grid-column: span 1;
  grid-row: span 2;
}

/* ---------------------------- تكبير البانرات على الديسكتوب ---------------------------- */
@media (min-width: 1024px) {
  .s-block--banners .grid.two-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 130%;
    margin: -60px auto 0 auto;
    padding-left: 200px;
    width: 120%;
  }

  .banner-entry {
    height: 544px;
  }
}

/* ---------------------------- كروت المنتجات ---------------------------- */
.s-products-slider-card custom-salla-product-card,
custom-salla-product-card.s-product-card-entry {
  border: 2px solid #000000 !important;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.35s ease;
}

.s-products-slider-card custom-salla-product-card:hover,
custom-salla-product-card.s-product-card-entry:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
  border-color: #000000;
}

.s-products-slider-card custom-salla-product-card:hover img {
  transform: scale(1.04);
  transition: 0.4s ease-in-out;
}

/* ---------------------------- زر إضافة للسلة ---------------------------- */
button[product-type="product"].s-button-element {
  background-color: #000000 !important;
  border: 2px solid #000000 !important;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: 0.35s ease;
}

button[product-type="product"].s-button-element .s-button-text,
button[product-type="product"].s-button-element .s-button-text span,
button[product-type="product"].s-button-element i {
  color: #fff !important;
}

button[product-type="product"].s-button-element:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.55);
}

button[product-type="product"].s-button-element::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.5s;
}

button[product-type="product"].s-button-element:hover::after {
  left: 130%;
}

/* ---------------------------- أقسام العروض ---------------------------- */
section#best-offers-2-slider,
salla-slider#slider-with-bg-4 {
  margin-bottom: 50px;
}

/* ---------------------------- ميزات الكروت ---------------------------- */
.s-block--features__item {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.s-block--features__item:hover {
  border-color: rgba(0, 0, 0, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.s-block--features__item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, 0);
  transition: border-color 0.4s ease;
  pointer-events: none;
}

.s-block--features__item:hover::before {
  border-color: rgba(0, 0, 0, 0.6);
}

/* ---------------------------- جريد الموبايل ---------------------------- */
@media (max-width: 767px) {
  /* ضبط slider */
  #photos-0-slider > div.swiper.s-slider-container.swiper-initialized.swiper-horizontal.swiper-rtl.swiper-ios.swiper-backface-hidden {
    padding: 0;
  }

  /* حجم كروت المنتجات */
  .s-products-slider-card {
    max-width: 185px;
  }

  .main-nav-container {
    min-height: 56px;
  }

  /* حجم الخط للأزرار */
  .s-button-element:not(:disabled):not([loading]) {
    font-size: 11px;
  }

  /* أول بانر ياخد كامل العرض */
  section.s-block.s-block--fixed-banner.wide-placeholder > .container {
    max-width: 100%;
    padding: 0;
  }

 
}
@media (max-width: 767px) {
  .s-block--banners .grid.two-row {
    grid-template-columns: repeat(3, 1fr);
    
  }
}
@media (max-width: 767px) {
  /* الجريد الثاني فقط */
  .grid.one-row.md\:grid-cols-2.grid-flow-row.gap-3.sm\:gap-8 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين جنب بعض */
    gap: 0.75rem; /* المسافة بين العناصر */
  }

  /* العناصر داخل الجريد الثاني تأخذ كامل العمود */
  .grid.one-row.md\:grid-cols-2.grid-flow-row.gap-3.sm\:gap-8 .banner-entry {
    width: 100%;
  }
}