/* product.css */

.product-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  padding: 20px;
  background-color: #fafafa;
  min-height: 80vh;
}

.product-details {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.07);
  object-fit: contain;
}

.product-info {
  flex: 1;
  min-width: 300px;
}

.product-info h1 {
  margin-bottom: 0.3rem;
  color: #2c3e50;
  font-weight: 700;
  font-size: 2rem;
}

.product-info p {
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.product-info p strong {
  color: #444;
}

.product-info p:last-child {
  margin-bottom: 0;
}

.btn-outline {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-weight: 600;
  text-decoration: none;
  color: #2c3e50;
  border: 2px solid #2c3e50;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #2c3e50;
  color: #fff;
}

.btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #218838;
}

input[type="number"] {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 1rem;
  width: 70px;
}

.suitable-for {
  margin-bottom: 20px;
}

.tag-badge {
  display: inline-block;
  background: #e0f2e9;
  color: #2a7a40;
  padding: 4px 10px;
  margin-right: 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
  .product-details {
    flex-direction: column;
  }

  .product-image img {
    max-width: 100%;
    margin-bottom: 20px;
  }
}
