.cart-container {
  max-width: 1200px;
  margin: 2.2rem auto;
  padding: 0 1rem;
}
.cart-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-summary {
  width: 320px;
  background: #fff;
  padding: 1.4rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 90px;
  height: max-content;
}

/* Cart item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 0.9rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}
.cart-item-img img {
  width: 86px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item-info {
  flex: 1;
}
.cart-item-info h4 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: #222;
}
.item-category {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.6rem;
}
.qty-control {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.qty-btn {
  border: 1px solid #eee;
  background: #fafafa;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.qty-input {
  width: 44px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #eee;
  padding: 6px;
  background: #fff;
}

.cart-item-price {
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 6px;
}
.remove-item {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
}

/* Empty cart */
.empty-cart {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-light);
}

/* summary lines */
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: #555;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.checkout-btn {
  width: 100%;
  margin-top: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.continue-btn {
  display: block;
  text-align: center;
  margin-top: 0.8rem;
  color: var(--color-primary);
  text-decoration: none;
}

/* responsive */
@media (max-width: 900px) {
  .cart-wrapper {
    flex-direction: column;
  }
  .cart-summary {
    width: 100%;
    position: relative;
    top: 0;
  }
}
