/* إخفاء الصفحة مؤقتاً لمنع الرمشة */
html[data-loading="true"] body {
    opacity: 0;
    visibility: hidden;
}
/* =====================
   Root Variables
===================== */
:root {
  --primary: #817b20;
  --secondary: #c0b515;
  --accent: #ffb300;
  --dark: #111;
  --light: #ffffff;
  --gray: #f5f7fa;

  --header-height: 90px;
  --nav-height: 55px;
}

/* =====================
   Reset
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  background: #f8f9fa;
  margin: 0;
 
 
}
.page-body {
   font-family: "Cairo", sans-serif;
  background: white;
  min-height: 100vh;
  
}
  /* ================= HERO BANNER ================= */

.hero-banner {
  position: relative;
  width: 100%;
  padding: 20px;
  background: transparent;
  overflow: visible;
  margin-top: 0;
  padding-top: 0;
}

.hero-content {
  max-width: 1300px;
  margin: auto;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(255,255,255,0.88)
  );

  border-radius: 32px;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;

  padding: 35px 45px;

  box-shadow:
    0 35px 80px rgba(0,0,0,0.18),
    0 10px 25px rgba(0,0,0,0.08);

  backdrop-filter: blur(10px);
}

/* ================= TEXT ================= */

.hero-text h1 {
  font-size: 34px;
  margin-bottom: 12px;
  color: #111;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 22px;
}

/* ================= BUTTONS ================= */

.hero-buttons {
  display: flex;
  gap: 14px;
}

.hero-buttons a {
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: all .3s ease;
}

/* زر رئيسي */
.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* زر ثانوي */
.btn-secondary {
  background: #f5f5f5;
  color: #111;
}

.btn-secondary:hover {
  background: #dfcb5e;
  transform: translateY(-3px);
}

/* ================= IMAGE ================= */

.hero-image {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  align-items: center;
  overflow: hidden;
}

.hero-image img {
  width: 500%;
  max-width: none;
  max-height: 260px;
  object-fit: contain;
  transform: translateX(-90px);
  transition: transform .6s ease;
}

.hero-content:hover .hero-image img {
  transform: scale(1.05);
}

/* ================= MOBILE ================= */

@media (max-width: 992px) {

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 200px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 26px;
  }
}
/* ================= HERO SLIDER ================= */

.hero-slider {
  max-width: 1400px;
  margin: auto;
  position: relative;
  min-height: 450px;
  border-radius: 40px;
  overflow: visible;
  background: #fff;

  box-shadow:
    0 35px 80px rgba(0,0,0,0.18),
    0 10px 25px rgba(0,0,0,0.08);
}

/* السلايد */
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 60px 80px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
  transition: all .8s ease;
  min-height: 400px;
}

/* السلايد النشط */
.slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ================= TEXT ================= */

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 20px;
  color: #555;
  margin-bottom: 30px;
}

/* ================= IMAGE ================= */

.hero-image img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  transform: scale(1.1);
  transition: transform 1.2s ease;
}

.slide.active .hero-image img {
  transform: scale(1.2);
}

/* ================= BUTTON ================= */

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: .3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

/* ================= CONTROLS ================= */

.slider-controls {
  position: absolute;
  bottom: 18px;
  left: 25px;
  display: flex;
  gap: 10px;
}

.slider-controls span {
  width: 38px;
  height: 38px;

  background: rgba(0,0,0,0.35);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  cursor: pointer;
  transition: .3s;
}

.slider-controls span:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* ================= MOBILE ================= */

@media (max-width: 992px) {
  .hero-slider {
    min-height: 520px;
  }
  .slide {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }
  .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-image img {
    max-height: 260px;
    width: auto;
    margin: 0 auto;
  }
  .slider-controls { display: none !important; }
}
.banner {
   transition: height 0.4s ease;
}

.menu-item:hover ~ .banner {
   height: 500px;   /* عدّل حسب حجم الميجا */
}
/* ================= INTRO SECTION ================= */

