/* sugargoospreadsheet.be - handgeschreven stylesheet
   Kleuren: helder wit, diep blauwgroen accent, zacht zandkleurige zones. */

:root {
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --ink: #16292b;          /* hoofdtekst */
  --ink-soft: #536063;     /* secundaire tekst */
  --ink-faint: #7d888b;
  --line: #e0e7e7;         /* randen */
  --line-soft: #eef2f2;
  --bg: #ffffff;
  --bg-page: #fbfcfc;
  --bg-soft: #f4f8f7;

  --teal: #0e5f5a;         /* diep blauwgroen accent */
  --teal-dark: #0a4642;
  --teal-ink: #0b4c48;
  --sand: #efe6ce;         /* zacht zand voor zone-labels */
  --sand-line: #e3d6b4;
  --sand-ink: #6c5a2c;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16,41,43,.06), 0 6px 20px rgba(16,41,43,.05);
  --maxw: 1240px;
  --maxw-text: 72ch;
}

* { 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-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-ink); text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }

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

h1, h2, h3, p, ul, ol { margin: 0; }

/* ---------- lay-out helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

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

/* ---------- header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding-block: 12px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink);
  text-decoration: none; line-height: 1.2;
}
.brand:hover { color: var(--ink); }
.brand b { color: var(--teal); font-weight: 800; }
.brand span { font-weight: 500; color: var(--ink-soft); font-size: 13px; }

.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: flex-start;
}
.main-nav a {
  display: inline-block; padding: 7px 11px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--teal-ink); }
.main-nav a[aria-current="page"] { color: var(--teal-ink); background: var(--bg-soft); font-weight: 600; }

.header-search { flex: 0 1 300px; min-width: 200px; }

/* ---------- zoekformulier ---------- */
.search-form { display: flex; gap: 8px; }
.search-form label { position: absolute; left: -9999px; }
.search-form input[type="search"] {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 15px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.search-form input[type="search"]:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.header-search .search-form input[type="search"] { padding: 8px 11px; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; min-height: 44px;
}
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--teal-ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--teal-dark); }
.header-search .btn { padding: 8px 14px; min-height: 40px; font-size: 14px; }

/* ---------- main stack ---------- */
main { display: block; }
.stack {
  display: flex; flex-direction: column; gap: 56px;
  padding-block: 40px 64px;
}
.section { }
.section > .section-head { margin-bottom: 24px; }
.section-head p.lead { margin-top: 8px; color: var(--ink-soft); max-width: var(--maxw-text); }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sand-ink); background: var(--sand); border: 1px solid var(--sand-line);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

h1 { font-size: 48px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
p { max-width: var(--maxw-text); }
small, .small { font-size: 14px; }

/* ---------- hero ---------- */
.hero { }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 { max-width: 20ch; }
.hero .hero-sub { margin-top: 14px; font-size: 17px; color: var(--ink-soft); max-width: 60ch; }
.hero-search { margin-top: 22px; max-width: 560px; }
.hero-search .search-form input[type="search"] { padding: 13px 15px; font-size: 16px; }
.hero-search .note { margin-top: 8px; font-size: 13px; color: var(--ink-faint); }

/* ---------- kaartrooster ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  text-decoration: none; color: inherit;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
a.card:hover { border-color: var(--sand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: auto; font-size: 14px; color: var(--ink-soft); }
.card-price b { color: var(--ink); font-weight: 700; }

/* ---------- categorie-index tegels ---------- */
.cat-tiles { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.cat-tile {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px;
  min-width: 0; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.cat-tile:hover { border-color: var(--sand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile h3 { font-size: 20px; color: var(--ink); }
.cat-tile .count { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--teal); }
.cat-tile p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.cat-tile .go { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal-ink); }

/* ---------- panelen / info ---------- */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px 24px;
}
.panel.sand { background: #fbf7ec; border-color: var(--sand-line); }
.panel h2, .panel h3 { margin-bottom: 10px; }
.panel p + p { margin-top: 12px; }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }

.linklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.linklist a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink);
}
.linklist a:hover { color: var(--teal-dark); }
.linklist a span.desc { color: var(--ink-soft); font-size: 14px; font-weight: 400; text-align: right; }
.linklist a b { font-weight: 600; }

/* ---------- breadcrumb ---------- */
.crumbs { padding-block: 14px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 13px; color: var(--ink-faint); }
.crumbs li::after { content: "›"; margin-left: 6px; color: var(--ink-faint); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--teal-dark); }
.crumbs li[aria-current="page"] { color: var(--ink); }

/* ---------- artikel / tekstpagina ---------- */
.prose { max-width: var(--maxw-text); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li { max-width: 70ch; }
.prose .callout {
  border: 1px solid var(--sand-line); background: #fbf7ec; border-radius: var(--radius);
  padding: 16px 18px; font-size: 15px;
}
.prose .callout strong { color: var(--sand-ink); }
.prose a { font-weight: 500; }

/* ---------- product-detail ---------- */
.product-top { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 36px; align-items: start; }
.product-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.product-media img { width: 100%; height: auto; }
.product-info h1 { font-size: 32px; line-height: 1.2; }
.product-info .card-cat { font-size: 12.5px; margin-bottom: 12px; }
.price-box { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.price-box .eur { font-size: 24px; font-weight: 800; color: var(--ink); }
.price-box .cny { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.price-box .fine { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cta-row .btn { flex: 0 1 auto; }
.disclose {
  margin-top: 16px; font-size: 13.5px; color: var(--ink-soft);
  border-left: 3px solid var(--sand-line); background: #fbf7ec; padding: 12px 14px; border-radius: 0 8px 8px 0;
}
.disclose code { background: #fff; border: 1px solid var(--sand-line); border-radius: 4px; padding: 0 4px; font-size: 12.5px; }
.prod-note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 17px; }
.faq-item p { margin-top: 8px; color: var(--ink-soft); }

/* ---------- statusstrook ---------- */
.notice {
  border: 1px solid var(--sand-line); background: #fbf7ec; border-radius: var(--radius);
  padding: 14px 18px; font-size: 14px; color: var(--sand-ink);
}
.notice b { color: var(--sand-ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 24px; }
.footer-inner { padding-block: 34px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand b { color: var(--teal); }
.footer-inner h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin: 0 0 12px; font-weight: 700; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-inner a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.footer-inner a:hover { color: var(--teal-dark); }
.footer-note { font-size: 13px; color: var(--ink-faint); max-width: 46ch; margin-top: 10px; }
.footer-legal { border-top: 1px solid var(--line-soft); padding-block: 16px 28px; font-size: 12.5px; color: var(--ink-faint); }
.footer-legal p { max-width: none; }

/* ---------- 404 ---------- */
.err { text-align: center; padding-block: 70px; }
.err h1 { font-size: 64px; color: var(--teal); }
.err p { margin: 12px auto 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-top { grid-template-columns: 1fr; gap: 24px; }
  .product-media { max-width: 460px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; line-height: 1.6; }
  h1 { font-size: 32px; line-height: 1.2; }
  h2 { font-size: 22px; }
  h3 { font-size: 16px; }
  .hero .hero-sub { font-size: 16px; }
  .stack { gap: 40px; padding-block: 28px 48px; }
  .section > .section-head { margin-bottom: 20px; }
  .grid { gap: 14px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cat-tiles { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-search { flex-basis: 100%; order: 3; }
  .product-info h1 { font-size: 28px; }
  .card-body { padding: 12px 13px 14px; }
}
@media (max-width: 430px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  h1 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  a.card:hover, .cat-tile:hover { transform: none; }
}
