/* Add custom CSS styles below */ 
.overlay-bg {
    background-position: top;
}

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

.banner img {
  height: 440px !important;
  object-fit: cover !important;
}

/* ===== تحسين شكل سكشن التصنيفات ===== */
.s-block.s-block--categories {
  padding: 30px 0;
  position: relative;
}

.s-block.s-block--categories .container {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #eef2f7;
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* عنوان السكشن */
.s-block.s-block--categories .s-slider-block__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.s-block.s-block--categories .s-slider-block__title-right h2 {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.s-block.s-block--categories .s-slider-block__title-right h2::before {
  content: "";
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  display: inline-block;
}

/* السلايدر */
.s-block.s-block--categories .swiper {
  padding: 8px 4px 12px;
}

.s-block.s-block--categories .swiper-wrapper {
  align-items: stretch;
}

/* كل عنصر تصنيف */
.s-block.s-block--categories .swiper-slide {
  height: auto;
}

.s-block.s-block--categories .slide--cat-entry {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 22px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 190px;
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.s-block.s-block--categories .slide--cat-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(34, 197, 94, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.s-block.s-block--categories .slide--cat-entry:hover {
  transform: translateY(-8px);
  border-color: #22c55e;
  box-shadow: 0 18px 35px rgba(34, 197, 94, 0.14);
}

.s-block.s-block--categories .slide--cat-entry:hover::before {
  opacity: 1;
}

/* الصور */
.s-block.s-block--categories .slide--cat-entry img {
  width: 78px !important;
  height: 78px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f0fdf4;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.12);
  margin-bottom: 14px !important;
  transition: transform 0.35s ease;
  position: relative;
  z-index: 1;
}

.s-block.s-block--categories .slide--cat-entry:hover img {
  transform: scale(1.08);
}

/* الأيقونة لو مفيش صورة */
.s-block.s-block--categories .slide--cat-entry i {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 14px;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.s-block.s-block--categories .slide--cat-entry:hover i {
  transform: scale(1.08);
}

/* اسم التصنيف */
.s-block.s-block--categories .slide--cat-entry h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.s-block.s-block--categories .slide--cat-entry:hover h2 {
  color: #16a34a;
}

/* إخفاء عناصر المحرر */
.s-block.s-block--categories .s-design-before,
.s-block.s-block--categories .s-design-after {
  display: none !important;
}

/* تحسين للموبايل */
@media (max-width: 768px) {
  .s-block.s-block--categories {
    padding: 20px 0;
  }

  .s-block.s-block--categories .container {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .s-block.s-block--categories .s-slider-block__title-right h2 {
    font-size: 22px;
  }

  .s-block.s-block--categories .slide--cat-entry {
    min-height: 160px;
    padding: 18px 12px;
    border-radius: 18px;
  }

  .s-block.s-block--categories .slide--cat-entry img,
  .s-block.s-block--categories .slide--cat-entry i {
    width: 64px !important;
    height: 64px !important;
    font-size: 24px;
  }

  .s-block.s-block--categories .slide--cat-entry h2 {
    font-size: 15px;
  }
}



.s-block.s-block--fixed-banner {
  padding: 28px 0;
}

.s-block.s-block--fixed-banner .banner.banner--fixed {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.12);
  border: 1px solid #dcfce7;
  background: #fff;
  transition: all 0.35s ease;
}

.s-block.s-block--fixed-banner .banner.banner--fixed:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.18);
}

.s-block.s-block--fixed-banner .banner.banner--fixed::before {
  content: "العروض المميزة";
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.s-block.s-block--fixed-banner .banner.banner--fixed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.08), rgba(0,0,0,0));
  z-index: 1;
  pointer-events: none;
}

.s-block.s-block--fixed-banner .banner.banner--fixed img {
  width: 100% !important;
  display: block;
  transition: transform 0.5s ease;
}

.s-block.s-block--fixed-banner .banner.banner--fixed:hover img {
  transform: scale(1.03);
}

.s-block.s-block--fixed-banner .s-design-before,
.s-block.s-block--fixed-banner .s-design-after {
  display: none !important;
}