.intro-section {
  padding: 70px 20px;
  background: var(--gray);
}

.intro-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.intro-content h2 {
  font-size: 42px;
  margin-bottom: 18px;
  color: #111;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.intro-content p {
  font-size: 18px;
  line-height: 1.9;
  color: #666;
  font-weight: 400;
}

/* لمسة فخامة بسيطة */
.intro-content h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
/* ستايل زرار سجل الآن */
/* التعديل الجديد لزرار سجل الآن */
.btn-register {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 40px;
  
  /* الحالة العادية: خلفية بيضاء وكلام ذهبي */
  background: #ffffff; 
  color: var(--secondary); /* اللون الذهبي */
  border: 2px solid var(--secondary);
  
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* حركة أنعم */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* حالة الـ Hover: يملي زيتوني والكلام يقلب أبيض */
.btn-register:hover {
  background: var(--primary); /* اللون الزيتوني */
  color: #ffffff; /* كلام أبيض */
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(129, 123, 32, 0.3);
}
/* ================= CATEGORIES ================= */

.categories-section {
  max-width: 1300px;
  margin: 50px auto;
  padding: 0 20px;
}

/* العنوان */
.section-title {
  text-align: center;
  margin-bottom: 35px;
}

.section-title h2 {
  font-size: 32px;
  color: #111;
  margin-bottom: 8px;
}

.section-title p {
  color: #777;
  font-size: 15px;
}

/* الجريد */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

/* الكارت */
.category-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  cursor: pointer;

  transition: all .35s ease;

  box-shadow:
    0 12px 35px rgba(0,0,0,0.08);
}

/* الصورة */
.category-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform .45s ease;
}

/* النص */
.category-card h3 {
  font-size: 18px;
  color: #222;
}

/* Hover فاخر */
.category-card:hover {
  transform: translateY(-10px) scale(1.03);

  box-shadow:
    0 25px 55px rgba(0,0,0,0.12);
}

.category-card:hover img {
  transform: scale(1.12);
}
.category-button-wrapper {
  display: block;      /* لضمان أنه يأخذ سطر كامل */
  text-align: center;   /* السحر هنا: يوسط أي عنصر جواه */
  width: 100%;         /* عرض الصفحة بالكامل */
  margin-top: 10px;    /* مسافة بين الزرار والصور */
  margin-bottom: 20px;
}
/* التعديل الجديد لزرار سجل الآن */
.all-catigories {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 40px;
  
  /* الحالة العادية: خلفية بيضاء وكلام ذهبي */
  background: #ffffff; 
  color: var(--secondary); /* اللون الذهبي */
  border: 2px solid var(--secondary);
  
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* حركة أنعم */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* حالة الـ Hover: يملي زيتوني والكلام يقلب أبيض */
.all-catigories:hover {
  background: var(--primary); /* اللون الزيتوني */
  color: #ffffff; /* كلام أبيض */
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(129, 123, 32, 0.3);
}
/* Category card as link */
a.category-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Icon card (no image) */
.cat-icon-wrap {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 12px;
  font-size: 64px;
  transition: transform .45s ease;
}
.category-card:hover .cat-icon-wrap {
  transform: scale(1.12);
}

/* Hide extra category cards until expanded */
.categories-grid:not(.cats-expanded) .category-card:nth-child(n+6) { display: none; }
@media (max-width: 768px) {
  .categories-grid:not(.cats-expanded) .category-card:nth-child(n+5) { display: none; }
}

.toys-section {
  margin-top: 60px;
}

.toys-intro {
  text-align: center;
  margin-bottom: 30px;
}

.toys-intro h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111;
}

.toys-intro p {
  font-size: 16px;
  color: #666;
}

