/* ========= FIX: الأبيض فقط داخل صفحة المنتج والوصف ========= */

/* رجّع ألوان الموقع الافتراضية خارج صفحة المنتج */
body{
  color: initial !important;
}

/* الأبيض داخل صفحة المنتج فقط */
.product-page,
.product,
.product-details,
.product-content,
.product__details,
.product__description,
.product-description,
.tab-content,
.content--product{
  color:#ffffff !important;
}

/* عناوين داخل صفحة المنتج فقط */
.product-page h1,.product-page h2,.product-page h3,.product-page h4,.product-page h5,.product-page h6,
.product h1,.product h2,.product h3,.product h4,.product h5,.product h6,
.product-details h1,.product-details h2,.product-details h3,.product-details h4,.product-details h5,.product-details h6,
.product-description h1,.product-description h2,.product-description h3,.product-description h4,.product-description h5,.product-description h6{
  color:#ffffff !important;
}

/* وصف المنتج نفسه (حتى لو كان فيه ستايل أسود مدمج) */
.product-description,
.product-description *{
  color:#ffffff !important;
}
/* ===== خلفية تتمدد على كامل الصفحة ===== */

html, body{
  height: 100%;
}

body{
  background-repeat: no-repeat !important;
  background-size: cover !important;      /* تتمدد وتغطي الشاشة كاملة */
  background-position: center center !important;
  background-attachment: fixed !important; /* ثابتة أثناء السكروول */
}
/* ===== Floating Background Layer ===== */

.ps-bg-layer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0; /* خلف كل المحتوى */
}

.ps-bg-layer .shape{
  position: absolute;
  top: -120px;
  font-weight: 900;
  opacity: 0;
  text-shadow:
    0 0 6px currentColor,
    0 0 16px currentColor,
    0 0 30px currentColor;
  will-change: transform, opacity;
  animation: fall linear forwards;
}

@keyframes fall{
  0%{
    transform: translateY(-120px) rotate(0deg);
    opacity: 0;
  }
  10%{
    opacity: .25;
  }
  100%{
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}
/* ==============================
   🎮 GAMING PRODUCT PAGE STYLE
   ============================== */

/* توزيع احترافي للصورة والمعلومات */
.product-page .row{
  align-items: center;
  gap: 30px;
}

/* الصورة */
.product-page .col-md-6:first-child{
  flex: 0 0 45% !important;
  max-width: 45% !important;
}

.product-page .product-image img{
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.45) !important;
  transition: transform .3s ease, box-shadow .3s ease;
}

.product-page .product-image img:hover{
  transform: scale(1.03);
  box-shadow: 0 25px 70px rgba(0,0,0,.6);
}

/* معلومات المنتج */
.product-page .col-md-6:last-child{
  flex: 0 0 55% !important;
  max-width: 55% !important;
}

/* عنوان اللعبة */
.product-page h1{
  font-size: 28px !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
}

/* السعر */
.product-page .price{
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #2dd4ff !important;
  margin-bottom: 10px !important;
}

/* حالة التوفر */
.product-page .stock{
  font-weight: 600;
  margin-bottom: 15px;
}

/* صندوق الدفع بالتقسيط */
.product-page .tabby,
.product-page .tamara{
  border-radius: 12px !important;
  padding: 10px 14px !important;
  background: rgba(255,255,255,.05) !important;
}

/* عداد مرات الشراء */
.product-page .sales-count{
  font-weight: 600;
  color: #ff4fd8;
  margin-top: 12px;
}

/* زر الشراء */
.product-page .btn-primary,
.product-page .btn-add-to-cart{
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
  transition: all .25s ease;
}

.product-page .btn-primary{
  background: linear-gradient(90deg,#7c3aed,#ff4fd8) !important;
  border: none !important;
}

.product-page .btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(124,58,237,.5);
}

/* زر أضف للسلة */
.product-page .btn-add-to-cart{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}

