:root {
  --border: #e6e6e6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #fafafa;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 14px 60px;
}

.header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.sub {
  margin: 0 0 16px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.status {
  margin: 6px 0 14px;
  color: var(--muted);
  min-height: 20px;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item {
  display: flex;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.thumb {
  width: 80px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex: 0 0 auto;
  background: #fff;
}

.meta {
  flex: 1 1 auto;
  min-width: 0;
}

.title {
  font-weight: 650;
  line-height: 1.2;
  margin: 0 0 4px;
  word-break: break-word;
}

.farbe {
  display: inline;
  font-size: 0.7rem;
  color: #777;
  font-weight: 400;
}

.unit {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.price {
  width: 110px;
  text-align: right;
  font-weight: 700;
}

.delete {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.delete:hover, .qty-btn:hover {
  background: #f3f3f3;
}

.summary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

/* Mobile */
@media (max-width: 640px) {
  .cart-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .controls {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }

  .price {
    width: auto;
    margin-left: auto;
  }
}

.is-busy, .is-busy * {
  cursor: progress !important;
  pointer-events: none;
} 

.cart-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
}

.btn-secondary:hover {
  background: #f3f3f3;
}

.btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-primary:hover {
  opacity: 0.92;
}

.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.btn.disabled { opacity: .5; pointer-events: none; }