/* إعدادات عامة */
body {
    margin: 0;
    font-family: "Tajawal", sans-serif;
    direction: rtl;
    scroll-behavior: smooth;
    color: #333;
    background-color: #ffffff;
  
}

/* تعريف ألوان الموقع باستخدام متغيرات CSS */
:root {
    --main:  #1f784f;   /* الأخضر الأساسي المريح */
    --soft: #c4e3d3;   /* الأخضر الفاتح للتدرجات والخلفيات */
    --light: #f3fbf6;  /* خلفية فاتحة جدًا تشبه الأبيض المخضر */
    --text: #fbfffc;   /* لون النص الغامق المناسب مع الأخضر */
}


/* ✅ الإطار العام */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 999;

  border-top: 4px solid #0b683c;
    border-left: 4px solid #0b683c;
      border-right: 4px solid #0b683c;
      border-radius: 20px;
}

/* ✅ الشعار */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

.logo h1 {
  font-size: 18px;
  color: #2f6b4f;
}

/* ✅ القائمة */
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;


}

.nav-links li a {
  color: #2f6b4f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;

         
   
  
}
.nav-links li a:hover{
    
    border-bottom: 2px solid  rgb(47, 107, 79);
    border-radius: 20px;
    padding-bottom: 4px;

}

/* ✅ السلة */
.cart-icon {
  position: relative;
}
/*
.cart-icon span {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e63946;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}*/


.cart-icon span {
  position: absolute;
  top: -10px;     /* رفعناها فوق */
  right: 50%;     /* صارت في المنتصف تقريبًا */
  transform: translateX(50%); /* ضبط محاذاة وسط الأيقونة */
  background: #e63946;
  color: #fff;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 50%;
}
/* ✅ زر المنيو مخفي افتراضيًا */
.menu-btn {
  display: none;           /* مخفي في الشاشات الكبيرة */
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #2f6b4f;
}
/* ✅ أيقونات الجوال مخفية افتراضيًا */
.mobile-icons {
  display: none;
}

/* ✅ زر الإغلاق داخل القائمة */
.close-menu {
  display: none;
}




@media (max-width: 768px) {

  /* نخلي الناف بار ككل في منتصف الشاشة */
  .main-nav {
    position: relative;
    justify-content: center;   /* يلغي space-between */
  }

  /* اللوقو يكون في النص */
  .logo {
    margin: 0 auto;
    text-align: center;
  }

  .logo h1 {
    font-size: 16px;           /* تصغير بسيط للجوال */
  }

  /* ✅ إظهار أيقونات الجوال + تثبيتها أقصى اليسار */
  .mobile-icons {
    display: flex;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    gap: 10px;
    
  }

  .mobile-icons a {
    font-size: 18px;
   
    color: rgb(47, 107, 79);
  }

  /* ✅ زر الهمبرغر أقصى اليمين */
  .menu-btn {
    display: block;            /* يظهر في الجوال فقط */
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* قائمة السحب الجانبية مثل ما هي */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 55%;
    height: 100vh;
    background: #fff;
    border-bottom: 4px solid  rgb(47, 107, 79);
    border-left: 4px solid  rgb(47, 107, 79);
    border-top: 4px solid  rgb(47, 107, 79);
    border-radius: 20px;
    flex-direction: column;
    padding-top: 80px;
    transition: 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }



  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
        width: 140px;
    margin-left: 40px;
    
        border-top: 2px solid  rgb(47, 107, 79);
    border-bottom: 2px solid  rgb(47, 107, 79);
    border-radius: 20px;

  }

  .nav-links li a {
    font-size: 18px;
    display: block;

  }

  .desktop-cart {
    display: none; /* ما نحتاج السلة الكبيرة في الجوال */
  }
}

/* ✅ زر الإغلاق مخفي في الديسكتوب */
.close-menu {
  display: none;
}

/* ✅ زر الهمبرغر مخفي في الديسكتوب */
.menu-btn {
  display: none;
}

/* ✅ أيقونات الجوال مخفية في الديسكتوب */
.mobile-icons {
  display: none;
}

/* ✅ فقط في الجوال */
@media (max-width: 768px) {

  .menu-btn {
    display: block;
  }


  .mobile-icons {
    display: flex;
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }

}

/* ✅ غشاوة الخلفية */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 998;
}

/* ✅ تظهر فقط عند فتح المنيو */
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}








/* ✅ البطل (السلايدر) */
.hero {
 /* background: linear-gradient(to bottom, var(--soft), #ffffff); */
    color: #1f784f;
    padding: 60px 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

  z-index: 2;   /* يخلي الهيرو فوق الخلفية */
  background: transparent !important;



    
}
/* نص البطل */
.hero-text {
    flex: 1;
    min-width: 280px;
    max-width: 520px;
    
    margin-right: 0 auto;
    text-align: center;
    position: relative;
    right: 8px;
}
/* عنوان نص البطل */
.hero-text h2 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.8;
    
}

