  body {
      font-family: "Tahoma", sans-serif;
      direction: rtl;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  /* بخش اصلی محصول را محدود نگه داریم */
  .container-d {
      max-width: 1250px;
      width: 90%;
      margin: 20px auto;
      background: white;
      padding: 20px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
  }

  .reter {
      background-color: #111111;
      color: #fff;
  }

  /* بخش محصولات مشابه را تمام عرض کنیم */
  #productsGrid {
      width: 100%;
      margin: 0;
      /* اگر بخوای فقط وسط فاصله کمی داشته باشه */
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
  }


  .product-header {
      display: flex;
      gap: 20px;
  }

  .image-gallery {
      flex: 2;
  }

  .image-gallery .main-img {
      width: 70%;
      height: 100%;
      border-radius: 10px;
      padding: 10px;
  }

  .image-gallery .thumbs {
      display: flex;
      gap: 10px;
      margin-top: 10px;
      width: 90%;
  }

  .container-d .image-gallery .thumbs img {
      width: 80px;
      height: 85px;
      cursor: pointer;
      border: 1px solid #ccc;
      padding: 10px;
      border-radius: 10px;
  }

  .product-info {
      flex: 3;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
  }

  .product-info h1 {
      margin: 0;
      font-size: 24px;
      border-bottom: 2px solid #ccc;
      padding: 20px 0;
  }

  .price {
      margin: 15px 0;
      font-size: 22px;
      color: #d32f2f;
  }

  .tarikh {
      padding: 10px 0;
      width: 300px;
      border-radius: 5px;
  }

  .btn-buy {
      display: inline-block;
      background: #202020;
      color: white;
      padding: 10px 20px;
      text-decoration: none;
      border-radius: 4px;
      font-size: 16px;

  }

  .tabs {
      margin-top: 40px;
  }

  .tabs button {
      padding: 10px 20px;
      border: none;
      background: #eee;
      cursor: pointer;
      border-radius: 5px;
  }

  .tabs button.active {
      background: #202020;
      color: white;
  }

  .tab-content {
      border: 1px solid #ddd;
      padding: 20px;
      display: none;
      margin-top: 10px;
      background: #fafafa;
      border-radius: 5px;
  }

  .tab-content.active {
      display: block;
  }

  .specs table {
      width: 100%;
      border-collapse: collapse;
  }

  .specs th,
  .specs td {
      border: 1px solid #ccc;
      padding: 8px;
      text-align: right;
  }

  .related-products {
      margin-top: 60px;
  }

  .related-products h2 {
      font-size: 22px;
      margin-bottom: 20px;
      border-bottom: 2px solid #202020;
      padding-bottom: 10px;
      display: inline-block;
  }

  .related-list {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
  }

  .product-card {
      flex: 1 1 calc(33% - 20px);
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 6px;
      padding: 15px;
      text-align: center;
      transition: box-shadow 0.3s ease;
  }

  .product-card:hover {
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .container-d .product-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      margin-bottom: 10px;
  }

  .product-card h3 {
      font-size: 16px;
      margin: 10px 0;
  }

  .product-card .price {
      font-size: 15px;
      color: #d32f2f;
      margin-bottom: 10px;
  }

  .image-gallery .image-gallery-parent {
      width: 450px;
      height: 350px;
      border-radius: 10px;
      padding: 20px;
      display: flex;
      justify-content: center;
  }


  @media (max-width: 1024px) {
      .image-gallery .image-gallery-parent {
          border: 1px solid #ddd;

      }

      .product-header {
          display: flex;
          flex-direction: column;
      }

      .image-gallery .main-img {
          width: 45%;
          height: 100%;
          border-radius: 10px;
          padding: 10px;
      }

      .tarikh {
          width: 100%;
          padding: 10px 0;
      }



      .btn-buy {
          width: 100%;
          text-align: center;
      }

      .price {
          text-align: center;
      }

      .tabs {
          display: grid;
          grid-template-columns: 1fr 1fr 1fr;
          gap: 10px;
      }

      .container-d .image-gallery-parent {
          width: 100%;
          height: 300px;
          margin-bottom: 10px;
      }

      .container-d .main-img img {
          width: 50%;
          height: 300px;
          object-fit: cover;
          margin-bottom: 10px;
      }
  }

  @media (max-width: 768px) {
      .image-gallery .main-img {
          width: 270px;
          height: 100%;
          border-radius: 10px;
          padding: 10px;
      }
  }