/* =====================================
   1. زر اطلبها الآن باللون الأحمر
   ===================================== */

.s-block--bundle-st-demo .st-demo__btn {
  background: #e40000 !important;
  border-color: #e40000 !important;
  color: #ffffff !important;
}

.s-block--bundle-st-demo .st-demo__btn span,
.s-block--bundle-st-demo .st-demo__btn i {
  color: #ffffff !important;
  background: transparent !important;
}


/* =====================================
   2. زر اشتري الآن باللون الأحمر
   ===================================== */

salla-mini-checkout-widget.s-add-product-button-mini-checkout {
  --color-primary: #e40000;
  --color-primary-reverse: #ffffff;

  background: #e40000 !important;
  color: #ffffff !important;

  border-radius: var(
    --salla-fast-checkout-button-border-radius,
    0.375rem
  ) !important;
}
/* تنسيق بطاقة المنتج على الديسكتوب */
@media (min-width: 1024px) {
  custom-salla-product-card.tg-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "intro image"
      "content image"
      "footer image";
    align-items: center;
    column-gap: 48px;
    row-gap: 20px;

    width: 100% !important;
    max-width: 1200px !important;
    margin-inline: auto !important;
    padding: 40px !important;
    border-radius: 24px !important;
  }

  .tg-hero .tg-intro {
    grid-area: intro;
    align-self: end;
    min-width: 0;
  }

  .tg-hero .tg-heading {
    font-size: clamp(36px, 3.5vw, 52px) !important;
    line-height: 1.25 !important;
  }

  .tg-hero .tg-description {
    font-size: 18px !important;
    line-height: 1.8 !important;
  }

  .tg-hero .product-card__image {
    grid-area: image;
    align-self: center;
    min-width: 0;
    margin: 0 !important;
  }

  .tg-hero .product-card__image img.main-image {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: contain !important;
  }

  .tg-hero .product-card__content {
    grid-area: content;
    min-width: 0;
  }

  .tg-hero .total-price {
    font-size: 38px !important;
  }

  .tg-hero .product-card__normal-cart button,
  .tg-hero .tg-how {
    min-height: 58px !important;
    font-size: 20px !important;
  }

  .tg-hero .tg-footer {
    grid-area: footer;
    align-self: start;
    margin: 0 !important;
    text-align: right !important;
    font-size: 14px !important;
  }
}

salla-mini-checkout-widget.s-add-product-button-mini-checkout
.s-add-product-button-mini-checkout-content,
salla-mini-checkout-widget.s-add-product-button-mini-checkout
.s-add-product-button-mini-checkout-content span {
  color: #ffffff !important;
  background: transparent !important;
}

salla-mini-checkout-widget.s-add-product-button-mini-checkout
.s-add-product-button-mini-checkout-content svg,
salla-mini-checkout-widget.s-add-product-button-mini-checkout
.s-add-product-button-mini-checkout-content svg path {
  fill: #ffffff !important;
}


/* =====================================
   3. زر أضف إلى السلة باللون الأحمر
   المحدد المصحح حسب تركيب القالب
   ===================================== */

salla-add-product-button .s-add-product-button-main > salla-button > button {
  background: #e40000 !important;
  border-color: #e40000 !important;
  color: #ffffff !important;
}

salla-add-product-button .s-add-product-button-main > salla-button > button span,
salla-add-product-button .s-add-product-button-main > salla-button > button i {
  color: #ffffff !important;
  background: transparent !important;
}


/* =====================================
   4. إخفاء الخط الأسود يمين فيديو التعريف
   ===================================== */

video.about__video {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  clip-path: inset(0 2px 0 0 round 6px);
}

/* زر أضف إلى السلة في بطاقات المنتجات */
button[aria-label="Add to cart button"] {
  background: #e40000 !important;
  border-color: #e40000 !important;
  color: #ffffff !important;
}

/* النص والأيقونة داخل الزر */
button[aria-label="Add to cart button"] span,
button[aria-label="Add to cart button"] i {
  color: #ffffff !important;
  background: transparent !important;
}