/* السوشال ميديا تحت الزر ومتوسّطة */
.hero-text .social-icons {
    justify-content: center;
    margin-top: 15px;
}



/* وصف نص البطل */
.btn-main {
    background-color: #fff;
    color: var(--main);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
/* تأثير التمرير على زر البطل */
.btn-main:hover {
    background-color: var(--main);
    color: #fff;
}


.hero-text .social-icons a{
  background-color:#2f6b4f;
}


.hero-text .social-icons a:hover{
  background-color:#2f6b4f48;
}


/*بدلنا الصوره حطيناها في الرئيسية , وسلايدر الرئيسية خيلناه في من نحن والا ستايل ما بدلنا شيء فيه */
/* ✅ السلايدر */
.hero-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    max-width: 500px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
/* صور السلايدر */
.hero-slider img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: none;
    animation: fade 1s ease-in-out;
}
/* عرض الصورة الأولى في السلايدر */
.hero-slider img:first-child {
    display: block;
}
/* تأثير التلاشي للصور */
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* ✅ ترتيب الهيرو على الجوال: الصورة فوق والكلام تحت */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse; /* يعكس الترتيب */
    text-align: center;
  }

  .hero-text{
    position: static;
    right: 0;
    margin: 20px 0 0 0;
  }
  .hero-slider {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-slider img {
    height: 250px; /* ارتفاع مناسب للجوال */
    border-radius: 15px;
  }

  .hero-text h2 {
    width: 100% !important;
    font-size: 22px;
    line-height: 1.6;
  }

  .social-icons {
    justify-content: center;
  }
}

.about {
  background-color: #f8fbf9;
  padding: 90px 20px;
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.about-text {
  flex: 1;
  min-width: 280px;
  text-align: right;
}

.about-text h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f6b4f;
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  line-height: 1.8;
  color: #444;
  font-size: 18px;
  max-width: 550px;
}


/*بدلنا الصوره حطيناها في الرئيسية , وسلايدر الرئيسية خيلناه في من نحن والا ستايل ما بدلنا شيء فيه */
.about-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* ✅ الجوال */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    justify-content: center;
    font-size: 24px;
  }

  .about-text p {
    font-size: 16px;
  }

  .about-image img {
    max-width: 90%;
  }
}

/* ✅ Products Section */
.products {
  padding: 80px 20px;
  background: linear-gradient(180deg, #e7f3ee, #f8fbf9);
  text-align: center;
}

.products h2 {
  color: #2f6b4f;
  font-size: 36px;
  margin-bottom: 50px;
  
 
  border-top: 4px solid #0b683c;
  border-bottom: 4px solid #0b683c;
  border-radius: 20px;
}

/* ✅ عنوان كل قسم */
.category-title {
  text-align: right;
  color: #2f6b4f;
  font-size: 24px;
  margin: 40px 0 20px;
  scroll-margin-top: 100px;
 
}

/* ✅ الحاوية الشفافة لكل قسم */
.pgcard {
  background: rgba(255,255,255,0.7);
  border-radius: 18px;
  padding: 25px 15px;
  margin-bottom: 40px;
}


/* ✅ شبكة المنتجات */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* ✅ بطاقة المنتج */
.product-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: .3s ease;
  min-width: 160px;   /* ✅ هذا اللي يكبّر عرض البطاقة */
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 16px;
  margin: 6px 0;
  color: #2f6b4f;
}

.product-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.product-card span {
  display: block;
  margin: 8px 0;
  font-weight: bold;
  color: #2f6b4f;
}

/* ✅ الجوال: شبكتين جنب بعض */

