/* بانر الرئيسية وتبويب التخفيضات في ثيم كليك */
body.theme-click.index .hero-area > div:first-child > div:has(> .store-desc-wrap),
body.theme-click .hero-area li:has(> .offers-link) {
  display: none;
}
body.theme-click.index .hero-area > div:first-child > a:has(> img) {
  width: 100%;
  margin-inline: 0;
}
body.theme-click.index .hero-area > div:first-child > a > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

/* بطاقات أقسام الرئيسية */
body.theme-click.index .hero-area .cats-list-wrap-inner { overflow: visible; }
body.theme-click.index .hero-area .cats-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 28px);
  max-width: 820px;
  width: 100%;
  margin: 20px auto;
  padding: 0;
  overflow: visible;
}
body.theme-click.index .hero-area .cats-list > li:not(:has(> a[href$="/c1475802389"], > a[href$="/c1974250213"])) { display: none; }
body.theme-click.index .hero-area .cats-list > li { min-width: 0; margin: 0; }
body.theme-click.index .hero-area .cats-list > li > a {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  white-space: normal;
  text-align: center;
  gap: 8px;
  padding: 0;
  color: #122450;
  font-weight: 700;
}
body.theme-click.index .hero-area .cats-list > li > a::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: #edf3ff var(--category-image) center / contain no-repeat;
  box-shadow: inset 0 0 0 1px #dce6fa;
}
body.theme-click.index .hero-area .cats-list a[href$="/c1475802389"] { --category-image: url("https://cdn.salla.sa/xvAgoP/4ccd6bf6-6e06-42e2-9850-1c8a3b7968f9-382.57575757576x500-DVli0ObZ2iMTcxrr9jmL2JOASm5ClGJat7FysGeF.jpg"); }
body.theme-click.index .hero-area .cats-list a[href$="/c1974250213"] { --category-image: url("https://cdn.files.salla.network/other/155527103/139e46a0-92f1-4330-8770-cfdc51d76021-standard.webp"); }

body.theme-click.index .hero-area .cats-list:not(:has(a[href$="/c1974250213"])) { grid-template-columns: minmax(0, 360px); justify-content: center; }

/* زر الرجوع للرئيسية داخل التصنيفات */
body.theme-click.product-index .hero-area { display: flex !important; }
body.theme-click.product-index .hero-area > :not(.home-tabs),
body.theme-click.product-index .hero-area .home-tabs > li:not(:has(> .store-link)) { display: none !important; }
body.theme-click.product-index .hero-area .home-tabs { display: flex; justify-content: flex-start; margin: 8px 0; border: 0; }
body.theme-click.product-index .hero-area .home-tabs > li { width: auto; flex: 0 0 auto; }
body.theme-click.product-index .hero-area .store-link { display: inline-flex; border: 0; border-radius: 10px; padding: 8px 14px; background: #edf3ff; color: #122450; font-weight: 700; }
body.theme-click.product-index .hero-area .store-link > span { display: none; }
body.theme-click.product-index .hero-area .store-link::after { content: "الصفحة الرئيسية"; }

/* عرض المنتجات داخل الأقسام فقط */
body.theme-click.index #main-content.store-main { display: none !important; }


/* منع قوائم الشراء السابق من الظهور خارج المحتوى الرئيسي */
body.theme-click.index .store-content > :not(header, .hero-area, .footer-wrapper):has(custom-salla-product-card, salla-product-card, salla-products-list, salla-products-slider),
body.theme-click.index .store-content > :is(salla-products-list, salla-products-slider, salla-reorder, salla-reorder-products),
body.theme-click.index .store-content > .s-block { display: none !important; }