 body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
}
.container, .container2 {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  padding: 25px 30px;
  box-sizing: border-box;
  margin: 10px auto;
}
.container {
  max-width: 38%;
  float: right;
  height: 690px;
  font-weight: bold;
}
.container2 {
  float: left;
  width: 60%;
  height: 690px;
  padding: 10px;
}
.container:hover, .container2:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
@media (max-width: 768px) {
  .container, .container2 {
    width: 90% !important;
    float: none;
    height: auto;
    margin: 20px auto;
    padding: 20px;
  }
}
@media (max-width: 600px) {
    .container,.container2 {
    float: none;
    height: auto;
     }
  .container {
    width: 94% !important;
    margin: 20px  auto;
    padding: 0px;
  }
  .container2 {
    width: 100% !important;
    margin: 20px  auto 20px;
    padding: 0px;
  }
}
h2 {
  text-align: center;
  margin-bottom: 50px;
}
input, select {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  border: 1px solid #28a745;
  box-sizing: border-box;
}
.btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 25px;
  font-weight: bold;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}
.btn-submit:hover {
  background-color: #218838;
}
.summary {
  margin-top: 10px;
  padding: 15px 20px;
  background: #f9f9f9;
  border: 1px solid #28a745;
  border-radius: 12px;
  font-size: 16px;
  color: #333;
  line-height: 1.8;
}
.summary span {
  color: #28a745;
  font-weight: bold;
}
.delivery-type-group {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  background-color: #fdfdfd;
  border: 1px solid #28a745;
  border-radius: 10px;
  margin: 15px 0;
  overflow-x: auto;
  height: auto;
}
.delivery-option {
  flex: 1;
  min-width: 130px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  background-color: #f9f9f9;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.delivery-option:hover {
  background-color: #eefaf0;
}
.delivery-option input[type="radio"] {
  display: none;
}
.delivery-option input[type="radio"]:checked + label,
.delivery-option input[type="radio"]:checked {
  background-color: #d4f7dc;
  border-color: #28a745;
  color: #1a631f;
  font-weight: bold;
}
@media (max-width: 600px) {
  .delivery-type-group {
    flex-wrap: nowrap;
  }
  .delivery-option {
    font-size: 13px;
    padding: 6px 10px;
    max-width: 120px;
  }
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  justify-content: flex-start;
}

.size-option {
  position: relative;
}

.size-option input[type="radio"] {
  display: none;
}

.size-option label {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid #0dd93d;
  background: linear-gradient(185deg, #7faf45, #0dd93d);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}
.size-option input[type="radio"]:checked + label {
  background: linear-gradient(145deg, #1dcff2, #0db7d9);
  color: white;
  border-color: #0db7d9;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
  transform: scale(1.05);
}


@media (max-width: 480px) {
  .size-option label {
    padding: 10px 2px;
    font-size: 13px;
    font-weight: bold;

    border-radius: 10px;
  }
}






.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 170px;
  padding: 4px 8px;
  border: 1px solid #28a745;
  border-radius: 8px;
  background-color: #fff;
  margin-top: 10px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  background-color: #28a745;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.qty-btn:hover {
  background-color: #218838;
}
.quantity-control input[type="number"] {
  width: 45px;
  text-align: center;
  font-size: 15px;
  border-radius: 6px;
  padding: 3px;
  border: 1px solid #ccc;
}
@media (max-width: 600px) {
  .quantity-control {
    max-width: 150px;
    gap: 6px;
  }
  .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
  .quantity-control input[type="number"] {
    width: 38px;
    font-size: 14px;
  }
}
.layout-wrapper {
  padding: 30px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
}
@media (max-width: 768px) {
  .layout-wrapper {
    padding: 0;
  }
}
.gallery-horizontal {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.main-image-container img {
  width: 670px;
  height: 670px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ccc;
}
.thumbnails-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumbnails-vertical img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}
.thumbnails-vertical img:hover,
.thumbnails-vertical img.active-thumbnail {
  border-color: #28a745;
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}
@media (max-width: 600px) {
    .container {
  max-width: 100%;
  margin: auto;      
  height: 680px;
  font-weight: bold;
}

 .gallery-horizontal {
  max-width: 100%;
  margin: auto;      

 } 

  .main-image-container img {
    width: 100%;
    
    height: auto;
    object-fit: contain;

  }
  .thumbnails-vertical {
    flex-direction: row;
    justify-content: center;
    
  }
  .thumbnails-vertical img {
    width: 40px;
    height: 40px;
    padding:auto;
  }

}




.zoom-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.zoomed-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}
 
 .product-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #28a745; /* أو أي لون يناسب تصميمك */
  margin:30px 0 20px ;
  direction: rtl; /* لأن العنوان بالعربية */
}