/* ✅ الجوال: بطاقتين جنب بعض (إجباري) */
@media (max-width: 768px) {

  .product-grid {
    display: grid !important;
 grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .product-card {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .product-card img {
    height: 150px !important;
  }

  .product-card h3 {
    font-size: 14px !important;
  }

  .product-card p {
    font-size: 11px !important;
    line-height: 1.5;
  }

  .product-card span {
    font-size: 13px !important;
  }

  .product-card .btn-main {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}
/* زر خاص */
.special-btn {
  background:#2f6b4f;
  border:none;
  padding:12px;
  border-radius:10px;
  font-size:18px;
  color:white;
  transition: 0.3s ease;
}

.special-btn:hover {
  background:#245540;
  transform: translateY(-2px);
}

/* ✅ التواصل */
.contact {
    background-color: var(--light);
    padding: 90px 20px;
    text-align: center;
}
/* عنوان التواصل */
.contact h2 {
    color: var(--main);
    margin-bottom: 20px;
}
/* صندوق التواصل */
.contact-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
/* عناصر التواصل */
.contact-item {
    border: 2px solid var(--main);
    color: var(--main);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
/* تأثير التمرير على عناصر التواصل */
.contact-item:hover {
    background-color: var(--main);
    color: #fff;
}

/* ✅ الفوتر */
footer {
    background-color: var(--main);
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ✅ تجاوب */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
}



/* 🌊 الموجة الفاصلة بين الأقسام */
/* 🌊 الموجة بلون أخضر باستيل مع شفافية */
.wave {
  position: relative;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='rgba(168,213,186,0.45)' d='M0,224L80,213.3C160,203,320,181,480,154.7C640,128,800,96,960,117.3C1120,139,1280,213,1360,250.7L1440,288L1440,320L0,320Z'></path></svg>") no-repeat center;
  background-size: cover;
  margin-top: -5px;
}

/* انعكاس الموجة */
.wave.flip {
  transform: rotate(180deg);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='rgba(168,213,186,0.45)' d='M0,192L80,186.7C160,181,320,171,480,160C640,149,800,139,960,128C1120,117,1280,107,1360,101.3L1440,96L1440,320L0,320Z'></path></svg>") no-repeat center;
  background-size: cover;
}



/* أيقونات التواصل الاجتماعي في الفوتر */
.social-icons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}
/* تصميم أيقونات التواصل الاجتماعي */
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #2f6b4f; /* أخضر الباستيل المستخدم في الزر */
  border-radius: 50%;
  color: white;
  background-color: transparent;
  font-size: 18px;
  transition: 0.3s ease;
  text-decoration: none;
}
/* تأثير التمرير على أيقونات التواصل الاجتماعي */
.social-icons a:hover {
  background-color: #2f6b4f;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(47, 107, 79, 0.25);
}
/* أزرار فئات المنتجات الدائرية */
.category-btn {
  text-decoration: none;
  border: 2px solid #2f6b4f;
  color: #2f6b4f;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}
/* تأثير التمرير على أزرار فئات المنتجات */
.category-btn:hover {
  background-color: #2f6b4f;
  color: #fff;
  transform: scale(1.05);
}

/* شبكة عرض المنتجات في الصفحة الرئيسية */

.products-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
/* بطاقة المنتج في الصفحة الرئيسية */
.product-card {
  width: 220px;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
/* صورة بطاقة المنتج في الصفحة الرئيسية */
.product-card img {
  width: 100%;
  border-radius: 8px;
}
/* زر أضف إلى السلة في بطاقة المنتج */
.btn {
  background-color: #2f6b4f;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
/* تأثير التمرير على زر أضف إلى السلة */
.btn:hover {
  background-color: #1e4633;
}


/* عنوان القسم + إزاحة بسيطة عند القفز من الروابط */
.category-title{
  color:#2f6b4f;
  margin:48px 0 14px;
  font-size:22px;
  scroll-margin-top: 90px; /* علشان ما يختفي العنوان تحت النافبار */
}

/* حاوية كل قسم: فراغ سفلي يفصل الأقسام عن بعض */
#products .product-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;                 /* مسافة صغيرة بين البطاقات */
  margin-bottom:32px;       /* فراغ بين الأقسام */
}

/* بطاقة المنتج بحد ناعم وظل خفيف */
.product-card{
  width: 220px;             /* ثابته عشان يطلعوا جنب بعض */
  background:#fff;
  border:1px solid #d9e5db; /* البوردر */
  border-radius:12px;
  padding:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
/* تأثير التمرير على بطاقة المنتج */
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 18px rgba(0,0,0,.10);
}
/* صورة المنتج داخل البطاقة */
.product-card img{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:8px;
  display:block;
}
/* نصوص بطاقة المنتج */
.product-card h3{
  margin:10px 0 6px;
  font-size:18px;
  color:#2f6b4f;
}

.product-card p{
  margin:0 0 6px;
  color:#555;
  font-size:14px;
  min-height:36px;          /* سطرين تقريباً لتوحيد الارتفاع */
}
.product-card span{
  display:block;
  margin-bottom:10px;
  color:#2f6b4f;
  font-weight:600;
}

/* زر أضف إلى السلة بنفس ستايل الموقع */
.btn-main{
  display:inline-block;
  background:#2f6b4f;
  color:#fff !important;
  padding:8px 14px;
  border-radius:8px;
  text-decoration:none;
  transition:background .2s ease, transform .2s ease;
}
.btn-main:hover{
  background:#1e4633;
  transform:translateY(-2px);
}

/* سلاسة النزول عند الضغط على الأقسام */
html{ scroll-behavior:smooth; }

/* تحسين بسيط للجوال */
@media (max-width: 576px){
  .product-card{ width: 46%; }
}


/* زر الانضمام كمندوب */


.join-btn {
  position: fixed;
  bottom: 30px;
  right: 90px;
  background-color: rgba(255, 255, 255, 0.096);
  color: #2f6b4f;
  border: 2px solid #2f6b4f;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
  z-index: 999;
}

.join-btn:hover {
  background-color: #2f6b4f;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* زر مساعد الذكاء الاصطناعي */
.ai-assistant-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #2f6b4f;
  color: #fff;
  font-size: 24px;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  z-index: 999;
}
.ai-assistant-btn:hover { background-color: #22523b; transform: scale(1.1); }
.ai-chat-box {
  position: fixed; bottom: 90px; right: 25px;
  width: 320px; height: 400px;
  background-color: #ffffff;
  border: 1px solid #cdd5cd;
  border-radius: 12px; display: none;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 999;
}
.chat-header {
  background-color: #2f6b4f; color: #fff;
  padding: 10px 15px; border-top-left-radius: 12px; border-top-right-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-body {
  padding: 10px; overflow-y: auto; height: 100%; background-color: #f8f9f8;
}
.chat-input { display: flex; border-top: 1px solid #ddd; }
.chat-input input {
  flex: 1; border: none; padding: 10px; outline: none;
}
.chat-input button {
  background-color: #2f6b4f; color: #fff; border: none; padding: 10px 15px; cursor: pointer;
}
.bot-msg, .user-msg {
  background: #e8f5ee; padding: 8px 12px;
  border-radius: 8px; margin: 6px 0; font-size: 15px;
}
.user-msg { background: #d0ecd8; align-self: flex-end; }

/* 🔹 أيقونة سلة التسوق في النافبار */
.cart-icon {
  position: relative;
  font-size: 22px;
  color: #f316d2;
  text-decoration: none;
}

#cart-count {
  position: absolute;
  top: -8px;
  left: -10px;
  background-color: #ff4d4d;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  display: none; /* تختفي إذا صفر */
}




  /* ⭐⭐⭐ Why Us Section ⭐⭐⭐ */
/* ⭐ قسم لماذا تختارنا */


#why-us {
    padding: 60px 20px;
      background: linear-gradient(180deg, #f7faf8, #2f6b4f7e);
    text-align: center;
}

#why-us h2 {
    color: #2f6b4f;
    margin-bottom: 40px;
    font-size: 32px;
}

/* الحاوية */
.why-us-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
}

/* الكروت */
.why-box {
  width: 240px;              /* ✅ تصغير العرض */
  min-height: 100px;        /* ✅ تصغير الارتفاع */
  padding: 20px 15px;       /* ✅ تصغير المساحة الداخلية */
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
  text-align: center;
  transition: 0.3s;
}

.why-box i {
  font-size: 28px;          /* ✅ تصغير الأيقونة */
  margin-bottom: 10px;
  color: #2f6b4f;
}

.why-box h3 {
  font-size: 18px;          /* ✅ تصغير العنوان */
  margin-bottom: 8px;
}

.why-box p {
  font-size: 14px;          /* ✅ تصغير النص */
  line-height: 1.6;
}
.why-box:hover {
    transform: translateY(-8px);
}

/* الأيقونات */
.why-box i {
    font-size: 40px;
    color: #2f6b4f;
    margin-bottom: 15px;
}

.why-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.why-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

/* ✅ الجوال */
@media (max-width: 768px) {
    .why-us-container {
        flex-direction: column;
    }

    .why-box {
        width: 100%;
        max-width: 350px;
        margin: auto;
    }

    #why-us h2 {
        font-size: 24px;
    }
}




.locations-modern {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8fbf9, #eef6f2);
  text-align: center;
}

.locations-title {
  font-size: 32px;
  color: #2f6b4f;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: auto;
}

.location-card {
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #2f6b4f;
  transition: 0.3s ease;
  cursor: default;
}

.location-card i {
  font-size: 22px;
  color: #4fa27b;
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  background: #2f6b4f;
  color: #fff;
}

.location-card:hover i {
  color: #fff;
}

/* ✅ موبايل */
@media (max-width: 600px) {
  .locations-title {
    font-size: 26px;
  }

  .location-card {
    font-size: 18px;
    padding: 20px;
  }
}


/* 🚚 سكشن رحلة طلبك معنا */
.order-story {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(to left, #f7fff9, #e8f6ef);
}

.story-title {
  font-size: 28px;
  color: #2f6b4f;
  margin-bottom: 50px;
}

.story-timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px;
}

.story-step {
  background: #fff;
  padding: 20px 18px;
  border-radius: 16px;
  width: 150px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  position: relative;
  transition: 0.3s;
}

.story-step:hover {
  transform: translateY(-5px);
}

.story-step i {
  font-size: 26px;
  color: #2f6b4f;
  margin-bottom: 10px;
}

.story-step p {
  font-size: 15px;
  color: #444;
}

.step-number {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #2f6b4f;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-line {
  width: 40px;
  height: 2px;
  background: #2f6b4f;
}

.story-step.success {
  background: #2f6b4f;
  color: #fff;
}

.story-step.success i,
.story-step.success p {
  color: #fff;
}

/* ✅ الجوال */
@media (max-width: 768px) {
  .story-timeline {
    flex-direction: column;
  }

  .story-line {
    width: 2px;
    height: 30px;
  }
}

/* ✅ الكرت النشط */
.story-card.active {
  background: linear-gradient(135deg, #2f6b4f, #3fa77a) !important;
  color: #fff !important;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.story-card.active p,
.story-card.active h4 {
  color: #fff !important;
}

/* ✅ سيكشن الاقسام */
.categories-story {
  padding: 70px 15px;
  background: linear-gradient(180deg, #f8fbf9, #e7f3ee);
  text-align: center;
}

.story-title {
  font-size: 30px;
  color: #2f6b4f;
  margin-bottom: 8px;
}

.story-subtitle {
  color: #666;
  font-size: 15px;
  margin-bottom: 35px;
}

/* ✅ الشبكة */
.story-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ 4 بطاقات في الديسكتوب */
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

/* ✅ البطاقة */
.story-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 15px;   /* ✅ تصغير الحجم */
  text-decoration: none;
  color: #2f6b4f;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  position: relative;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.story-icon {
  font-size: 32px;   /* ✅ أصغر */
  margin-bottom: 10px;
  display: block;
}

.story-card h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.story-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* ✅ البطاقة المميزة */
.story-card.special {
 
  background: rgba(168,213,186,0.45);

  color: #007a4f;
}

.story-card.special p {
  color: black;
}

/* ✅ التابلت */
@media (max-width: 992px) {
  .story-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ✅ الجوال — عمودين فقط */
@media (max-width: 768px) {
  .story-track {
    grid-template-columns: repeat(2, 1fr);  /* ✅ بطاقتين بالصف */
    gap: 15px;
  }

  .story-card {
    padding: 18px 12px;
    border-radius: 14px;
  }

  .story-icon {
    font-size: 28px;
  }

  .story-card h4 {
    font-size: 16px;
  }

  .story-card p {
    font-size: 12px;
  }

  .story-title {
    font-size: 24px;
  }

  .story-subtitle {
    font-size: 13px;
  }
}

.story-card.active {
  background: linear-gradient(135deg, #2f6b4f, #3d8c68);
  color: #fff;
  transform: translateY(-6px);
}

.story-card.active p,
.story-card.active h4 {
  color: #fff;
}

 /* ===============================
   🎨 Special Form – Professional UI
================================ */

#special-form {
  padding: 60px 15px;
  background: linear-gradient(135deg, #f6fbf8, #2f6b4f7e);
}

#special-form .container {
  max-width: 820px;
  margin: auto;
}

#special-form h2 {
  text-align: center;
  color: #2f6b4f;
  margin-bottom: 35px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* 🔲 الفورم */
#special-form form {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5efe8;
}

/* 🧩 الشبكة */
#special-form .row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* 📝 الحقول */
#special-form .form-control {
  width: 100%;
  padding: 12px 14px;
  margin: 22px 0 0 0;
  border-radius: 10px;
  border: 1px solid #cdd5cd;
  font-size: 15px;
  color: #333;
  transition: 0.3s ease;
  background: #fbfdfb;
}

#special-form .form-control:focus {
  outline: none;
  border-color: #2f6b4f;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.15);
  background: #ffffff;
}

/* 🏷 العناوين */
#special-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #2f6b4f;
  font-size: 14px;
}

/* 📤 زر الإرسال */
#special-form button {
  width: 100%;
  background: linear-gradient(135deg, #2f6b4f, #3e8b67);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 6px 15px rgba(47, 107, 79, 0.25);
}

#special-form button:hover {
  background: linear-gradient(135deg, #256046, #2f6b4f);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(47, 107, 79, 0.35);
}

/* 📱 الجوال */
@media (max-width: 768px) {
  #special-form {
    padding: 40px 12px;
  }

  #special-form form {
    padding: 25px 20px;
  }

  #special-form h2 {
    font-size: 20px;
  }

  #special-form .row {
    gap: 15px;
  }

  #special-form button {
    font-size: 16px;
    padding: 12px;
  }
}

  /* 📰 سكشن آخر الأخبار */
  .news-slider-section {
    text-align: center;
    padding: 40px 0;
}