.product-page .btn-add-to-cart:hover{
  background: rgba(255,255,255,.15) !important;
}

/* وصف المنتج */
.product-description{
  background: rgba(255,255,255,.04);
  padding: 20px;
  border-radius: 16px;
  margin-top: 30px;
  line-height: 1.8;
}

/* للجوال */
@media (max-width: 768px){
  .product-page .col-md-6{
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .product-page h1{
    font-size: 22px !important;
  }

  .product-page .price{
    font-size: 22px !important;
  }
}
/* ==========================
   G2A-STYLE PRODUCT LAYOUT
   ========================== */
html.g2a-layout-ready body{
  /* لا شيء */
}

/* الشبكة العامة */
.g2a-wrap{
  display: grid !important;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr) minmax(280px, 360px) !important;
  gap: 18px !important;
  align-items: start !important;
}

/* أعمدة */
.g2a-col{
  min-width: 0;
}

/* يسار: صندوق صورة */
.g2a-media{
  border-radius: 16px;
  overflow: hidden;
}

/* وسط: معلومات */
.g2a-meta{
  padding-top: 6px;
}

/* يمين: صندوق الشراء */
.g2a-buy{
  position: sticky;
  top: 18px;
}

.g2a-buy > *{
  border-radius: 16px !important;
}

/* صندوق الشراء شكله “كرت” */
.g2a-buy form,
.g2a-buy [class*="add-to-cart"],
.g2a-buy [class*="buy"],
.g2a-buy{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  padding: 14px !important;
  backdrop-filter: blur(10px);
}

/* أزرار الشراء */
.g2a-buy button,
.g2a-buy .btn,
.g2a-buy [class*="btn"]{
  width: 100% !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  padding: 12px 14px !important;
}

.g2a-buy button[type="submit"],
.g2a-buy .btn-primary,
.g2a-buy [class*="add-to-cart"] button{
  background: linear-gradient(90deg,#7c3aed,#ff4fd8) !important;
  border: 0 !important;
}

/* Specs مثل G2A */
.g2a-specs{
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.g2a-spec{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.g2a-spec .k{
  opacity: .75;
  font-weight: 800;
}
.g2a-spec .v{
  font-weight: 900;
}

/* تصغير الصورة داخل صفحة المنتج (إذا كانت كبيرة زيادة) */
.g2a-media img{
  max-height: 520px !important;
  width: 100% !important;
  object-fit: cover !important;
  display:block;
}

/* للجوال: يصير عمود واحد */
@media (max-width: 992px){
  .g2a-wrap{
    grid-template-columns: 1fr !important;
  }
  .g2a-buy{
    position: static !important;
  }
  .g2a-media img{
    max-height: 420px !important;
  }
}

/* زر واتس جيمورا فوق كل العناصر */

a[href*="wa.me"],
a[href*="whatsapp"],
.whatsapp-button,
.floating-whatsapp,
.salla-whatsapp {

    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;

    background-image: url("https://www.kooorxstore.com/gemoora-support.gif") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;

    box-shadow: 0 0 20px rgba(140,0,255,0.6) !important;
}

/* اخفاء الايقونة الأصلية */
a[href*="wa.me"] img,
a[href*="whatsapp"] img,
a[href*="wa.me"] svg,
a[href*="whatsapp"] svg,
.whatsapp-button img,
.floating-whatsapp img,
.salla-whatsapp img,
.whatsapp-button svg,
.floating-whatsapp svg,
.salla-whatsapp svg {
    display: none !important;
}
/* تأكد أن الزر يسمح بوضع عناصر فوقه */
a[href*="wa.me"],
.whatsapp-button,
.floating-whatsapp,
.salla-whatsapp {
    position: fixed !important;
    z-index: 999999 !important;
}

/* النوتة الأولى */
a[href*="wa.me"]::before {
    content: "♪";
    position: absolute;
    top: -18px;
    left: 5px;
    font-size: 16px;
    color: #52d3ff;
    animation: note1 2.5s ease-in-out infinite;
    pointer-events: none;
}

/* النوتة الثانية */
a[href*="wa.me"]::after {
    content: "♫";
    position: absolute;
    top: -28px;
    right: 5px;
    font-size: 18px;
    color: #ff4fd8;
    animation: note2 3s ease-in-out infinite;
    pointer-events: none;
}

/* نوتة ثالثة باستخدام span وهمي */
a[href*="wa.me"] span::before {
    content: "♬";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #8b5cff;
    animation: note3 2.8s ease-in-out infinite;
    pointer-events: none;
}

/* الحركات */
@keyframes note1 {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

@keyframes note2 {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-25px); opacity: 0; }
}

@keyframes note3 {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-18px); opacity: 0; }
}
/* ✅ اجبار كل النص الرمادي/الثانوي يصير أبيض في المتجر */
:root{
  --text-muted: #fff;
  --text-secondary: #fff;
}

