/* القسم بالكامل */
main section[data-testid="store-home-square-banners"].s-block--banners {
  position: relative !important;
  padding: 70px 14px 45px !important;
  overflow: visible !important;
}

/* عنوان: تسوق حسب القسم */
main section[data-testid="store-home-square-banners"].s-block--banners::before {
  content: "تسوق حسب القسم" !important;
  display: block !important;
  position: absolute !important;
  top: 15px !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  color: #111 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

/* ترتيب الصور */
main section[data-testid="store-home-square-banners"].s-block--banners > .grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 35px !important;
  column-gap: 20px !important;
  row-gap: 60px !important;
  overflow: visible !important;
}

/* الصورة الدائرية – 7 صور على الكمبيوتر */
main section[data-testid="store-home-square-banners"] .banner-entry {
  position: relative !important;
  display: block !important;
  flex: 0 0 calc((100% - 120px) / 7) !important;
  width: calc((100% - 120px) / 7) !important;
  max-width: 155px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 50% !important;
  background-repeat: no-repeat !important;
  background-size: 118% 118% !important;
  background-position: center !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: none !important;
}

/* إخفاء نص سلة داخل الصورة */
main section[data-testid="store-home-square-banners"] .banner-entry__text {
  display: none !important;
}

main section[data-testid="store-home-square-banners"] .banner-entry::before {
  display: none !important;
}

/* اسم القسم أسفل الصورة */
main section[data-testid="store-home-square-banners"] .banner-entry::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 50% !important;
  left: auto !important;
  width: 130% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: translateX(50%) !important;
  background: transparent !important;
  color: #111 !important;
  opacity: 1 !important;
  z-index: 10 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  white-space: normal !important;
  text-shadow: none !important;
  pointer-events: none !important;
}

/* أسماء الأقسام */
main section[data-testid="store-home-square-banners"]
.banner-entry:nth-child(1)::after {
  content: "العبايات" !important;
}

main section[data-testid="store-home-square-banners"]
.banner-entry:nth-child(2)::after {
  content: "الشنط" !important;
}

main section[data-testid="store-home-square-banners"]
.banner-entry:nth-child(3)::after {
  content: "الشوزات" !important;
}

main section[data-testid="store-home-square-banners"]
.banner-entry:nth-child(4)::after {
  content: "التخفيضات" !important;
}

main section[data-testid="store-home-square-banners"]
.banner-entry:nth-child(5)::after {
  content: "الطرح والنقابات" !important;
}

main section[data-testid="store-home-square-banners"]
.banner-entry:nth-child(6)::after {
  content: "جديدنا" !important;
}

/* صورة كل التصنيفات الجديدة */
main section[data-testid="store-home-square-banners"]
.banner-entry.bys-all-categories {
  background-image: url("https://i.postimg.cc/tJMy4pbs/Chat-GPT-Image-Aug-25-2026-06-26-31-PM.png") !important;
}

/* اسم القسم الجديد */
main section[data-testid="store-home-square-banners"]
.banner-entry.bys-all-categories::after {
  content: "كل التصنيفات" !important;
}

/* التابلت: 4 صور في الصف */
@media (min-width: 768px) and (max-width: 1199px) {
  main section[data-testid="store-home-square-banners"] .banner-entry {
    flex: 0 0 calc((100% - 60px) / 4) !important;
    width: calc((100% - 60px) / 4) !important;
    max-width: 160px !important;
  }
}

/* الموبايل: 3 صور في الصف */
@media (max-width: 767px) {
  main section[data-testid="store-home-square-banners"].s-block--banners {
    padding: 58px 10px 42px !important;
  }

  main section[data-testid="store-home-square-banners"].s-block--banners::before {
    top: 12px !important;
    font-size: 22px !important;
  }

  main section[data-testid="store-home-square-banners"].s-block--banners > .grid {
    column-gap: 8px !important;
    row-gap: 52px !important;
    padding-bottom: 30px !important;
  }

  main section[data-testid="store-home-square-banners"] .banner-entry {
    flex: 0 0 calc((100% - 16px) / 3) !important;
    width: calc((100% - 16px) / 3) !important;
    max-width: 118px !important;
    background-size: 120% 120% !important;
  }

  main section[data-testid="store-home-square-banners"] .banner-entry::after {
    top: calc(100% + 7px) !important;
    width: 125% !important;
    font-size: 13px !important;
  }

  main section[data-testid="store-home-square-banners"]
  .banner-entry:nth-child(5)::after {
    width: 155% !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }
}
/* قسم كل التصنيفات */
main section[data-testid="store-home-square-banners"]
.banner-entry.bys-all-categories {
  position: relative !important;
  background: #f1f1f1 !important;
  overflow: visible !important;
}

/* صورة القسم */
main section[data-testid="store-home-square-banners"]
.banner-entry.bys-all-categories .bys-category-image {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* اسم القسم */
main section[data-testid="store-home-square-banners"]
.banner-entry.bys-all-categories::after {
  content: "كل التصنيفات" !important;
  z-index: 10 !important;
}