/* Add custom CSS styles below */ 
/* Add custom CSS styles below */ 
/* Add custom CSS styles below */ 
‎/* الزر الأساسي (مثل تسجيل الدخول، العملة، إلخ) */
button,
.btn,
a.button,
a.btn {
  font-size: 14px !important; /* حجم الخط أصغر */
  padding: 8px 16px !important; /* مساحة داخل الزر متناسقة */
  border-radius: 6px !important;
  box-shadow: 0 0 10px rgba(255, 221, 0, 0.5) !important; /* توهج قوي */
  transition: all 0.7s ease-in-out !important;
}

‎/* زر البحث تحديدًا */
.search-button,
button.search,
a.search-btn {
  font-size: 13px !important;
  padding: 8px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px rgba(255, 221, 0, 0.4) !important;
}


body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(white 1px, transparent 1px),
              radial-gradient(white 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  animation: moveStars 60s linear infinite;
  opacity: 0.15;
}

@keyframes moveStars {
  0% {
    background-position: 0 0, 25px 25px;
  }
  100% {
    background-position: -50px -50px, -25px -25px;
  }
}




/* شاشة الترحيب */
#welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 30, 0.6);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 1s ease;
}

/* النجوم */
#welcome-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(#ffffff 1px, transparent 1px),
              radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  animation: moveStars 50s linear infinite;
  opacity: 0.08;
  z-index: 0;
}

/* اسم المتجر */
#store-name {
  font-size: 2.8rem;
  font-family: 'Changa', sans-serif;
  color: #e0e0ff;
  text-align: center;
  font-weight: 600;
  position: absolute;
  top: 40px;
  width: 100%;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.4), 0 0 6px rgba(255, 255, 255, 0.3);
  z-index: 1;
}

/* النص الترحيبي */
#welcome-screen h1 {
  font-size: 1.8rem;
  color: #e0e0ff;
  text-align: center;
  opacity: 0;
  font-weight: bold;
  z-index: 1;
  animation: textFadeIn 2s ease forwards 1s;
  text-shadow: 0 0 15px rgba(140, 140, 255, 0.4);
  line-height: 2.4rem; /* تباعد بين السطرين */
}

/* حركة النجوم */
@keyframes moveStars {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-500px, -500px);
  }
}

/* حركة النص */
@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* خط أبيض متوهج في أعلى الصفحة مع نبض */
#top-glow-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
  animation: glowPulse 2s ease-in-out infinite;
  z-index: 9999;
  pointer-events: none;
}

/* تأثير النبض */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(255, 255, 255, 0.9);
  }
}


/* توهج عند الضغط */
.click-flash::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(200, 200, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: flashClick 0.4s ease-out forwards;
  pointer-events: none;
  z-index: 10000;
}

@keyframes flashClick {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(15);
  }
}

/* تغبيش خفيف وانتقال ناعم */
body.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* تأثير ثلاثي الأبعاد على بطاقات المنتجات */
.product-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


/* شريط كود الخصم */
#discount-banner {
  position: fixed;
  top: 30%;
  left: -300px;
  width: 260px;
  background: linear-gradient(135deg, #1a1a2e, #3f3f63);
  color: #fff;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  z-index: 9999;
  transition: left 1s ease;
  opacity: 0.95;
}

/* حالة الإظهار */
#discount-banner.show {
  left: 0;
}

/* كود الخصم */
#discount-banner .code {
  margin-top: 10px;
  font-size: 1.4rem;
  background: #fff;
  color: #222;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  transition: transform 0.2s;
  margin-left: 10px;
}

#discount-banner .code:hover {
  transform: scale(1.05);
}

/* كلمة "نسخ" */
#discount-banner .copy-label {
  font-size: 0.8rem;
  color: #ccc;
  display: inline-block;
  vertical-align: middle;
}

/* تم النسخ بتنسيق هادئ */
#discount-banner .code.copied {
  font-size: 0.9rem;
  color: #888;
}

/* سهم الإرجاع */
#discount-toggle {
  position: fixed;
  top: 32%;
  left: 0;
  background: #3f3f63;
  color: #fff;
  border-radius: 0 5px 5px 0;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  display: none;
}


/* حاوية الشهب */
.shooting-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* شكل الشهاب */
.shooting-star {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), transparent);
  opacity: 0.8;
  transform: rotate(45deg);
  animation: shoot 1.2s ease-out forwards;
}

@keyframes shoot {
  0% {
    transform: translate(-150px, -150px) rotate(45deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(100vw, 100vh) rotate(45deg);
    opacity: 0;
  }
}


body {
  background-color: #3a3a3a !important;
  box-shadow: inset 0 0 100px rgba(255,255,255,0.05);
}