/* أشهر كلاسات النص الرمادي */
.text-muted,
.text-secondary,
.muted,
.is-muted,
.secondary,
small,
.help,
.form-text{
  color:#fff !important;
  opacity:1 !important;
}

/* النصوص داخل النوافذ المنبثقة/المودال */
.modal,
.modal *{
  color:#fff !important;
}

/* Placeholder داخل الحقول (لو كان رمادي) */
input::placeholder,
textarea::placeholder{
  color: rgba(255,255,255,.85) !important;
  opacity:1 !important;
}

/* روابط رمادية */
a.text-muted,
a.text-secondary{
  color:#fff !important;
}
/* 🔥 توحيد كل النصوص الرمادية لأبيض في المتجر + حسابات سلة */

html, body {
  color: #fff !important;
}

/* النصوص الثانوية */
.text-muted,
.text-secondary,
.muted,
.secondary,
small,
.form-text,
.help-text,
.cart-summary small,
.order-summary small {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* الأسعار المشطوبة */
.price-old,
.old-price,
del {
  color: rgba(255,255,255,.6) !important;
}

/* عناصر السلة */
.cart-item *,
.order-summary *,
.account-content * {
  color: #fff !important;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.8) !important;
  opacity: 1 !important;
}
/* ✅ تنبيه فوق قائمة الطلبات (في مكانه الصحيح) */
.s-infinite-scroll-container::before{
  content: "اضغط على الطلب لعرض بيانات المنتج";
  display: block;

  margin: 0 auto 14px;   /* تحت التنبيه مسافة قبل الجدول */
  width: max-content;
  max-width: 92%;

  text-align: center;
  padding: 6px 14px;     /* سمك خفيف */
  font-size: 13px;
  font-weight: 700;

  color: #fff;
  background: linear-gradient(90deg,#1f2a4d,#2a2f4f);
  border-radius: 10px;

  animation: pulseGlow 1.5s infinite;
}

/* وميض تنبيه خفيف */
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 rgba(255,79,216,.25); opacity: 1; }
  50%  { box-shadow: 0 0 14px rgba(255,79,216,.85); opacity: .88; }
  100% { box-shadow: 0 0 0 rgba(255,79,216,.25); opacity: 1; }
}

.shipping-orders .order-item,
.order-item {
  position: relative !important;
}

.shipping-orders .order-item a.digital-content-btn,
.shipping-orders .order-item a.digital-content-btn-clone,
.shipping-orders .order-item a[href*="/orders/digital/"],
.order-item a.digital-content-btn,
.order-item a.digital-content-btn-clone,
.order-item a[href*="/orders/digital/"] {
  position: static !important;
  display: inline-flex !important;

  margin-top: 10px !important;
  margin-left: 12px !important;
  margin-right: auto !important;

  align-self: flex-start !important;
  z-index: 1 !important;

  padding: 8px 14px !important;
  font-size: 14px !important;
  border-radius: 999px !important;
}
.s-show .s-verify-body .s-verify-message{
  color: #ffffff !important;
  --tw-text-opacity: 1 !important;
}

