/* استدعاء خط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* إخفاء النص القديم */
.product-countdown .sale-end span {
    font-size: 0 !important;
    color: transparent !important;
}

/* تعديل نص العداد الجديد */
.product-countdown .sale-end span::before {
    content: "موعد إصدار اللعبة:";
    font-size: 26px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    display: inline-block;
    vertical-align: middle;
    text-align: center;

    background: linear-gradient(270deg, #970001, #FF3B3B, #FFFFFF, #970001);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: gradientPulse 8s ease infinite;
    line-height: 1.20;
    margin-bottom: 1px;
}

/* حركة التدرج */
@keyframes gradientPulse {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 50%; }
    100% { background-position: 0% 50%; }
}

/* خلفية العداد دايمًا داكنة */
.product-countdown {
    border-radius: 20px;
    padding: 30px 20px;
    background: #1A1A1A !important; /* نفس لون الثيم الداكن */
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.s-count-down-item {
  background: #970001 !important;
}


/* -------------------------------------- */

.s-slider-block__title {
  position: relative;
}

.s-slider-block__title-right {
  position: absolute;
  left: 50%;
  transform: translateX(-52.5%); /* القيمة الخاصة بالكمبيوتر */
  text-align: center;
  width: 100%;
}

.s-slider-block__title-right h2 {
  margin: 0;
  text-align: center;
}

/* للجوال */
@media (max-width: 768px) {
  .s-slider-block__title-right {
    transform: translateX(-57.5%); /* عدّل الرقم لين يضبط على الجوال */
  }
}

/* -------------------------------------- */

/******** إخفاء افتراضي للجميع (داخل + خارج) ********/
custom-salla-product-card .s-product-card-countdown,
.s-product-card-entry .s-product-card-countdown,
.s-product-card .s-product-card-countdown,
.product-countdown {
  display: none !important;
}

/******** إظهار المصرّح لهم فقط ********/
/* خارج المنتج (الكروت) */
.wl-card .s-product-card-countdown {
  display: block !important;
}

/* داخل المنتج (صفحة المنتج) */
body.wl-pdp .product-countdown {
  display: flex !important; /* عداد سلة عادةً flex */
}

/* -------------------------------------- */