:root {
  --color-bg: #f4f9f4;
  --color-surface: #ffffff;
  --color-text: #212529;
  --color-muted: #6c757d;
  --color-primary: #009600;
  --color-primary-dark: #007300;
  --color-border: #dee2e6;
  --color-error: #b3261e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

.site-header {
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.site-footer {
  text-align: center;
  color: var(--color-muted);
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

h1 {
  margin-top: 0;
}

.landing {
  text-align: center;
  padding: 3rem 1rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.error {
  color: var(--color-error);
  background: #fbeaea;
  border: 1px solid #f0c9c6;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.payment-paid {
  color: var(--color-primary-dark);
  background: #e7f6e7;
  border: 1px solid #b9e2b9;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--color-bg);
}

.product-card h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.05rem;
}

.product-description {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  height: 2.7rem;
  overflow: hidden;
}

.product-price {
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.amount-stepper {
  display: inline-flex;
  align-items: stretch;
  align-self: center;
  margin-top: auto;
}

.amount-stepper-button {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.amount-stepper-button[data-action="decrement"] {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.amount-stepper-button[data-action="increment"] {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.amount-stepper-button:hover {
  background: var(--color-bg);
}

.amount-stepper input[type="number"] {
  width: 3.5rem;
  height: 2.2rem;
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  border-left: none;
  border-right: none;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  position: relative;
  z-index: 1;
}

.amount-stepper input[type="number"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 150, 0, 0.25);
}

.amount-stepper input[type="number"]::-webkit-inner-spin-button,
.amount-stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}

.amount-stepper-zero .amount-stepper-button[data-action="decrement"],
.amount-stepper-zero input[type="number"] {
  display: none;
}

.amount-stepper-zero .amount-stepper-button[data-action="increment"] {
  border-radius: 6px;
  border-left: 1px solid var(--color-border);
}

form.stacked {
  max-width: 420px;
}

form.stacked label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}

form.stacked input[type="text"],
form.stacked input[type="email"],
form.stacked input[type="tel"],
form.stacked select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 400;
  background: var(--color-surface);
}

table.summary {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--color-surface);
}

table.summary th,
table.summary td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

table.summary td.amount,
table.summary th.amount {
  text-align: right;
}

table.summary tr.total td {
  font-weight: 700;
  border-top: 2px solid var(--color-border);
}

.actions {
  margin-top: 1.5rem;
}

.payment-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.payment-pay {
  flex: 0 0 220px;
  text-align: center;
}

.payment-details {
  flex: 1 1 320px;
  text-align: right;
}

.payment-details .payment-info {
  text-align: right;
  list-style-position: inside;
  padding: 0;
}

.payment-details .actions {
  text-align: right;
}

.payment-secondary-title {
  margin: 0 0 0.75rem;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
}

.button-bancontact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
}

.button-large {
  padding: 1.3rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 10px;
}

.bancontact-icon {
  width: 1.6rem;
  height: auto;
}

.button-large .bancontact-icon {
  width: 2.2rem;
}