.flex.md\:flex-row.flex-col.items-center.justify-between.gap-2.mb-3{
    display: none !important;
}
(function () {

  function autoFillOrderNumber() {

    // 1️⃣ نجيب رقم الطلب من النص الظاهر
    const orderText = document.body.innerText.match(/#\d+/);

    if (!orderText) return;

    const orderNumber = orderText[0].replace('#','');

    // 2️⃣ نبحث عن حقل إدخال الفاتورة
    const invoiceInput = document.querySelector('input[type="email"], input[type="text"]');

    if (invoiceInput && !invoiceInput.value) {
      invoiceInput.value = orderNumber;
    }

  }

  // تشغيل عند تحميل الصفحة
  document.addEventListener("DOMContentLoaded", autoFillOrderNumber);

})();
/* توسيط كل العناوين الفرعية في أقسام السلايدر */
.s-slider-block__title-right h2,
.s-slider-block__title-left h2 {
    display: flex;
    justify-content: center; /* توسيط أفقي */
    align-items: center;     /* توسيط عمودي */
    text-align: center;      /* توسيط النص داخل العنصر */
    width: 100%;             /* ليملأ كامل مساحة الحاوية */
}
.s-comments-item-user-info-name-with-margin {
    display: none !important;
}
.s-comments-item-timestamp{
display:none !important;
}
.product_description p img{
    animation: gemoraPulse 1.2s infinite !important;
    border-radius:12px;
}

@keyframes gemoraPulse{
    0%{
        transform: scale(1);
        box-shadow:0 0 0 rgba(255,0,150,0);
    }
    50%{
        transform: scale(1.08);
        box-shadow:0 0 25px rgba(255,0,150,0.8);
    }
    100%{
        transform: scale(1);
        box-shadow:0 0 0 rgba(255,0,150,0);
    }

}
header.store-header,
.main-nav-container,
.header-inner,
.header-container,
.header-inner.inner.bg-white.da-bgm.has-custom-bg {
  background: linear-gradient(90deg, #0b1630 0%, #1b2f5a 40%, #355c9a 70%, #ff4fd8 100%) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.20) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
/* اخفاء الاسم الحقيقي */
.s-block--testimonials h4{
font-size:0 !important;
}

/* الاسم الافتراضي */
.s-block--testimonials h4::after{
font-size:14px;
color:#bbb;
display:block;
margin-bottom:6px;
}

/* 50 اسم */
.s-block--testimonials .swiper-slide:nth-child(1) h4::after{content:"Ali";}
.s-block--testimonials .swiper-slide:nth-child(2) h4::after{content:"أحمد";}
.s-block--testimonials .swiper-slide:nth-child(3) h4::after{content:"S.";}
.s-block--testimonials .swiper-slide:nth-child(4) h4::after{content:"محمد";}
.s-block--testimonials .swiper-slide:nth-child(5) h4::after{content:"Fahad";}
.s-block--testimonials .swiper-slide:nth-child(6) h4::after{content:"خالد";}
.s-block--testimonials .swiper-slide:nth-child(7) h4::after{content:"A.";}
.s-block--testimonials .swiper-slide:nth-child(8) h4::after{content:"سعود";}
.s-block--testimonials .swiper-slide:nth-child(9) h4::after{content:"Omar";}
.s-block--testimonials .swiper-slide:nth-child(10) h4::after{content:"عبدالله";}

.s-block--testimonials .swiper-slide:nth-child(11) h4::after{content:"N.";}
.s-block--testimonials .swiper-slide:nth-child(12) h4::after{content:"تركي";}
.s-block--testimonials .swiper-slide:nth-child(13) h4::after{content:"Yousef";}
.s-block--testimonials .swiper-slide:nth-child(14) h4::after{content:"سلمان";}
.s-block--testimonials .swiper-slide:nth-child(15) h4::after{content:"M.";}
.s-block--testimonials .swiper-slide:nth-child(16) h4::after{content:"ناصر";}
.s-block--testimonials .swiper-slide:nth-child(17) h4::after{content:"Hassan";}
.s-block--testimonials .swiper-slide:nth-child(18) h4::after{content:"راشد";}
.s-block--testimonials .swiper-slide:nth-child(19) h4::after{content:"R.";}
.s-block--testimonials .swiper-slide:nth-child(20) h4::after{content:"ماجد";}

.s-block--testimonials .swiper-slide:nth-child(21) h4::after{content:"Saad";}
.s-block--testimonials .swiper-slide:nth-child(22) h4::after{content:"عبدالعزيز";}
.s-block--testimonials .swiper-slide:nth-child(23) h4::after{content:"T.";}
.s-block--testimonials .swiper-slide:nth-child(24) h4::after{content:"بندر";}
.s-block--testimonials .swiper-slide:nth-child(25) h4::after{content:"Khalid";}
.s-block--testimonials .swiper-slide:nth-child(26) h4::after{content:"وليد";}
.s-block--testimonials .swiper-slide:nth-child(27) h4::after{content:"B.";}
.s-block--testimonials .swiper-slide:nth-child(28) h4::after{content:"زياد";}
.s-block--testimonials .swiper-slide:nth-child(29) h4::after{content:"Ibrahim";}
.s-block--testimonials .swiper-slide:nth-child(30) h4::after{content:"حسين";}

.s-block--testimonials .swiper-slide:nth-child(31) h4::after{content:"J.";}
.s-block--testimonials .swiper-slide:nth-child(32) h4::after{content:"عبدالرحمن";}
.s-block--testimonials .swiper-slide:nth-child(33) h4::after{content:"Faisal";}
.s-block--testimonials .swiper-slide:nth-child(34) h4::after{content:"مشعل";}
.s-block--testimonials .swiper-slide:nth-child(35) h4::after{content:"Z.";}
.s-block--testimonials .swiper-slide:nth-child(36) h4::after{content:"عبدالمجيد";}
.s-block--testimonials .swiper-slide:nth-child(37) h4::after{content:"Salem";}
.s-block--testimonials .swiper-slide:nth-child(38) h4::after{content:"أنس";}
.s-block--testimonials .swiper-slide:nth-child(39) h4::after{content:"Q.";}
.s-block--testimonials .swiper-slide:nth-child(40) h4::after{content:"ريان";}

.s-block--testimonials .swiper-slide:nth-child(41) h4::after{content:"Hamad";}
.s-block--testimonials .swiper-slide:nth-child(42) h4::after{content:"فهد";}
.s-block--testimonials .swiper-slide:nth-child(43) h4::after{content:"L.";}
.s-block--testimonials .swiper-slide:nth-child(44) h4::after{content:"عبدالكريم";}
.s-block--testimonials .swiper-slide:nth-child(45) h4::after{content:"Sultan";}
.s-block--testimonials .swiper-slide:nth-child(46) h4::after{content:"طارق";}
.s-block--testimonials .swiper-slide:nth-child(47) h4::after{content:"E.";}
.s-block--testimonials .swiper-slide:nth-child(48) h4::after{content:"حمود";}
.s-block--testimonials .swiper-slide:nth-child(49) h4::after{content:"Adel";}
.s-block--testimonials .swiper-slide:nth-child(50) h4::after{content:"نايف";}
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 999999; /* رفع الطبقة لأعلى شيء */
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    background: #1a1a2e;
    color: #fff;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-radius: 20px;
    position: relative;
    border: 2px solid #4cc9f0;
    font-family: sans-serif;
}
.play-now-btn {
    background: #e94560;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}
.close-btn {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 25px;
    cursor: pointer;
}