/* ==========================================================================
   Babyvoedingchecker - site styles
   One stylesheet for the whole site (replaces normalize, Foundation 5 and the
   2014 legacy styles). The page markup still uses some old class names
   (row/columns grid, section_c, filterhead_open, ...); they are styled here.
   ========================================================================== */

:root {
    /* Brand: the familiar green and blue, plus the lime of the news boxes */
    --green: #8bc53f;
    --green-600: #6fa22b;
    --green-700: #4f7a1c;
    --green-50: #f3f9ea;
    --green-100: #e2f0cf;
    --blue: #00acf0;
    --blue-700: #0a6f9f;      /* links and prices: readable on white */
    --blue-800: #075a82;
    --blue-50: #eaf7fd;
    --blue-100: #cdebfa;
    --lime: #d6de23;
    --lime-50: #f8fadf;

    --ink: #1d2830;
    --text: #33414b;
    --muted: #63707a;
    --line: #e2e8ec;
    --bg: #f5f7f3;
    --surface: #ffffff;
    --danger: #b42318;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
    --shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1200px;
    --gutter: 12px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--blue-700); text-decoration: none; text-underline-offset: 2px; }
a:hover { color: var(--blue-800); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.custom-radio-checkbox:focus-visible + label, .comparecheckbox:focus-visible + label,
.comparecheckbox-small:focus-visible + label {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); letter-spacing: -.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .3em; }
strong, b { color: var(--ink); }

/* The title rule under every page heading: a short green accent bar */
hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 1.25rem 0;
}
h1 + hr {
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--green);
    margin: .25rem 0 1.5rem;
}

table { border-collapse: collapse; border-spacing: 0; }

.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.clear-fix::after { content: ""; display: table; clear: both; }

