/* LitBuy Spreadsheet België — hand-authored stylesheet (no framework, no external assets) */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --muted-2: #767065;
  --accent: #9a3324;        /* oxidised red */
  --accent-ink: #ffffff;
  --line: #e6e1d8;
  --line-strong: #d6cfc2;
  --band: #f4f1ea;
  --focus: #1b4d8f;
  --maxw: 1240px;
  --readw: 68ch;
  --radius: 8px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gap-grid: 20px;
  --section-gap: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-synthesis-weight: none;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
h1, h2, h3 { text-wrap: balance; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 8px; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand span { color: var(--accent); }
.nav-toggle {
  display: none;
  font: 600 14px/1 var(--font); color: var(--ink);
  background: transparent; border: 1px solid var(--line-strong);
  padding: 9px 14px; border-radius: 6px; cursor: pointer; min-height: 40px;
}
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-secondary { border-left: 1px solid var(--line); padding-left: 12px; }
.site-nav a {
  display: inline-block; font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 8px 10px; border-radius: 6px; line-height: 1.2;
}
.site-nav a:hover { background: var(--band); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.header-search {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; padding-top: 2px;
}
.search { display: flex; gap: 8px; flex: 1 1 320px; min-width: 0; max-width: 560px; }
.search input {
  flex: 1 1 auto; min-width: 0;
  font: 400 15px/1.4 var(--font); color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface);
}
.search button {
  flex: 0 0 auto; font: 600 15px/1 var(--font);
  background: var(--accent); color: var(--accent-ink); border: 0;
  padding: 0 16px; min-height: 42px; border-radius: 6px; cursor: pointer;
}
.search button:hover { background: #822a1d; }
.search-hint { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- generic layout ---------- */
main { display: block; }
.band { padding-block: 4px; }
.page-head { padding-top: 32px; }
.page-head h1, .hero h1 { margin: 0 0 12px; }
.lead { font-size: 17px; color: var(--muted-2); max-width: var(--readw); margin: 0 0 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px 16px; flex-wrap: wrap; margin: 0 0 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.section-head h2 { margin: 0; }
.section-more { font-size: 14px; font-weight: 600; white-space: nowrap; }
.count { color: var(--muted); font-weight: 400; font-size: 0.7em; }

h1 { font-size: 48px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.small { font-size: 14px; }

/* ---------- hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: 40px 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.hero-lead { font-size: 17px; color: var(--muted-2); max-width: var(--readw); margin: 0 0 20px; }
.hero .search { max-width: 620px; }
.hero-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* main vertical rhythm: single owner via stack gap */
main > .band + .band,
main > .wrap.band { }
main { }
.band { margin-block: 0; }
main > .hero + * { margin-top: var(--section-gap); }
main > .band ~ .band { margin-top: var(--section-gap); }
.page-head + .band, main > .page-head { }
main > *:not(.hero):not(.breadcrumb) + .band { margin-top: var(--section-gap); }

/* ---------- category quick links ---------- */
.cat-quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-quick a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: var(--ink); min-height: 44px;
}
.cat-quick a:hover { border-color: var(--accent); }
.cq-label { font-weight: 600; }
.cq-count { font-size: 13px; color: var(--muted); }

/* ---------- product grid ---------- */
.home-cat { margin-top: 40px; }
.home-cat:first-child { margin-top: 0; }
.cat-section { margin-top: 44px; }
.cat-section:first-child { margin-top: 0; }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--gap-grid);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
  min-width: 0;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.card-media {
  display: block; aspect-ratio: 1 / 1; background: var(--band);
  border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; overflow-wrap: break-word; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: underline; }
.card-price { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.price-cny { font-weight: 700; font-size: 15px; }
.price-eur { color: var(--muted); font-size: 13px; }
.card .btn { margin-top: auto; }

.grid-note {
  grid-column: 1 / -1; min-width: 0;
  background: var(--band); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 14px 16px;
}
.grid-note p { margin: 0; font-size: 14px; color: var(--muted-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font: 600 15px/1 var(--font); padding: 11px 16px; border-radius: 6px;
  min-height: 42px; box-sizing: border-box; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #822a1d; }
.btn-quiet {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); font-size: 14px; padding: 10px 14px;
}
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- two column info ---------- */
.twocol { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .twocol { grid-template-columns: 1fr 1fr; gap: 40px; } }
.twocol h2 { font-size: 22px; }
.twocol p { max-width: 60ch; }

/* ---------- Q&A / definition lists ---------- */
.qa { margin: 0; }
.qa dt { font-weight: 700; margin-top: 18px; }
.qa dd { margin: 6px 0 0; color: var(--muted-2); max-width: var(--readw); }
.qa.faq dt { font-size: 17px; }
.more { margin-top: 20px; }

/* ---------- jump nav ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jump a {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; background: var(--surface);
  min-height: 40px; display: inline-flex; align-items: center;
}
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.sub-links { font-size: 14px; color: var(--muted); }

/* ---------- breadcrumb ---------- */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb ol {
  list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 13px; padding-block: 10px;
}
.breadcrumb li { color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "\203a"; margin-left: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--ink); }

/* ---------- article ---------- */
.article { padding-top: 32px; padding-bottom: 8px; }
.article.narrow, .article-head, .article > h2, .article > h3, .article > p,
.article > ol, .article > ul { max-width: var(--readw); }
.article-head { margin-bottom: 20px; }
.article h2 { font-size: 22px; margin-top: 32px; }
.article h3 { margin-top: 22px; }
.article p { margin: 0 0 14px; }
.article .lead { max-width: var(--readw); }
.steps, .legal-list { max-width: var(--readw); padding-left: 22px; }
.steps li, .legal-list li { margin-bottom: 10px; }
.links { list-style: none; padding: 0; max-width: var(--readw); }
.links li { margin-bottom: 8px; }
.article-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: var(--readw); }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; background: var(--band); padding: 1px 5px; border-radius: 4px; }

/* comparison table (guides) */
.ctable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.ctable caption { text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ctable th, .ctable td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.ctable thead th { background: var(--band); }
.ctable tbody th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* guide list */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-list a {
  display: block; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.guide-list a:hover { border-color: var(--accent); }
.guide-list h2 { font-size: 18px; margin: 0 0 8px; }
.guide-list p { margin: 0; font-size: 14px; color: var(--muted-2); }

/* ---------- product detail ---------- */
.product { padding-top: 28px; }
.product-top { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .product-top { grid-template-columns: minmax(0, 440px) 1fr; gap: 36px; } }
.product-media {
  background: var(--band); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; max-width: 100%;
}
.product-media img { width: 100%; height: auto; object-fit: contain; }
.product-info { min-width: 0; }
.product-info h1 { font-size: 30px; line-height: 1.2; margin: 6px 0 14px; }
.product-cat a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.product-price { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0 0 10px; }
.product-price .price-cny { font-size: 24px; }
.product-price .price-eur { font-size: 15px; }
.price-fine, .cta-fine { font-size: 13px; color: var(--muted); max-width: 62ch; margin: 8px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.product-notes { margin-top: 40px; max-width: var(--readw); }
.product-notes h2 { font-size: 20px; margin: 24px 0 8px; }
.product-notes p { margin: 0; color: var(--muted-2); }
.product .band[aria-labelledby="rel-h"] { margin-top: 48px; max-width: none; }
.product h2#rel-h { font-size: 22px; margin-bottom: 16px; }

/* ---------- notice ---------- */
.notice { border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; max-width: var(--readw); }
.notice-blocker { background: #fdf3f1; border: 1px solid #e6b8ad; }
.notice p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 64px; padding-block: 40px 32px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { font-size: 14px; color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-notes { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-notes p { font-size: 13px; color: var(--muted); max-width: 90ch; margin: 0 0 10px; }
.foot-meta { color: var(--muted-2); }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  h1 { font-size: 32px; line-height: 1.2; }
  h2 { font-size: 22px; }
  h3 { font-size: 16px; }
  body { font-size: 15px; line-height: 1.6; }
  .lead, .hero-lead { font-size: 16px; }
  :root { --gap-grid: 14px; --section-gap: 40px; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .nav-secondary { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav-secondary a { border-bottom: 1px solid var(--line); }
  .product-info h1 { font-size: 24px; }
  .product-price .price-cny { font-size: 21px; }
  .card-body { padding: 12px 12px 14px; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
