/* Product Detail Page Styles
   (Changed from the live copy, 2026-12-03: rules scoped to #product-details, and the rules for the old "You might
   also like" markup removed, so the shop cards used there now look as they do in the shop.) */

/* Main product layout */
#product-details {
  display: flex;
  flex-wrap: wrap;
  /* gap: 2rem; */
  margin-bottom: 3rem;
  padding: 2rem;
  justify-content: center;
}
  
#product-details .product-image {
  flex: 1 1 300px;
  max-width: 200px;
  margin-top: 0.5rem;
}
  
#product-details .product-image img {
  height: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
  
#product-details .product-info {
  flex: 0 1 400px;
}
  
/* Product title and artist */
#product-details .product-info h1 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
  text-align: left;
}
  
#product-details .product-info h2 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  color: #555;
}
  
/* Price styling */
#product-details .product-info .price {
  font-size: 0.7rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
}
  
/* Add to cart button */
#product-details .add-to-cart-btn {
  background-color: #333;
  color: white;
  font-size: 0.7rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  /* sized to its text, as on the live site (the shop's stylesheet, loaded here for the cards, makes it full width) */
  width: auto;
  margin-top: 0;
}
  
#product-details .add-to-cart-btn:hover {
  background-color: #999;
  color: white;
}
  
/* Description and details sections */
#product-details .product-description, #product-details .product-details {
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}
  
#product-details .product-description h3, #product-details .product-details h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}
  
#product-details .product-description p {
  line-height: 1.6;
  color: #444;
}
  
#product-details .product-details p {
  margin: 0.5rem 0;
  line-height: 1.4;
}
  
#product-details .product-details strong {
  color: #333;
}
  
#related-products {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: center;
}
  
/* the cards use the full width (as many columns as fit, as in the shop) */
#related-products .product-grid {
  width: 100%;
}
  
#related-products h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}
  
.error-message {
  text-align: center;
  padding: 2rem;
  background-color: #f8d7da;
  border-radius: 5px;
  margin: 2rem auto;
  max-width: 600px;
  border: 1px solid #f5c6cb;
}
  
.error-message h2 {
  color: #721c24;
  margin-bottom: 1rem;
}
  
.error-message p {
  color: #721c24;
  margin-bottom: 1.5rem;
}
  
.error-message a {
  display: inline-block;
  background-color: #1d3557;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}
  
.error-message a:hover {
  background-color: #457b9d;
}
  
/* Responsive adjustments */
@media (max-width: 700px) {
  #product-details {
    flex-direction: column;
  }
  
  #product-details .product-image {
    max-width: 100%;
  }
  
  #product-details .add-to-cart-btn {
    width: 100%;
  }
}