/* --------------------------------------------------------------------------
   Grid (Foundation-compatible class names: row / columns / small|medium|large-N)
   small: < 641px, medium: 641-1024px, large: >= 1025px
   -------------------------------------------------------------------------- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
}
.row > form { display: contents; }

.columns, .column {
    position: relative;
    width: 100%;
    min-width: 0;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.row-center { justify-content: center; }

.small-3 { width: 25%; }
.small-4 { width: 33.3333%; }
.small-6 { width: 50%; }
.small-12 { width: 100%; }

@media (min-width: 641px) {
    .medium-3 { width: 25%; }
    .medium-4 { width: 33.3333%; }
    .medium-6 { width: 50%; }
    .medium-8 { width: 66.6667%; }
    .medium-9 { width: 75%; }
    .medium-12 { width: 100%; }
}

@media (min-width: 1025px) {
    .large-3 { width: 25%; }
    .large-4 { width: 33.3333%; }
    .large-6 { width: 50%; }
    .large-8 { width: 66.6667%; }
    .large-9 { width: 75%; }
    .large-12 { width: 100%; }
}

@media (max-width: 1024px) {
    .hidden-for-medium-and-small { display: none !important; }
}

.show-mobile-portrait, .show-mobile-480 { display: none !important; }
@media (max-width: 640px) {
    .hide-mobile-portrait { display: none !important; }
    .show-mobile-portrait { display: inline-flex !important; }
}
@media (max-width: 480px) {
    .show-mobile-480 { display: inline !important; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 4000;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; color: #fff; }

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

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green) 0%, #a9d86a 100%);
    display: grid;
    place-items: center;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-tagline { font-size: .85rem; color: var(--blue-700); font-style: italic; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-link {
    color: var(--text);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
}
.header-link:hover { background: var(--green-50); color: var(--green-700); text-decoration: none; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: 600 .95rem var(--font);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s, opacity .2s;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Green menu bar */
.main-nav {
    background: var(--green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}
.main-nav li { margin: 0; }
.main-nav a, .main-nav button {
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    color: #17240a;
    font: 600 .95rem/1.2 var(--font);
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav button:hover { background: rgba(255, 255, 255, .35); text-decoration: none; color: #0f1a05; }
.main-nav a.active { background: #fff; color: var(--green-700); }
.main-nav form { margin: 0; }
.main-nav .nav-contact { display: none; }

@media (max-width: 1024px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { position: static; }
    .main-nav ul { display: none; flex-direction: column; padding: 8px 0 12px; }
    .main-nav.open ul { display: flex; }
    .main-nav a, .main-nav button { border-radius: var(--radius-sm); padding: 11px 14px; width: 100%; text-align: left; }
    .main-nav .nav-contact { display: block; }
}
@media (max-width: 640px) {
    .header-inner { min-height: 64px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-name { font-size: 1.15rem; }
    .brand-tagline { font-size: .78rem; }
    .header-link { display: none; }
}

/* Promise bar under the menu */
.promise-bar {
    background: var(--green-50);
    border-bottom: 1px solid var(--green-100);
    color: var(--green-700);
    font-size: .875rem;
}
.promise-bar ul {
    list-style: none;
    margin: 0;
    padding: 9px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 32px;
}
.promise-bar li { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.promise-bar li::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.promise-bar a { color: var(--green-700); font-weight: 600; }
@media (max-width: 640px) {
    .promise-bar li:not(:first-child) { display: none; }
}

/* --------------------------------------------------------------------------
   Main content and footer
   -------------------------------------------------------------------------- */
.site-main { padding: 32px 0 56px; }
@media (max-width: 640px) { .site-main { padding: 20px 0 40px; } }

/* Plain text pages: a white card behind the text column */
.section_c {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    color: var(--text);
    margin-bottom: 24px;
    max-width: 72ch;
}
@media (max-width: 640px) { .section_c { padding: 20px; } }

.section_c > span, .section_c p > span, .paragraph > span, .paragraph p > span,
.section_l p > span, .section_r p > span {
    display: block;
    margin-bottom: .75em;
}
.section_c ul { margin-bottom: 1.2em; }
.paragraph { scroll-margin-top: 80px; padding-top: 4px; }
.paragraph + .paragraph { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }

span.bold14, span.dynamic_bold14 {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .4em;
    line-height: 1.35;
}
span.bold12 { font-weight: 700; color: var(--ink); }
.bold { font-weight: 700; color: var(--ink); }
.list-heading { list-style: none; margin-left: -1.4em; font-weight: 700; font-style: italic; color: var(--green-700); }
.plain-list { list-style: none; padding-left: 0; }
.contact-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.contact-list li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contact-list li:empty { display: none; }

.lead { font-size: 1.1rem; color: var(--ink); }
.muted, .small-print { color: var(--muted); font-size: .9rem; }

/* Side navigation of the info pages ("Kwaaltjes", "Praktische tips", ...) */
.section_l_submenu {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    margin-bottom: 24px;
    position: sticky;
    top: 72px;
}
.section_l_submenu .body { padding: 0; }
.section_l_submenu .sbmcell { margin: 0; }
.section_l_submenu .sbmcell > span {
    display: block;
    padding: 10px 12px 4px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.section_l_submenu a.submenu {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
}
.section_l_submenu .sbmcell.sub a.submenu { padding-left: 24px; font-size: .95rem; }
.section_l_submenu a.submenu:hover { background: var(--green-50); color: var(--green-700); text-decoration: none; }
@media (max-width: 1024px) {
    .section_l_submenu { position: static; }
    .section_l_submenu .body { display: flex; flex-wrap: wrap; gap: 6px; }
    .section_l_submenu .sbmcell > span { display: none; }
    .section_l_submenu a.submenu, .section_l_submenu .sbmcell.sub a.submenu {
        padding: 7px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: .9rem;
    }
}

/* Empty side columns of the old 3-6-3 layout take no space on small screens */
.section_l_white, .section_r_white, .section_l_white_narrow { min-height: 0; }

/* Coloured info boxes */
.section_l {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    color: var(--text);
}
.section_l .white, .section_l span.white { color: var(--blue-800); font-weight: 700; }
.section_l a { font-weight: 600; }

span.title_special, .title_special {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--blue-800);
    margin-bottom: 12px;
    line-height: 1.25;
}

.section_r {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    position: sticky;
    top: 72px;
}
.section_r span.white { color: var(--text); font-weight: 400; }
span.title_white {
    display: inline-block;
    background: var(--blue-700);
    color: #fff;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.tip-illustration { display: block; margin: 8px auto 0; }

.section_r_new {
    background: var(--lime-50);
    border: 1px solid #e9eda6;
    border-top: 5px solid var(--lime);
    border-radius: var(--radius);
    padding: 20px 22px 22px;
    margin-bottom: 20px;
}
/* Headings that must keep a long name on one line shrink with the box width. */
.section_r_new { container-type: inline-size; }
.title_new.title_fit { font-size: min(1.1rem, 7.3cqi); }
span.title_new, .title_new {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Buttons and forms
   -------------------------------------------------------------------------- */
.btn, .button, button.comparelink, input.comparelink, a.comparelink,
.bvc-btn-read-more, #reset-filter-button, .show-results-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 .95rem/1.2 var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
    width: auto;
    margin: 0;
}

/* Primary: green */
button.comparelink, input.comparelink, a.comparelink, .btn-primary {
    background: var(--green-600);
    color: #fff;
    box-shadow: 0 2px 6px rgba(79, 122, 28, .25);
}
button.comparelink:hover, input.comparelink:hover, a.comparelink:hover, .btn-primary:hover {
    background: var(--green-700);
    color: #fff;
    text-decoration: none;
}

/* Secondary: outline */
.button, .btn-secondary, .bvc-btn-read-more {
    background: var(--surface);
    color: var(--ink);
    border-color: #cfd8de;
}
.button:hover, .btn-secondary:hover, .bvc-btn-read-more:hover {
    border-color: var(--green-600);
    color: var(--green-700);
    text-decoration: none;
}
.bvc-btn-read-more { width: 100%; }

/* Blue: filter actions */
#reset-filter-button, .show-results-button {
    background: var(--blue-50);
    color: var(--blue-800);
    border-color: var(--blue-100);
}
#reset-filter-button:hover, .show-results-button:hover { background: var(--blue-100); }

.btn-link-danger {
    background: none;
    border: 0;
    padding: 0;
    color: var(--danger);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

label { color: var(--ink); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="search"], input:not([type]), input.textfield, textarea, select {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #cbd5dc;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: 1rem/1.4 var(--font);
    margin: 4px 0 0;
}
textarea { min-height: 120px; resize: vertical; }
select {
    width: auto;
    padding-right: 36px;
    appearance: none;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2363707a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
    cursor: pointer;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 172, 240, .18); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--green-600); }
input[type="file"] { border: 0; padding: 4px 0; min-height: 0; }

.field { margin-bottom: 14px; }
.field > label { display: block; font-weight: 600; font-size: .95rem; }
.field > label > input[type="checkbox"] { margin-right: 6px; }
fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px 24px 8px;
    margin: 0 0 20px;
}
legend { font-weight: 700; color: var(--ink); padding: 0 6px; }

.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.inline-field { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-field input { flex: 1 1 260px; margin: 0; }

.error, .text-danger, .field-validation-error, .validation-summary-errors { color: var(--danger); }
.field-validation-valid, .validation-summary-valid { display: none; }
.input-validation-error { border-color: var(--danger) !important; }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin: 8px 0 16px; }
.alert-success { background: var(--green-50); border: 1px solid var(--green-100); }
.alert-error { background: #fdeceb; border: 1px solid #f6c9c4; color: var(--danger); }

/* --------------------------------------------------------------------------
   Custom checkboxes and radios (filters and product cards)
   The real input stays in the page (keyboard and screen readers); the label
   draws the box.
   -------------------------------------------------------------------------- */
input.custom-radio-checkbox, input.comparecheckbox, input.comparecheckbox-small {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
input.custom-radio-checkbox + label, input.comparecheckbox + label, input.comparecheckbox-small + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    line-height: 1.35;
    user-select: none;
}
input.custom-radio-checkbox + label::before, input.comparecheckbox + label::before, input.comparecheckbox-small + label::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid #b7c3cb;
    border-radius: 5px;
    background: #fff center / 12px no-repeat;
    transition: background-color .12s, border-color .12s;
}
input.custom-radio-checkbox[type="radio"] + label::before { border-radius: 50%; }
input.custom-radio-checkbox + label:hover::before, input.comparecheckbox-small + label:hover::before { border-color: var(--green-600); }
input.custom-radio-checkbox:checked + label::before, input.comparecheckbox:checked + label::before, input.comparecheckbox-small:checked + label::before {
    background-color: var(--green-600);
    border-color: var(--green-600);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input.custom-radio-checkbox[type="radio"]:checked + label::before {
    background-image: radial-gradient(circle, #fff 0 3px, transparent 3.5px);
}

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */
/* The main text comes first in the page (phones show it first); on wide
   screens the blue 'Bijna geen verschil' box sits left of it. */
@media (min-width: 1025px) { #info-column { order: -1; } }
.intro {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: start;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 20px;
}
.intro img { border-radius: 10px; display: block; width: 100%; }
.intro p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
    .intro { grid-template-columns: 1fr; }
    .intro img { max-height: 200px; object-fit: cover; }
}

.facts {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    margin-bottom: 20px;
}
.facts-title { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.facts-table { width: 100%; margin: 0 0 12px; font-size: .95rem; }
.facts-table th, .facts-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.facts-table thead th { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--green-100); }
.facts-table tbody tr:last-child th, .facts-table tbody tr:last-child td { border-bottom: 0; }
.facts-table tbody th { color: var(--text); }
.facts-table .num { text-align: right; width: 84px; font-variant-numeric: tabular-nums; }
.facts-table td strong { font-size: 1.15rem; color: var(--green-700); }
.facts-table tbody tr:nth-child(even) th, .facts-table tbody tr:nth-child(even) td { background: var(--green-50); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }
.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 132px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--ink);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tile:hover { text-decoration: none; color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue); }
.tile h3 { margin: 0; font-size: 1.05rem; }
.tile span { color: var(--muted); font-size: .9rem; }
.tile::after { content: "\2192"; font-weight: 700; color: var(--blue-700); font-size: 1.2rem; }

.media-card { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-card img { display: block; width: 100%; transition: transform .2s; }
.media-card:hover img { transform: scale(1.02); }

.badge {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--lime);
    color: #3b3f00;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Product filter (Flesvoeding vergelijken)
   -------------------------------------------------------------------------- */
.leftcolumn-container {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 18px 20px;
    margin-bottom: 24px;
}
.filter-title { font-size: 1.2rem; margin: 0 0 6px; }

div.filtersection { border-top: 1px solid var(--line); }
div.filtersection:first-of-type { border-top: 0; }
.filterhead_open, .filterhead_closed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 12px 0;
}
.filterhead_open h3, .filterhead_closed h3 { margin: 0; font-size: 1rem; }
.filterhead_open::after, .filterhead_closed::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    margin: -4px 4px 0 0;
    transition: transform .15s;
}
.filterhead_closed::after { transform: rotate(-45deg); margin-top: 0; }

ul.filtercontrol { list-style: none; padding: 0 0 12px; margin: 0; }
ul.filtercontrol li.field { margin: 0; padding: 4px 0; }
ul.filtercontrol li.field label { font-size: .95rem; color: var(--text); }
.filtercontrol li.category-listitem {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 0 2px;
    margin: 0;
}

.filter-button-wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#reset-filter-button::before {
    content: "";
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%23075a82' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

#checker-container {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 22px;
    margin-bottom: 18px;
    color: var(--text);
}
#checker-container span { display: block; }

/* Results toolbar: sort + compare button */
.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.results-toolbar label { font-weight: 600; margin-right: 8px; }
.results-toolbar select { margin: 0; }
.sort-field { display: inline-flex; align-items: center; }
@media (max-width: 640px) {
    .results-toolbar { position: sticky; top: 0; z-index: 900; background: var(--bg); padding: 10px 0; margin: 0 0 10px; }
}

/* Product cards */
.products { row-gap: 20px; }
.productinfo-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.productinfo-container:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.productinfo-container:has(.comparecheckbox:checked) { border-color: var(--green-600); }

.productinfo-compare-head {
    background: var(--green-50);
    border-bottom: 1px solid var(--green-100);
    padding: 10px 14px;
}
.productinfo-compare-head .comparelabel { font-weight: 600; color: var(--green-700); font-size: .92rem; }
.productinfo-container:has(.comparecheckbox:checked) .productinfo-compare-head { background: var(--green-600); }
.productinfo-container:has(.comparecheckbox:checked) .comparelabel { color: #fff; }
.productinfo-container:has(.comparecheckbox:checked) .comparecheckbox + label::before { border-color: #fff; background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%236fa22b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.image-container { text-align: center; padding: 16px 12px 4px; }
.image-container label { cursor: pointer; display: block; }
img.image-thumbnail {
    display: inline-block;
    width: auto;
    height: 170px;
    max-width: 100%;
    object-fit: contain;
}
@media (max-width: 640px) { img.image-thumbnail { height: 110px; } }

.productinfo-content {
    padding: 8px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .92rem;
    color: var(--muted);
    flex: 1;
}
span.product-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 4px;
}
.product-price { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.product-price strong { font-size: 1.25rem; color: var(--blue-700); }
.product-kiloprice { font-size: .85rem; }
.product-kiloprice strong { color: var(--text); }
.no-results { padding: 24px; background: var(--surface); border-radius: var(--radius); text-align: center; color: var(--muted); }
@media (max-width: 640px) {
    .products > .columns { padding-left: 6px; padding-right: 6px; }
    .products { margin-left: -6px; margin-right: -6px; row-gap: 12px; }
    .productinfo-content { padding: 6px 12px 14px; font-size: .85rem; }
    .product-price strong { font-size: 1.1rem; }
}

/* --------------------------------------------------------------------------
   Compare page
   -------------------------------------------------------------------------- */
.page-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.page-toolbar form { margin: 0; }

.table-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-bottom: 24px;
}
.compare-table { width: 100%; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { vertical-align: bottom; border-bottom: 2px solid var(--green-100); background: var(--surface); }
.compare-table thead .image-container { padding: 4px 0 8px; }
.compare-table thead img.image-thumbnail { height: 120px; }
.compare-table .column-title-label { display: block; font-weight: 700; color: var(--ink); text-align: center; }
.compare-table td:first-child, .compare-table th:first-child {
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 1;
    min-width: 150px;
    color: var(--ink);
    font-weight: 600;
}
.compare-table tbody tr:nth-child(even) td { background: #fafbfa; }
.compare-table .note { font-size: .78rem; font-weight: 500; color: var(--muted); }
.compare-table tr.subtitle_r { cursor: pointer; }
.compare-table tr.subtitle_r td { background: var(--green-50) !important; font-weight: 700; }
.compare-table tr.subtitle_r:hover td { background: var(--green-100) !important; }
.toggle-arrow {
    display: inline-block;
    float: right;
    color: var(--green-700);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform .15s;
}
.subtitle_r.expanded .toggle-arrow { transform: rotate(90deg); }
.compare-table tr.section-detail td:first-child { padding-left: 28px; font-weight: 500; color: var(--text); }

.side-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px 18px;
}
.side-card-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.scroll-list { list-style: none; padding: 0; margin: 0 0 12px; max-height: 320px; overflow-y: auto; }
.scroll-list li { margin: 0; padding: 4px 0; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Information tables (Belangrijke voedingsstoffen)
   -------------------------------------------------------------------------- */
.section_c table { width: 100%; margin: 8px 0 18px; font-size: .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.section_c td { padding: 9px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.section_c tr:last-child td { border-bottom: 0; }
.printcell_head_title { background: var(--green-100); color: var(--ink); font-weight: 700; }
.printcell_sub { background: var(--surface); }
.printcell_sub:first-child { font-weight: 600; color: var(--ink); width: 34%; }
@media (max-width: 640px) {
    .section_c table, .section_c tbody, .section_c tr, .section_c td { display: block; width: 100% !important; }
    .section_c td.printcell_head_title:empty, .section_c td.printcell_head_title:has(> div:empty) { display: none; }
    .printcell_sub:first-child { border-bottom: 0; padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Decision tree (Welk type voeding?) - extra rules on top of babyfood.css
   -------------------------------------------------------------------------- */
.side-illustration { display: block; max-width: 220px; margin: 0 auto 24px; }
@media (max-width: 1024px) { .side-illustration { display: none; } }

.decision-tree {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface);
    margin-bottom: 24px;
}
.decision-tree-body { background: #f4f7f9; padding: 12px 8px; }
#tree-wrapper span { display: inline-block; }
#tree-wrapper span.bold14 { display: inline-block; font-size: 14px; margin: 0; }
.decision-tree { max-width: 72ch; }
.yesno-box { float: left; height: 51px; width: 82px; justify-content: center; }
#tree-wrapper div.big-box { display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 4px; }
#tree-wrapper .big-box span.bottom-spacer { margin-bottom: 2px; color: var(--ink); }
.yesno-box + .yesno-box { margin-left: 10px; }

#info-container { border-radius: var(--radius-sm); padding: 16px 18px 18px; }
#info-container [style] { font-size: inherit !important; line-height: 1.6 !important; margin-top: 0 !important; }
#info-container span { display: block; margin-bottom: .6em; }
#info-container span.bold14 { font-size: 1.1rem; }
#info-container ul { list-style: disc !important; padding-left: 1.3em; }

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */
.admin-table { width: 100%; font-size: .95rem; }
.admin-table th { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.admin-table tr:hover td { background: #fafbfa; }
.admin-actions { white-space: nowrap; }
.admin-actions form { display: inline; }
.check-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; margin-bottom: 12px; }
.check-group-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.check-line { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .95rem; cursor: pointer; }
.tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); font-size: .78rem; font-weight: 700; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.status-ok { background: var(--green-50); color: var(--green-700); }
.status-warning { background: #fff4db; color: #8a5a00; }
.status-blocked { background: #fdeceb; color: var(--danger); }
.preview-image { max-height: 120px; border-radius: var(--radius-sm); display: block; margin: 6px 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #24313a;
    color: #c9d3da;
    font-size: .92rem;
    padding: 36px 0 24px;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
.footer-brand { font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 6px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #9fb0bb; }

/* Back to top */
#back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    margin: 0;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
#back-top.visible { opacity: 1; visibility: visible; transform: none; }
#back-top a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: var(--shadow-lg);
}
#back-top a:hover { background: var(--green-700); }
#back-top span {
    width: 12px;
    height: 12px;
    border-left: 3px solid #fff;
    border-top: 3px solid #fff;
    transform: rotate(45deg);
    margin-top: 5px;
}

/* --------------------------------------------------------------------------
   Disclaimer pop-up
   -------------------------------------------------------------------------- */
#disclaimer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 28, 34, .55);
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#disclaimer-overlay.hidden { display: none; }
#basic-modal-content {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 28px 28px 24px;
    text-align: left;
}
#basic-modal-content h1 { font-size: 1.35rem; margin-bottom: 12px; }
#basic-modal-content p { margin-bottom: .8em; }
#basic-modal-content .modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--green-50);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}
#basic-modal-content .checkbox-area { display: flex; align-items: center; gap: 8px; margin: 18px 0; font-size: .92rem; color: var(--muted); }
#basic-modal-content .checkbox-area label { color: var(--muted); cursor: pointer; }
#basic-modal-content #disclaimer-ok { width: 100%; }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
    .site-header, .main-nav, .promise-bar, .site-footer, #back-top, #disclaimer-overlay,
    .section_l_submenu, .filter-button-wrapper { display: none !important; }
    body { background: #fff; }
    .section_c, .leftcolumn-container, .productinfo-container, .table-card { box-shadow: none; border: 1px solid #ddd; }
}
