/* =========================
   X8 Products Showcase
   ========================= */

#x8-product-showcase {
  --x8-red: #d61f2c;
  --x8-dark: #101114;
  --x8-border: #262931;
  --x8-text: #ffffff;
  --x8-sub: #a9adb8;

  direction: rtl;
  width: min(1400px, calc(100% - 24px));
  margin: 28px auto;
  padding: 30px 22px;
  background: linear-gradient(180deg, #121319 0%, #0d0e12 100%);
  border: 1px solid var(--x8-border);
  border-radius: 22px;
  color: var(--x8-text);
  overflow: hidden;
  box-sizing: border-box;
}

#x8-product-showcase *,
#x8-product-showcase *::before,
#x8-product-showcase *::after {
  box-sizing: border-box;
}

#x8-product-showcase .x8-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

#x8-product-showcase .x8-kicker {
  display: block;
  color: #ff4d57;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  direction: ltr;
  margin-bottom: 8px;
}

#x8-product-showcase .x8-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
}

#x8-product-showcase .x8-subtitle {
  margin: 8px 0 0;
  color: var(--x8-sub);
  font-size: 14px;
  line-height: 1.8;
}

#x8-product-showcase .x8-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--x8-red);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease;
}

#x8-product-showcase .x8-link:hover {
  background: #b71923;
  transform: translateY(-2px);
  color: #fff;
}

#x8-product-showcase .x8-slider-wrap {
  width: 100%;
  min-height: 200px;
}

#x8-product-showcase salla-products-slider {
  display: block;
  width: 100%;
}

/* تأثير بسيط على الكروت */
#x8-product-showcase salla-product-card {
  display: block;
  transition: transform .25s ease;
}

#x8-product-showcase salla-product-card:hover {
  transform: translateY(-4px);
}

#x8-product-showcase .x8-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--x8-sub);
  font-size: 12px;
}

#x8-product-showcase .x8-foot strong {
  color: #fff;
  letter-spacing: 1px;
  direction: ltr;
}

@media (max-width: 768px) {
  #x8-product-showcase {
    width: calc(100% - 16px);
    padding: 22px 14px;
    border-radius: 16px;
  }

  #x8-product-showcase .x8-head {
    align-items: start;
    flex-direction: column;
  }

  #x8-product-showcase .x8-link {
    width: 100%;
  }
}