/* ===== النمط العام للجسم ===== */
body {
  font-family: 'Tahoma', sans-serif;
  margin: 0;
  padding: 0;
  background: #201b1b00;
  color: #333;
  line-height: 1.8;
  padding-top: 60px; /* مساحة للهيدر الثابت */
}

/* ===== الشريط العلوي ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #2a006e, #1e043d);
  color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  height: 60px;
}

/* الشعار */
.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-section .logo {
  height: 70px;
  width: auto;
}
.welcome-text {
  font-size: 14px;
  white-space: nowrap;
}

/* روابط التنقل بارزة */
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  background-color: #3b3bb8;
  color: white;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}
.nav-links a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
  background: #5a5ed0;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px; /* مسافة بين الأزرار والسلة */
}

/* أيقونة السلة */
.cart-icon {
  height: 26px;
  width: auto;
}
.cart-count {
  position: absolute;
  top: -6px;   /* رفع العدد قليلاً للأعلى */
  right: -6px; /* تقريب العدد من يمين الأيقونة */
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}


/* أزرار الدخول والتسجيل */
.btn, .auth-button {
  background-color: #3b3bb8;
  color: white;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover, .auth-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}

/* ===== للهواتف ===== */
.menu-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: #333;
    padding: 15px;
    border-radius: 8px;
    width: 200px;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-btn {
    display: block;
  }
  .logo-section .logo {
    height: 40px;
  }
}





nav a:hover,
.cta-button:hover,
.btn:hover {
  background: #5a5ed0;
  transform: scale(1.05); /* حركة خفيفة عند التحويم */
}

    /* الحاويات والأقسام */
    .container {
      padding: 40px 20px;
      text-align: center;
      margin: 0;
    }
    .section {
      margin-bottom: 60px;
    }
    /* تنسيق المنتجات */
    .product, .product-container {
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
      text-align: center;
      transition: transform 0.3s;
      display: inline-block;
      margin: 10px;
      vertical-align: top;
    }
    .product img, .product-container img {
      width: 100%;
      max-width: 300px;
      border-radius: 12px;
    }
    .product:hover, .product-container:hover {
      transform: translateY(-8px);
    }
    .product h3, .product-container .product-title {
      margin: 15px 0 10px;
    }
    .product p, .product-container p {
      color: #666;
    }
    /* زرّ البحث */
    #searchBox{
      width: 50%;
      padding: 10px;
      margin-bottom: 20px;
      border: 2px solid #4e54c8;
      border-radius: 8px;
      font-size: 16px;
    }
/* 🎮 بطاقات Xbox */
.product-card.xbox {
  position: relative;
  background: #107C10;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  display: inline-block;
  margin: 10px;
  vertical-align: top;
  color: white;
  width: 250px;
}

.product-card.xbox .product-header {
  position: relative; /* طبيعي داخل البطاقة */
  text-align: center; /* يجعل الصورة في المنتصف */
  margin-bottom: 10px; /* مسافة قبل صورة المنتج */
}

/* التأثير عند المرور */
.product-card.xbox:hover {
  transform: translateY(-8px) scale(1.03); /* تطلع لفوق + تكبر شوي */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3); /* ظل أعمق */
}

.product-card.xbox .platform-icon {
  width: 60px;
  height: auto;
}



.product-card.xbox .product-image {
  width: 100%;
  border-radius: 8px;
}


.product-card.xbox .product-title {
  margin: 15px 0 10px;
  font-size: 18px;
  font-weight: bold;
}

