.cart-page {
  padding: 40px 20px;
  font-family: sans-serif;
  background-color: #f9f9f9;
}

.cart-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-container h1 {
  font-size: 32px;
  margin-bottom: 30px;
}

.empty-cart {
  font-size: 18px;
  color: #777;
  text-align: center;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.cart-item {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.item-info {
  flex: 1;
}

.item-info h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.item-info p {
  color: #666;
  margin-bottom: 12px;
}

.item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.update-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-input {
  width: 60px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}

.remove-form {
  margin-top: 4px;
}

.remove-btn {
  background: none;
  border: none;
  color: #d00;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 0;
}

.remove-btn:hover {
  text-decoration: underline;
}

.item-price {
  font-size: 18px;
  font-weight: bold;
  align-self: center;
}

.cart-summary {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cart-summary p {
  font-size: 20px;
}

.checkout-btn {
  padding: 12px 20px;
  background-color: #7b2be2;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkout-btn:hover {
  background-color: #621fb6;
}

/* Responsive: Smartphone (kein Umbruch, nur Skalierung) */
@media (max-width: 480px) {
  .cart-page {
    padding: 20px 12px;
  }

  .cart-container {
    padding: 40px;
  }

  .cart-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .cart-item {
    gap: 12px;
    /* Kein flex-direction: column → bleibt horizontal */
  }

  .cart-item img {
    width: 80px;
    height: 80px;
  }

  .item-info h3 {
    font-size: 16px;
  }

  .item-info p {
    font-size: 14px;
  }

  .quantity-input {
    width: 50px;
    padding: 5px;
    font-size: 14px;
  }

  .remove-btn {
    font-size: 13px;
  }

  .item-price {
    font-size: 16px;
  }

  .cart-summary {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }

  .cart-summary p {
    font-size: 16px;
  }

  .checkout-btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}