/* تقليل المسافات بين أقسام الصفحة */
.s-block {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* تقليل المسافة بين العنوان والمحتوى */
.s-block__title {
    margin-bottom: 15px !important;
}

/* إزالة الارتفاعات والمسافات الزائدة */
section {
    margin-block: 15px !important;
}

/* ضبط المسافات على الجوال */
@media (max-width: 768px) {
    .s-block {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

/* تصغير أيقونة الصوت */
button[aria-label*="الصوت"] {
  font-size: 12px !important;
}

button[aria-label*="الصوت"] i {
  font-size: 14px !important;
}

button[aria-label*="الصوت"] svg {
  width: 14px !important;
  height: 14px !important;
}

/* تصغير مستطيل زر الصوت */
button[aria-label*="الصوت"] {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  border-radius: 5px !important;
}

/* تصغير مستطيل زر الصوت والنص داخله */
.about__media > button {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 4px 7px !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  border-radius: 4px !important;
}

/* إخفاء الكتابة وإبقاء رمز الصوت */
.about__media > button {
  font-size: 0 !important;
  padding: 6px !important;
  line-height: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
}

.about__media > button::before {
  content: "🔊";
  font-size: 16px;
}

/* إزالة الفراغ فوق وتحت قسم عرض الكروت */
#st-demo .st-demo__viewer-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* بطاقة تحدي التخمين */
custom-salla-product-card.tg-hero {
  direction: rtl;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 460px !important;
  margin: 0 auto !important;
  padding: 24px 20px !important;
  box-sizing: border-box;
  border: 1px solid #ffffff30 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  color: #fff !important;
  background:
    linear-gradient(180deg, transparent, #101d5080),
    repeating-conic-gradient(
      from 0deg at 50% 55%,
      #28469f 0deg 10deg,
      #1b3787 10deg 20deg
    ) !important;
}

/* العنوان والوصف */
.tg-hero .tg-intro {
  text-align: right;
}

.tg-hero .tg-badge {
  display: inline-block;
  background: #ffca28;
  color: #173780;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.tg-hero .tg-heading {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(27px, 7vw, 38px) !important;
  line-height: 1.2 !important;
  font-weight: 900;
}

.tg-hero .tg-heading span {
  display: block;
  color: #ffca28;
}

.tg-hero .tg-description {
  margin: 14px 0 0 !important;
  color: #e1e8ff !important;
  font-size: 16px;
  line-height: 1.8;
}

/* صورة المنتج */
.tg-hero .product-card__image {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 20px 0 !important;
  background: transparent !important;
  overflow: hidden;
  border-radius: 12px;
}

.tg-hero .product-card__image > a {
  display: block !important;
  height: auto !important;
}

.tg-hero .product-card__image img.main-image {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 260px;
  object-fit: contain !important;
  transform: none !important;
}

/* إخفاء العناصر المكررة فوق الصورة */
.tg-hero .product-card__promotion,
.tg-hero .product-card__actions,
.tg-hero .product-card__buttons,
.tg-hero .product-card__image .product-card__addToCart,
.tg-hero .product-card__title,
.tg-hero .product-card__subtitle {
  display: none !important;
}

/* معلومات المنتج */
.tg-hero .product-card__content,
.tg-hero .product-card__content-wrapper {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.tg-hero .product-card__price {
  justify-content: flex-start !important;
  margin: 0 0 16px !important;
  color: #fff !important;
}

.tg-hero .total-price {
  color: #fff !important;
  font-size: 32px !important;
  line-height: 1.3 !important;
}

.tg-hero .before-price {
  color: #cbd5f5 !important;
}

/* زرا الشراء وطريقة اللعب */
.tg-hero .product-card__normal-cart {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  width: 100% !important;
  margin: 0 !important;
}

.tg-hero .product-card__normal-cart salla-add-product-button,
.tg-hero .product-card__normal-cart salla-button {
  display: block !important;
  width: 100% !important;
}

.tg-hero .product-card__normal-cart button {
  width: 100% !important;
  min-height: 54px !important;
  padding: 10px 8px !important;
  background: #e40000 !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.tg-hero .tg-how {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 8px;
  box-sizing: border-box;
  border: 2px solid #b9c8ef;
  border-radius: 12px;
  color: #fff !important;
  background: #10245a55;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
}

.tg-hero .tg-footer {
  margin: 16px 0 0;
  text-align: center;
  color: #dce5ff;
  font-size: 12px;
  line-height: 1.8;
}

#st-cards {
  scroll-margin-top: 100px;
}

@media (max-width: 380px) {
  custom-salla-product-card.tg-hero {
    padding: 18px 14px !important;
  }

  .tg-hero .tg-description {
    font-size: 14px;
  }

  .tg-hero .tg-how,
  .tg-hero .product-card__normal-cart button {
    font-size: 15px !important;
  }
}
@media (min-width: 1024px) {

  /* توسيع الحاوية الخاصة بالبطاقة */
  .special-product__card:has(#product-118130529.tg-hero) {
    width: 100% !important;
    max-width: 1200px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  /* تجاوز تنسيق البطاقة القديم */
  #product-118130529.tg-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "intro image"
      "content image"
      "footer image" !important;

    direction: rtl;
    width: 100% !important;
    max-width: 1200px !important;
    min-width: 0 !important;
    height: auto !important;
    margin-inline: auto !important;
    padding: 40px !important;
    box-sizing: border-box !important;

    column-gap: 40px !important;
    row-gap: 20px !important;
    align-items: center !important;
  }

  #product-118130529.tg-hero > .tg-intro {
    grid-area: intro !important;
    align-self: end;
    min-width: 0;
  }

  #product-118130529.tg-hero > .product-card__image {
    grid-area: image !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-self: center;
  }

  #product-118130529.tg-hero .main-image {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: contain !important;
  }

  #product-118130529.tg-hero > .product-card__content {
    grid-area: content !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #product-118130529.tg-hero > .tg-footer {
    grid-area: footer !important;
    margin: 0 !important;
    text-align: right !important;
    align-self: start;
  }

  #product-118130529.tg-hero .tg-heading {
    font-size: clamp(36px, 3.5vw, 52px) !important;
  }

  #product-118130529.tg-hero .tg-description {
    font-size: 18px !important;
  }
}