/* انتقال سلس عند النقر على الروابط */
html            { scroll-behavior: smooth; }

/* الأساسيات */
body            { font-family:'Cairo',sans-serif;margin:0;padding:0;
                  background:linear-gradient(to bottom right,#1a1a3d,#221b45);
                  color:#f0f0f0; }

/* رأس الموقع */
header          { background:rgba(0,0,0,.6);padding:50px 20px;text-align:center;border-bottom:3px solid #f9d29d; }
header h1       { margin:0;font-size:3em;color:#f9d29d; }
header p        { margin-top:10px;font-size:1.3em;color:#f0e6cc; }

/* شريط التنقل (Main‑Nav) */
.main-nav       { background:rgba(255,255,255,.05);position:sticky;top:0;z-index:1000;
                  backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.1); }
.main-nav ul    { display:flex;justify-content:center;gap:50px;list-style:none;margin:0;padding:15px 0; }
.main-nav a     { color:#ffd88f;text-decoration:none;font-weight:bold;font-size:1.15em;position:relative;
                  transition:all .4s ease; }
.main-nav a::after { content:'';position:absolute;width:0;height:2px;background:#ffd88f;bottom:-5px;left:50%;
                     transform:translateX(-50%);transition:width .3s ease; }
.main-nav a:hover   { color:#fff;transform:scale(1.05); }
.main-nav a:hover::after { width:60%; }


/* الوضع العادي (كمبيوتر) */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 768px) {
  /* الشريط الرئيسي في الجوال */
  body > .main-nav {
    position: fixed; /* يظل ثابت */
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    border-bottom: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
  }

  /* مسافة تعويض في الهيدر الرئيسي حتى لا يغطيه الشريط */
  body > header {
    padding-top: 64px; /* نفس ارتفاع الشريط */
  }
}


/* بانر */
.hero           { background:url('https://images.unsplash.com/photo-1606491956688-2f6e5d51ac63') center/cover;
                  height:400px;display:flex;align-items:center;justify-content:center;
                  color:#fff;font-size:2.8em;font-weight:bold;text-shadow:2px 2px 10px rgba(0,0,0,.8); }

/* أقسام عامة */
.section        { padding:60px 20px;max-width:1100px;margin:auto; }
.section h2     { color:#ffd88f;font-size:2em;border-bottom:2px solid #f9d29d;padding-bottom:15px;margin-bottom:30px; }
.section p      { line-height:1.9;font-size:1.15em; }

/* المنيو */
.menu-grid      { display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:30px; }
.menu-item      { background:rgba(255,255,255,.07);padding:25px;border-radius:15px;box-shadow:0 4px 15px rgba(0,0,0,.2);
                  text-align:center;transition:transform .3s ease; }
.menu-item:hover{ transform:translateY(-5px); }
.menu-item h3   { color:#ffe3a3;font-size:1.3em; }

/* قسم الصور */
#gallery p      { text-align:center;font-size:1.1em;color:#ccc; }

/* تواصل معنا */
.contact-section{ background:#0d0d26;padding:30px 15px;text-align:center;font-size:.85em;border-top:2px solid #333; }
.contact-section h2 { color:#ffd88f;font-size:1.2em;margin-bottom:10px; }
.contact-info p,.contact-info a { font-size:1em;margin:5px 0;color:#f0e6cc;text-decoration:none; }
.contact-icons a { margin:0 8px;font-size:1.2em;color:#ffd88f;transition:color .3s; }
.contact-icons a:hover { color:#fff; }

/* تذييل */
footer          { background:#0d0d26;color:#bbb;text-align:center;padding:20px 10px;font-size:.8em;border-top:1px solid #333; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
    font-size: 0.95em;
    color: #f0f0f0;
}

.testimonial .stars {
    color: gold;
    font-size: 1.2em;
    margin: 10px 0;
}

.testimonial small {
    color: #ccc;
    display: block;
    margin-top: 8px;
}

/* === تنسيق زر اطلب الآن في قسم منتجات الرقائق === */
.btn-order {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ffd88f; /* لون الزر الأساسي - ذهبي */
    color: #1a1a3d; /* لون النص داخل الزر */
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-order:hover {
    background-color: #f9c86b; /* لون عند التمرير */
    transform: translateY(-2px); /* حركة خفيفة عند التمرير */
}

/* === صورة شفافة في منتصف الشاشة === */
.fullscreen-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.04; /* شفافية منخفضة */
    z-index: 0;
    pointer-events: none;
    width: 60%;
    max-width: 700px;
}
/* ==== صور المنتجات داخل السلايدر ==== */
.product-image {
    width: 100%;
    height: 240px;           /* أو أي ارتفاع ثابت يناسبك */
    object-fit: cover;       /* تغطية كاملة مع الحفاظ على تناسق */
    border-radius: 12px;     /* زوايا ناعمة */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* ظل ناعم */
    transition: transform 0.3s ease-in-out;
}

.product-image:hover {
    transform: scale(1.05); /* تكبير بسيط عند التمرير */
}


/* القسم الكامل للبانر المتغير */
.custom-banner-slider {
  width: 100%;
  height: 420px; /* ارتفاع مناسب */
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  border-radius: 12px;
}

/* كل سلايد */
.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

/* الصورة داخل السلايد */
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* مربع النص */
.banner-floating-box {
  position: absolute;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.55);
  padding: 25px 30px;
  width: 380px;
  border-radius: 12px;
  color: #fff;
  opacity: 0;
  transition: all 0.8s ease;
  z-index: 2;
}

/* تفعيل المربع عند عرض السلايد */
.swiper-slide-active .banner-floating-box {
  opacity: 1;
  transform: translateY(-50%);
}

/* زر الطلب داخل البانر */
.btn-banner {
  display: inline-block;
  margin-top: 15px;
  background-color: #ffd88f;
  color: #222;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* ✅ البنر العام */
.custom-banner-slider {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* ✅ سلايد فردي */
.banner-slide {
  position: relative;
  width: 100%;
  height: 400px;
}

/* ✅ الصورة الرئيسية */
.banner-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  object-fit: cover;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ✅ المربع الشفاف بنفس حجم الصورة ومكانها */
.banner-floating-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 25px;
  color: #fff;
  border-radius: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: all 0.8s ease;
}

/* ✅ يظهر فقط عند عرض السلايد */
.swiper-slide-active .banner-floating-box {
  opacity: 1;
}

/* ✅ زر داخل المربع */
.btn-banner {
  display: inline-block;
  margin-top: 15px;
  background-color: #ffd88f;
  color: #222;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-banner:hover {
  background-color: #e3b94c;
}
.fullscreen-bg {
  position: fixed;
  z-index: -1;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
}

/* ✅ قسم لماذا نحن الأفضل - بتناسق مع خلفية الموقع */
.why-us {
  background-color: #1a1a2e; /* ←←← لون خلفية الموقع الغامق */
  padding: 60px 20px;
  border-radius: 12px;
  margin-top: 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: bold;
  color: #fff; /* العنوان بلون فاتح ليتناسق مع الخلفية */
}

/* ✅ القائمة */
.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

/* ✅ الكرت */
.why-us-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff; /* الكرت أبيض */
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* ظل خفيف */
  transition: transform 0.3s ease;
}

.why-us-item:hover {
  transform: translateY(-5px);
}

/* ✅ الدائرة */
.why-us-icon {
  background-color: #ffd88f;
  color: #222;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ✅ المحتوى */
.why-us-content h3 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #222;
}

.why-us-content p {
  margin: 0;
  font-size: 15px;
  color: #444;
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  height: 50px;
  width: 50px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: width 0.3s ease;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
  color: white;
  font-size: 24px;
  z-index: 2;
}

.whatsapp-text {
  color: white;
  margin-right: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  z-index: 1;
}

.whatsapp-float:hover {
  width: 160px;
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
}





.lang-toggle {
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 9999;
}

.lang-toggle button {
  margin: 0 5px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background-color: #eee;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lang-toggle button:hover {
  background-color: #ccc;
}


@media (max-width: 768px) {
  /* الهواتف */
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .banner-img {
    width: 250px;
    height: 250px;
  }

  .banner-floating-box {
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1024px) {
  /* التابلت */
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.menu-item {
  flex: 1 1 300px; /* العرض يتغير حسب حجم الشاشة */
}

/* ✅ زر واتساب دائري وثابت */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50px;
  padding: 12px;
  padding-right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  width: 50px;
}

/* ✅ أيقونة واتساب */
.whatsapp-fixed i {
  font-size: 24px;
  transition: transform 0.3s ease;
}

/* ✅ النص المخفي */
.whatsapp-label {
  white-space: nowrap;
  opacity: 0;
  font-size: 14px;
  transform: translateX(20px);
  transition: all 0.4s ease;
  color: white;
}

/* ✅ عند المرور بالماوس يتم توسيع الزر وعرض النص */
.whatsapp-fixed:hover {
  width: 160px;
  background-color: #25D366;
}

.whatsapp-fixed:hover .whatsapp-label {
  opacity: 1;
  transform: translateX(0);
}



@media (max-width: 768px) {
  .main-nav {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .main-nav ul li a {
    font-size: 14px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  }

  /* ✅ تعديل فقط على مربع النص في البنر */
  .banner-floating-box {
    width: 90%;
    height: auto;
    padding: 15px 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    text-align: center;
    border-radius: 12px;

    /* ✅ تنسيق إضافي لظهوره بشكل أنيق ومناسب للجوال */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
  }

  .banner-floating-box h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .banner-floating-box p {
    font-size: 13px;
    line-height: 1.6;
  }

  .btn-banner {
    font-size: 13px;
    padding: 8px 16px;
    margin-top: 10px;
  }
}

/* ✅ تصميم بنر الطلب الآن */
.order-banner {
  background: linear-gradient(135deg, #fef6e4, #ffe0ac);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  margin: 50px auto;
  max-width: 900px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.order-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ✅ شعار العلامة التجارية */
.brand-logo {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

/* ✅ النص والزر */
.order-text h2 {
  font-size: 24px;
  color: #222;
  margin-bottom: 10px;
}

.order-text p {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
}

.btn-order-banner {
  background-color: #ffb700;
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-order-banner:hover {
  background-color: #d89c00;
}

/* ✅ شارة NEW */
.new-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background-color: #ff3838;
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 50px;
  animation: pulse 1.2s infinite ease-in-out;
  box-shadow: 0 0 8px rgba(255, 56, 56, 0.6);
}

/* ✅ حركة النبض */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* ✅ قسم الأسئلة الشائعة بدون خلفية بيضاء */
.faq-section {
  background-color: transparent; /* لا خلفية */
  padding: 60px 20px;
  text-align: center;
  border-top: 0px solid rgba(255,255,255,0.1); /* خط خفيف */
  position: relative;
}

/* ✅ رأس القسم */
.faq-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.faq-header h2 {
  font-size: 28px;
  color: #ffd88f; /* أبيض للتماشي مع خلفية الموقع */
}

/* ✅ الأيقونة المتحركة */
.faq-icon {
  width: 35px;
  height: 35px;
  background-color: #d79b00;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 1.5s infinite;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ✅ كل سؤال */
.faq-item {
  max-width: 700px;
  margin: 0 auto 25px;
  background-color: rgba(0,0,0,0.5); /* شفاف أنيق */
  border-radius: 12px;
  padding: 20px;
  text-align: right;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  backdrop-filter: blur(4px); /* بلور خلف النص */
}

.faq-item:hover {
  transform: translateY(-5px);
}

.faq-item h3 {
  font-size: 20px;
  color: #ffd88f;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 15px;
  color: #fff;
  line-height: 1.7;
}

/* زر عرض المزيد */
.btn-faq {
  display: inline-block;
  background-color: #ffd88f;
  color: #222;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-faq:hover {
  background-color: #e3b94c;
  transform: translateY(-2px);
}

/*تنسيق التواصل معنا */
.contact-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-box {
  flex: 1;
  min-width: 250px;
}

.contact-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ffd88f;
}

.contact-box p,
.contact-box li,
.contact-box a {
  font-size: 15px;
  margin-bottom: 8px;
  color: #fff;
}

.contact-box a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-box a:hover {
  color: #ffd88f;
}

/* استجابة للجوال */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}
.testimonial-swiper {
  padding: 40px 0;
  direction: rtl;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 24px;
  margin: 10px;
  height: 100%;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card .stars {
  color: gold;
  margin-bottom: 12px;
  font-size: 16px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.testimonial-card small {
  font-size: 13px;
  opacity: 0.75;
}
.testimonial-swiper {
  max-width: 500px;
  margin: auto;
  padding: 50px 0;
}

.testimonial-card {
  min-height: 320px;          /* بدلاً من height */
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 30px 20px;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  text-align: center;

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

  /* ✅ الأهم */
  overflow: visible;         /* تأكد أن المحتوى لا يُقطع */
  box-sizing: border-box;
}


.testimonial-card p {
  margin: 15px 0;
  font-size: 16px;
  line-height: 1.7;
}

.testimonial-card .stars {
  color: #ffd700;
  font-size: 19px;
}

.testimonial-card small {
  font-size: 14px;
  opacity: 0.8;
}
.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.footer-links a:hover {
  background-color: #ffd88f;
  color: #000;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.contact-icons a {
  font-size: 28px; /* ✅ حجم الأيقونة */
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.contact-icons a:hover {
  background-color: #ffd88f;
  color: #222;
  transform: scale(1.1);
}
.contact-box ul li a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.contact-box ul li a:hover {
  color: #ffd88f;
}
footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffd88f;
}

.map-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.map-link:hover {
  color: #eebb8e; /* ← هذا هو اللون البرتقالي المستخدم في تصميم الموقع */
}
/* ← علامة التنبيه الاككثر مبيعا  */
.product-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff3838;
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 50px;
  animation: pulse 1.2s infinite ease-in-out;
  box-shadow: 0 0 8px rgba(255, 56, 56, 0.6);
  z-index: 5;
}

.menu-item {
  position: relative;
}

.offers-section {
  text-align: center;
  padding: 80px 20px;
  color: #ffd88f;
  font-family: 'Cairo', sans-serif;
}

/* ✅ العنوان Fade Down */
.fade-down {
  opacity: 0;
  transform: translateY(-40px);
  animation: fadeDown 1s ease forwards;
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ شعار Zoom */
.logo-zoom {
  width: 120px;
  margin: 25px 0;
  animation: zoomIn 1.2s ease;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4));
}

@keyframes zoomIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ✅ الفقرة تنزلق من اليمين */
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 1.2s ease forwards;
  animation-delay: 0.5s;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ✅ النص المتحرك مع وميض */
.animated-text {
  font-size: 22px;
  font-weight: bold;
  margin-top: 30px;
  animation: glow 1.5s ease-in-out infinite alternate;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.8);
}

/* لمعان وتأثير وهج */
@keyframes glow {
  from {
    text-shadow: 0 0 10px #ffd88f, 0 0 20px #ff9900;
  }
  to {
    text-shadow: 0 0 20px #fffcb8, 0 0 30px #ffae00;
  }
}
/*   تأثير دخول الصفحة  المنيو */
.page-enter {
  opacity: 0;
  transform: translateY(30px);
  animation: pageFadeIn 1s ease forwards;
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*   جميع الاجهزه تعديل حجم البنر الرئيسه  لماذا لدينا*/
@media screen and (max-width: 428px) and (max-height: 926px) {
  .banner-floating-box {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 320px;
    padding: 16px;
    text-align: center;
  }
}
@media screen and (max-width: 444px) and (max-height: 926px) {
  .banner-floating-box {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 320px;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    border-radius: 14px;
  }
}
/*شريط للجوال */
/* أيقونة الهامبرغر */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffd88f;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* الوضع المخفي للقائمة */
/* ✅ تنسيق الحاوية الداخلية */
/* ✅ تنسيق الحاوية العلوية */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* ✅ شعار */
.logo img {
  height: 48px;
  transition: transform 0.4s ease;
}

/* ✅ زر الهامبرغر */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.4s ease;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: #ffd88f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ✅ التحول إلى X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ✅ القائمة */
.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ✅ للجوال */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
  }

  .main-nav ul {
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 70px;
    right: 0;
    display: none;
  }

  .main-nav ul.active {
    display: flex;
  }

  .main-nav li {
    margin: 12px 0;
  }

  /* ✅ تنسيق الشعار والهامبرغر بجانب بعض */
  .nav-container {
    flex-direction: row;
  }

  .logo {
    flex: 0;
    display: flex;
    justify-content: flex-end;
  }

  .menu-toggle {
    flex: 1;
    justify-content: flex-start;
  }
}

@media (min-width: 1025px) {
  img[alt="شعار عماد الفت حلوني"] {
    display: none !important;
  }
}


#quantity-wrapper input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
}

@media (min-width: 768px) {
  .menu-item {
    max-width: 300px;
    margin: auto;
  }
}

.lang-switch {
  position: fixed;
  top: 20px;
  left: 20px; /* أو right: 20px حسب التصميم */
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
}

.lang-switch:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: black;
}


.lang-switcher {
  position: fixed;
  top: 20px;
  left: 20px; /* يمكن تغييره حسب اتجاه الصفحة */
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'Cairo', sans-serif;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-btn:hover {
  color: #fcd34d; /* لون أصفر جذاب عند المرور */
}

@media (max-width: 600px) {
  .lang-switcher {
    top: 10px;
    left: 10px;
    font-size: 12px;
    padding: 6px 10px;
  }

  .lang-btn {
    font-size: 12px;
  }
}

.lang-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4); /* خلفية شفافة أنيقة */
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'Cairo', sans-serif;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.lang-btn:hover {
  color: #facc15; /* أصفر ذهبي عند المرور */
}

.lang-btn:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #facc15;
  left: -100%;
  bottom: 0;
  transition: left 0.4s ease;
}

.lang-btn.clicked:after {
  left: 0;
}

.lang-btn.clicked {
  animation: bounce 0.3s ease;
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ✅ تحسينات للجوال */
@media (max-width: 768px) {
  .lang-switcher {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    gap: 6px;
  }

  .lang-btn {
    font-size: 12px;
  }
}


#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* افتراضي: مخفي على الكمبيوتر */
.lang-switcher-mobile { display: none; }

/* الجوال فقط */
@media (max-width: 768px) {
  .lang-switcher-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px dashed rgba(255,255,255,0.1);
  }
  .lang-switcher-mobile span { color: #fff; }
  .lang-switcher-mobile .lang-btn {
    background: none; border: none; color: #fff;
    font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 12px;
    padding: 3px 6px; cursor: pointer; transition: color .3s ease;
  }
  .lang-switcher-mobile .lang-btn:hover { color: #fcd34d; }
}


/*شريط الاهيدر لكل الصفحات */

.branches-list {
  list-style: none;
  padding: 0;
}

.branches-list li {
  margin-bottom: 8px;
}

.branches-list a, .branch-toggle {
  color: #ffd88f;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: right;
}

.branches-list a:hover, .branch-toggle:hover {
  color: #fff;
}

.arrow-icon {
  margin-right: auto;
  transition: transform 0.3s ease;
}

.sub-branches {
  display: none;
  list-style: none;
  padding-left: 20px;
  margin-top: 5px;
  flex-direction: column;
}

.sub-branches li {
  margin-bottom: 5px;
}

.dropdown-branch.open .sub-branches {
  display: flex;
}

.dropdown-branch.open .arrow-icon {
  transform: rotate(180deg);
}


.branches-list a, 
.branch-toggle {
  color: #ffd88f;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: flex-start; /* يضع السهم بجانب النص */
  text-align: right;
}

.arrow-icon {
  transition: transform 0.3s ease;
  order: 2; /* يجعل السهم بعد النص مباشرة */
}

/* عناصر رئيسية */
.contact-box .branches-list li + li { margin-top: .4rem; }

.contact-box .branches-list .branch-toggle,
.contact-box .branches-list li > a {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  min-height: 44px; /* لمسة مريحة على الجوال */
}

/* زر يشبه الرابط */
.contact-box .branches-list .branch-toggle {
  border: 0;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

.contact-box .branches-list .branch-toggle:hover,
.contact-box .branches-list li > a:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.contact-box .branches-list i.fas { opacity: .95; }

/* السهم */
.contact-box .branches-list .chevron {
  margin-inline-start: auto;
  transition: transform .25s ease;
}
.contact-box .has-children.open > .branch-toggle .chevron {
  transform: rotate(180deg);
}

/* القائمة الفرعية */
.contact-box .sub-branches {
  list-style: none;
  padding: .35rem 0 .2rem;
  margin: .25rem 0 .4rem;
  border-inline-start: 2px solid rgba(255,255,255,0.08);
  margin-inline-start: 1.15rem;

  /* أنيميشن انسيابي بالـ max-height */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
}

.contact-box .has-children.open > .sub-branches {
  opacity: 1;
  /* max-height ستتحدد ديناميكيًا بالـ JS (scrollHeight) */
}

/* تأكد أن القوائم الفرعية تعرض كـ block بعد إزالة hidden */
.contact-box .sub-branches { 
  display: block;                 /* مهم */
  list-style: none;
  padding: .35rem 0 .2rem;
  margin: .25rem 0 .4rem;
  border-inline-start: 2px solid rgba(255,255,255,0.08);
  margin-inline-start: 1.15rem;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
}

/* عند الفتح */
.contact-box .has-children.open > .sub-branches { 
  opacity: 1;
}

/* سهم التوسيع */
.contact-box .branches-list .chevron { 
  margin-inline-start: auto; 
  transition: transform .25s ease; 
}
.contact-box .has-children.open > .branch-toggle .chevron { 
  transform: rotate(180deg); 
}
.certificates {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start; /* يسار */
}

.cert img {
  width: 140px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  background: #fff;
}

.cert img:hover {
  transform: scale(1.05);
}
  .order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .btn-order-banner {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  /* هنقرستيشن */
  .hunger-btn {
    background: linear-gradient(135deg, #ffd88f, #e7b35a);
    color: #000;
  }
  .hunger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }

  /* ToYou */
  .toyou-btn {
    background: linear-gradient(135deg, #0078FF, #005FCC);
    color: #fff;
  }
  .toyou-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  

  .order-text p {
  font-size: 18px;   /* حجم الخط */
  font-weight: 1000;  /* غامق */
  color: #222;       /* لون غامق */
  line-height: 2.5;  /* ارتفاع السطر لراحة القراءة */
}

.order-actions {
  display: flex;
  justify-content: center;  /* يوسّط الزرين أفقياً */
  gap: 15px;                /* مسافة بين الزرين */
  margin-top: 15px;         /* مسافة فوق الأزرار */
}

@media (max-width: 600px) {
  .order-actions {
    flex-direction: column;
    align-items: center;
  }

  .order-actions a {
    width: 80%;   /* الزر بعرض مناسب */
    text-align: center;
  }
}

.certificates {
  margin-top: 10px;   /* قللت المسافة فوق الصور */
  margin-bottom: 0;   /* ألغيت أي فراغ تحت */
}

.cert {
  margin: 0;          /* إلغاء الهامش الافتراضي للـ figure */
  padding: 0;         /* إلغاء أي حشوة داخلية */
}

.cert img {
  display: block;     /* يشيل أي مسافات تحت الصورة */
  margin-bottom: -70px; /* لو تبي مسافة صغيرة فقط */
}

/* تعريف خط الديوان (كُوفي) */
@font-face {
  font-family: 'DiwanKufi';
  src:
    url('C:\Users\emad\OneDrive\سطح المكتب\emadfat-website2\CSS\fontsdiwan-kufi.woff2') format('woff2'),
    url('C:\Users\emad\OneDrive\سطح المكتب\emadfat-website2\CSS\fonts/diwan-kufi.woff') format('woff'),
    url('C:\Users\emad\OneDrive\سطح المكتب\emadfat-website2\CSS\fonts/diwan-kufi.ttf') format('truetype'); /* اختياري */
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* لظهور النص فورًا ثم استبداله بالخط */
}
 
.hero-title {
  font-family: 'DiwanKufi', 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
  font-weight: 400;       /* يفضّل وزن عادي لهذا النوع */
  font-size: 40px;        /* عدّل حسب تصميمك */
  line-height: 1.2;       /* تباعد أسطر مريح */
  margin: 0;              /* حسب تنسيقك */
  /* اختياري بحسب تصميمك: */
  /* text-align: center; */
  /* direction: rtl; */    /* استخدمه لو العنوان عربي داخل حاوية LTR */
}

[dir="rtl"] .hero-title {
  font-family: 'DiwanKufi', 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
}

.hero-title--aos {
  transform-origin: center;
}
[data-aos="fade-up"] {
  transition-property: transform, opacity;
}
.hero-title.hero-title--glow {
  text-shadow:
    0 0 6px rgba(238, 187, 142, .6),
    0 0 14px rgba(238, 187, 142, .4),
    0 0 24px rgba(238, 187, 142, .25);
  animation: glowPulse 2.8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { text-shadow:
    0 0 6px rgba(238,187,142,.5),
    0 0 14px rgba(238,187,142,.35),
    0 0 24px rgba(238,187,142,.2); }
  50% { text-shadow:
    0 0 10px rgba(238,187,142,.85),
    0 0 22px rgba(238,187,142,.55),
    0 0 38px rgba(238,187,142,.35); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title.hero-title--glow { animation: none; }
}
.hero-title {
  font-family: 'DiwanKufi', 'Amiri', serif;
  color: #eebb8e; /* ← نفس لون شعارك */
  font-size: 75px;
  font-weight: normal;
}


.hero-title {
  font-family: 'DiwanKufi', 'Amiri', serif;
  color: #eebb8e;   /* ← نفس لون شعارك */
  font-size: 75px;
  font-weight: normal;
  margin: 0;
  text-align: center;
}

/* 1) خليه LTR لتثبيت الحسابات أثناء السحب/الترانزشن */
#testimonials .swiper { direction: ltr; }

/* 2) خلي محتوى الكرت RTL عشان العربي */
#testimonials .testimonial-card { direction: rtl; }

/* 3) ثبّت السلايد في النص مع نفس الارتفاع */
#testimonials .swiper-wrapper { align-items: stretch; }
#testimonials .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  /* منع الاهتزازات الدقيقة وقت التحويل */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* 4) حدد عرضًا أقصى للكرت وخليه يتمركز */
#testimonials .testimonial-card {
  max-width: 640px;         /* عدّلها حسب تصميمك */
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  /* إن كان عندك خلفية/حد، خلي padding ثابت حتى ما يتغير العرض */
}

/* (اختياري) توحيد ارتفاع الكروت لو تحب */
#testimonials .testimonial-card p {
  margin: 14px 0;
  line-height: 1.7;
  flex-grow: 1;
}

/* البطاقة */
#testimonials .testimonial-card {
  text-align: center;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* يوسّط المحتوى عمودي */
  align-items: center;
  padding: 25px 20px;
  min-height: 220px;         /* ارتفاع موحّد للكروت */
}

/* النص */
#testimonials .testimonial-card p {
  margin: 0 0 10px;          /* يقرّب النص للنجوم */
  line-height: 1.7;
  font-size: 1rem;
  color: #fff;
}

/* النجوم تحت النص مباشرة */
#testimonials .testimonial-card .stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;          /* مسافة بسيطة قبل الاسم */
  color: #ffd700;
  font-size: 1.1rem;
}

/* اسم المعلّق */
#testimonials .testimonial-card small {
  font-weight: bold;
  font-size: 0.95rem;
  color: #ffd88f;
}
/* شكل الرابط المعطّل */
.nav-link.is-disabled {
  opacity: .65;
  cursor: not-allowed;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none; /* حسب تصميمك */
}

/* الشارة "قريبًا" */
.nav-link.is-disabled .badge-soon {
  background: #ffd88f;   /* نفس الذهبي في موقعك */
  color: #000;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.6;
}

/* توست بسيط للرسائل */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: .28s ease;
  z-index: 9999;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }


/* تطابق دقيق لعرض 430px وارتفاع 932px */
@media screen and (width: 430px) and (height: 932px) {
  .custom-banner-slider {
    height: 80vh;                 /* يملأ أغلب الشاشة */
  }
  .banner-img {
    object-position: center 45%;  /* يرفع الفوكس قليل */
  }
  .banner-floating-box {
    inset-inline: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 12px 14px;
    border-radius: 12px;
    max-width: none;              /* يمتد مع العرض */
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(6px);
  }
  .banner-floating-box h2 {
    font-size: 1.35rem;
    margin: 0 0 6px;
  }
  .banner-floating-box p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
  }
  /* نقاط التصفح أكبر ومريحة للمس */
  .custom-banner-slider .swiper-pagination-bullets .swiper-pagination-bullet {
    width: 11px; height: 11px;
    margin: 0 5px !important;
  }
  .custom-banner-slider .swiper-pagination {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* نطاق قريب (لو اختلفت قيمة الـCSS px بين الأجهزة) */
@media screen and (min-width: 390px) and (max-width: 440px)
       and (min-height: 800px) and (max-height: 950px) {
  .custom-banner-slider { height: 78vh; }
  .banner-floating-box { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .banner-floating-box h2 { font-size: clamp(1.2rem, 2.9vw, 1.4rem); }
  .banner-floating-box p  { font-size: clamp(.95rem, 2.6vw, 1.05rem); }
}

/* تحسين لمناطق الحافة (نوتش/هوم) */
@supports (padding: max(0px)) {
  .custom-banner-slider { 
    padding-bottom: max(0px, env(safe-area-inset-bottom)); 
  }
}


/* تمرير سلس لكل الروابط الداخلية */
html { scroll-behavior: smooth; }

/* لو عندك هيدر ثابت: تأكد أن القسم ما يختفي تحته */
#about { scroll-margin-top: 90px; } /* عدّل 90px حسب ارتفاع شريطك */

/* تأثير لطيف عند الوصول لقسم من نحن */
#about.pulse-in {
  animation: sectionPop .55s ease both, sectionGlow 1.2s ease-out 1;
}
@keyframes sectionPop {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
@keyframes sectionGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255,216,143,.45); }
  100% { box-shadow: 0 0 0 18px rgba(255,216,143,0); }
}
html {
  scroll-behavior: smooth;
}

