.cart-page {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.cart-title {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.cart-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

/* CART ITEMS */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-card {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255,255,255,.95);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
  transition: transform .35s ease, box-shadow .35s ease;
}

.cart-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(0,0,0,.12);
}

/* IMAGE */
.cart-thumb img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 14px;
  background: #f9fafb;
}

/* DETAILS */
.cart-details h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-details .muted {
  font-size: .85rem;
  opacity: .6;
}

.unit-price {
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
}

/* QUANTITY CONTROLS */
.qty-controller {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-controller input {
  width: 54px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-weight: 600;
  padding: 6px;
}

.qty-controller button {
  border: none;
  background: #f3f4f6;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s ease;
}

.qty-controller button:hover {
  background: #059669;
  color: white;
  transform: scale(1.12);
}

.qty-controller .save {
  background: #10b981;
  color: white;
}

/* LINE TOTAL */
.line-total {
  font-weight: 700;
  white-space: nowrap;
}

/* REMOVE BUTTON */
.remove {
  border: none;
  background: #fee2e2;
  color: #dc2626;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .25s ease;
}

.remove:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.1);
}

/* CART SUMMARY */
.cart-summary {
  background: #111827;
  color: white;
  padding: 25px;
  border-radius: 16px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

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

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-row.total {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 12px;
  font-size: 1.1rem;
}

.checkout-btn {
  display: block;
  text-align: center;
  margin-top: 20px;
  background: #10b981;
  color: white;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .3s ease;
}

.checkout-btn:hover {
  transform: translateY(-3px);
}

/* EMPTY CART */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
  .cart-wrapper {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: relative;
    top: auto;
    margin-top: 25px;
  }
}

@media (max-width: 768px) {
  .cart-card {
    grid-template-columns: 70px 1fr;
    gap: 14px;
  }

  .qty-controller,
  .line-total,
  .remove {
    grid-column: span 2;
    justify-self: flex-start;
  }

  .cart-summary {
    width: 100%;
  }
}