/* الكروت */
.toys-cards {
  max-width: 1300px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

/* الكارت */
a.toy-card { text-decoration: none; color: inherit; display: block; }
.toy-card {
  background: white;
  border-radius: 24px;
  padding: 22px;

  text-align: center;

  transition: all .35s ease;

  box-shadow:
    0 15px 35px rgba(0,0,0,0.06),
    0 3px 8px rgba(0,0,0,0.04);
}

.toy-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}

.toy-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

/* hover فخم */
.toy-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(0,0,0,0.12);
}

/* زرار */
.toys-button {
  text-align: center;
  margin-top: 28px;
}
/* التعديل الجديد لزرار سجل الآن */
.view-all-btn {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 20;
  padding: 12px 40px;
  
  /* الحالة العادية: خلفية بيضاء وكلام ذهبي */
  background: #ffffff; 
  color: var(--secondary); /* اللون الذهبي */
  border: 2px solid var(--secondary);
  
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* حركة أنعم */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* حالة الـ Hover: يملي زيتوني والكلام يقلب أبيض */
.view-all-btn:hover {
  background: var(--primary); /* اللون الزيتوني */
  color: #ffffff; /* كلام أبيض */
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(129, 123, 32, 0.3);
}
/* تنسيق الشبكة الموحد */
#home-products-container, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* عرض مناسب للكارت */
    gap: 30px; /* مسافة مريحة بين الكروت */
    padding: 20px;
    /* مسافة أمان فوق وتحت عشان ميبقاش ملزوق في الهيدر */
    margin-top: 50px; 
    margin-bottom: 50px;
}

/* الكارت الاحترافي */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #edf2f7;
    text-align: center;
    position: relative;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    height: 100%; /* عشان الكروت تبقى طول واحد */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* تظبيط حجم الصورة عشان تظهر زي الأصلية */
.product-img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* أهم سطر عشان الصورة متتمطش */
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 10px 0;
    height: 40px; /* توحيد طول العنوان */
    overflow: hidden;
}

.price-box .new-price {
    color: #cc952e;
    font-size: 19px;
    font-weight: 800;
}

/* زرار الإضافة المظبوط */
.add-to-cart-btn {
    background: #1a202c;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    width: 100%;
    margin-top: 15px;
}

.add-to-cart-btn:hover {
    background: #2ecc71;
}
.badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}
.badge.new { background-color: #d81111; } /* أخضر للجديد */
.badge.sale { background-color: #ff4d4d; } /* أحمر للخصم */
#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff4d4d; /* أحمر تنبيه */
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: trnsform 0.2s ease;
    
}
/* الستارة السوداء */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none; /* مخفية في البداية */
    backdrop-filter: blur(4px);
}

/* جسم السلة الجانبية */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
    width: 380px;
    height: 100%;
    background: #f8f9fa; /* لون خلفية هادي زي الصورة */
    z-index: 10001;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
  right: 0 !important;
}
.modern-cart-item {
    background: #fff;
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 16px; /* حواف دائرية فخمة */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.modern-cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #f1f1f1;
    object-fit: contain;
}
.cart-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.cart-items-content {
    flex-grow: 1; /* بتتمدد عشان تزق اللي تحتها */
    overflow-y: auto; /* لو المنتجات كتير، دي بس اللي تعمل سكرول */
    padding: 20px;
}
.cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05); /* ظل خفيف عشان يبان إنه فوق المنتجات */
}
.total-area {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.item-details h4 {
    font-size: 14px;
    margin: 0 0 4px;
    color: #2d3436;
}

.item-price-tag {
    color: #636e72;
    font-weight: 600;
    margin-bottom: 8px;
}

/* عداد الكمية داخل السلة */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f1f3f5;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 20px;
}

.quantity-controls button {
    border: none;
    background: none;
    cursor: pointer;
    color: #00b894;
    font-size: 12px;
}

.delete-btn {
    margin-left: auto;
    border: none;
    background: none;
    color: #fab1a0;
    cursor: pointer;
    font-size: 18px;
}