.product-card.xbox .product-price {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.product-card.xbox .buy-btn {
  background: white;
  color: #107C10;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}


.product-card.xbox .buy-btn:hover {
  background: #e3e3e3;
}


    /* صندوق الملاحظة */
    .notice-box {
      background: linear-gradient(to right, #ffd700, #ffa500);
      color: #333;
      padding: 15px;
      font-size: 18px;
      text-align: center;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      margin: 20px 0;
      animation: fadeIn 1s ease-in-out;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    /* تنسيق الصور العامة */
    img {
      width: 100%;
      max-width: 250px;
      height: auto;
      border-radius: 8px;
    }
header {
  display: flex;
  justify-content: space-between; /* الشعار يسار، الباقي يمين */
  align-items: center;
  padding: 10px 20px;
  background-color: #f5f5f5;
}

#logo-img {
  height: 30px;
  width: auto;
  cursor: pointer;
  order: -1; /* للتأكد أنه يظهر أولاً على اليسار */
}
.cart-wrapper {
  position: relative; /* بدلاً من fixed */
  margin-left: 15px; /* مسافة مناسبة بين الأزرار والسلة */
  width: 40px; /* حجم أصغر للسلة */
  height: 40px;
  cursor: pointer;
}

.cart-image {
  width: 100%;
  height: auto;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 50%;
  font-weight: bold;
}

.flash-messages .alert {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  margin: 10px auto;
  width: 90%;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-menu {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1000;
}

.user-menu button {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-content {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.menu-content a {
  display: block;
  padding: 8px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.menu-content a:last-child {
  border-bottom: none;
}

.menu-content a:hover {
  background-color: #f0f0f0;
}
.flash-messages {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
  direction: rtl;
  text-align: right;
}

.flash-messages .alert {
  background-color: #28a745;
  color: white;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 14px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


#cart-count {
    font-size: 11px;
    padding: 2px 6px;
}



html {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}


.main-wrapper {
  min-height: fit-content;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;  /* ياخذ كل المساحة الفاضية بين الهيدر والفوتر */
}

.main-content {
  flex: 1;
}

.main-footer {
  background: linear-gradient(to right, #2a006e, #1e043d);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;        /* 👈 يخلي الفوتر ينزل تحت */
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #00c4ff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 16px;
}

.footer-copy {
  font-size: 14px;
}


.pixel-font {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
  direction: rtl;
}


/* زر CTA */
.cta-button {
  background-color: #3b3bb8;
  color: white;
  padding: 12px 20px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}
.category-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.category-btn {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border: 2px solid #444;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.category-btn:hover {
  background: #3f51b5;
  color: #fff;
  transform: scale(1.05);
  border-color: #3f51b5;
}




.hero-banner-container {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  margin: 70px auto;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.hero-banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.banner-wrapper.active {
  opacity: 1;
  z-index: 1;
}
.banner-overlay-link {
  position: absolute;   /* ✅ يغطي الصورة */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;           /* ✅ يخلي الرابط فوق */
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 2;
}

.banner-arrow.left { left: 10px; }
.banner-arrow.right { right: 10px; }


.featured-cards-container {
  position: relative;
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.featured-section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #3c1361;
}

.featured-cards-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  position: relative;
  height: 350px;
}

.featured-card {
  position: absolute;
  width: 220px;
  height: 300px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  overflow: hidden;
  text-align: center;
  transition: transform 0.8s ease, opacity 0.8s ease;
  opacity: 0;
  z-index: 1;
}

.featured-card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
}

.featured-card h3 {
  margin: 8px 0;
  color: #3c1361;
}

/* البطاقة الرئيسية (اللي بالوسط) */
.featured-card.active {
  transform: translateX(0) scale(1.2);
  opacity: 1;
  z-index: 10;
}

/* البطاقة اللي على اليسار */
.featured-card.left {
  transform: translateX(-250px) rotateY(30deg) scale(0.9);
  opacity: 0.7;
  z-index: 5;
}

/* البطاقة اللي على اليمين */
.featured-card.right {
  transform: translateX(250px) rotateY(-30deg) scale(0.9);
  opacity: 0.7;
  z-index: 5;
}

/* أزرار */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #3c1361;
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 12px 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

/* العنوان */
.highlight-section-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  margin: 30px 0;
  color: #3c1361;
}

/* شبكة المنتجات */
.highlight-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px 40px;
}

/* البطاقة */
.highlight-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.highlight-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* الصورة */
.highlight-product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8f8f8;
  padding: 10px;
}

/* العنوان */
.highlight-product-card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  color: #333;
}

/* السعر */
.highlight-price {
  font-size: 16px;
  font-weight: bold;
  color: green;
  margin-bottom: 12px;
}

/* زر الشراء */
.highlight-buy-button {
  display: inline-block;
  background: #4b3cc9;
  color: #fff;
  padding: 10px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.highlight-buy-button:hover {
  background: #372a9d;
}


#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 200px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#toast.success { background-color: #28a745; }
#toast.warning { background-color: #ffc107; color: #000; }

@keyframes fadein {
  from { opacity: 0; bottom: 0; }
  to { opacity: 1; bottom: 20px; }
}

@keyframes fadeout {
  from { opacity: 1; bottom: 20px; }
  to { opacity: 0; bottom: 0; }
}


