body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: antiquewhite;
    overflow-x: hidden;
  }

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    background-color: bisque;
}

.header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 10px;
}

.header img {
    height: 50px;
    margin-left: auto; /* لضمان وجوده على اليمين */
    z-index: 1;
}

.header .title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #444;
    margin: 0;
    text-align: center;
    flex-grow: 1; /* لاحتلال المساحة بين العناصر */
}

.header .back-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #350f04;
    cursor: pointer;
    margin-right: auto; /* لضمان وجوده على اليسار */
}
.slider-container {
    overflow: hidden; /* إخفاء الأجزاء الزائدة */
    position: relative;
    width: 100%;
    height: fit-content;
    top: 120px;  
}
  .slider {
    display: flex; /* ترتيب العناصر أفقيًا */
    transition: transform 0.5s ease-in-out; /* الحركة الانتقالية */
  }
  .slider-item {
    min-width: 100%; /* كل عنصر يأخذ عرض الشاشة بالكامل */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .slider-item.active {
    transform: translateX(0); /* العنصر النشط */
  }

  .slider-item img {
    max-width: 80%;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .content {
    margin-top: 20px;
    
  }

  .content h2 {
    color: #ff7b54;
    font-size: 2rem;
    margin-bottom: 10px;

  }
  
  .content p {
    font-size: 1.6rem;
    color: #444;
    margin: 10px;
    margin-bottom: 10px;

  }

  .content .price {
    font-weight: bold;
    background-color: rgb(27, 22, 2);
    color: chocolate;
    padding: 9px 40px;
    border-radius: 20px;
margin: 20px auto 150px;  

}

.price{
    width: 220px;
    height: 40px;
    background-color:rgb(27, 22, 2);
    margin: auto;
    padding-top: 13px;
    border-radius: 30px;
    color: chocolate !important;
}
/* ترتيب العناصر أفقيًا */

  
/* /////////////////////////////// animation ////////////////////////////// */

.scale-in-center {
    opacity: 0;
    transform: scale(0); /* يبدأ بحجم صغير من المنتصف */
    animation: scaleIn 0.3s forwards; /* مدة الحركة 1 ثانية */
  }
  
  /* Keyframes لتأثير التكبير */
  @keyframes scaleIn {
    0% {
      opacity: 0;
      transform: scale(0); /* تبدأ بحجم 0 */
    }
    100% {
      opacity: 1;
      transform: scale(1); /* تصل إلى حجمها الطبيعي */
    }
  }
  /* تنسيق الأزرار */
.btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 20px;
  display: none; /* إخفاء الأزرار افتراضيًا */
}

/* زر السابق على اليسار */
#prevBtn { left: 10px; }

/* زر التالي على اليمين */
#nextBtn { right: 10px; }

/* إظهار الأزرار فقط على الشاشات الكبيرة */
@media (min-width: 768px) {
  .btn {
    display: block; /* إظهار الأزرار في الشاشات الكبيرة */
  }
}

  /* ///////////////////////////////////////////////////////////////// */
  /* تحسين عرض الهيدر على شاشات الموبايل */

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
  .header .title {
      font-size: 1.5rem;
  }

  .header img {
      height: 40px;
  }

  .header .back-button {
      font-size: 1rem;
  }
}

/* Responsive styles for larger screens */
@media (min-width: 1024px) {
  .header .title {
      font-size: 2rem;
  }

  .header .back-button {
      font-size: 1.5rem;
  }
  .slider-container {
      overflow: hidden; /* إخفاء الأجزاء الزائدة */
      position: relative;
      width: 100%;
      height: fit-content;
      top: 120px;  
  }
    .slider {
      display: flex; /* ترتيب العناصر أفقيًا */
      transition: transform 0.5s ease-in-out; /* الحركة الانتقالية */
    }
    .slider-item {
      min-width: 100%; /* كل عنصر يأخذ عرض الشاشة بالكامل */
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
  
    .slider-item.active {
      transform: translateX(0); /* العنصر النشط */
    }
  
    .slider-item img {
      max-width: 80%;
      height: 300px;
      border-radius: 10px;
      margin-bottom: 10px;
    }
  
    .content {
      margin-top: 10px;
      
    }
  
    .content h2 {
      color: #ff7b54;
      font-size: 2rem;
      margin-bottom: 10px;
  
    }
    
    .content p {
      font-size: 1.6rem;
      color: #444;
      margin: 10px;
      margin-bottom: 30px;
  
    }
  
    .content .price {
      font-weight: bold;
      background-color: rgb(27, 22, 2);
      color: chocolate;
      padding: 5px 40px;
      border-radius: 20px;
  margin: 0 auto 100px;  
  
  }
  
  .price{
      width: 220px;
      height: 40px;
      background-color:rgb(27, 22, 2);
      margin: auto;
      padding: 13px 0;
      border-radius: 30px;
      color: chocolate !important;
  }
}

