/* Hide unfinished placeholder options on Cronus BO7 and show its details directly. */
#product-309762369 .options-tab,
#product-309762369 #product-tabs-options { display: none !important; }
#product-309762369 #product-tabs-details { display: block !important; }
/* Matrix pages must not show the Cronus promotional badge. */
:is(#product-1602131429,#product-1043033852,#product-87564689,#product-1426977504) .promotion-title { display: none !important; }
/* Immediate storefront label cleanup */
.s-product-card-content-title:has(a[href*="/matrix-bo7"]) > a,
.s-product-card-content-title:has(a[href*="/matrix-bo6"]) > a,
.s-product-card-content-title:has(a[href*="/matrix-mw1"]) > a { display: none !important; }
.s-product-card-content-title:has(a[href*="/matrix-bo7"])::after { content: "Matrix — BO7"; }
.s-product-card-content-title:has(a[href*="/matrix-bo6"])::after { content: "Matrix — BO6"; }
.s-product-card-content-title:has(a[href*="/matrix-mw1"])::after { content: "Matrix — MW1"; }
.s-contacts-title { display: none !important; }
/* X8.Zen — safe responsive fixes */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Keep catalog cards fluid without changing Malak's native grid. */
:is(
  html:has(link[rel="canonical"][href*="/c207850508"]),
  html:has(link[rel="canonical"][href*="/c1293371592"])
) body.product-index .s-products-list-wrapper,
:is(
  html:has(link[rel="canonical"][href*="/c207850508"]),
  html:has(link[rel="canonical"][href*="/c1293371592"])
) body.product-index .s-product-card-entry {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

:is(
  html:has(link[rel="canonical"][href*="/c207850508"]),
  html:has(link[rel="canonical"][href*="/c1293371592"])
) body.product-index .s-product-card-image img {
  object-fit: contain !important;
  object-position: center !important;
}

:is(
  html:has(link[rel="canonical"][href*="/c207850508"]),
  html:has(link[rel="canonical"][href*="/c1293371592"])
) body.product-index .s-product-card-promotion-title,
:is(
  html:has(link[rel="canonical"][href*="/c207850508"]),
  html:has(link[rel="canonical"][href*="/c1293371592"])
) body.product-index .s-product-card-category {
  display: none !important;
}

:is(
  html:has(link[rel="canonical"][href*="/c207850508"]),
  html:has(link[rel="canonical"][href*="/c1293371592"])
) body.product-index .s-product-card-content-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  white-space: normal !important;
  min-height: 2.8em !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
}

/* Keep script-product media inside the mobile viewport. */
:is(
  #product-936322126,
  #product-309762369,
  #product-317745059,
  #product-479123315,
  #product-1602131429,
  #product-1043033852,
  #product-87564689,
  #product-1426977504
) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

:is(
  #product-936322126,
  #product-309762369,
  #product-317745059,
  #product-479123315,
  #product-1602131429,
  #product-1043033852,
  #product-87564689,
  #product-1426977504
) .swiper,
:is(
  #product-936322126,
  #product-309762369,
  #product-317745059,
  #product-479123315,
  #product-1602131429,
  #product-1043033852,
  #product-87564689,
  #product-1426977504
) .swiper-slide {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

:is(
  #product-936322126,
  #product-309762369,
  #product-317745059,
  #product-479123315,
  #product-1602131429,
  #product-1043033852,
  #product-87564689,
  #product-1426977504
) .swiper-slide img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Existing Cronus BO1 & BO2 detail-image replacement. */
#product-936322126 #details-slider-936322126 .swiper-slide:first-child img {
  content: url("https://cdn.files.salla.network/other/1742411221/28fdfa54-3a79-47e8-9ceb-8c3e63f975a0-original.webp");
}

/* Customer support is WhatsApp-only. */
footer a[href^="tel:"] {
  display: none !important;
}
footer h3:has(+ a[href^="tel:"]) {
  display: none !important;
}
footer .footer-profile > p {
  display: none !important;
}

/* Hide product-review tab across the storefront. */
.tab-trigger.reveiws-tab {
  display: none !important;
}

/* Product page uses the matching horizontal detail artwork; category keeps the cover. */
#product-309762369 #details-slider-309762369 .swiper-slide:first-child img {
  content: url("https://cdn.files.salla.network/other/1742411221/43feb886-2b24-4caa-86e0-3a70ec0c49e2-original.webp");
}
#product-317745059 #details-slider-317745059 .swiper-slide:first-child img {
  content: url("https://cdn.files.salla.network/other/1742411221/93b03537-4cfa-4bd6-9742-f3ed9f028f05-original.webp");
}
#product-479123315 #details-slider-479123315 .swiper-slide:first-child img {
  content: url("https://cdn.files.salla.network/other/1742411221/c7a9d698-b802-47c7-9cb5-ef043a7f3c71-original.webp");
}
#product-1602131429 #details-slider-1602131429 .swiper-slide:first-child img {
  content: url("https://cdn.files.salla.network/other/1742411221/5b0de6b0-ae40-4fdf-bad7-74bcae585715-original.webp");
}
#product-1043033852 #details-slider-1043033852 .swiper-slide:first-child img {
  content: url("https://cdn.files.salla.network/other/1742411221/2e147a25-1f5a-4948-be1a-752b3e65be18-original.webp");
}
#product-87564689 #details-slider-87564689 .swiper-slide:first-child img {
  content: url("https://cdn.files.salla.network/other/1742411221/571b8948-7304-49f6-80e1-613ed03161cd-original.webp");
}
#product-1426977504 #details-slider-1426977504 .swiper-slide:first-child img {
  content: url("https://cdn.files.salla.network/other/1742411221/18d2adb5-502a-4fc3-a02c-762e4c301d81-original.webp");
}