.news-title {
    font-size: 30px;
    margin-bottom: 25px;
    color: #2f6b4f;
}

.news-slider {
    position: relative;
    width: 70%;
    height: auto;
    margin: auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #fff;
}

.news-slider img {
    width: 90%;         /* تصغير الصورة */ 
    height: 240px; 
    object-fit: contain; 
    margin: 0 auto;     /* يوسط الصورة داخل السلايدر */
    display: block;     /* مهم عشان التوسيط يشتغل */
}

.slide {
    display: none;
    animation: fade 1s ease-in-out;
}

.slide.active {
    display: block;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

/* Caption / النص */
.caption {
    padding: 15px;
    background: #ffffffdd;
    text-align: center;
}

.caption h3 {
    color: #2f6b4f;
    margin-bottom: 8px;
}
/* arrows الخاصة بسلايدر الأخبار فقط */
.news-slider .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    background: #ffffffcc;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
    color: #2f6b4f;
    transition: 0.2s;
}

.news-slider .arrow:hover {
    background: #2f6b4f;
    color: white;
}

.news-slider .arrow.left { left: 10px; }
.news-slider .arrow.right { right: 10px; }
/* indicators */
/* النقاط أسفل السلايدر */
.indicators {
    text-align: center;
    padding: 10px 0;
}

