.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 5vh auto;
  margin-top: 15vh;
  padding: 0 20px;
  flex-wrap: wrap;
}

.product-image-container {
  width: 300px;
  height: 300px;
  overflow: hidden;
  position: relative;
  border: 1px solid #eee;
  border-radius: 4px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-image-container:hover .product-image {
  transform: scale(1.5);
  cursor: zoom-in;
}

.product-title {
  flex: 1;
  text-align: right;
  padding-left: 40px;
}

.product-title h1 {
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 24px;
}
.product-title img {
  width: 40%;
  margin: 0 auto;
}

/* Product Details Section */
.product-details {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.detail-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
  justify-content: end;
}

.tab-button {
  padding: 12px 24px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-bottom: none;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 4px 4px 0 0;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: #b62348;
}

.tab-button.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  font-weight: 800;
  background-color: #b62348;
  color: white;
}

.tab-content {
  display: none;
  padding: 1vw;
  border: 1px solid #ddd;
  border-top: none;
  background: #fff;
}
.tab-content p {
  font-size: 1rem;
  text-align: start;
}

.tab-content.active {
  display: block;
}

/* Specifications Table */
/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto 0;
  font-size: 0.9rem;
}

.specs-table th,
.specs-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
}

.specs-table th {
  background-color: #b62348;
  font-weight: bold;
  text-align: center;
  color: white;
}

.specs-table td {
  text-align: center;
  background-color: #f9f9f9;
}

.specs-table tr:nth-child(even) td {
  background-color: #47b2e4;
  color: white;
}

/* More aggressive mobile adjustments */
@media (max-width: 768px) {
  .specs-table {
    font-size: 0.7rem;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    white-space: nowrap;
  }
  .product-title img {
    width: 70%;
    height: auto;
    margin-bottom: -10vh;
  }
  .product-title h1 {
    font-size: 15px;
  }
  .specs-table th,
  .specs-table td {
    padding: 5px 6px;
  }

  .specs-table th {
    font-size: 0.6rem;
    text-align: center;
  }

  /* Center the table wrapper */
  .tab-content {
    text-align: center;
    padding: 5vw 10px;
  }
}

/* For very small screens (phones in portrait) */
@media (max-width: 480px) {
  .specs-table {
    font-size: 0.65rem;
  }

  .specs-table th,
  .specs-table td {
    padding: 4px 5px;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .product-header {
    flex-direction: column;
    margin: 20vh auto;
  }

  .product-image-container {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }

  .product-title {
    text-align: center;
    padding-left: 0;
  }

  .detail-tabs {
    flex-direction: column;
  }

  .tab-button {
    border-radius: 0;
    margin-right: 0;
    border-bottom: 1px solid #ddd;
  }
}
/* Form Styles */
.inquiry-form {
  max-width: 600px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin-top: 10vh;
}
.inquiry-form textarea {
  resize: none;
}
.form-group {
  margin-bottom: 20px;
}
.inquiry-form ::placeholder {
  opacity: 0.4;
}
.inquiry-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #b62348;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.inquiry-form input[type="text"]:focus,
.inquiry-form input[type="email"]:focus,
.inquiry-form textarea:focus {
  border-color: #1a97c8;
  outline: none;
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 100px;
}

.error-message {
  color: #b62348;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-submit {
  text-align: center;
  margin-top: 25px;
}

.inquiry-form input[type="submit"] {
  background-color: #47b2e4;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.inquiry-form input[type="submit"]:hover {
  background-color: #b62348;
}

.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .inquiry-form {
    padding: 15px;
    margin: 20px 15px;
  }

  .inquiry-form input[type="text"],
  .inquiry-form input[type="email"],
  .inquiry-form textarea {
    padding: 10px;
    font-size: 14px;
  }

  .inquiry-form input[type="submit"] {
    padding: 10px 20px;
    width: 100%;
  }
}
/* Related Products Section */
.related-Products {
  margin: 2rem 0;
  padding: 0 1rem;
  width: 70%;
  margin: 0 auto;
}

.rel-Products-Header {
  text-align: start;
  margin-bottom: 1.5rem;
}

.rel-Products-Header h3 {
  font-size: 1.5rem;
  color: #333;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-left: 6px solid #b62348;
  padding: 3vh;
}

.products-Container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  justify-content: center; /* Center items on large screens */
  gap: 1.2rem;
  max-width: 1200px;
  width: 80%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* For smaller screens, make the container full width and left-aligned */
@media (max-width: 768px) {
  .products-Container {
    justify-content: start; /* Align items to start on small screens */
    width: 100%;
  }
}

.Product-Item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.Product-Item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.Product-Image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 0.8rem; */
  background: #f8f9fa;
  flex-shrink: 0;
}

.Product-Image img {
  max-width: 100%;
  max-height: 100%;
  /* object-fit: contain; */
}

.Product-Name {
  padding: 0.6rem;
  text-align: start;
  font-weight: 500;
  color: #444;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  border-top: 1px solid #eee;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .products-Container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .products-Container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .Product-Image {
    height: 130px;
  }
}

@media (max-width: 576px) {
  .related-Products {
    margin: 1.5rem 0;
    width: 95%;
    margin: auto;
  }

  .products-Container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    justify-content: start; /* Ensure left alignment on small screens */
    gap: 0.8rem;
  }

  .rel-Products-Header h3 {
    font-size: 1.3rem;
  }

  .Product-Image {
    height: 120px;
    /* padding: 0.6rem; */
  }

  .Product-Name {
    padding: 0.6rem;
    font-size: 0.6rem;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .products-Container {
    grid-template-columns: repeat(2, 1fr);
  }

  .Product-Item {
    max-width: none;
  }

  .Product-Image {
    height: 100px;
  }
}
.specs-table tbody tr:hover {
  background-color: #f1f1f1;
}
.parent-header {
  background-color: #b62348;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0px;
}
.left {
  text-align: center;
  width: 70%;
}
@media screen and (max-width: 768px) {
  .parent-header {
    font-size: xx-small;
    font-weight: bold;
  }
}
