:root {
  --bg: #faf7f0;
  --card: #ffffff;
  --ink: #1e1a14;
  --muted: #6b6156;
  --accent: #c8102e;      /* jupiler-ish red */
  --gold: #d4a017;        /* beer gold */
  --line: #e6dfd3;
  --ok: #2e7d32;
}

* { box-sizing: border-box; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: #fff;
  flex-wrap: wrap;
}
.brand { color: #fff; font-weight: 800; font-size: 1.25rem; }
.tagline { color: #cbb; font-size: .9rem; }

main { max-width: 960px; margin: 0 auto; padding: 1.5rem; }

.hero { text-align: center; padding: 2rem 0 1rem; }
.hero h1 { font-size: 2.4rem; margin: 0 0 .25rem; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card__image { display: block; text-align: center; background: #fdfbf6; padding: 1rem; }
.product-card__image img { max-width: 100%; height: auto; }
.product-card__body { padding: 1rem 1.25rem 1.25rem; }
.product-card__body h2 { margin: 0 0 .25rem; font-size: 1.2rem; }

.price { font-weight: 800; font-size: 1.3rem; color: var(--ink); margin: .25rem 0; }
.price--big { font-size: 2rem; color: var(--accent); }

.stock { margin: .25rem 0 1rem; font-size: .9rem; }
.in-stock { color: var(--ok); }
.out-stock { color: var(--accent); }

.btn {
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { text-decoration: none; background: #f3ede1; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #a50d25; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}
.product-detail__image { text-align: center; background: #fdfbf6; border-radius: 8px; padding: 1rem; }
.product-detail__image img { max-width: 100%; height: auto; }
.crumbs { margin-bottom: .5rem; font-size: .9rem; }
.description { color: var(--muted); }
.specs { padding-left: 1.1rem; color: var(--ink); }
.specs li { margin: .2rem 0; }

@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
}

.checkout, .confirmation {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 520px;
}
.order-form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem; }
.order-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
.order-form input, .order-form textarea {
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}
.order-form textarea { min-height: 3.5rem; resize: vertical; }
.note { color: var(--muted); font-size: .85rem; }

.alert { padding: .7rem 1rem; border-radius: 8px; }
.alert--error { background: #fdecec; color: var(--accent); border: 1px solid #f4c6c6; }

.confirmation { text-align: center; }
.confirmation__badge {
  width: 56px; height: 56px; line-height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ok); color: #fff;
  font-size: 1.8rem;
}
.order-summary { text-align: left; margin: 1.25rem 0; }
.order-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.order-summary dt { color: var(--muted); margin: 0; }
.order-summary dd { margin: 0; font-weight: 600; text-align: right; }

.site-footer { max-width: 960px; margin: 2rem auto; padding: 1rem 1.5rem; color: var(--muted); font-size: .85rem; text-align: center; }
