:root {
  color-scheme: dark;
  --bg: #101419;
  --surface: #181e26;
  --text: #edf1f6;
  --muted: #a5afbc;
  --line: #2c3541;
  --accent: #91baff;
  --action: #295ca8;
  --danger: #ffada6;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }

button, .button {
  min-height: 44px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 8px; padding: 10px 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
button:hover, .button:hover { border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

input {
  width: 100%; min-height: 48px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 8px; padding: 12px;
}

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

header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 84px; gap: 14px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: bold; color: var(--text); }
.brand span { display: inline-block; }
.brand small { display: block; font-size: 10px; font-weight: normal; letter-spacing: 1px; color: var(--muted); }
.brand-mark { display: block; height: 36px; width: auto; background: #fff; border-radius: 6px; padding: 3px 5px; }

main { min-height: 65vh; padding-top: 30px !important; padding-bottom: 110px !important; }

h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -1px; font-weight: 500; margin: 14px 0; }
h2 { font-size: 21px; font-weight: 500; }
p, .muted { color: var(--muted); }

.link { color: var(--accent); }

/* ---- homepage ---- */
.hero { padding: 8px 0 12px; }
.hero .eyebrow { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.hero .lede { font-size: 17px; color: var(--text); max-width: 62ch; margin: 0 0 22px; }
.hero .notice { font-size: 13px; color: var(--muted); margin-top: 22px; }

.section { padding: 28px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 14px; }
.section p { margin: 0 0 12px; }

/* Contact facts: hairline rows, not cards — these are not links. */
.facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 35px; }
.facts li { border-bottom: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-weight: 500; }
.facts span { color: var(--muted); font-size: 13px; }

/* "What we supply" cards: each one taps straight into its catalogue category. */
.supply-cards { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.supply-cards li { min-width: 0; }
.supply-cards a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.supply-cards a:hover { border-color: var(--accent); }
/* Seven categories in two columns: let the last card span the row so the grid
   closes square instead of leaving an orphan cell. Harmless in one column. */
.supply-cards li:last-child { grid-column: 1 / -1; }
.supply-cards .card-text { min-width: 0; }
.supply-cards strong { display: block; font-weight: 500; font-size: 15px; }
.supply-cards .note { display: block; color: var(--muted); font-size: 13px; }
.supply-cards .symbol { font-size: 22px; width: 30px; }
.supply-cards .arrow { margin-left: auto; color: var(--muted); }

.steps { list-style: decimal; padding-left: 22px; margin: 0 0 12px; color: var(--text); }
.steps li { margin: 8px 0; }
.steps strong { font-weight: 500; }

/* ---- catalogue / product / cart (unchanged behaviour) ---- */
.search { display: block; margin: 26px 0; }
.search span { display: block; font-size: 13px; margin-bottom: 7px; color: var(--muted); }

.categories { display: grid; grid-template-columns: 1fr 1fr; gap: 0 35px; }
.category { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 21px 0; color: var(--text); }
.category strong { display: block; font-size: 16px; font-weight: 500; }
.category small { color: var(--muted); font-size: 12px; }
.symbol { font-size: 25px; color: var(--accent); width: 40px; text-align: center; }
.arrow { margin-left: auto; color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--surface); min-width: 0; }
.product h2 { font-size: 16px; overflow-wrap: anywhere; line-height: 1.45; margin: 0 0 9px; }
.product h2 a { color: var(--text); }
.unit { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.qty { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qty input { width: 68px; text-align: center; padding: 8px; }
/* Only the - and + of the stepper are square; the add button is a real button. */
.qty .step { width: 44px; padding: 0; }
.qty button.primary { width: 100%; justify-content: center; }
@media (min-width: 601px) { .qty button.primary { width: auto; } }

.primary { background: var(--action); border-color: var(--action); color: #fff; }
.list-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.list-row h2 { font-size: 17px; overflow-wrap: anywhere; }
.remove { color: var(--danger); margin-top: 12px; background: none; }

.tray {
  position: fixed; bottom: 16px; left: 20px; right: 20px;
  max-width: 650px; margin: auto;
  background: var(--action); color: white;
  border-radius: 10px; padding: 14px 18px;
  display: flex; justify-content: space-between;
  box-shadow: 0 4px 24px #0008;
}
.tray a { color: #fff; font-weight: bold; }

.message {
  white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--surface); padding: 18px;
  border: 1px solid var(--line); border-radius: 10px;
  font: 14px/1.6 Arial, sans-serif;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.notice { padding: 20px 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 24px 0 100px; font-size: 12px; color: var(--muted); }

[hidden] { display: none !important; }

@media (max-width: 600px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .categories, .products, .facts, .supply-cards { grid-template-columns: 1fr; }
  .product { padding: 18px; }
  .category { padding: 20px 0; }
  header .button { font-size: 13px; padding: 9px; }
  .actions > * { width: 100%; }
  h1 { max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
