.cart-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #e9f5ff 100%);
  min-height: 100vh;
}

.container {
  max-width: 950px;
}

.cart-item-card {
  transition: box-shadow 0.2s, transform 0.2s;
  border: none;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 12px 0 #e3e8f0;
  min-height: 120px;
  display: flex;
  align-items: stretch;
}

.cart-item-card .card-body {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-card:hover {
  box-shadow: 0 0 0 3px #0d6efd22;
  transform: translateY(-2px) scale(1.01);
}

.card-title {
  font-size: 1.1rem;
  color: #1a365d;
}

.btn-qty {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  font-weight: bold;
  border: 1px solid #dee2e6;
  background: #f8fafc;
  color: #0d6efd;
  transition: background 0.15s, color 0.15s;
}

.btn-qty:hover {
  background: #e9f5ff;
  color: #198754;
}

.item-qty {
  font-size: 1.1rem;
  min-width: 2ch;
  display: inline-block;
  text-align: center;
}

.btn-remove-item {
  border-radius: 50%;
  padding: 0.3rem 0.5rem;
  font-size: 1.1rem;
  transition: background 0.15s, color 0.15s;
}

.btn-remove-item:hover {
  background: #ffe5e5;
  color: #dc3545;
}

.order-summary-card {
  min-width: 270px;
  max-width: 370px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 16px 0 #e3e8f0;
}

.order-summary-card h4 {
  color: #1a365d;
}

.btn-primary.btn-lg {
  font-size: 1.15rem;
  padding: 0.75rem 0;
  border-radius: 0.75rem;
  font-weight: 600;
}

.btn-outline-secondary {
  border-radius: 0.75rem;
  font-weight: 500;
}

.toast {
  min-width: 220px;
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .sticky-top { position: static !important; }
  .order-summary-card { max-width: 100%; }
  .container { max-width: 100%; }
}

@media (max-width: 575.98px) {
  .cart-item-card { font-size: 0.97rem; }
  .order-summary-card { padding: 0.5rem; }
  .btn-primary.btn-lg { font-size: 1rem; padding: 0.6rem 0; }
  .cart-item-img { height: 120px; }
}

.order-summary-card.sticky-top {
  top: 120px; /* Adjust this value to match your header's height */
  z-index: 10;
}

.cart-item-card .item-subtotal,
.cart-item-card .item-price {
  min-width: 110px;
  display: inline-block;
  white-space: nowrap;
}

.cart-item-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  display: block;
} 