.gallery {
    font-size: 18px;      /* تكبير حجم الخط */
    width: 51.5%;           /* تحديد العرض الأقصى */
    margin-top: 10px;   
    margin: auto;         /* توسيط القسم */
    background-color: #ffffff; /* تغيير الخلفية */
    border-radius: 8px;   /* إضافة زوايا مستديرة */
    padding: 15px;        /* إضافة تباعد داخلي */
}

.product-gallery {
    width: 100%;
    display: flex;
    
    flex-direction: column; /* يجعل الصور تظهر بشكل عمودي */
    align-items: center;    /* يجعل الصور في المنتصف */
    gap: 15px;              /* المسافة بين الصور */
}

.product-image {
    width: 400px;          /* تحديد عرض ثابت لكل الصور */
    height: 400px;         /* تحديد ارتفاع ثابت لكل الصور */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;       /* إخفاء الأجزاء الزائدة عن الحاوية */
    border-radius: 8px;     /* زوايا مستديرة */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ظل خفيف */
}

.product-image img {
    width: 100%;          /* جعل الصورة تملأ العرض بالكامل */
    height: 100%;         /* جعل الصورة تملأ الارتفاع بالكامل */
    object-fit: cover;    /* يضمن تغطية الصورة للحاوية بشكل متساوٍ */
    border-radius: 8px;   /* زوايا مستديرة للصورة */
}





/* تصميم خاص لشاشات الهواتف */
@media (max-width: 768px) {
    .gallery {
        width: 90%; /* جعل العرض أكثر استجابة للشاشات الصغيرة */
        padding: 10px; /* تقليل التباعد الداخلي */
    }

    .product-image {
        width: 350px; /* تقليل العرض على الشاشات الصغيرة */
        height: 350px; /* تقليل الارتفاع على الشاشات الصغيرة */
    }

    .product-image img {
        border-radius: 6px; /* تعديل الزوايا المستديرة */
    }
}

@media (max-width: 480px) {
    .gallery {
        width: 100%; /* جعل العرض يملأ الشاشة تمامًا */
        padding: 5px; /* تقليل التباعد الداخلي أكثر */
    }

    .product-image {
        width: 350px; /* تصغير العرض */
        height: 350px; /* تصغير الارتفاع */
    }

    .product-image img {
        border-radius: 5px; /* تعديل الزوايا المستديرة */
    }
}
 
    .containertext {
      max-width: 680px;
      background-color: #05f2e6;
      margin-top: 0px;
      margin: auto;
      padding:  30px;
      border-radius: 16px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      line-height: 1.8;
    }
 
    h1 {
      color: #006064;
      font-size: 28px;
      text-align: center;
      margin-bottom: 20px;
    }

    p {
      font-size: 18px;
      margin-bottom: 15px;
    }

    .features, .sizes {
      background-color: #e0f7fa;
      padding: 20px;
      border-radius: 12px;
      margin-top: 25px;
    }

    .section-title {
      font-size: 22px;
      margin-bottom: 15px;
      color: #004d40;
      font-weight: bold;
    }

    .feature-item, .size-item {
      font-size: 17px;
      margin-bottom: 10px;
      position: relative;
      padding-right: 28px;
    }

    .feature-item::before {
      content: "✔️";
      position: absolute;
      right: 0;
    }

    .size-item::before {
      content: "🧦";
      position: absolute;
      right: 0;
    }

    @media (max-width: 600px) {
      .containertext {
        padding: 15px;
      }

      h1 {
        font-size: 22px;
      }

      .section-title {
        font-size: 18px;
      }

      .feature-item, .size-item {
        font-size: 15px;
      }
   
    
 
}

  