/* Oopbuy Sheets België — één handgeschreven stylesheet, geen framework, geen CDN. */

:root {
  --bg: #ffffff;
  --panel: #f6f7f7;
  --panel-2: #eef1f0;
  --line: #e2e6e5;
  --line-strong: #cfd6d4;
  --ink: #1b2321;
  --ink-2: #46524f;
  --ink-3: #6a7572;
  --teal: #0c6b62;
  --teal-strong: #0a564f;
  --teal-tint: #e7f1ef;
  --amber-line: #b9791f;
  --amber-tint: #fbf3e6;
  --maxw: 1240px;
  --readw: 68ch;
  --radius: 8px;
  --gap-section: 56px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { 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;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-strong); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
}
.header-top {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.brand b span { color: var(--teal); }
.brand small { font-size: 12px; font-weight: 500; color: var(--ink-3); }

.search {
  display: flex; align-items: stretch; gap: 0;
  flex: 1 1 340px; min-width: 0; max-width: 520px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
}
.search input {
  flex: 1 1 auto; min-width: 0; border: 0; padding: 9px 12px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
}
.search input:focus { outline: none; }
.search button {
  flex: 0 0 auto; border: 0; background: var(--teal-strong); color: #fff;
  padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.search button:hover { background: var(--teal); }
.search-note { font-size: 12px; color: var(--ink-3); margin: 6px 20px 0; max-width: var(--maxw); }

.nav-toggle {
  display: none; margin-left: auto;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

.main-nav { border-top: 1px solid var(--line); background: var(--bg); }
.main-nav ul {
  display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 4px 12px;
  max-width: var(--maxw); flex-wrap: wrap;
}
.main-nav a {
  display: block; padding: 8px 12px; color: var(--ink-2); text-decoration: none;
  font-size: 14px; font-weight: 500; border-radius: 6px;
}
.main-nav a:hover { background: var(--panel); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--teal-strong); font-weight: 600; }

/* ---------- Layout rhythm ---------- */
main { display: block; }
.stack > * { margin: 0; }
.section { padding: 0 20px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.page-stack { display: flex; flex-direction: column; gap: var(--gap-section); padding: 40px 0 8px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }

h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: 48px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Hero ---------- */
.hero .section-inner { max-width: var(--maxw); }
.hero p.lead { margin-bottom: 18px; }
.hero-search { max-width: 560px; }
.hero-search .search { max-width: none; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.hero-meta div { min-width: 0; }
.hero-meta b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); }
.hero-meta span { font-size: 13px; color: var(--ink-3); }

/* ---------- Category strip ---------- */
.cat-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-card {
  flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--ink); background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
}
.cat-card:hover { border-color: var(--line-strong); background: var(--panel); }
.cat-card b { font-size: 17px; font-weight: 700; }
.cat-card .count { font-size: 13px; color: var(--ink-3); }
.cat-card .range { font-size: 13px; color: var(--ink-2); }

/* ---------- Sheet / table ---------- */
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sheet-head p { margin: 0; color: var(--ink-3); font-size: 14px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.toolbar label, .toolbar .group > span:first-child { font-size: 13px; color: var(--ink-3); }
.chip-btn {
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-2);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.chip-btn[aria-pressed="true"] { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-strong); font-weight: 600; }
.js-note { font-size: 12px; color: var(--ink-3); }
.js-only { display: none; }
.js .toolbar.js-only { display: flex; }

.sheet-scroll { width: 100%; overflow-x: auto; }
table.sheet { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sheet caption { text-align: left; color: var(--ink-3); font-size: 13px; padding-bottom: 8px; caption-side: top; }
table.sheet thead th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-3); padding: 8px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
table.sheet th.num, table.sheet td.num { text-align: right; }
table.sheet tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.sheet tbody tr:hover { background: var(--panel); }
.thumb {
  width: 60px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--panel-2);
  border: 1px solid var(--line); display: block;
}
.cell-title { min-width: 0; }
.cell-title a { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cell-title a:hover { color: var(--teal-strong); text-decoration: underline; }
.price-eur { font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-cny { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 500; color: var(--teal-strong);
  background: var(--teal-tint); border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.cell-actions { white-space: nowrap; display: flex; gap: 8px; flex-wrap: wrap; }
.link-inline { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-inline.ext::after { content: " \2197"; font-weight: 400; }

.empty-row td { color: var(--ink-3); font-style: italic; padding: 18px 12px; }
.sheet-more { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 15px; font-weight: 600; border-radius: var(--radius); padding: 11px 18px; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--teal-strong); color: #fff; }
.btn-primary:hover { background: var(--teal); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); }
.btn.ext::after { content: "\2197"; font-weight: 400; }

/* ---------- Prose panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-2 > * { min-width: 0; }
.note {
  border-left: 3px solid var(--amber-line); background: var(--amber-tint);
  padding: 14px 16px; border-radius: 0 6px 6px 0; font-size: 14px; color: var(--ink-2);
}
.note b { color: var(--ink); }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--teal); background: var(--bg);
  padding: 14px 16px; border-radius: 0 6px 6px 0; font-size: 14px;
}

/* ---------- Article ---------- */
.article { max-width: var(--readw); }
.article h2 { margin-top: 34px; }
.article h3 { margin-top: 22px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article .lead { margin-bottom: 22px; }

dl.fields { margin: 0; }
dl.fields div { padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.fields dt { font-weight: 700; color: var(--ink); }
dl.fields dd { margin: 4px 0 0; color: var(--ink-2); }

table.def { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
table.def th, table.def td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.def thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-3); }

.breadcrumb { font-size: 13px; color: var(--ink-3); padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { text-decoration: none; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--teal); }

/* ---------- Product detail ---------- */
.product-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.product-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.product-media img { display: block; width: 100%; height: auto; }
.product-media.noratio { aspect-ratio: 1 / 1; }
.product-media.noratio img { width: 100%; height: 100%; object-fit: cover; }
.media-cap { font-size: 12px; color: var(--ink-3); padding: 8px 12px; border-top: 1px solid var(--line); }
.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.price-block .eur { font-size: 30px; font-weight: 800; }
.price-block .cny { font-size: 15px; color: var(--ink-3); }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.spec-list { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-list li span:first-child { color: var(--ink-3); }
.spec-list li span:last-child { text-align: right; overflow-wrap: anywhere; }

.related { margin-top: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-grid > * { min-width: 0; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--bg); display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--line-strong); }
.pcard .ph { aspect-ratio: 1 / 1; background: var(--panel-2); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .pb { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.pcard .pt { font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pcard .pp { font-size: 13px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { margin: 0 0 6px; }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- Colofon status ---------- */
.status-banner {
  border: 1px solid var(--amber-line); background: var(--amber-tint); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 8px;
}
.status-banner b { color: var(--ink); }
ul.req { list-style: none; margin: 0; padding: 0; }
ul.req li { padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.req li b { display: block; }
.badge-out { display: inline-block; font-size: 12px; font-weight: 600; color: #7a4708; background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: 999px; padding: 1px 9px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 64px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 34px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.footer-inner > div { min-width: 0; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.footer-about p { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; }
.footer-about b { color: var(--ink-2); font-size: 14px; }
.footer-legal { border-top: 1px solid var(--line); }
.footer-legal .wrap { padding: 16px 20px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.center-page { text-align: center; padding: 60px 20px; max-width: 620px; margin: 0 auto; }
.center-page .btn { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@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 { font-size: 16px; }
  :root { --gap-section: 40px; }
  .page-stack { padding: 28px 0 8px; }

  .js .nav-toggle { display: inline-block; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 6px; }
  .main-nav a { padding: 11px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }

  /* table -> stacked cards */
  table.sheet, table.sheet thead, table.sheet tbody, table.sheet tr, table.sheet td { display: block; width: 100%; }
  table.sheet thead { position: absolute; left: -9999px; }
  table.sheet caption { caption-side: top; }
  table.sheet tbody tr {
    border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 10px 12px;
    display: grid; grid-template-columns: 60px 1fr; gap: 4px 12px; align-items: center;
  }
  table.sheet tbody td { border: 0; padding: 3px 0; }
  table.sheet td.cell-thumb { grid-row: span 2; }
  table.sheet td[data-label]::before {
    content: attr(data-label) ": "; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--ink-3); font-weight: 600; margin-right: 4px;
  }
  table.sheet td.cell-thumb::before { content: none; }
  table.sheet td.cell-title { grid-column: 2; }
  table.sheet td.cell-price, table.sheet td.cell-cat, table.sheet td.cell-actions { grid-column: 1 / -1; }
  table.sheet td.num { text-align: left; }
  .cell-actions { margin-top: 4px; }
}

@media (max-width: 460px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}

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