/* زرار الدفع النهائي */
.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #1e272e;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #000;
}
.remove-item:hover {
    background: #ff4d4d;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* الزرار لما يتحول لعداد كمية */
.add-to-cart-btn.added {
    background-color: #5d5a5e !important; /* أخضر مريح للعين */
    display: flex;
    justify-content: space-around;
    align-items: center;
    cursor: default;
}

.add-to-cart-btn.added span {
    font-size: 18px;
    font-weight: bold;
}

.qty-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.qty-btn:hover {
    background: rgba(255,255,255,0.4);
}
.product-button {
  text-align: center;
  margin-top: 10px;
}
/* التعديل الجديد لزرار سجل الآن */
.product-btn {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 50;
  padding: 12px 40px;
  
  /* الحالة العادية: خلفية بيضاء وكلام ذهبي */
  background: #ffffff; 
  color: var(--secondary); /* اللون الذهبي */
  border: 2px solid var(--secondary);
  
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* حركة أنعم */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* حالة الـ Hover: يملي زيتوني والكلام يقلب أبيض */
.view-all-btn:hover {
  background: var(--primary); /* اللون الزيتوني */
  color: #ffffff; /* كلام أبيض */
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(129, 123, 32, 0.3);
}
.toast-notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: #dfcb5e;
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: 0.5s;
    z-index: 999999;
}
.toast-notification.show {
    bottom: 20px;
}
/* ================= STICKY REVIEWS ================= */
/* الحاوية الكبيرة للسيكشن */
.reviews-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* خلفية هادية تبرز الصور */
  overflow: hidden; /* عشان الصور اللي بتتحرك متطلعش بره الشاشة */
}

.reviews-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* الكلام اللي على الجناب (what people / are say) */
.reviews-side h2 {
  font-size: 2.5rem;
  color: var(--primary);
  text-transform: uppercase;
  writing-mode: horizontal-tb; /* بيخلي الكلام مكتوب بالطول لشكل عصري */
  margin: 0 20px;
  opacity: 0.7; /* خففت اللون شوية عشان ميزحمش العين */
}

/* منطقة الصور المتحركة */
/* الحاوية اللي شايلة الشريط */
.reviews-center {
  width: 100%;
  overflow: hidden; /* بيقص أي حاجة تخرج بره */
  padding: 20px 0;
}

/* الشريط نفسه اللي بيتحرك */
.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  /* animation handled by JS in home-premium.js */
}

.review-card {
  width: 260px;
  flex-shrink: 0;
}
.review-card img {
  width: 260px;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .review-card { width: 200px; }
  .review-card img { width: 200px; }
}

.review-card img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: block;
  object-fit: cover;
}

@keyframes scrollReviews {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-info,
.footer-links,
.footer-social {
    flex: 1 1 250px;
    margin: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 10px 0;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #584d18;
}

.footer-social a {
    margin-right: 10px;
}

.footer-social img {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-social a {
        margin: 5px;
    }
}



/* الكارت */
.search-dropdown {
    display: none !important; /* مخفي إجباري */
    position: absolute !important;
    top: 100% !important; 
    right: 0 !important;
    width: 380px !important;
    min-height: 480px !important;
    background: #ffffff !important;
    border-radius: 25px !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2) !important;
    padding: 30px !important;
    z-index: 99999999 !important; /* أعلى طبقة ممكنة */
    flex-direction: column;
}

/* الكلاس اللي هيظهر النافذة */
.search-dropdown.open-now {
    display: flex !important;
}

.search-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
}

.search-body input {
    width: 100%;
    padding: 15px;
    background: #f7f7f7;
    border: none;
    border-radius: 12px;
    outline: none;
}
.login-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.login-content {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 50px 40px;
    border-radius: 30px; 
    position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,0.3);
    text-align: center;
}

.login-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 35px;
    color: #222;
}

