@charset "UTF-8";

/* Base Reset */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9fbe7;
  color: #333;
}

/* Header */
.cart-header {
  padding: 30px 20px 10px;
  background: linear-gradient(to right, #e5f8cf, #f8fbb8);
  text-align: center;
  position: relative;
}

.cart-header h1 {
  margin: 0;
  font-size: 2em;
  color: #476530;
}

.back-to-shop {
  position: absolute;
  top: 20px;
  left: 20px;
  text-decoration: none;
  font-size: 14px;
  color: #476530;
  font-weight: bold;
}

/* Cart Container */
.cart-container {
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  align-items: center;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.cart-details {
  flex: 1;
}

.cart-details h3 {
  margin: 0 0 5px;
  font-size: 1.2em;
  color: #2f4f1f;
}

.cart-details p {
  margin: 5px 0;
  font-size: 14px;
}

.qty-input {
  width: 50px;
  padding: 4px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.remove-btn {
  margin-top: 10px;
  background: #fff3f3;
  color: #bb2222;
  border: 1px solid #e5b3b3;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}

.remove-btn:hover {
  background: #ffecec;
}

/* Footer */
.cart-footer {
  text-align: center;
  padding: 30px 20px;
  background: #f4fadc;
  border-top: 1px solid #e0e0e0;
}

.total-display {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #476530;
}

.checkout-button {
  background: #bfe3a7;
  color: #2f4f1f;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.checkout-button:hover {
  background: #a8d5ba;
}

/* Empty cart message */
.cart-container p {
  text-align: center;
  font-size: 1.2em;
  padding: 60px 20px;
  color: #888;
}
