* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden; /* بيمنع التمرير العرضي تماماً */
    width: 100%;
}
body{width: 100%;align-items:center ;gap: 30px; }
.main{background-color: rgb(255, 127, 206);display: flex;justify-content: space-between
  ;align-items: center;padding:0 70px;flex-direction: row-reverse}
.title{display: flex;align-items: center;gap: 35px;background-color: rgb(184, 28, 119);
    border-radius: 15px;color: rgb(205, 202, 211);width: 250PX;padding:20px;text-align: center;}
    .title h1:hover{background-color: rgb(127, 255, 255);}
.title img{width: 70px;}
.list ul{display: flex;justify-content: space-between;gap:10px;list-style: none;}
.list ul li{background-color: rgb(54, 7, 82);border-radius: 15px;}
.list ul li:hover{background-color: rgb(255, 127, 197);}
.list ul li a{text-decoration: none;font-size: x-large;color: aliceblue;padding: 30px;
    }
.imglogo{width:15px;padding:0;}
#searchInput {
    width: 70%;
    padding:8px;
    margin-bottom: 10px;
    border: 1px solid #dddddd11;
    border-radius: 5px;
    font-size: 17px;margin: 0 15px;
    height: 15px;align-items: center;
}

.item {
    background: #f9f9f957;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    border-bottom: 5px solid #2ecc71; /* لمسة جمالية خضراء */
}
#contentList{display: flex;flex-wrap: wrap;justify-content: center;;gap: 70px;;padding:30px;align-items: stretch;
    margin: 0 ;height: auto; border-radius: 30px;width:100%
    border-bottom: 5px solid #cc2ea4; /* لمسة جمالية خضراء */
}
.item p{text-align: center ;font-size: xx-large;}
input{margin: 50px;margin: 50px;padding: 0;}
.imgs p{font-size: xx-large;}
.item{position: relative;transition: z-index 0.3s}
.item a img{width: 4000px;;max-width: 350px; height: auto;transition: transform 0.3s ease;cursor: zoom-in;
    object-fit: cover;}
