/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff8fc;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: #ff8ac1;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .brand {
  font-size: 1.5em;
  font-weight: bold;
}

header nav a,
header button {
  color: white;
  background: transparent;
  border: none;
  font-size: 1em;
  margin-left: 15px;
  text-decoration: none;
  cursor: pointer;
}

header nav a:hover,
header button:hover {
  text-decoration: underline;
}

/* Main */
main {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #ff4c94;
}

/* Cart Items */
#cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 140, 190, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 140, 190, 0.25);
}

.cart-item img {
  border-radius: 8px;
  margin-right: 15px;
}

.cart-item span {
  flex: 1;
  font-size: 1.1em;
}

.cart-item span:last-child {
  text-align: right;
  color: #ff4c94;
  font-weight: bold;
}

/* Total Price */
#total {
  text-align: right;
  font-size: 1.3em;
  margin-top: 20px;
  font-weight: bold;
  color: #ff4c94;
}

/* Checkout Button */
#checkoutBtn {
  display: block;
  margin: 25px auto 0;
  background: #ff4c94;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1em;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 76, 148, 0.2);
  transition: background 0.3s ease;
}

#checkoutBtn:hover {
  background: #e03c7d;
}
