*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3b82f6; /* Vivid Blue */
  --secondary-color: #ec4899; /* Vibrant Pink */
  --accent-color: #a855f7; /* Soft Purple */
  --background-color: #f3f4f6; /* Light Grey Background */
  --text-color: #1f2937; /* Dark Grey for Text */
  --highlight-color: #facc15; /* Bright Yellow */
  --warning-color: #ef4444; /* Bright Red for warnings */
  --success-color: #10b981; /* Emerald Green for success */
  --info-color: #06b6d4; /* Cyan for information */
  --neutral-color: #94a3b8; /* Neutral blue-grey for muted elements */
  --light-color: #ffffff; /* Pure White */
  --dark-color: #111827; /* Dark blue for contrast */
  --gradient-color1: #ff9f43; /* Bright orange */
  --gradient-color2: #ff3f81; /* Bright pink */
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

.title {
  color: var(--primary-color);
  text-align: center;
  margin: 30px 0;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

#dessert-card-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px;
}

.dessert-card {
  background-color: var(--light-color);
  padding: 20px;
  text-align: center;
  border-radius: 15px;
  margin: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dessert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dessert-price {
  font-size: 1.4rem;
  color: var(--accent-color);
  font-weight: bold;
}

.btn {
  display: block;
  cursor: pointer;
  width: 120px;
  padding: 10px;
  color: var(--light-color);
  background: linear-gradient(to right, var(--gradient-color1), var(--gradient-color2));
  border: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: linear-gradient(to right, var(--gradient-color2), var(--gradient-color1));
  transform: scale(1.05);
}

#cart-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--light-color);
  background-color: var(--success-color);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn {
  margin: 30px auto 10px;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 10px;
  border-radius: 8px;
}

#cart-container {
  display: none;
  position: absolute;
  top: 80px;
  right: 20px;
  background-color: var(--light-color);
  width: 240px;
  height: 400px;
  border: 5px solid var(--accent-color);
  border-radius: 20px;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.product {
  margin: 20px 0;
  color: var(--text-color);
}

.product-count {
  display: inline-block;
  margin-right: 10px;
  color: var(--highlight-color);
  font-weight: bold;
}

.product-category {
  margin: 10px 0;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  #dessert-card-container {
    flex-direction: row;
  }

  .dessert-card {
    flex: 1 0 21%;
  }

  #cart-container {
    width: 320px;
  }
}