.indicators span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #b7c7bb;
    margin: 4px;
    border-radius: 50%;
    cursor: pointer;
}

.indicators .active-dot {
    background: #2f6b4f;
}

/* ✅ سكشن المتجر موثّق */
.trusted-section {
  padding: 70px 20px;
  background: linear-gradient(180deg, #f8fbf9, #e7f3ee);
  text-align: center;
}

.trusted-title {
  color: #2f6b4f;
  font-size: 32px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

/* ✅ كرت الشعار */
.trusted-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .3s ease;
}

.trusted-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.15);
}

/* ✅ صورة الشعار */
.trusted-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

/* ✅ تابلت */
@media (max-width: 900px) {
  .trusted-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ✅ الجوال */
@media (max-width: 600px) {
  .trusted-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .trusted-title {
    font-size: 24px;
  }

  .trusted-card img {
    max-height: 60px;
  }
}

  /* 🔹 سكشن شهاداتنا واعتماداتنا */
  .certificates-section {
    text-align: center;
    padding: 60px 0;
    background-color: #f8fbf9;
}

.certificates-section .section-title {
    font-size: 28px;
    color: #2f6b4f;
    margin-bottom: 40px;
}

.certificates-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.certificate-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 1px solid #e6eee9;
    transition: 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.certificate-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
}

