/* ================= Product Detail Page ================= */
.product-detail-page {
  margin-top: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-main-container {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  background-color: #f7f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.product-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.product-details {
  flex: 2;
}

.product-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.product-author {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #27ae60;
  margin-bottom: 1.5rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.add-to-cart-btn,
.add-to-favorites-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart-btn {
  background-color: #3498db;
  color: #fff;
}

.add-to-cart-btn:hover {
  background-color: #2980b9;
}

.add-to-favorites-btn {
  background-color: #e74c3c;
  color: #fff;
}

.add-to-favorites-btn:hover {
  background-color: #c0392b;
}

.product-description-container {
  background-color: #f7f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.product-description-container h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.product-description-container p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

.not-found-message {
  text-align: center;
  padding: 3rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.not-found-message h2 {
  color: #e74c3c;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #f39c12;
  color: #fff;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.back-link:hover {
  background-color: #e67e22;
}
