/* product-detail.css */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

/* Product Images Styling */
.product-images {
  display: flex;
  flex-direction: column;
}

.main-image {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  cursor: pointer;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
  border-color: #4e88c7;
  transform: translateY(-2px);
}

/* Product Info Styling */
.product-info h1 {
  font-size: 28px;
  margin: 0 0 15px;
  color: #333;
  text-align: left;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #f25c54;
  margin-bottom: 10px;
}

.product-category {
  color: #666;
  margin-bottom: 15px;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.stars {
  color: #ffc107;
  margin-right: 10px;
}

.rating-value {
  font-weight: 600;
  margin-right: 5px;
}

.total-ratings {
  color: #666;
}

.product-description, 
.product-specifications {
  margin-bottom: 25px;
}

.product-description h2, 
.product-specifications h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #333;
}

/* Form elements */
.quantity {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.quantity label {
  margin-right: 10px;
}

.quantity input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background-color: #4e88c7;
  color: white;
}

.btn-primary:hover {
  background-color: #3a6fa0;
}

/* Success message */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Reviews Section */
.product-ratings-comments {
  margin-bottom: 40px;
}

.product-ratings-comments h2 {
  font-size: 24px;
  margin: 0 0 20px;
  color: #333;
}

.rating-comment {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.rating-stars {
  color: #ffc107;
  margin-bottom: 5px;
}

.comment-author {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.comment-text {
  margin: 0;
}

/* Review Form */
.product-ratings-comments h3 {
  font-size: 20px;
  margin: 30px 0 15px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Similar Products */
.similar-products {
  margin-top: 50px;
}

.similar-products h2 {
  font-size: 24px;
  margin: 0 0 20px;
  color: #333;
}

.similar-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .main-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .similar-products .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .main-image {
    height: 300px;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .product-info h1 {
    font-size: 24px;
  }
}