.certificate-card h3 {
    font-size: 16px;
    color: #2f6b4f;
    margin-bottom: 5px;
}

.certificate-card p {
    font-size: 14px;
    color: #666;
}
  /* ----------------------------- */
/* ⭐ قسم آراء العملاء */
  .reviews-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:15px;
}

.show-all-btn{
    background:#2f6f4e;
    color:white;
    border:none;
    border-radius:8px;
    padding:5px 12px;
    cursor:pointer;
    font-size:13px;
}

.reviews-row{
    display:flex;
    gap:12px;
    overflow-x:auto;
}

.review-card{
    min-width:260px;
    background:#fff;
    border-radius:12px;
    padding:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
    text-align:center;
}

.review-text{
    font-size:14px;
    margin-bottom:6px;
}

.review-name{
    font-size:12px;
    color:#777;
}


/* تغيير شكل السكروول الخاص بسلايدر آراء العملاء فقط */
.reviews-row::-webkit-scrollbar {
    height: 6px;          /* سماكة السكروول */
}

.reviews-row::-webkit-scrollbar-track {
    background: #e6e6e6;  /* لون الخلفية */
    border-radius: 10px;
}

.reviews-row::-webkit-scrollbar-thumb {
    background: #2f6f4e;  /* اللون الأساسي للسكروول */
    border-radius: 10px;
}

.reviews-row::-webkit-scrollbar-thumb:hover {
    background: #1f4d36;  /* لونه عند المرور */
}
/* ✅ النافذة المنبثقة */
/* ===== مودال عرض جميع التعليقات (احترافي) ===== */
.reviews-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.reviews-modal-content {
    background: #ffffff;
    width: 480px;
    max-height: 75vh;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    position: relative;
    display: flex;
    flex-direction: column;
}

.reviews-modal-content h3 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 18px;
    color: #222;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: red;
}

/* ===== صندوق التمرير ===== */
.all-reviews-scroll {
    overflow-y: auto;
    padding-right: 104px;
    max-height: 55vh;
  

  
    
}

/* ===== شكل التعليق داخل المودال ===== */
.review-card-full {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.review-card-full p {
    font-size: 14px;
    margin: 0 0 6px;
}

.review-card-full small {
    color: #666;
    font-size: 12px;
}

/* ===== شكل السكروول النحيف ===== */
.all-reviews-scroll::-webkit-scrollbar {
    width: 5px;
}

.all-reviews-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.all-reviews-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(#00a86b, #007a4f);
    border-radius: 10px;
}  

  /* ----------------------------- */
/* ⭐ قسم التستيمونيال العالمي */
/* ----------------------------- */
/*⭐ سكشن آراء العملاء */
.reviews-section {
    max-width: 95%;
    margin: 30px auto;
    text-align: center;
}

.reviews-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2f3d2f;
    font-weight: bold;
}

