html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Background (put your cart image as /public/images/cart.png) */
body.cartBg {
  min-height: 100vh;
  background: url("/images/cart.png") center / cover no-repeat;
  position: relative;
}

body.cartBg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.55); /* soft overlay */
  z-index: 0;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
}

.spacer { flex: 1; }

.backBtn, .checkoutBtn {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  color: #000;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.08);
}

.wrap {
  position: relative;
  z-index: 2;
  padding: 40px 18px 80px 18px;
}

.panel {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.12);
}

.cartItems {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.item {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
}

.item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: #eee;
}

.name {
  font-weight: 800;
  margin: 0 0 6px;
  color: #111;
}

.meta {
  font-size: 13px;
  color: #222;
  opacity: 0.85;
}

.right {
  text-align: right;
}

.price {
  font-weight: 900;
  color: #000;
  margin-bottom: 8px;
}

.qtyRow {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.qtyBtn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.qty {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
}

.removeBtn {
  margin-top: 8px;
  border: none;
  background: transparent;
  color: #444;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 700;
}

.totals {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.note {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
}

.actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btnBlack {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-weight: 900;
  display: inline-block;
}

.btnOutline {
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.18);
  font-weight: 900;
  cursor: pointer;
}

.msg {
  margin-top: 12px;
  font-weight: 800;
  color: #111;
}