.item img:hover {
  transform: scale(1.5); /* تكبير الصورة لمرة ونصف حجمها */
  z-index: 99;           /* عشان الصورة تطلع فوق العناصر اللي حولها */
  position: relative;    /* ضرورية لتفعيل الـ z-index */
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);} /* إضافة ظل خفيف للجمالية */
.item a{text-decoration: none;color: #333;font-size: xx-large;font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;}
  /* تنسيقات القائمة الأساسية */

.navbar {
  background-color: #333;
  direction: rtl; /* لدعم اللغة العربية */
}

.nav-links {
  list-style: none;
  padding: 0;
  display: flex; align-items: center;gap: 30px;
}

.nav-links li {
  position: relative; /* مهم لضبط مكان القائمة المنسدلة */
}

.nav-links a {
  display: block;
  color: white;
  padding: 15px 20px;
  text-decoration: none;
 font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.nav-links a:hover {
  background-color: #555;
}
.item {
    background: #f9f9f957;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    border-bottom: 5px solid #2ecc71; /* لمسة جمالية خضراء */
}
#contentList{display: flex;flex-wrap: wrap;justify-content: center;;gap: 70px;;padding:30px;align-items: stretch;
    margin: 0 ;height: auto;   border-radius: 30px;
    border-bottom: 5px solid #cc2ea4; /* لمسة جمالية خضراء */
}
.item p{text-align: center ;font-size: xx-large;}
input{margin: 50px;margin: 50px;padding: 0;}
.imgs p{font-size: xx-large;}
.item{position: relative;transition: z-index 0.3s;
justify-content: space-between;white-space: calc();}
.item a img{width: 4000px;;max-width: 350px; height: auto;transition: transform 0.3s ease;cursor: zoom-in;
    object-fit: cover;}
.item img:hover {
  transform: scale(1.5); /* تكبير الصورة لمرة ونصف حجمها */
  z-index: 99;           /* عشان الصورة تطلع فوق العناصر اللي حولها */
  position: relative;    /* ضرورية لتفعيل الـ z-index */
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);} /* إضافة ظل خفيف للجمالية */
.item a{text-decoration: none;color: #333;font-size: xx-large;font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;}
  /* تنسيقات القائمة الأساسية */

.navbar {
  background-color: #333;
  direction: rtl; /* لدعم اللغة العربية */
}

.nav-links {
  list-style: none;
  padding: 0;
  display: flex; align-items: center;gap: 30px;
}

.nav-links li {
  position: relative; /* مهم لضبط مكان القائمة المنسدلة */
}

.nav-links a {
  display: block;
  color: white;
  padding: 15px 20px;
  text-decoration: none;
 font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.nav-links a:hover {
  background-color: #555;
}

/* --- تنسيقات القائمة المنسدلة --- */

/* إخفاء القائمة الفرعية افتراضياً */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  list-style: none;
  padding: 0;
}

/* تنسيق روابط القائمة المنسدلة */
.dropdown-content a {
  color: black;
  padding: 10px 20px;
}

.dropdown-content a:hover {
  background-color: #b81d1dad;text-align: center;font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;font-size: medium;
}

/* إظهار القائمة عند تمرير الماوس (Hover) */
.dropdown:hover .dropdown-content {
  display: block;
}
.dropbtn{font-size: large;text-align: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;}
   

/* الصورة الأساسية */
.main-photo {
    width: 300px;
    height: auto;
    min-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

/* حاوية الصور الصغيرة */
.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;;
}

/* تنسيق الصور الصغيرة */
.thumbnails img {
    display: flex;
    flex-wrap: wrap;
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 35px;
    transition: 0.3s;
}
a img {width:25px;height: 25px;}
.product-container a img:hover {
    border-color: #cc2e85;
    transform: scale(1.2);border-radius:50px;
}

/* تمييز الصورة عند مرور الماوس */
.thumbnails img:hover {
    border-color: #2ecc71;
    transform: scale(2.1);
}
.main-img-box{width:300px;max-width: 300px; height: auto;transition: transform 0.3s ease;cursor: zoom-in;
    object-fit: cover;}

.main-img-box:hover{
  transform: scale(1.2); /* تكبير الصورة لمرة ونصف حجمها */
  z-index: 99;           /* عشان الصورة تطلع فوق العناصر اللي حولها */
  position: relative;    /* ضرورية لتفعيل الـ z-index */
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);} /* إضافة ظل خفيف للجمالية */
  /* استخدام 768px للموبايل والتابلت */

