/* General Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Product Detail Section */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Product Gallery */
.product-gallery {
  flex: 1 1 40%;
}

.main-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
  border-color: #007bff;
}

/* Product Info */
.product-info {
  flex: 1 1 50%;
}

.product-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-rating {
  color: #f39c12;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-price {
  margin: 15px 0;
  font-size: 20px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.current-price {
  font-weight: bold;
  color: #28a745;
}

.old-price {
  text-decoration: line-through;
  color: #999;
}

.discount-percent {
  color: #dc3545;
}

/* Product Description & Variants */
.product-description {
  margin: 20px 0;
  line-height: 1.5;
}

.product-variations {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.variation-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.variation-group select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Product Actions */
.product-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.quantity-selector input {
  width: 60px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart-btn {
  background-color: #ffc107;
  color: #212529;
}

.add-to-cart-btn:hover {
  background-color: #e0a800;
}

.buy-now-btn {
  background-color: #007bff;
  color: #fff;
}

.buy-now-btn:hover {
  background-color: #0056b3;
}

/* Product Meta */
.product-meta p {
  margin: 5px 0;
  font-size: 14px;
}

/* Reviews Section */
.product-reviews {
  margin-top: 40px;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #ffc107;
}
.review-stars ion-icon {
  font-size: 18px;
}


.section-title {
  font-size: 22px;
  margin-bottom: 20px;
}

.review-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.review-stars ion-icon {
  color: #ffc107;
}

/* Related Products */
.related-products {
  margin-top: 40px;
}

.product-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  flex: 0 0 250px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.product-content h3 {
  font-size: 16px;
  margin: 10px 0 5px;
}

.product-actions-btn {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.action-btn {
  background: #eee;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.view-all-reviews-btn {
  margin-top: 20px;
  background-color: #17a2b8;
  color: #fff;
}

.view-all-reviews-btn:hover {
  background-color: #138496;
}

/* Responsive */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }

  .product-gallery,
  .product-info {
    flex: 1 1 100%;
  }

  .product-variations {
    flex-direction: column;
  }

  .product-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    flex-direction: column;
  }
}
