body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f8f9fa;
  color: #1f2937;
  min-height: 100vh;
}

.cart-container {
  --primary: #01A49E;
  --primary-dark: #00837f;
  --danger: #ef4444;
  --white: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* max-width: 1000px; Remove or increase */
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 20px;
  margin-top: 60px;
}

.cart-container h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-container h1 span {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 500;
}

.cart-item {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cart-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
  transform: translateY(-2px);
}

.cart-item-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.item-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #f3f4f6;
}

.item-details {
  flex: 1;
}

.item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
  line-height: 1.4;
  padding-right: 2rem;

}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.item-old-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--white);
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
}

.qty-val {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.delete-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 8px;
  border-radius: 50%;
}

.delete-btn:hover {
  color: var(--danger);
  background: #fee2e2;
}


.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.empty-cart i {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-cart p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.btn-shop {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-shop:hover {
  background: var(--primary-dark);
}


.cart-summary {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #4b5563;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--border);
  margin-top: 0.5rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(1, 164, 158, 0.3);
}

.checkout-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(1, 164, 158, 0.4);
}


@media (max-width: 640px) {
  .cart-container {
    padding: 0 16px;
    margin-top: 40px;
  }

  .cart-item {
    padding: 1rem;
  }

  .cart-item-inner {
    gap: 1rem;
  }

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

  .item-title {
    font-size: 1rem;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .delete-btn {
    position: static;
    margin-left: auto;
    display: block;
    margin-top: 1rem;
    background: #fee2e2;
    color: var(--danger);
    width: 100%;
    border-radius: 8px;
    text-align: center;
  }

  .delete-btn i {
    margin-right: 8px;
  }

  .delete-btn::after {
    content: "Remove Item";
    font-size: 0.9rem;
    font-weight: 600;
  }
}