:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #e74c3c;
  --hover-color: #3498db;
  --text-color: #2c3e50;
  --light-text: #7f8c8d;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --header-background-opacity: rgba(255, 255, 255, 0.95);
}

/* Page background */
body {
  background: var(--light-bg);
  color: var(--text-color);
}

/* Container */
.cart-container,
.checkout-container {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

/* Headings */
.cart-title,
.checkout-title {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table thead th {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  font-weight: 600;
}
.cart-table td,
.cart-table th {
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  padding: 14px;
}
.cart-table tbody tr:hover {
  background: #fbfcfd;
}

/* Product image */
.cart-product-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Quantity controls - match JS class names */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn-minus,
.qty-btn-plus {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.qty-btn-minus:hover,
.qty-btn-plus:hover {
  background: var(--hover-color);
}
.qty-input {
  width: 64px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 8px;
}

/* Remove button - matches remove-item for JS */
.remove-item {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.remove-item:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Summary panel */
.summary-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text-color);
}
.summary-row strong {
  color: var(--primary-color);
}

/* Buttons */
.btn-primary-cta {
  background: var(--hover-color);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  font-weight: 600;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-primary-cta:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
.btn-outline-link {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}
.btn-outline-link:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

/* Empty cart */
.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: var(--light-text);
}
.empty-cart i {
  color: var(--secondary-color);
}

/* Order card on checkout */
.order-card {
  background: #fcfdff;
  border: 1px dashed var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

/* Utility */
.badge-muted {
  background: #eef2f6;
  color: var(--secondary-color);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 12px;
}