@media screen and (max-width: 768px) {
    
    /* لضمان عدم خروج أي عنصر عن حدود الشاشة */
    * {box-sizing: border-box; }

    body {
        overflow-x: hidden; /* منع التمرير الجانبي */}

    .main {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        width: 100%;
    }

    .list ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
        gap: 15px;
    }

    .list ul li {
        list-style: none;
        width: 100%;
        text-align: center;
    }

    /* تعديل العناوين وشريط البحث لضمان ظهورها */
    .title, #searchInput {
        width: 100%;
        max-width: 100%; /* لضمان عدم تخطي الحدود */
        display: block;
        margin: 10px 0;
    }

    .item {
        width: 100%;
        padding: 5px;
        margin-bottom: 20px;
    }

    .item a img {
        width: 100% !important; /* إجبار الصورة على أخذ عرض الشاشة */
        height: auto !important;
        display: block;
    }

    /* إلغاء أي تحويلات تعيق الرؤية على الموبايل */
    .item a img:hover {
        transform: none; 
    }
}
@media screen and (max-width: 400px) {
    
    /* لضمان عدم خروج أي عنصر عن حدود الشاشة */
    * {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden; /* منع التمرير الجانبي */
    }
/* تنسيق الصور داخل الشريط */
.marquee-content span img, 
.marquee-content span a img {
    width: 150px;
    height: auto;
    border-radius: 30px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px; /* بدلاً من gap لأنها لا تعمل داخل الـ span أحياناً */
}
#contentList .marquee-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #ff4d94;
  position: fixed; /* التثبيت في الأعلى */
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 15px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.marquee-content {
  display: inline-flex; /* مهم جداً ليكون العرض على قد المحتوى */
  white-space: nowrap;
  animation: scroll-continuous 15s linear infinite; /* سرعة هادئة */
}

/* التعديل الجوهري هنا: الحركة تبدأ من الصفر وتتحرك بعرض المحتوى نفسه */
@keyframes scroll-continuous {
  from {
    transform: translateX(100vw); /* يبدأ من خارج الشاشة يميناً */
  }
  to {
    transform: translateX(-100%); /* ينتهي عندما يختفي آخر حرف يساراً */
  }
}

/* تنسيق العناصر الداخلية */
.marquee-content span {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  padding-right: 50px;
}

.marquee-content img {
  width: 120px;
  height: auto;
  border-radius: 20px;
}



/* توقف الحركة عند وضع الماوس */
#contentList .marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

    .main {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        width: 100%;
    }
    .social-float-wrapper {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column; /* ترتيب الأزرار فوق بعضها */
    gap: 5px; /* المسافة بين الزرين */
    z-index: 9999;
    }
    .marquee-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #ff4d94; /* لون الخلفية */
  color: rgba(255, 255, 255, 0.397);
  padding: 20px 0;
  white-space: nowrap;
  display: flex;
  
    .list ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
        gap: 15px;
    }

    .list ul li {
        list-style: none;
        width: 100%;
        text-align: center;
    }

    /* تعديل العناوين وشريط البحث لضمان ظهورها */
    .title, #searchInput {
        width: 100%;
        max-width: 100%; /* لضمان عدم تخطي الحدود */
        display: block;
        margin: 10px 0;
    }

    .item {
        width: 100%;
        padding: 5px;
        margin-bottom: 20px;
    }

    .item img {
        width: 100% !important; /* إجبار الصورة على أخذ عرض الشاشة */
        height: auto !important;
        display: block;
    }

    /* إلغاء أي تحويلات تعيق الرؤية على الموبايل */
    .item a img:hover {
        transform: none; 
    }
   }
}
/* حاوية المنتج */
.product-container {
    display: flex;
    flex-direction: column; /* لجعل الصور الصغيرة أسفل الكبيرة، أو استخدم row لجعلها بجانبها */
    gap: 5px;
    align-items: center;    border-radius: 20px;
    border-bottom: 5px solid #cc2e78; /* لمسة جمالية خضراء */
    max-width: 300px;
}
.product-container p{text-decoration: none;color: #333;font-size: large;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;}
.marquee-wrapper {
  width: 100%;
  overflow: hidden; /* يمنع ظهور النص خارج الشريط */
  background-color: #cc2b6b;
  color: white;
  padding: 10px 0;
  white-space: nowrap;
}

.marquee-content {
  gap:30px
  justify-content: space-between;
  display: inline-block;
  white-space: nowrap;
  /* استدعاء الحركة */
  animation: scroll-right 15s linear infinite;
}

.marquee-content span {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  display: inline-block;
}

/* الحركة: من اليسار (خارج الشاشة) إلى اليمين (خارج الشاشة) */
@keyframes scroll-right {
  from {
    transform: translateX(-70%); /* يبدأ من أقصى اليسار مختفياً */
  }
  to {
    transform: translateX(100vw); /* ينتهي عند أقصى اليمين (عرض الشاشة بالكامل) */
  }
}

/* توقف الحركة عند وضع الماوس */
.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}
/* نصيحة تقنية: أضف padding-top لجسم الصفحة (body) 
   حتى لا يغطي الشريط الثابت المحتوى الموجود في أعلى موقعك */
body {
  padding-top: 10px; 
}
.social-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column; /* ترتيب الأزرار فوق بعضها */
    gap: 15px; /* المسافة بين الزرين */
    z-index: 9999;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.5); /* تكبير بسيط عند مرور الماوس */
}

.float-btn img {
    width: 40px;
    height: 40px;
}

/* ألوان الأيقونات */
.whatsapp {
    background-color: #25d366;
}

.telegram {
    background-color: #0088cc;
}
.messenger {
    background-color: #0084ff; /* لون الماسنجر الرسمي */
}
.gmail {
    background-color: #ffffff; /* لون خلفية أبيض ليبرز شعار الجيميل الملون */
}