/* السلايدر */
.reviews-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* الحزام اللي يتحرك */
.reviews-track {
    display: flex;
    gap: 12px;
    animation: scrollReviews 25s linear infinite;
}

/* بطاقة التعليق */
.review-card {
    flex-shrink: 0;
    width: 180px;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    border-top: 3px solid #2f6b4f ;
    border-bottom: 3px solid #2f6b4f ;
    box-shadow: 0 2px 7px rgba(0,0,0,0.05);
    text-align: center;
}

.review-comment {
    font-size: 14px;
    color: #444;
    margin-bottom: 5px;
}

.review-name {
    font-size: 13px;
    color: #777;
}

/* الحركة المستمرة */
@keyframes scrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}  




/*اراء العملاء */
/* ⭐ قسم التقييمات */
.testi-container {
  padding: 70px 20px;
  background: linear-gradient(180deg, #f7faf8, #2f6b4f7e);
  text-align: center;
}

.testi-title {
  font-size: 28px;
  color: #2f6b4f;
  margin-bottom: 25px;
}

/* الفورم */
.testi-form {
  max-width: 500px;
  margin: 0 auto 40px;
  display: flex;
  gap: 10px;
}

.testi-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #cfdcd5;
  font-size: 14px;
}

.testi-form button {
  background: #2f6b4f;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
}

.testi-form button:hover {
  background: #255640;
}

/* الهيدر */
.reviews-header {
  max-width: 1100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reviews-header h3 {
  color: #2f6b4f;
}

.show-all-btn {
  background: transparent;
  border: 1px solid #2f6b4f;
  color: #2f6b4f;
  padding: 6px 15px;
  border-radius: 20px;
  cursor: pointer;
}

.show-all-btn:hover {

  background-color: #2f6b4f;
  color: white;

}


/* ✅ الصف الرئيسي للتقييمات (سكرول بالديسكتوب) */
.reviews-row {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 5px 25px;
  scroll-snap-type: x mandatory;
}

.reviews-row::-webkit-scrollbar {
  height: 6px;
}

.reviews-row::-webkit-scrollbar-thumb {
  background: #2f6b4f;
  border-radius: 20px;
}

/* بطاقة التقييم */
.review-card {
  min-width: 260px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  text-align: center;
}

.review-text {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

.review-name {
  color: #777;
  font-size: 12px;
}

/* ✅ المودال */
.reviews-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.reviews-modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 25px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.all-reviews-scroll {
  max-height: 350px;
  overflow-y: auto;
  margin-top: 20px;
}

.review-card.full {
  margin-bottom: 15px;
}

/* ✅ الجوال: سنترة مثالية */
@media (max-width: 768px) {
  .reviews-row {
    justify-content: center;
  }

  .review-card {
    min-width: 85%;
  }

  .testi-form {
    flex-direction: column;
  }
}


 /* 🔹 سكشن تواصل معنا احترافي */
#contact {
  padding: 60px 15px;
  background: #f7fbf9;
  text-align: center;
}

#contact h2 {
  margin-bottom: 35px;
  color: #2f6b4f;
  font-weight: bold;
}

/* ✅ شبكة 4 × 2 احترافية */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: auto;
}

/* ✅ شكل الكرت */
.contact-card {
  background: white;
  border-radius: 14px;
  padding: 22px 10px;
  text-decoration: none;
  color: #2f6b4f;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: 0.25s ease;
  font-size: 14px;
}

.contact-card i {
  font-size: 26px;
}

/* ✅ الهوفر العام */
.contact-card:hover {
  color: #fff;
  transform: translateY(-6px);
}

