* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

.cart-container {
  max-width: 900px;
  margin: auto;
  padding: 16px;
  background: #f5f5f5;
}

/* Cart card */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Image */
.item-image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

/* Details */
.item-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

/* Quantity + price */
.item-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.qty-btn:hover {
  background: #f0f0f0;
}

.qty-value {
  width: 34px;
  text-align: center;
  font-size: 14px;
}

/* Price */
.item-total {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Shipping */
.shipping-estimate {
  font-size: 13px;
  color: #555;
}

/* Remove */
.remove-btn {
  margin-top: 6px;
  font-size: 13px;
  color: #d32f2f;
  cursor: pointer;
  align-self: flex-start;
}

/* Summary */
.cart-summary {
  margin-top: 24px;
  text-align: right;
  font-size: 14px;
  color: #222;
}

/* Pay button */
.pay-btn {
  margin-top: 14px;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pay-btn:hover {
  background: #111;
}

.pay-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

/* Mobile */
@media (max-width: 600px) {
  .cart-container {
    padding: 12px;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
    padding: 14px;
  }

  .item-image {
    width: 64px;
    height: 64px;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
  }

  .qty-value {
    width: 30px;
  }
}