.marquee-content span img{width: 200px;border-radius:30px;gap:20px }
.marquee-content span a img{width: 200px;height: auto; border-radius:30px;gap:20px }
#contentList .marquee-content span {gap:70px }
#contentList .marquee-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #ff4d94; /* لون الخلفية */
  color: white;
  padding: 10px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
 
  /* --- كود التثبيت في الأعلى --- */
  object-view-box: calc();   /* يجعل الشريط ثابتاً */
  top: 0;            /* يلتصق بأعلى الشاشة تماماً */
  left: 0;           /* يبدأ من أقصى اليسار */
  z-index: 9999;     /* يضمن ظهور الشريط فوق أي محتوى آخر في الموقع */
  box-shadow: 0 15px 15px rgba(0,0,0,0.5); /* ظل خفيف لتمييز الشريط */
}

#contentList .marquee-content  {
  gap: 50px;
  display: flex;
  white-space: nowrap;
  animation: scroll-to-right 10s linear infinite; /* سرعة الحركة */
}

#contentList .marquee-content span {
  font-size: 30px; /* حجم الخط */
  font-weight: bold;
  padding-right: 0px; /* المسافة بين النصين لضمان التتابع */
  font-family: 'Arial', sans-serif;
}

/* حركة التتابع من اليسار لليمين */
@keyframes scroll-right {
  from {
    transform: translateX(-80%); /* يبدأ من أقصى اليسار مختفياً */
  }
  to {
    transform: translateX(100vw); /* ينتهي عند أقصى اليمين (عرض الشاشة بالكامل) */
  }
}

/* توقف الحركة عند وضع الماوس */
#contentList .marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}
.marquee{display:flex;
  flex-wrap:wrap; space-between;gap:20px }
* { box-sizing: border-box; margin: 5; padding: 0; }
body { background-color: #f8f9fa; font-family: 'Segoe UI', Tahoma, sans-serif; direction: rtl; }
.container { display: flex; flex-wrap: wrap; max-width: 1000px; margin: 20px auto; gap: 20px; padding: 15px; }
.form-side, .summary-side { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.form-side { flex: 2; min-width: 320px; }
.summary-side { flex: 1; min-width: 280px; height: fit-content; }
h2 { margin-bottom: 15px; font-size: 1.1rem; color: #333; border-bottom: 2px solid #eee; padding-bottom: 5px; }
input, select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; }
.row { display: flex; gap: 10px; }
.line { display: flex; justify-content: space-between; margin: 10px 0; font-size: 0.95rem; }
.total-line { font-weight: bold; font-size: 1.2rem; color: #2c3e50; border-top: 1px solid #eee; pt: 10px; }
.submit-btn { width: 100%; background: #27ae60; color: white; border: none; padding: 15px; border-radius: 6px; cursor: pointer; font-size: 1.1rem; font-weight: bold; transition: 0.3s; }
.submit-btn:hover { background: #219150; }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; }
/* الحاوية الرئيسية للأزرار */
.nav-container {
    display: flex;
    justify-content: center; /* تجميع الأزرار في المنتصف */
    align-items: center;
    gap: 15px; /* مسافة متساوية بين كل زر والآخر */
    flex-wrap: wrap; /* لجعل الأزرار تنزل لسطر جديد في الشاشات الصغيرة */
    padding: 10px;
}

/* تصميم الزر نفسه */
.nav-container a {
    text-decoration: none;
    color: white;
    background-color: #4b0082; /* اللون البنفسجي */
    padding: 10px 25px; /* زيادة المساحة داخل الزر لمنع قص النص */
    border-radius: 50px; /* حواف دائرية بالكامل لشكل عصري */
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease; /* حركة ناعمة عند التفاعل */
    white-space: nowrap; /* يمنع انقسام النص لسطرين داخل الزر */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* ظل خفيف */
}

/* تأثير عند مرور الماوس */
.nav-container a:hover {
    background-color: #cc2b6b; /* يتغير للون البينك عند الوقوف عليه */
    transform: translateY(-3px); /* يرتفع للأعلى قليلاً */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}