/* =====================================================
   EL DORADO RESTAURANT - SHOPPING CART
===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f1e8;
  color: #222;
}

/* =====================================================
   CART CONTAINER
===================================================== */

.cart-container {
  width: min(700px, 92%);
  margin: 40px auto;
}

.cart-container > h1 {
  text-align: center;
  color: #6b0d14;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* =====================================================
   CART ITEMS
===================================================== */

.cart-item {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item h2 {
  color: #6b0d14;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.cart-item p {
  margin-bottom: 15px;
}

/* =====================================================
   QUANTITY
===================================================== */

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.quantity-controls button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #6b0d14;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

.quantity-controls span {
  font-size: 1.1rem;
  font-weight: bold;
}

/* =====================================================
   REMOVE
===================================================== */

.remove-item {
  border: none;
  background: transparent;
  color: #b00020;
  font-weight: bold;
  cursor: pointer;
}

/* =====================================================
   PAYMENT / SUMMARY
===================================================== */

.cart-summary {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  margin-top: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-summary h2 {
  color: #6b0d14;
  margin-bottom: 18px;
}

.payment-option {
  display: block;
  padding: 10px 0;
  font-size: 1.05rem;
  cursor: pointer;
}

.payment-option input {
  margin-right: 8px;
}

/* =====================================================
   TOTAL
===================================================== */

.cart-total {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
}

#cart-total {
  color: #6b0d14;
}

/* =====================================================
   CHECKOUT BUTTON
===================================================== */

#checkout-button {
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: #6b0d14;
  color: white;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
}

#checkout-button:hover {
  opacity: 0.9;
}

/* =====================================================
   CONTINUE SHOPPING
===================================================== */

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 25px;
  color: #6b0d14;
  font-weight: bold;
  text-decoration: none;
}

/* =====================================================
   EMPTY CART
===================================================== */

.empty-cart {
  background: white;
  padding: 30px;
  text-align: center;
  border-radius: 14px;
}


/* =====================================================
   CLEAR CART BUTTON
===================================================== */

.clear-cart {
  display: block;
  width: fit-content;

  margin: 18px auto 5px;
  padding: 9px 18px;

  background: #ffffff;
  color: #6b0d14;

  border: 2px solid #6b0d14;
  border-radius: 8px;

  font-size: 0.85rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.clear-cart:hover {
  background: #6b0d14;
  color: #ffffff;
  transform: translateY(-1px);
}

.clear-cart:active {
  transform: scale(0.97);
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {
  .cart-container {
    margin: 25px auto;
  }

  .cart-container > h1 {
    font-size: 1.7rem;
  }

  .cart-item,
  .cart-summary {
    padding: 18px;
  }
}