
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/*  كروت القطع و القماش*/
.items-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px;
  gap: 30px;
}

.item-info {
  padding: 15px;
  text-align: center;
}

.item-info h3 {
  margin: 10px 0 5px;
    font-size: 20px;
  color: #2f2f2f;
}

.item-info p {
  margin: 0;
  color: #444;
}

.item-card {
  width: 300px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-card:hover {
  transform: scale(1.02);
}

.item-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.item-info p {
  font-size: 16px;
  color: #555;
}

.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background-color: #b99a5c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #8a713d;
}

/* صفحة التفاصيل */
.item-detail {
  padding: 60px 30px;
  background-color: #f5f0e9;
}

.detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.image-box,
.info-box {
  flex: 1 1 300px;
  max-width: 100%;
}

.image-box img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-box {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.info-box h2 {
  margin-top: 0;
  font-size: 28px;
  color: #2f2f2f;
  margin-bottom: 15px;
}

.info-box p {
  margin: 10px 0;
  line-height: 3;
}

/* Accordion */
.accordion-container {
  margin-top: 20px;
}

.accordion-item {
  border: 1px solid #e0d9ce;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f9f5ee;
}

.accordion-header {
  width: 100%;
  text-align: right;
  padding: 12px 16px;
  background-color: #c5a66a;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background-color: #a88a51;
}

.accordion-content {
  display: none;
  padding: 15px 20px;
  background-color: #fffefb;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  text-align: right; /* تغيير من right إلى left */
  direction: ltr; /* تغيير الاتجاه لليسار */
}

.accordion-content p {
  margin: 10px 0;
  text-align: right; /* تأكيد المحاذاة لليسار */
  direction: ltr; /* تأكيد الاتجاه لليسار */
}

/* الادمن */
.admin-panel {
  padding: 40px;
  background-color: #f9f5ee;
}

.add-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-form input,
.add-form textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.add-form button {
  background-color: #b99a5c;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.add-form button:hover {
  background-color: #8a713d;
}

/* صور القطع في item */
.slider-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  user-select: none;
  pointer-events: none;
}

.main-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* الصور الصغار في item */
.thumbnail-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail-container img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumbnail-container img.active {
  border-color: #b99a5c;
}

.workflow-section {
  text-align: center;
  font-family: 'Tajawal', sans-serif; 
  font-size: 18px;
  line-height: 1.8;
  padding: 40px 20px;
  color: #444242;
}


@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
  }

  .nav-links li a {
    font-size: 16px;
  }

  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .page-header h1,
  .page-ccenter h1 {
    font-size: 28px;
  }

  .page-header p,
  .page-center p {
    font-size: 16px;
  }

  .item-card img {
    height: 200px;
     height: auto;

  }

  .main-img {
    height: 300px;
  }

  .add-form {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .item-card img {
    height: 180px;
    height: auto;
  }

  .info-box {
    padding: 15px;
  }

  .accordion-header {
    font-size: 14px;
    padding: 10px;
  }

  .accordion-content {
    font-size: 14px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .main-img {
    height: 200px;
  }

  .thumbnail-container img {
    width: 60px;
    height: 60px;
  }
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.step-box {
  width: 250px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.step-box:hover {
  transform: translateY(-5px);
}

.step-circle {
  width: 60px;
  height: 60px;
  background-color: rgba(185, 154, 92, 0.2);
  border: 2px solid #b99a5c;
  border-radius: 50%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #b99a5c;
  font-weight: bold;
  margin-bottom: 15px;
}

.step-box p {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

.workflow-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  margin-top: 40px; 
  color: #2f2f2f;
}


@media (max-width: 576px) {
  .item-card {
    width: 100%;
    max-width: 350px;
  }

  .item-card img {
    height: 180px;
  }
}

    .fabric-detail-container {
      padding: 40px 20px;
      background-color: #f5f0e9;
      text-align: center;
    }

    .color-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      margin-top: 30px;
    }

    .color-box {
      background: white;
      padding: 15px;
      border-radius: 20px;
      width: 280px;
      max-width: 100%;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .color-box img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 6px;
    }

    .color-box p {
      margin-top: 10px;
      font-size: 18px;
      color: #333;
    }

    @media (max-width: 768px) {
      .color-box {
        width: 200px;
      }

      .color-box img {
        height: 160px;
      }

      .color-box p {
        font-size: 16px;
      }
    }

    @media (max-width: 576px) {
      .color-box {
        width: 100%;
      }

      .color-box img {
        height: auto;
      }
    }
        #popupOverlay {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.8);
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }
    #popupOverlay img {
      max-width: 90%;
      max-height: 90%;
      cursor: zoom-in;
      border-radius: 10px;
      transition: transform 0.3s ease;
    }

    .fabric-detail-container h2 {
      font-size: 26px;
      color: #2f2f2f;
      margin-bottom: 10px;
    }

    .fabric-detail-container p {
      font-size: 18px;
      color: #555;
      margin-bottom: 20px;
    }

    .color-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
    }

    .color-box {
      width: 200px;
      text-align: center;
    }

    .color-box img {
      width: 200%;
      height: 200px;
      object-fit: cover;
      border-radius: 5px;
      border: 1px solid #ddd;
    }

    .color-box p {
      font-size: 14px;
      margin-top: 5px;
      color: #333;
    }
    

    .hero {
      background: url('hero.jpg') no-repeat center center/cover;
      height: 90vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: white;
      text-align: center;
      padding: 20px;
    }
     .hero h1 {
      font-size: 48px;
      margin-bottom: 10px;
    }
    .hero p {
      font-size: 20px;
      margin-bottom: 20px;
    }
    .hero button {
      background-color: #e67e22;
      border: none;
      padding: 12px 24px;
      font-size: 18px;
      color: white;
      border-radius: 8px;
      cursor: pointer;
      margin: 5px;
      transition: background-color 0.3s ease;
    }
    .hero button:hover {
      background-color: #cf711f;
    }
    
    input[type="text"], textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

input[type="number"] {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

h4 {
  margin: 20px 0 10px 0;
  color: #b99a5c;
  border-bottom: 2px solid #b99a5c;
  padding-bottom: 5px;
}

/* إذا كنت بدك التنسيق يكون بشكل أعمدة */
.form-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* أو إذا كنت بدك التنسيق يكون بشكل شبكة */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
}