/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #2d2d44);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e0e0e0;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  width: 400px;
  padding: 24px;
  background: #2a2a3c;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ffffff;
}

#product-list {
  margin-bottom: 25px;
}

.product {
  background-color: #3a3a50;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #444;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.product button {
  background-color: #4f46e5;
  border: none;
  padding: 6px 12px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.product button:hover {
  background-color: #4338ca;
  transform: scale(1.05);
}

#cart-items {
  margin-bottom: 18px;
}

#cart-total {
  text-align: right;
  font-weight: 500;
  font-size: 1rem;
  color: #d1d1f1;
}

#checkout-btn {
  background-color: #10b981;
  border: none;
  padding: 10px;
  width: 100%;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#checkout-btn:hover {
  background-color: #059669;
  transform: scale(1.02);
}

.hidden {
  display: none;
}
