/* Tryvon: price comparison for buyers. Light and dark themes via tokens. */
:root {
  --bg: #f6f6f3; --surface: #ffffff; --surface-2: #fbfbf9; --text: #1b1c1a; --muted: #62635e;
  --line: #e3e3de; --accent: #0f6b5c; --accent-hover: #0c5a4d; --accent-soft: #e2f1ed; --on-accent: #ffffff;
  --good: #1a7a3d; --good-soft: #e5f4ea; --deal: #b4361f; --deal-soft: #fbe9e5; --code: #efefea;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px rgb(0 0 0 / 0.05);
  --radius: 12px;
  /* Logo: three rings (price, quality, delivery) with a green heart where they meet. */
  --ring-a: #1e3a8a; --ring-b: #0891b2; --ring-c: #7c3aed; --brand-green: #16a36f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121311; --surface: #1b1c1a; --surface-2: #20211f; --text: #ecece7; --muted: #a4a59e;
    --line: #31322e; --accent: #5cc2ad; --accent-hover: #74d0bd; --accent-soft: #1b322d; --on-accent: #0d1a17;
    --good: #6fcf8f; --good-soft: #17301f; --deal: #f08a72; --deal-soft: #3a1f19; --code: #262724;
    --shadow: none;
    --ring-a: #93c5fd; --ring-b: #22d3ee; --ring-c: #a78bfa; --brand-green: #3ddc97;
  }
}

* { box-sizing: border-box; }
/* Elements with display rules (like the compare bar) must still disappear when hidden. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.good { color: var(--good); font-weight: 600; }
h1 { font-size: clamp(26px, 4.4vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
h2 { font-size: 21px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 0; }
.lead { font-size: 17.5px; color: var(--muted); max-width: 720px; margin: 0; }
section { padding: 24px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head a { font-weight: 600; text-decoration: none; }

/* Buttons and inputs */
button, .button {
  font: inherit; font-weight: 650; border: 0; border-radius: 10px; padding: 10px 18px; background: var(--accent);
  color: var(--on-accent); cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; text-align: center;
}
button:hover, .button:hover { background: var(--accent-hover); }
.button.small, button.small { padding: 7px 12px; font-size: 14px; }
input[type="search"], input[type="number"], select {
  font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 0;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; padding: 3px 0; }
.count { margin-left: auto; color: var(--muted); font-size: 13px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 24px; letter-spacing: -.04em; line-height: 1; }
.logo-mark circle { fill: none; stroke-width: 4.5; }
.logo-mark .ring-a { stroke: var(--ring-a); }
.logo-mark .ring-b { stroke: var(--ring-b); }
.logo-mark .ring-c { stroke: var(--ring-c); }
.logo-mark .ring-heart { fill: var(--brand-green); stroke: none; }
.wordmark-v { color: var(--brand-green); }
.header-search { flex: 1; display: flex; gap: 6px; max-width: 620px; }
.header-search input { flex: 1; }
.ai-button {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid transparent;
}
.ai-button:hover, .ai-button[aria-current="page"] { border-color: var(--accent); }
.spark { fill: currentColor; }
.main-nav { display: flex; align-items: center; gap: 22px; padding-bottom: 10px; position: relative; }
.nav-links { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--text); }
/* "Alle categorieen": every department with its largest categories. A details element, so it works without JavaScript. */
.mega > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px;
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary svg { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.mega[open] > summary { background: var(--accent); color: var(--on-accent); }
.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px 22px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgb(0 0 0 / .14); max-height: calc(100vh - 140px); overflow-y: auto;
}
.mega-col ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.mega-panel a { font-weight: 500; font-size: 14px; color: var(--muted); white-space: normal; }
.mega-panel a:hover { color: var(--accent); }
.mega-panel .mega-head { font-weight: 700; font-size: 15px; color: var(--text); }
.mega-panel .mega-more { font-size: 13px; color: var(--accent); }

/* Hero and search */
.hero { padding: 40px 0 20px; }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.big-search { display: flex; gap: 8px; margin: 22px 0 6px; max-width: 720px; }
.big-search input { flex: 1; font-size: 18px; padding: 14px 16px; }
.big-search button { font-size: 17px; padding: 14px 22px; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 14px 0 0; color: var(--muted); }
.stats b { color: var(--text); }
.page-head { padding: 22px 0 6px; }
.crumbs { color: var(--muted); font-size: 14px; margin: 18px 0 8px; }
.crumbs a { color: var(--muted); }