/* ✅ ألوان الهوفر حسب المنصة */
.whatsapp:hover { background: #25D366; }
.instagram:hover { background: #E1306C; }
.twitter:hover   { background: #000; }
.snapchat:hover  { background: #FFFC00; color: #000; }
.tiktok:hover    { background: #000; }
.youtube:hover   { background: #FF0000; }
.mail:hover      { background: #6c757d; }
.phone:hover     { background: #198754; }

/* ✅ الجوال */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
  /* Footer Style */
  .footer {
    background: #0b683c;
    color: white;
    padding: 25px 10px;
    text-align: center;
    font-size: 14px;
}

.footer-content a {
    color: #cfeee0;
    margin: 0 8px;
    text-decoration: none;
    font-weight: 500;
}

.footer-content a:hover {
    color: #ffffff;
}

.footer-copy {
    margin-top: 10px;
     font-size: 15px;
}

.vicoder-link {
    color: orange;
    font-weight: bold;
 font-size: 20px;
    text-decoration: none;
}


.vicoder-link span{
color: #000;
}


.vicoder-link:hover {
    color: white;
}

/* Modal Style */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
}

.modal-content {
    background: #fff;
    width: 55%;
    padding: 25px;
    margin: 8% auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: right;
}

.close {
    float: left;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.close:hover { color: crimson; }

.modal h2 {
    color: #0b683c;
    margin-bottom: 12px;
    border-right: 4px solid #0b683c;
    padding-right: 8px;
}

.modal p {
    line-height: 1.8;
    font-size: 15px;
    color: #444;
}

  /* 🔹 ستايل زر الصعود للأعلى */
/* ✨ تنسيق السهم بخلفية زجاجية */
#scrollTopBtn {
  position: fixed;
  bottom: 100px; /* فوق المساعد الذكي */
  right: 30px;
  z-index: 9999;
  backdrop-filter: blur(10px); /* تأثير الزجاج */
  background-color: rgba(47, 107, 79, 0.4); /* أخضر باستيل شفاف */
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none; /* يختفي افتراضياً */
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: rgba(47, 107, 79, 0.8);
  transform: translateY(-3px) scale(1.05);
}


/* ⚡ تصميم عداد السلة الأساسي */
.cart-icon {
    position: relative;
    display: inline-block;
}

#cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e63946;
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 📱 للجوال فقط – تصغير العداد */
@media (max-width: 600px) {
    #cart-count {
        padding: 1px 4px;
        font-size: 10px;
        min-width: 15px;
        height: 15px;
        top: -5px;
        right: -5px;
    }
}


/* 🔹 زر العودة للأعلى */
#scrollTopBtn {
    position: fixed;
    bottom: 110px;   /* 🔥 بدّلناها من 25px → الآن فوق المساعد */
    right: 25px;
    background-color: #2f6b4f;
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    z-index: 99999;
}


/* قسم الانضمام */
.join-agent-section {
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.join-agent-box {
    background: #ffffff;
    width: 92%;
    max-width: 600px;
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #e6eee9;
}

.join-agent-box h3 {
    color: #2f6b4f;
    font-size: 22px;
    margin-bottom: 10px;
}

.join-agent-box p {
    color: #4b6f5a;
    font-size: 15px;
    margin-bottom: 20px;
}

/* زر فتح المودال */
.join-agent-btn {
    padding: 13px 25px;
    background-color: #2f6b4f;
    color: white;
    border-radius: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.25s;
}

.join-agent-btn:hover {
    background-color: #3b8a63;
    transform: translateY(-2px);
}

/* —————— نافذة المودال —————— */
.agent-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.agent-modal-content {
    background: #ffffff;
    width: 92%;
    max-width: 420px;
    padding: 22px 18px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    position: relative;
    text-align: right;
    max-height: 85vh;
    overflow-y: auto;
}

/* عنوان المودال */
.agent-modal-content h3 {
    color: #2f6b4f;
    font-size: 20px;
    text-align: center;
    margin-bottom: 18px;
    font-weight: 600;
}

/* حقول الإدخال */
.agent-modal-content input,
.agent-modal-content select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1ded5;
    margin-bottom: 13px;
    background: #f8fbf9;
    font-size: 15px;
    transition: 0.2s;
}

.agent-modal-content input:focus,
.agent-modal-content select:focus {
    border-color: #2f6b4f;
    background: #ffffff;
    outline: none;
}

/* زر الإرسال */
.agent-send-btn {
    width: 100%;
    padding: 12px;
    background: #2f6b4f;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.25s;
}

.agent-send-btn:hover {
    background: #3b8a63;
}

/* زر الإغلاق */
.agent-close {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #444;
    transition: 0.2s;
}

.agent-close:hover {
    color: #000;
}

/* —————— تحسين السحب —————— */

/* Chrome / Safari */
.agent-modal-content::-webkit-scrollbar {
    width: 7px;
}

.agent-modal-content::-webkit-scrollbar-track {
    background: #ecf4ef;
    border-radius: 10px;
}

.agent-modal-content::-webkit-scrollbar-thumb {
    background: #2f6b4f;
    border-radius: 10px;
}

/* Firefox */
.agent-modal-content {
    scrollbar-width: thin;
    scrollbar-color: #2f6b4f #ecf4ef;
}

/* —————— التجاوب للجوال —————— */
@media (max-width: 480px) {

    .agent-modal-content {
        padding: 18px 14px;
    }

    .agent-modal-content input,
    .agent-modal-content select {
        font-size: 14px;
        padding: 11px;
    }

    .agent-send-btn {
        font-size: 15px;
        padding: 11px;
    }

    .agent-modal-content h3 {
        font-size: 18px;
    }
}