* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.product-details-page {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #f0f7f4 0%, #d4e4d9 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-details-container {
  width: 80%;
  background-color: white;
  box-shadow: 0 8px 24px rgba(93, 162, 111, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem;
  margin: 1rem;
  gap: 1.5rem;
  animation: slideIn 0.6s ease-out;
}

.product-image .carousel {
  max-width: 100%;
}

.product-image img {
  max-height: 200px;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.product-image img:hover {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}

.product-titleD {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0c7d69;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2rem;
  transition: color 0.3s ease;
}

.product-titleD:hover {
  color: #4a8a5a;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  transition: color 0.3s ease;
}

.product-price:hover {
  color: #4a8a5a;
}

.product-discount {
  font-size: 1.1rem;
  color: #e53e3e;
  font-weight: 500;
  transition: color 0.3s ease;
}

.product-discount:hover {
  color: #c53030;
}

.product-description {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.product-description:hover {
  color: #2d3748;
}

.product-rating {
  font-size: 0.95rem;
  color: #5da26f;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.product-rating .star {
  font-size: 1.2rem;
}

.product-details p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.product-details p:hover {
  color: #2d3748;
}

.product-details i {
  color: #5da26f;
}

.product-buttonsD {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
  align-items: center;
  justify-content: center;
  margin: 0 auto; 
}

.product-btnD,
.product-btn-secondaryD {
  width: 100%; 
  max-width: 200px; 
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-btnD {
  background-color: #5da26f;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(93, 162, 111, 0.3);
}

.product-btnD:hover {
  background-color: #4a8a5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(93, 162, 111, 0.4);
  color: white;
}

.product-btnD:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(93, 162, 111, 0.2);
}

.product-btn-secondaryD {
  background-color: transparent;
  color: #5da26f;
  border: 2px solid #5da26f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-btn-secondaryD:hover {
  background-color: rgba(93, 162, 111, 0.1);
  color: #4a8a5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(93, 162, 111, 0.3);
}

.product-btn-secondaryD:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-reviews {
  width: 100%;
  text-align: left;
  animation: fadeIn 0.8s ease-out;
}

.product-reviews h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0c7d69;
  margin-bottom: 1rem;
  text-align: left;
  transition: color 0.3s ease;
}

.product-reviews h2:hover {
  color: #4a8a5a;
}

.review {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  transition: transform 0.3s ease;
}

.review:hover {
  transform: translateY(-2px);
}

.review-comment {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.review-comment:hover {
  color: #2d3748;
}

.review-meta {
  font-size: 0.85rem;
  color: #718096;
  font-style: italic;
  transition: color 0.3s ease;
}

.review-meta:hover {
  color: #4a5568;
}

.review-rating {
  font-size: 1.1rem;
  color: #5da26f;
  margin-top: 0.5rem;
}

.loading,
.error {
  font-size: 1rem;
  color: #4a5568;
  text-align: center;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .product-details-container {
    width: 90%;
    padding: 2rem;
  }

  .product-titleD {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }

  .product-price {
    font-size: 1.3rem;
  }

  .product-discount {
    font-size: 1rem;
  }

  .product-image img {
    max-height: 150px;
  }

  .product-buttonsD {
    max-width: 250px;
  }

  .product-btnD,
  .product-btn-secondaryD {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    max-width: 180px;
  }

  .product-reviews h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .product-details-container {
    width: 95%;
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .product-titleD {
    font-size: 1.2rem;
    margin-top: 1rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .product-discount {
    font-size: 0.95rem;
  }

  .product-image img {
    max-height: 120px;
  }

  .product-buttonsD {
    max-width: 200px;
  }

  .product-btnD,
  .product-btn-secondaryD {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    max-width: 160px;
  }

  .product-reviews h2 {
    font-size: 1.1rem;
  }
}