/* sugargoospreadsheet.nl — handgeschreven stylesheet
   Onafhankelijke productgids (Sugargoo-thema). Geen framework, geen CDN. */

:root {
  --bg: #ffffff;
  --bg-warm: #faf7f1;
  --bg-warm-2: #f4efe5;
  --ink: #20241f;
  --ink-soft: #3a3e38;
  --muted: #63665f;
  --muted-2: #86887f;
  --line: #e5e0d6;
  --line-strong: #d3ccbe;
  --accent: #9c5f1f;        /* oker — knoppen/accenten */
  --accent-ink: #86500f;    /* oker voor tekstlinks (AA op wit) */
  --accent-hover: #82501a;
  --accent-soft: #f6eede;
  --accent-line: #e4d3b6;
  --focus: #1d5fb0;
  --ok: #2f6b3a;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --maxw: 1200px;
  --radius: 8px;
  --radius-sm: 5px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); }
a:hover { color: var(--accent-hover); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

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

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; }
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; }
p { margin: 0 0 1em; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 12px;
}
.prose { max-width: 68ch; overflow-wrap: anywhere; }
.prose p, .prose li { color: var(--ink-soft); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9em; background: var(--bg-warm-2); color: var(--ink);
  padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; word-break: break-word;
}
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: 0 0 .5em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 62px; padding: 8px 20px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 800;
}
.brand-name { font-size: 17px; line-height: 1.1; }
.brand-tld { color: var(--muted); font-weight: 600; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.primary-nav a, .navdrop > summary {
  display: inline-block; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 8px 12px; border-radius: 6px; cursor: pointer;
}
.primary-nav a:hover, .navdrop > summary:hover { background: var(--bg-warm-2); color: var(--ink); }
.navdrop { position: relative; }
.navdrop > summary { list-style: none; }
.navdrop > summary::-webkit-details-marker { display: none; }
.navdrop > summary::after { content: "▾"; font-size: 10px; margin-left: 5px; color: var(--muted); }
.navdrop[open] > summary { background: var(--bg-warm-2); color: var(--ink); }
.navdrop-panel {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(40,34,20,0.12); padding: 6px; min-width: 230px;
}
.navdrop-panel a { display: block; padding: 9px 12px; border-radius: 6px; }
.navdrop-panel a span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

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

/* Mobiel menu */
.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; max-width: var(--maxw); margin: 0 auto; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.mobile-nav .grp { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); padding: 14px 4px 4px; }

/* ---------- Zoekbalk ---------- */
.searchbar { border-top: 1px solid var(--line); background: var(--bg-warm); }
.search-form { display: flex; gap: 10px; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto; align-items: stretch; }
.search-form.inpage { padding: 0; background: none; border: 0; max-width: 720px; }
.search-input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink);
}
.search-input::placeholder { color: var(--muted-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  padding: 12px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--bg-warm-2); color: var(--ink); }
.btn-block { width: 100%; }
.search-note { font-size: 13px; color: var(--muted); padding: 0 20px 12px; max-width: var(--maxw); margin: 0 auto; }

/* ---------- Layout / secties ---------- */
main { display: block; }
.stack { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding-block: 0; margin-block: 56px; }
.section:first-child { margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.section-head .link-more { font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 8px; }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 60ch; margin: 0 0 22px; }
.hero h1 { max-width: 16ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.hero-meta b { color: var(--ink-soft); font-weight: 600; }

/* ---------- Categorie-tegels ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-tile {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff;
  transition: border-color .12s ease, transform .12s ease;
}
.cat-tile:hover { border-color: var(--accent-line); color: var(--ink); }
.cat-tile .count { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.cat-tile h3 { margin: 8px 0 6px; font-size: 20px; }
.cat-tile p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Productraster ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  text-decoration: none; color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.card:hover { border-color: var(--accent-line); box-shadow: 0 6px 18px rgba(40,34,20,0.07); color: var(--ink); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-warm-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-cat {
  position: absolute; left: 8px; top: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,0.94); color: var(--ink-soft);
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line);
}
.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: auto; }
.price-eur { font-size: 15px; font-weight: 700; color: var(--ink); }
.price-cny { font-size: 12px; color: var(--muted); }
.price-approx { font-size: 11px; color: var(--muted-2); }
.price-none { font-size: 13px; color: var(--muted); }

/* ---------- Info-blokken ---------- */
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 24px; }
.panel.warm { background: var(--bg-warm); border-color: var(--accent-line); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }

/* Prijs-opbouw module */
.cost-list { list-style: none; margin: 0; padding: 0; }
.cost-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cost-list li:last-child { border-bottom: 0; }
.cost-list .n { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.cost-list b { display: block; font-size: 15px; }
.cost-list span { font-size: 14px; color: var(--muted); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Notice / disclosure */
.notice { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--ink-soft); }
.notice.plain { background: var(--bg-warm); border-color: var(--line); }
.notice strong { color: var(--ink); }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--muted-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Chips / subnavigatie */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); background: #fff; }
.chip:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Productdetail ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 8px; }
.pd-media { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-warm-2); }
.pd-media img { width: 100%; height: auto; }
.pd-info h1 { font-size: 30px; line-height: 1.2; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.pd-price .eur { font-size: 30px; font-weight: 800; }
.pd-price .cny { font-size: 16px; color: var(--muted); }
.pd-facts { list-style: none; margin: 18px 0; padding: 0; border-top: 1px solid var(--line); }
.pd-facts li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-facts .k { flex: none; width: 130px; color: var(--muted); }
.pd-facts .v { color: var(--ink-soft); }
.cta-stack { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 12px; }

/* ---------- Definitielijst / faq ---------- */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 2px; position: relative; font-weight: 600; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 20px; color: var(--accent); font-weight: 400; }
.qa details[open] summary::after { content: "–"; }
.qa .answer { padding: 0 2px 18px; color: var(--ink-soft); }
.qa .answer p:last-child { margin-bottom: 0; }

/* ---------- Gidsen-lijst ---------- */
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; color: var(--ink); background: #fff; }
.guide-card:hover { border-color: var(--accent-line); color: var(--ink); }
.guide-card h3 { margin: 4px 0 6px; }
.guide-card p { margin: 0; font-size: 14px; color: var(--muted); }
.guide-card .kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }

/* ---------- Empty state ---------- */
.empty { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); background: var(--bg-warm); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg-warm); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-inner h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { margin: 0 0 8px; }
.footer-inner a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; color: var(--accent-ink); }
.footer-about p { font-size: 14px; color: var(--muted); max-width: 40ch; margin: 10px 0 0; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* ---------- Cookiebanner ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(30,26,16,0.18); padding: 18px 18px 16px;
}
.consent p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.consent .row { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Utilities ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 40px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.center { text-align: center; }
.mt0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .pd { grid-template-columns: 1fr; gap: 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .guide-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 32px; line-height: 1.2; }
  h2 { font-size: 22px; }
  h3 { font-size: 16px; }
  body { font-size: 15px; line-height: 1.6; }
  .section { margin-block: 40px; }
  .section:first-child { margin-top: 28px; }
  .hero { padding: 28px 0 4px; }
  .hero .lead { font-size: 16px; }
  .cat-tiles { grid-template-columns: 1fr; gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card-title { font-size: 13px; }
  .search-form { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pd-facts .k { width: 108px; }
}
@media (max-width: 380px) {
  .product-grid { gap: 10px; }
}

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