/* Proper Lekker — butcher's-deli identity
   charcoal #171412 · oxblood #5a1e1a · bone #e8e1d3 · brass #c08a3e · chilli #a4331f */

:root {
  --charcoal: #171412;
  --charcoal-2: #211c19;
  --oxblood: #5a1e1a;
  --oxblood-deep: #3d1512;
  --bone: #e8e1d3;
  --bone-dim: #b6ad9c;
  --brass: #c08a3e;
  --chilli: #a4331f;
  --line: #3a322c;

  --mono: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --body: "Instrument Sans", system-ui, sans-serif;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1;
}
.brand span { color: var(--chilli); }
.cart-link {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bone);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 2px;
}
.cart-link:hover { border-color: var(--brass); text-decoration: none; }
.cart-count { color: var(--brass); }

/* ---------- hero ---------- */
.hero {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(90,30,26,0.55), transparent 60%),
    var(--charcoal);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero h1 em { color: var(--chilli); font-style: normal; }
.hero p {
  max-width: 46ch;
  color: var(--bone-dim);
  font-size: 18px;
  margin: 0;
}

/* ---------- products ---------- */
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 40px 0 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

/* weigh-tag card */
.card {
  position: relative;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
}
.card::before { /* the punched string-hole of a butcher's tag */
  content: "";
  position: absolute; top: 14px; left: 14px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid var(--line);
}
.card-thumb {
  height: 150px; border-radius: 2px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--oxblood), var(--oxblood-deep));
  background-size: cover; background-position: center;
}
.card h3 {
  font-family: var(--display);
  font-weight: 700; font-size: 25px; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 6px;
}
.card p { color: var(--bone-dim); font-size: 14px; margin: 0 0 16px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--mono); font-size: 20px; color: var(--bone); }
.stock-note { font-family: var(--mono); font-size: 12px; color: var(--bone-dim); }
.stock-out { color: var(--chilli); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 14px; letter-spacing: 0.04em;
  border: 0; border-radius: 2px; cursor: pointer;
  padding: 11px 18px;
  background: var(--brass); color: #201607;
  text-transform: uppercase; font-weight: 600;
}
.btn:hover { background: #d69a4a; }
.btn:disabled { background: var(--line); color: var(--bone-dim); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brass); background: transparent; }
.btn-block { width: 100%; padding: 15px; font-size: 15px; }

/* ---------- cart / checkout ---------- */
.page-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 6vw, 64px); text-transform: uppercase;
  margin: 48px 0 8px; line-height: 1;
}
.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 24px 0 96px; align-items: start; }
.panel { background: var(--charcoal-2); border: 1px solid var(--line); border-radius: 3px; padding: 24px; }
.panel h2 { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: 0.03em; margin: 0 0 18px; }

.cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .name { font-weight: 600; }
.cart-row .unit { font-family: var(--mono); font-size: 13px; color: var(--bone-dim); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--charcoal); color: var(--bone); border-radius: 2px; cursor: pointer; font-size: 16px; }
.qty span { font-family: var(--mono); min-width: 22px; text-align: center; }
.line-total { font-family: var(--mono); min-width: 82px; text-align: right; }
.remove { background: none; border: 0; color: var(--bone-dim); cursor: pointer; font-size: 12px; text-decoration: underline; }

.totals { margin-top: 8px; }
.totals .row { display: flex; justify-content: space-between; font-family: var(--mono); padding: 7px 0; color: var(--bone-dim); }
.totals .row.grand { color: var(--bone); font-size: 20px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.ship-note { font-size: 12px; color: var(--bone-dim); margin-top: 10px; font-family: var(--mono); }

.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 12px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--charcoal); color: var(--bone);
  font-family: var(--body); font-size: 15px;
}
.field input:focus { border-color: var(--brass); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.rep-tag { font-family: var(--mono); font-size: 12px; color: var(--brass); margin-top: 4px; }
.form-error { color: var(--chilli); font-family: var(--mono); font-size: 13px; min-height: 18px; margin-top: 6px; }

.empty { color: var(--bone-dim); padding: 40px 0; }

/* ---------- return pages ---------- */
.result { max-width: 560px; margin: 96px auto; text-align: center; padding: 0 24px; }
.result h1 { font-family: var(--display); text-transform: uppercase; font-size: 52px; margin: 0 0 12px; }
.result p { color: var(--bone-dim); }
.result .ref { font-family: var(--mono); color: var(--brass); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--bone-dim); font-family: var(--mono); font-size: 12px; }

@media (max-width: 820px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
