.cart-section {
    padding: 40px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    gap: 20px;
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h3 {
    margin-bottom: 10px;
}

.cart-item-details p {
    font-weight: bold;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    gap: 10px;
}

.quantity-controls button {
    padding: 4px 10px;
    border: 1px solid #111827;
    background: #ffffff;
    color: #111827;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.quantity-controls button:hover {
    background: #111827;
    color: white;
}

.quantity-controls .remove {
    background: #ef4444;
    color: white;
    border: none;
}

.quantity-controls .remove:hover {
    background: #b91c1c;
}

/* Cart summary */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #111827;
    color: white;
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
}


/* Toast container */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: #111827;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
  font-size: 14px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px; /* space below the title */
    text-align: center;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #111827;
    color: white;
    border-radius: 10px;
    margin-bottom: 30px; /* space below summary before cart items */
    position: sticky; /* if you want it to stick */
    top: 0;
    z-index: 10;
}
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* already provides space between items */
    max-height: 500px;
    overflow-y: auto;
}
.cart-container {
    display: flex;
    gap: 40px; /* space between columns */
    flex-wrap: wrap; /* responsive on small screens */
}

/* Left column: cart items */
.cart-list {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right column: sidebar */
.cart-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Continue Shopping button */
.continue-shopping {
    display: block;
    text-decoration: none;
    background: #111827;
    color: white;
    padding: 12px 25px;
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background: #374151;
    transform: translateY(-2px);
}

/* Keep total summary sticky */
.cart-sidebar .cart-summary {
    position: sticky;
    top: 20px;
    background: #111827;
    padding: 20px;
    border-radius: 10px;
    color: white;
}
.buy-now-btn {
    background: #f97316; /* bright orange */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.buy-now-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
}
/* Buy Now button – same as Remove button but green */
.quantity-controls .buy-now {
    background: #22c55e; /* green */
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.quantity-controls .buy-now:hover {
    background: #16a34a; /* darker green on hover */
}
.cart-item-details .item-total {
    font-weight: bold;
    margin-left: 5px;
}
