/* --- Background full screen --- */
body {
  background: url("https://i.imgur.com/LVmUQ9H.jpeg") no-repeat center center/cover;
  min-height: 100vh;
  margin: 0;
  backdrop-filter: blur(4px);
}

/* --- Cart container card --- */
.container {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
  margin-top: 60px !important;
}

/* --- Heading --- */
h3 {
  color: #fff;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4);
}

/* --- Cart item box --- */
.cart-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* --- Product Image --- */
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

/* --- Product text --- */
.cart-item .details {
  flex: 1;
  color: #fff;
  font-weight: 600;
}

/* --- Remove button --- */
.remove-btn {
  background: #ff4c4c;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: 0.3s;
}

.remove-btn:hover {
  background: #d40000;
}

/* --- Checkout button --- */
#checkoutBtn {
  background: linear-gradient(135deg, #28a745, #1d7d36);
  border: none;
  padding: 12px 22px;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  transition: 0.3s;
}

#checkoutBtn:hover {
  background: linear-gradient(135deg, #1d7d36, #28a745);
  transform: translateY(-2px);
}

/* --- Back button --- */
.btn-secondary {
  background: rgba(0, 0, 0, 0.55);
  padding: 12px 20px;
  color: #fff;
  border-radius: 10px;
  border: none;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* --- Make everything responsive --- */
@media(max-width: 576px) {
  .cart-item {
    flex-direction: column;
    text-align: center;
  }
  .cart-item img {
    margin-bottom: 10px;
  }
}
/* cart.css */

/* Header */
.cart-header {
  background: #007bff; /* blue header */
  color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Cart items cards */
#cart-items .card {
  background: #f8f9fa; /* light gray */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
#cart-items .card:hover {
  transform: scale(1.02);
}

/* Cart summary section */
.cart-summary {
  background: #fff; /* white frame */
  color: #000; /* amounts in black */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  border-radius: 10px;
}

/* Cart summary amounts */
.cart-summary span {
  color: #000; /* ensure amounts text is black */
  font-weight: 500;
}

/* Total amount bold */
#grandTotal {
  color: #000;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Buttons */
.btn-success {
  background: linear-gradient(45deg, #28a745, #218838);
  border: none;
  transition: all 0.3s ease;
}
.btn-success:hover {
  background: linear-gradient(45deg, #218838, #28a745);
  transform: scale(1.05);
}

.btn-secondary {
  background: #6c757d;
  border: none;
}
.btn-secondary:hover {
  background: #5a6268;
  transform: scale(1.05);
}

/* Cart item image */
#cart-items img {
  border-radius: 8px;
}

/* Adjust overall container */
.container {
  max-width: 900px;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  #cart-items .card {
    flex-direction: column;
    align-items: flex-start;
  }
  #cart-items .card div {
    margin-bottom: 10px;
  }
}
