/* ===== Base Styles ===== */
body {
  font-family: Arial, sans-serif;
  background: #fce4ec;
  margin: 0;
  padding: 0;
}

/* ===== Cart Container ===== */
.cart-container {
  display: flex;
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Left Side - Cart Items ===== */
.cart-items {
  flex: 2;
  padding: 20px;
}

.cart-items table {
  width: 100%;
  border-collapse: collapse;
}

.cart-items th,
.cart-items td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}

.product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-items img {
  width: 70px;
  height: auto;
  border-radius: 8px;
}

/* ===== Right Side - Summary ===== */
.cart-summary {
  flex: 1;
  background: #f9d6e5;
  padding: 30px;
  text-align: center;
}

.cart-summary h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

/* ===== Buttons ===== */
.checkout-btn,
.paypal-btn {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.checkout-btn {
  background: #000;
  color: #fff;
}

.checkout-btn:hover {
  background: #333;
}

.paypal-btn {
  background: #0070ba;
  color: #fff;
}

.paypal-btn:hover {
  background: #005c9e;
}

/* ===== Small UI Elements ===== */
.qty-btn {
  background: #f8bbd0;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  margin: 0 5px;
  font-weight: bold;
  color: #333;
  display: inline-block;
}

.remove-btn {
  color: red;
  text-decoration: none;
  font-size: 20px;
}

.terms {
  display: block;
  margin: 15px 0;
  font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  .cart-container {
    flex-direction: column;
    margin: 20px;
  }

  .cart-items {
    padding: 15px;
  }

  .cart-summary {
    padding: 20px;
  }

  .checkout-btn,
  .paypal-btn {
    font-size: 15px;
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .cart-items table,
  .cart-items thead {
    display: none; /* Hide large table on small screens */
  }

  .cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .product {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .product img {
    width: 60px;
  }

  .product-info {
    flex: 1;
  }

  .product-info h4 {
    margin: 0;
    font-size: 16px;
  }

  .product-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
  }

  .qty-btn {
    padding: 4px 8px;
    font-size: 14px;
  }

  .cart-summary {
    margin-top: 20px;
  }
}