/* Container */
.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Page title */
h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #1e3a8a; /* CheapSnatch primary blue */
}

/* Cart Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}

.cart-table th,
.cart-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

/* Table header */
.cart-table thead th {
  background-color: #1e3a8a;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Product info cell */
.product-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-info img {
  border-radius: 4px;
  object-fit: cover;
  width: 50px;
  height: 50px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
}

/* Input quantity */
input[type="number"] {
  width: 60px;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}

/* Buttons */
button.remove-btn,
button.update-btn {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.remove-btn:hover,
button.update-btn:hover {
  background-color: #b92a34;
}

/* Action links */
.cart-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.cart-actions a {
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  background-color: #1e3a8a;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cart-actions a:hover {
  background-color: #163170;
}

/* Total row */
.cart-table tfoot td {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a8a;
  padding-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .product-info {
    flex-direction: column;
    align-items: flex-start;
  }

  input[type="number"] {
    width: 100%;
  }

  .cart-actions {
    justify-content: center;
  }
}