/* حاوية الفورم */
.login-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form-wrapper input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    background: #fcfcfc;
    font-size: 15px;
    box-sizing: border-box;
}

/* تظبيط العين */
/* حاوية الباسورد عشان العين */
.password-group {
    position: relative;
    width: 100%;
}

/* العين في أقصى اليسار */
.toggle-password {
    position: absolute;
    left: 15px; /* خليناها يسار */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 16px;
    z-index: 10;
}

/* تظبيط حقل الباسورد عشان الكلام ميتغطاش بالعين */
.password-group input {
    padding-left: 45px !important; /* مساحة للعين على اليسار */
    padding-right: 20px !important;
}

/* تظبيط روابط مستخدم جديد ونسيت كلمة المرور */
.login-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between; /* يخليهم بعيد عن بعض على الأطراف */
    align-items: center;
    width: 100%;
}

.login-footer a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.login-footer a:hover {
    color: #dfcb5e;
}

.gold-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dfcb5e, #c5ac45);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.close-login {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 28px;
    cursor: pointer;
}
/* عشان نضمن إنها متبقاش ظاهرة تحت الفوتر */
body.modal-open {
    overflow: hidden;
}
/* لما يكون المود إنجليزي، غير الفونت أو المسافات لو محتاج */
.en-mode {
    font-family: 'Poppins', sans-serif; /* فونت إنجليزي شيك */
}



[dir="ltr"] .search-dropdown {
    right: auto;
    left: 0;
}
/* تنسيق كارت المنتج جوه السلة */
.modern-cart-item {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    padding: 15px !important;
    border: 1px solid #f0f0f0 !important;
}

/* تنسيق عداد الكمية (الزائد والناقص) */
.quantity-controls {
    background: #f1f3f5;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
}

.quantity-controls button {
    background: #fff !important;
    border: none !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    color: #333 !important;
    font-weight: bold !important;
    transition: 0.3s;
}

.quantity-controls button:hover {
    background: #111 !important;
    color: #fff !important;
}

/* تنسيق منطقة الإجمالي والزرار اللي تحت */
.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
}

.total-box {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #111;
}

.checkout-btn {
    background: #4a69bd !important; /* أو اللون اللي بتستخدمه في الصورة */
    color: white !important;
    width: 100%;
    padding: 15px !important;
    border-radius: 10px !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer;
}
/* ================= REVIEWS FIX (ثابت في اللغتين) ================= */
.reviews-layout {
  direction: rtl !important; /* يخلي what people شمال و are say يمين دائماً */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#fekra-header-root {
    position: relative;
    z-index: 1000;
}

.fk-nav {
    overflow: visible !important;
}

.fk-header {
    overflow: visible !important;
}

.fk-nav-inner {
    overflow: visible !important;
}

.fk-nav-item {
    overflow: visible !important;
}

/* ══════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════ */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border-top: 1px solid #f0ece0;
  border-bottom: 3px solid #c0b515;
  padding: 18px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  transition: color .2s;
}
.trust-item:hover { color: #817b20; }
.trust-icon { font-size: 22px; }
.trust-divider {
  width: 1px;
  height: 36px;
  background: #e8e4d0;
}
@media (max-width: 640px) {
  .trust-item { padding: 8px 16px; font-size: 12px; }
  .trust-divider { display: none; }
}

/* ══════════════════════════════════════════
   FLASH SALE SECTION
══════════════════════════════════════════ */
.flash-sale-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.flash-sale-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.flash-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  padding: 8px 20px;
  border-radius: 30px;
  letter-spacing: .5px;
  animation: flash-pulse 1.5s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes flash-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(231,76,60,.4); }
  50%      { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
}
.flash-sale-header h2 {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  margin: 0;
  flex: 1;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}