/* AI banner */
.ai-banner {
  display: flex; gap: 16px; align-items: center; background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; color: var(--accent);
}
.ai-banner > div { flex: 1; color: var(--text); }
.ai-banner p { margin: 2px 0; }
.ai-hero .url-row { max-width: 720px; }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.steps .card b { display: block; margin-bottom: 4px; }
.steps .card p { margin: 0; color: var(--muted); }
.examples { display: grid; gap: 8px; }
.examples p { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.category-tile { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.category-tile:hover { border-color: var(--accent); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.product-grid .product-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: start; }
.product-grid .product-image { height: 160px; width: 100%; }
.product-grid .product-price { justify-items: start; }
.drop { position: relative; }
.drop-badge { position: absolute; top: 10px; left: 10px; z-index: 1; }

/* Product card (list) */
.product-list { display: grid; gap: 10px; }
.product-card {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 14px 16px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.product-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.product-image { text-decoration: none; width: 112px; height: 112px; display: grid; place-items: center; background: #fff; border-radius: 10px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.placeholder { font-size: 40px; font-weight: 800; color: var(--accent); background: var(--accent-soft); width: 100%; height: 100%; display: grid; place-items: center; }
/* Product without a shop photo: icon for the kind of product plus a short label (destination, brand). */
.placeholder.visual { place-content: center; gap: 6px; font-size: 14px; font-weight: 700; text-align: center; padding: 8px; }
.placeholder.visual svg { width: 44px; height: 44px; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.placeholder.visual span { color: var(--text); overflow-wrap: anywhere; }
.product-body h3 a { color: var(--text); text-decoration: none; }
.product-body h3 a:hover { color: var(--accent); }
.product-body p { margin: 4px 0; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.badge, .pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 650; }
.badge.good { background: var(--good-soft); color: var(--good); }
.drop-badge { background: var(--deal); color: #fff; }
.product-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.product-price b { font-size: 21px; }
.product-price .button { margin-top: 6px; }

/* Listing: facets + results */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; padding-top: 8px; }
.facets details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; position: sticky; top: 120px; }
.facets summary { font-weight: 700; cursor: pointer; }
.facet-form { display: grid; gap: 4px; margin-top: 8px; }
.facet-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 6px 0 0; padding: 10px 0 0; }
.facet-form legend { font-weight: 650; font-size: 14px; padding: 0; margin-bottom: 4px; }
.facet-link { display: flex; gap: 8px; padding: 3px 0; text-decoration: none; color: var(--text); font-size: 15px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.price-range input { width: 100%; }
.facet-form button { margin-top: 10px; }
.clear { font-size: 14px; text-align: center; margin-top: 6px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.results-bar p { margin: 0; }
.sort-form label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.pager { display: flex; justify-content: center; gap: 18px; align-items: center; padding: 18px 0; }
.pager a { font-weight: 650; text-decoration: none; }

/* Product page */
.product-top { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 28px; align-items: start; padding-top: 6px; }
.product-photo { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: 16px; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.placeholder.big { font-size: 96px; border-radius: 10px; }
.placeholder.visual.big { font-size: 22px; aspect-ratio: 1; }
.placeholder.visual.big svg { width: 110px; height: 110px; }
.product-photo.no-image { background: transparent; border: 0; padding: 0; }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; box-shadow: var(--shadow); max-width: 420px; }
.price-box p { margin: 2px 0; }
.price-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price-box .button { margin-top: 10px; width: 100%; font-size: 17px; padding: 12px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.facts li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.description { white-space: pre-line; max-width: 820px; }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .area { fill: var(--accent-soft); opacity: .7; }
.chart .low { fill: var(--good); }
.buy-bar { display: none; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
td.wrap-cell { white-space: normal; }
th { font-size: 13px; color: var(--muted); font-weight: 650; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tr.best td { background: var(--good-soft); }
td a { font-weight: 650; text-decoration: none; }
td small { display: block; color: var(--muted); font-size: 12px; }
td s { margin-left: 4px; }
.filters { margin: 0; }

/* Code and copy */
code { font: 15px ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--code); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.url-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.url-row code { padding: 12px 14px; border-radius: 10px; flex: 1 1 280px; font-size: 16px; }
ol, ul { padding-left: 20px; margin: 0; }
li { margin: 5px 0; }
ol.steps { counter-reset: none; }

/* Footer */
.site-footer { margin-top: 36px; border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0 30px; font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-cols p { margin: 4px 0; }
.site-footer a { color: var(--muted); }

/* Small screens */
@media (max-width: 860px) {
  .listing { grid-template-columns: 1fr; }
  .facets details { position: static; }
  .facets details:not([open]) { padding-bottom: 12px; }
  .product-top { grid-template-columns: 1fr; }
  .product-photo { max-width: 320px; max-height: 260px; aspect-ratio: auto; margin: 0 auto; }
  .product-photo.no-image { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .main-nav { gap: 14px; }
  .nav-links { gap: 16px; }
  .mega-panel { grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px; }
  .ai-button { padding: 7px 12px; font-size: 14px; }
  .product-card { grid-template-columns: 84px 1fr; }
  .product-image { width: 84px; height: 84px; }
  /* Price, shop and button on one line; the button moves to its own line when a long shop name does not fit. */
  .product-price { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; text-align: left; }
  .product-price .button { margin: 0 0 0 auto; }
  .big-search { flex-direction: column; }
  .ai-banner { flex-direction: column; align-items: flex-start; }
  /* Sticky buy bar on product pages: price and button always in reach. */
  .buy-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; bottom: 0; z-index: 5;
    background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; margin: 0 -16px;
  }
}

/* Ratings */
.stars { display: inline-flex; align-items: baseline; gap: 4px; font-size: 14px; }
.star-icons { color: #e5a00d; letter-spacing: 1px; }
.star-icons .off { color: var(--line); }

/* Compare: toggle on cards, sticky bar, side-by-side table */
.compare-toggle {
  background: transparent; color: var(--accent); border: 1px solid var(--line); padding: 2px 9px; font-size: 12.5px;
  font-weight: 650; border-radius: 999px;
}
.compare-toggle:hover { background: var(--accent-soft); }
.compare-toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.compare-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--accent); border-radius: 999px; padding: 8px 10px 8px 18px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.18); max-width: calc(100% - 32px); font-size: 14px;
}
.compare-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.compare-bar [aria-disabled="true"] { opacity: .55; pointer-events: none; }
.link-button { background: none; color: var(--muted); padding: 4px 6px; font-weight: 600; }
.link-button:hover { background: none; color: var(--text); }
.compare-wrap { margin-top: 8px; }
table.compare-products th, table.compare-products td { white-space: normal; vertical-align: top; min-width: 170px; }
table.compare-products thead th { background: var(--surface); }
table.compare-products tbody th { color: var(--muted); font-weight: 650; min-width: 130px; }
.compare-image { display: grid; place-items: center; height: 120px; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.compare-image img { width: 100%; height: 100%; object-fit: contain; }
.compare-title { display: block; color: var(--text); font-weight: 700; text-decoration: none; margin-bottom: 6px; }
tr.key-row td { background: var(--good-soft); }
tr.differs td { font-weight: 650; }
tr.differs th::after { content: " ≠"; color: var(--accent); }

/* Specifications on the product page */
table.specs th { width: 34%; white-space: normal; color: var(--muted); font-weight: 600; font-size: 14px; background: var(--surface-2); }

/* Top list */
.top-list { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.top-list li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; margin: 0; }
.rank { font-size: 26px; font-weight: 800; color: var(--accent); text-align: center; }

@media (max-width: 640px) {
  .compare-bar { border-radius: 14px; flex-wrap: wrap; bottom: 10px; }
  .compare-bar span { max-width: 100%; }
  .top-list li { grid-template-columns: 30px 1fr; }
  .rank { font-size: 20px; }
}
@media (max-width: 640px) {
  /* On product pages the sticky buy bar sits at the bottom; the compare bar goes above it. */
  body:has(.buy-bar) .compare-bar { bottom: 74px; }
}
