/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body (Fade transition + base styles) */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #c7e9f1;
  padding: 30px;
  text-align: center;
  color: #333;
  font-size: 24px;

  opacity: 1;
  transition: opacity 0.5s ease; /* important */
}

body.fade {
  opacity: 0;
  transition: opacity 0.5s ease; /* this line is important to repeat for fade */
}


/* Main Container */
.product-details-container {
  background: #fff;
  padding: 40px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1000px;
}

/* Product Title */
.product-details-container h1 {
  font-size: 2.2rem;
  font-weight: bold;
}

/* Product Description */
.product-details-container p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #555;
}

/* Price Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.price-table th {
  background: #007bff;
  color: white;
  padding: 16px;
  font-size: 1.2rem;
}

.price-table td {
  padding: 16px;
  font-size: 1.1rem;
  border-bottom: 1px solid #ddd;
}

/* Highlight lowest price row */
.lowest-price {
  background-color: #d4edda;
  font-weight: bold;
}

/* Same price styling (optional) */
.same-price {
  background-color: #e2e3e5;
}

/* Go-Back Button */
.go-back {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
}

.go-back:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .price-table th,
  .price-table td {
    font-size: 1rem;
    padding: 12px;
  }

  .go-back {
    font-size: 1rem;
    padding: 8px 16px;
  }
}

/* Best Deal Icon */
.best-deal-icon {
  width: 100px;
  height: auto;
  margin-left: 10px;
  vertical-align: middle;
  filter: drop-shadow(0 0 5px gold) drop-shadow(0 0 10px gold);
  animation: pulse 1.5s infinite;
}

/* Pulse Animation for Best Deal Badge */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Product Image Styling */
.product-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.05);
}