[dir="ltr"] .countdown { margin-right: 0; margin-left: auto; }
.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 56px;
}
.cd-block span {
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #c0b515;
}
.cd-block label {
  font-size: 10px;
  color: #aaa;
  margin-top: 3px;
  letter-spacing: .3px;
}
.cd-sep {
  font-size: 22px;
  font-weight: 900;
  color: #111;
  line-height: 1;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════
   PRODUCT CARD IMPROVEMENTS
══════════════════════════════════════════ */
.product-card {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s !important;
}
.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.12) !important;
}
.product-card .quick-view-btn {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(0,0,0,.75);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 20;
}
.product-card:hover .quick-view-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.discount-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(231,76,60,.35);
  display: inline-block;
}
.badge.best { background-color: #f39c12; }

/* ══════════════════════════════════════════
   QUICK VIEW MODAL
══════════════════════════════════════════ */
#quick-view-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#quick-view-overlay.open { display: flex; }
#quick-view-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  animation: qv-pop .3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
@keyframes qv-pop {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.qv-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.qv-close:hover { background: #ffe; }
.qv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.qv-img {
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: #f8f8f8;
  border-radius: 20px 0 0 20px;
  min-height: 280px;
}
[dir="rtl"] .qv-img { border-radius: 0 20px 20px 0; }
.qv-img img { max-width: 100%; max-height: 260px; object-fit: contain; }
.qv-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  direction: rtl;
}
.qv-cat { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.qv-name { font-size: 18px; font-weight: 900; color: #111; line-height: 1.4; }
.qv-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qv-price { font-size: 22px; font-weight: 900; color: #817b20; }
.qv-old-price { font-size: 14px; color: #e74c3c; text-decoration: line-through; }
.qv-discount { background: #ffeaea; color: #e74c3c; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.qv-desc { font-size: 13px; color: #555; line-height: 1.7; }
.qv-stock { font-size: 12px; }
.qv-actions { display: flex; gap: 10px; margin-top: auto; }
.qv-add-btn {
  flex: 1;
  background: linear-gradient(135deg, #817b20, #c0b515);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all .25s;
}
.qv-add-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(129,123,32,.4); }
.qv-detail-btn {
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.qv-detail-btn:hover { background: #ece; }
@media (max-width: 560px) {
  .qv-body { grid-template-columns: 1fr; }
  .qv-img { border-radius: 20px 20px 0 0; min-height: 200px; }
  [dir="rtl"] .qv-img { border-radius: 20px 20px 0 0; }
}

/* ══════════════════════════════════════════
   LOAD MORE BUTTON
══════════════════════════════════════════ */
.load-more-wrap {
  text-align: center;
  margin: 32px 0;
}
.load-more-btn {
  background: transparent;
  border: 2px solid #c0b515;
  color: #817b20;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 40px;
  border-radius: 30px;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .3px;
}
.load-more-btn:hover {
  background: linear-gradient(135deg, #817b20, #c0b515);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(129,123,32,.35);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Fekra Store (appended)
   Breakpoints: 992 tablet | 768 large-mobile | 480 mobile | 360 small
════════════════════════════════════════════════════════════════ */

/* ── Global base ── */
html          { overflow-x: hidden; }
body          { overflow-x: hidden; max-width: 100%; }
*             { box-sizing: border-box; }
img           { max-width: 100%; }

/* header width fix */
.main-header  { width: 100% !important; max-width: 100% !important; left: 0 !important; }
.header-icons { margin-right: 0 !important; margin-left: 0 !important; }

/* ══════════════════════════════════════════════
   MOBILE SCROLL PERFORMANCE — removes GPU killers
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Tell browser: only vertical panning, ignore horizontal touch events on body */
  body { touch-action: pan-y; }

  /* iOS native momentum scroll */
  html, body { -webkit-overflow-scrolling: touch; }

  /* Kill backdrop-filter on mobile — single biggest GPU drain */
  .main-header,
  .glass-sidebar,
  .mobile-overlay,
  .fk-nl-card,
  .fk-bottom,
  [class*="glass"],
  [class*="blur"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Stop expensive blob animations */
  .fk-blob { animation: none !important; }

  /* Disable footer canvas (already skipped in JS, belt+suspenders) */
  #fk-canvas { display: none !important; }

  /* Reduce animation complexity */
  .fk-reveal {
    transition-duration: .4s !important;
  }
}

/* ── Hero Slider ── */
@media (max-width: 768px) {
  .hero-banner { padding: 10px; }
  .hero-slider  { min-height: auto !important; border-radius: 20px; margin: 0; }
  .slide {
    grid-template-columns: 1fr !important;
    padding: 24px 18px !important;
    text-align: center;
    gap: 12px;
    min-height: auto !important;
  }
  .hero-image { order: -1; }
  .hero-image img { max-height: 170px !important; transform: none !important; }
  .slide.active .hero-image img { transform: none !important; }
  .hero-text h1 { font-size: 22px !important; margin-bottom: 8px; }
  .hero-text p  { font-size: 13px !important; margin-bottom: 14px; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .btn-primary  { padding: 11px 26px; font-size: 14px; border-radius: 12px; }
  .slider-controls {
    bottom: 10px; left: 50%; right: auto !important;
    transform: translateX(-50%);
  }
}

/* ── Intro Section ── */
@media (max-width: 768px) {
  .intro-section  { padding: 28px 16px; }
  .intro-content h2 { font-size: 20px; }
  .intro-content p  { font-size: 13px; }
  .btn-register { padding: 11px 28px; font-size: 14px; }
}

/* ── Categories ── */
@media (max-width: 768px) {
  .categories-section { padding: 0 12px; margin: 28px auto; }
  .section-title h2 { font-size: 20px; }
  .section-title p  { font-size: 13px; }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }
  .category-card { padding: 12px 8px; border-radius: 14px; }
  .category-card img { height: 72px; }
  .category-card h3 { font-size: 12px; }
  .category-card:hover { transform: none; }
  .all-catigories { font-size: 14px; padding: 10px 28px; }
}
@media (max-width: 400px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Products Grid (home + flash sale) ── */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 12px !important;
  }
  .products-section { padding-bottom: 24px; }
  .products-section .section-title { padding: 0 12px; }
  .product-card  { border-radius: 14px; }
  .product-card:hover { transform: none !important; box-shadow: none !important; }
  .product-img   { height: 130px !important; }
  .product-img img { max-height: 120px; }
  .product-info h3 { font-size: 12px; line-height: 1.4; }
  .new-price  { font-size: 13px !important; }
  .old-price  { font-size: 11px !important; }
  .add-to-cart-btn { font-size: 11px !important; padding: 9px 6px !important; }
  .quick-view-btn  { display: none !important; }
  .discount-badge  { font-size: 10px; padding: 3px 7px; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr !important; }
}

/* ── Flash Sale ── */
@media (max-width: 768px) {
  .flash-sale-section { padding: 20px 12px 16px; }
  .flash-sale-header  { gap: 10px; }
  .flash-sale-header h2 { font-size: 16px; }
  .flash-badge { font-size: 12px; padding: 6px 14px; }
  .countdown   { margin-right: 0 !important; margin-left: 0 !important; }
  .cd-block    { min-width: 40px; padding: 5px 8px; border-radius: 8px; }
  .cd-block span { font-size: 15px; }
  .cd-block label { font-size: 9px; }
  .cd-sep { font-size: 15px; margin-bottom: 12px; }
}

/* ── Toys Section ── */
@media (max-width: 768px) {
  .toys-section { padding: 24px 12px; }
  .toys-intro h2 { font-size: 20px; }
  .toys-intro p  { font-size: 13px; }
  .toys-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .toy-card { border-radius: 14px; }
  .toy-card img { height: 100px; object-fit: contain; }
  .toy-card h3  { font-size: 12px; }
  .view-all-btn { font-size: 13px; padding: 10px 24px; }
}

/* ── Trust Strip ── */
@media (max-width: 600px) {
  .trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 0;
  }
  .trust-item  { justify-content: center; padding: 10px 8px; font-size: 11px; }
  .trust-divider { display: none; }
  .trust-icon  { font-size: 16px; }
}

/* ── Reviews ── */
@media (max-width: 768px) {
  .reviews-section { padding: 16px 0; overflow: hidden; }
  .reviews-layout  { flex-direction: row !important; justify-content: center !important; }
  .reviews-side    { display: none !important; }
  .reviews-center  { width: 100% !important; flex: 1 !important; }
  .review-card     { width: 240px !important; }
  .reviews-track   { gap: 16px !important; }
}

/* ── Home Category Filter Chips ── */
.products-section { padding-top: 50px; }
.home-cat-filter {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 20px 20px;
  scrollbar-width: none;
  flex-wrap: nowrap;
  justify-content: center;
}
.home-cat-filter::-webkit-scrollbar { display: none; }
.hcf-chip {
  flex-shrink: 0;
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid #e0d8c8;
  background: #f7f3ec;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  color: #444;
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hcf-chip:hover { border-color: #C9A84C; color: #8a6c1e; background: #fff9ed; }
.hcf-chip.active { background: #C9A84C; border-color: #C9A84C; color: #fff; box-shadow: 0 4px 16px rgba(201,168,76,.35); }
@media (max-width: 768px) {
  .products-section { padding-top: 30px; }
  .home-cat-filter { justify-content: flex-start; padding: 0 12px 16px; }
  .hcf-chip { font-size: 12px; padding: 7px 14px; }
}

/* ── Cart Sidebar ── */
@media (max-width: 480px) {
  .cart-sidebar { width: 92vw !important; right: -92vw !important; }
  .cart-sidebar.open { right: 0 !important; }
  [dir="ltr"] .cart-sidebar { left: -92vw !important; right: auto !important; }
  [dir="ltr"] .cart-sidebar.open { left: 0 !important; }
}

/* ── Quick View Modal ── */
@media (max-width: 600px) {
  #quick-view-modal { padding: 20px 14px; width: 96vw !important; }
  .qv-body { grid-template-columns: 1fr !important; }
  .qv-img  { border-radius: 12px; min-height: 160px; }
  .qv-info { padding: 14px 0 0; gap: 10px; }
  .qv-name { font-size: 15px; }
  .qv-price { font-size: 17px; }
  .qv-actions { flex-direction: column; }
  .qv-add-btn, .qv-detail-btn { width: 100%; justify-content: center; text-align: center; }
}

/* ── Load More Button ── */
@media (max-width: 768px) {
  #load-more-btn { padding: 0 12px; }
  .load-more-btn { width: 100%; max-width: 280px; padding: 12px 20px; font-size: 13px; }
}

/* ── WhatsApp + Scroll-top buttons ── */
@media (max-width: 768px) {
  #fk-whatsapp-btn { width: 48px !important; height: 48px !important; font-size: 24px !important; bottom: 16px !important; left: 16px !important; right: auto !important; }
  [dir="rtl"] #fk-whatsapp-btn { right: 16px !important; left: auto !important; }
  #fk-scroll-top   { width: 38px !important; height: 38px !important; font-size: 14px !important; bottom: 74px !important; left: 16px !important; right: auto !important; }
  [dir="rtl"] #fk-scroll-top   { right: 16px !important; left: auto !important; }
}

/* ── Login Modal ── */
@media (max-width: 480px) {
  .login-content { padding: 32px 20px; border-radius: 20px; }
  .login-content h2 { font-size: 20px; margin-bottom: 20px; }
  .gold-btn { font-size: 15px; padding: 14px; }
}

/* ── General spacing ── */
@media (max-width: 768px) {
  .page-body section { box-sizing: border-box; }
  .section-title { margin-bottom: 20px; }
}