/* Remove the outdated Cronus badge from Matrix recommendation cards. */
.s-product-card-entry:has(a[href*="/matrix-"]) .s-product-card-promotion-title {
  display: none !important;
}

/* Clean temporary labels until Salla's category index finishes refreshing. */
.s-product-card-entry h3 a[href*="/matrix-bo7"],
.s-product-card-content-title a[href*="/matrix-bo7"] {
  font-size: 0 !important;
}
.s-product-card-entry h3 a[href*="/matrix-bo7"]::after,
.s-product-card-content-title a[href*="/matrix-bo7"]::after {
  content: "Matrix — BO7";
  font-size: 1rem !important;
}
.s-product-card-entry h3 a[href*="/matrix-bo6"],
.s-product-card-content-title a[href*="/matrix-bo6"] {
  font-size: 0 !important;
}
.s-product-card-entry h3 a[href*="/matrix-bo6"]::after,
.s-product-card-content-title a[href*="/matrix-bo6"]::after {
  content: "Matrix — BO6";
  font-size: 1rem !important;
}
.s-product-card-entry h3 a[href*="/matrix-mw1"],
.s-product-card-content-title a[href*="/matrix-mw1"] {
  font-size: 0 !important;
}
.s-product-card-entry h3 a[href*="/matrix-mw1"]::after,
.s-product-card-content-title a[href*="/matrix-mw1"]::after {
  content: "Matrix — MW1";
  font-size: 1rem !important;
}

/* WhatsApp-only support: remove the empty phone heading. */
.s-contacts-title {
  display: none !important;
}

/* cronus-device-required: clear device requirement on Cronus script cards and pages. */
:is(
  #angel-product-936322126,
  #angel-product-309762369,
  #angel-product-317745059,
  #angel-product-479123315,
  #angel-product-773925010,
  #angel-product-1037049444
) .s-product-card-content-main::after {
  content: "يلزم توفر جهاز Cronus Zen";
  display: block;
  margin-top: .35rem;
  padding: .32rem .45rem;
  color: #f4b316;
  background: rgba(244, 179, 22, .07);
  border: 1px solid rgba(244, 179, 22, .35);
  border-radius: .5rem;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
html[lang="en"] :is(
  #angel-product-936322126,
  #angel-product-309762369,
  #angel-product-317745059,
  #angel-product-479123315,
  #angel-product-773925010,
  #angel-product-1037049444
) .s-product-card-content-main::after {
  content: "Cronus Zen device required";
}

:is(
  #product-936322126,
  #product-309762369,
  #product-317745059,
  #product-479123315,
  #product-773925010,
  #product-1037049444
) .main-content > .flex.flex-col:has(> h1)::after {
  content: "تنبيه: يلزم توفر جهاز Cronus Zen لتشغيل السكربت";
  display: block;
  margin-top: .65rem;
  padding: .65rem .8rem;
  color: #f4b316;
  background: rgba(244, 179, 22, .08);
  border: 1px solid rgba(244, 179, 22, .4);
  border-radius: .65rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.55;
}
html[lang="en"] :is(
  #product-936322126,
  #product-309762369,
  #product-317745059,
  #product-479123315,
  #product-773925010,
  #product-1037049444
) .main-content > .flex.flex-col:has(> h1)::after {
  content: "Note: A Cronus Zen device is required to use this script";
}

/* xim-matrix-device-required: clear device requirement on Matrix script cards and pages. */
:is(
  #angel-product-1602131429,
  #angel-product-1043033852,
  #angel-product-87564689,
  #angel-product-1426977504
) .s-product-card-content-main::after {
  content: "يلزم توفر جهاز XIM Matrix";
  display: block;
  margin-top: .35rem;
  padding: .32rem .45rem;
  color: #f4b316;
  background: rgba(244, 179, 22, .07);
  border: 1px solid rgba(244, 179, 22, .35);
  border-radius: .5rem;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
html[lang="en"] :is(
  #angel-product-1602131429,
  #angel-product-1043033852,
  #angel-product-87564689,
  #angel-product-1426977504
) .s-product-card-content-main::after {
  content: "XIM Matrix device required";
}

:is(
  #product-1602131429,
  #product-1043033852,
  #product-87564689,
  #product-1426977504
) .main-content > .flex.flex-col:has(> h1)::after {
  content: "تنبيه: يلزم توفر جهاز XIM Matrix لتشغيل السكربت";
  display: block;
  margin-top: .65rem;
  padding: .65rem .8rem;
  color: #f4b316;
  background: rgba(244, 179, 22, .08);
  border: 1px solid rgba(244, 179, 22, .4);
  border-radius: .65rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.55;
}
html[lang="en"] :is(
  #product-1602131429,
  #product-1043033852,
  #product-87564689,
  #product-1426977504
) .main-content > .flex.flex-col:has(> h1)::after {
  content: "Note: An XIM Matrix device is required to use this script";
}