/* Messenkiezer (/Messenkiezer en /Messenkiezer/<Categorie>).
   Alles hangt onder .mk, zodat de rest van de winkel er niets van merkt. De opmaak van de drie
   verwijzingen (categorie, product, homepage) staat NIET hier maar in mk_promo_style() in
   messenkiezer_lib.php: zo hoeft niet elke pagina van de winkel dit bestand te laden.
   Een apart bestand in plaats van style.css: een nieuw adres zit nog niet in de Cloudflare-cache,
   dus na het uploaden krijgt iedereen meteen de goede opmaak.
   Maten en kleuren komen uit het ontwerp (design_handoff_messenkiezer). */

/* ---------------------------------------------------------------- basis */
.mk {
    margin: 0 0 0 clamp(0px, 4vw, 50px);
    padding: 0 clamp(0px, 8.33%, 120px);
    max-width: 1400px;
    color: #333;
}
/* Telefoon: net als de gewone pagina's (.pages_m_row in style.css) vanaf 728px geen inspringing
   meer; de 15px van de content-wrap blijft. */
@media (max-width: 728px) { .mk { margin-left: 0; padding: 0; } }
.mk-body { max-width: 1140px; font-size: 15px; line-height: 1.65; }
.mk a { color: #333; text-decoration: underline; }
.mk a:hover, .mk a:focus { color: #000; }
.mk h1, .mk h2, .mk h3 { font-family: 'Playfair Display', Georgia, "Times New Roman", serif; font-weight: 500; color: inherit; }
.mk p { margin: 0; }
.mk-hero { margin-bottom: 3.4%; }

.mk-terug { font-size: 14px; }
.mk-h1 { font-size: 30px; line-height: 1.1; margin: 14px 0 12px; }
.mk > .mk-h1:first-child { margin-top: 0; }
.mk-h2 { font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
.mk-intro { margin: 0 0 22px !important; max-width: 760px; }

.mk-feiten {
    display: flex; flex-wrap: wrap; gap: 8px 28px;
    padding: 12px 0; margin: 0 0 36px;
    border-top: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2;
    font-size: 14px;
}

.mk-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }

/* Zonder JavaScript doen filteren en vergelijken niets; dan ook niet tonen. */
.mk-alleen-js { display: none !important; }
.mk-js .mk-chips.mk-alleen-js { display: flex !important; }
.mk-js .mk-telling.mk-alleen-js { display: block !important; }
.mk-js .mk-vergelijk.mk-alleen-js { display: flex !important; }

/* ---------------------------------------------------------------- knoppen */
.mk .mk-knop {
    display: inline-block; background: #333; color: #fff; text-decoration: none;
    padding: 6px 14px; border-radius: 4px; font-size: 14px; line-height: 1.42857;
}
.mk .mk-knop:hover, .mk .mk-knop:focus { background: #1a1a1a; color: #fff; text-decoration: none; }
.mk .mk-knop-wit {
    display: inline-block; background: #fff; color: #111; text-decoration: none;
    padding: 7px 14px; border-radius: 4px; font-size: 14px; line-height: 1.42857;
}
.mk .mk-knop-wit:hover, .mk .mk-knop-wit:focus { background: #e2e2e2; color: #111; text-decoration: none; }

/* ---------------------------------------------------------------- startpagina */
.mk-taken {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 20px; margin: 0 0 48px;
}
.mk-uitgelicht {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    background: #111; color: #fff; overflow: hidden;
}
.mk-uitgelicht-foto { display: block; line-height: 0; min-height: 180px; }
.mk-uitgelicht-foto img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; }
.mk-uitgelicht-tekst { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.mk-uitgelicht-kop { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.2; }
.mk-uitgelicht-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.mk .mk-uitgelicht-acties a:not(.mk-knop-wit) { color: #fff; }

.mk-taak {
    display: flex; flex-direction: column; border: 1px solid #c9c9c9; background: #fff; overflow: hidden;
    transition: box-shadow .3s ease;
}
.mk-taak:hover { box-shadow: 0 5px 15px rgba(0,0,0,.15); }
.mk-taak-foto { display: block; line-height: 0; }
.mk-taak-foto img { width: 100%; aspect-ratio: 16 / 9; display: block; background: #fff; }
.mk-taak-foto img.mk-cover { object-fit: cover; object-position: center; }
.mk-taak-foto img.mk-contain { object-fit: contain; padding: 14px 18px; }
.mk-taak-tekst { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mk-taak-kop { font-weight: 600; font-size: 16px; }
.mk-taak-links { margin-top: auto; padding-top: 4px; gap: 4px 14px; font-size: inherit; }

.mk-soorten {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 20px; margin: 0 0 44px;
}
.mk .mk-soort {
    display: block; text-decoration: none; color: inherit; border: 1px solid #c9c9c9; background: #fff; overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.mk .mk-soort:hover, .mk .mk-soort:focus { transform: scale(1.01); box-shadow: 0 5px 15px rgba(0,0,0,.15); color: inherit; text-decoration: none; }
.mk-soort img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.mk-soort span { display: block; text-align: center; padding: 10px 6px; font-size: 15px; overflow-wrap: anywhere; }

.mk-twijfel { background: #f6f6f6; padding: 22px 24px; }
.mk-twijfel-start { margin: 0 0 50px; }
.mk-twijfel h3, .mk-blok h3 { font-size: 21px; margin: 0 0 6px; }
.mk-twijfel p, .mk-blok p { margin: 0 0 10px; }

/* ---------------------------------------------------------------- kiezer: filter */
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.mk-chip {
    font: inherit; font-size: 14px; line-height: 1.42857; padding: 7px 14px; border-radius: 20px;
    border: 1px solid #c9c9c9; background: #fff; color: #333; cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mk-chip:hover { border-color: #333; }
.mk-chip.is-actief { background: #333; border-color: #333; color: #fff; }
.mk-telling { margin: 0 0 18px !important; font-size: 14px; color: #6a6a6a; }
.mk-hint { margin-left: 8px; }

/* ---------------------------------------------------------------- kaarten */
.mk-kaarten {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: 20px; margin: 0 0 56px;
}
.mk-kaart {
    display: flex; flex-direction: column; border: 1px solid #c9c9c9; background: #fff; order: 0;
    transition: opacity .25s ease, box-shadow .3s ease, border-color .2s ease;
    scroll-margin-top: 20px;
}
.mk-kaart:hover { box-shadow: 0 5px 15px rgba(0,0,0,.15); }
.mk-kaart.is-gedimd { opacity: .28; order: 1; }
.mk-kaart.is-gekozen { border-color: #333; }
.mk-kaart:target { border-color: #333; }
.mk-kaart-foto {
    aspect-ratio: 16 / 7; overflow: hidden; display: flex; align-items: center; justify-content: center;
    padding: 14px 18px; border-bottom: 1px solid #e2e2e2; background: #fff;
}
.mk-kaart-foto img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; display: block; }
.mk-kaart-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mk-kaart-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mk-kaart-kop h3 { font-size: 21px; margin: 0; line-height: 1.2; }
.mk-prijs { font-weight: 600; white-space: nowrap; font-size: 15px; }
.mk-kaart ul { margin: 0; padding-left: 20px; }
.mk-kenmerken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.mk-kenmerken span { font-size: 12px; letter-spacing: .02em; background: #f6f6f6; padding: 3px 9px; border-radius: 3px; line-height: 1.5; }
.mk-specs { border-top: 1px solid #e2e2e2; padding-top: 8px; margin-top: 2px; font-size: 14px; }
/* Bootstrap zet summary op display:block, en dan verdwijnt het uitklappijltje. */
.mk-specs summary { cursor: pointer; font-weight: 600; display: list-item; }
.mk-specs dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; margin: 8px 0 0; }
.mk-specs dt { color: #6a6a6a; font-weight: 400; }
.mk-specs dd { margin: 0; }
.mk-past { font-size: 13px; color: #6a6a6a; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.mk-past-links { display: contents; }
.mk-kaart-acties { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; }
.mk-vergelijk {
    align-self: flex-start; font: inherit; font-size: 13px; background: none; border: 0; padding: 2px 0; color: #333;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.mk-vergelijk:disabled { cursor: default; color: #6a6a6a; }
.mk-vinkje {
    width: 15px; height: 15px; border: 1px solid #333; border-radius: 3px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 11px; line-height: 1; background: #fff; color: #fff;
}
.mk-vergelijk[aria-pressed="true"] .mk-vinkje { background: #333; }
.mk-vergelijk[aria-pressed="true"] .mk-vinkje::after { content: "\2713"; }

/* ---------------------------------------------------------------- lengte van het lemmet */
.mk-balken-tekst { margin: -4px 0 20px !important; max-width: 760px; }
.mk-balken { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.mk .mk-balk-rij {
    display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 14px;
    text-decoration: none; color: inherit;
}
.mk .mk-balk-rij:hover .mk-balk-naam { text-decoration: underline; }
.mk-balk-naam { font-weight: 600; line-height: 1.3; }
.mk-balk-spoor { display: flex; align-items: center; gap: 10px; }
.mk-balk { display: block; height: 12px; background: #333; border-radius: 0 7px 7px 0; transition: opacity .25s ease; }
.mk-balk-rij.is-gedimd .mk-balk { opacity: .28; }
.mk-balk-cm { font-size: 13px; color: #6a6a6a; white-space: nowrap; }
.mk-liniaal-rij { align-items: start; }
.mk-liniaal { width: 85%; display: grid; border-top: 1px solid #999; padding-bottom: 22px; }
.mk-liniaal span { border-left: 1px solid #999; height: 8px; position: relative; }
.mk-liniaal em { position: absolute; left: -4px; top: 10px; font-size: 12px; color: #6a6a6a; font-style: normal; }
.mk-balken-noot { margin: 0 0 56px !important; font-size: 13px; color: #6a6a6a; }
@media (max-width: 599px) { .mk .mk-balk-rij { grid-template-columns: 96px minmax(0, 1fr); } }

/* ---------------------------------------------------------------- zwart uitlegblok */
.mk-uitleg { background: #111; color: #fff; padding: clamp(22px, 4vw, 40px); margin: 0 0 56px; }
.mk-uitleg h2 { font-size: 24px; margin: 0 0 20px; color: #fff; }
.mk-uitleg h3 { font-size: 20px; margin: 0 0 6px; color: #fff; }
.mk-uitleg p { margin: 0 0 10px; }
.mk-uitleg-kolommen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 48px; }
.mk-uitleg-kolommen.mk-drie { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.mk-uitleg-cijfer { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 40px; line-height: 1; margin-bottom: 8px; color: #8a8a8a; }
.mk .mk-uitleg a { color: #fff; }

/* ---------------------------------------------------------------- tabel */
.mk-tabel-wrap { overflow-x: auto; margin: 0 0 56px; border: 1px solid #e2e2e2; border-radius: 4px; }
.mk-tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-tabel thead tr { background: #f6f6f6; text-align: left; }
.mk-tabel th, .mk-tabel td { padding: 10px 14px; vertical-align: top; }
.mk-tabel thead th { font-weight: 600; }
.mk-tabel tbody tr { border-top: 1px solid #e2e2e2; }
.mk-tabel tbody th { font-weight: 600; }
.mk-tabel .mk-midden { text-align: center; }
.mk-tabel .mk-nee { color: #999; }

/* ---------------------------------------------------------------- vragen */
.mk-faq { margin: 0 0 56px; max-width: 900px; border-top: 1px solid #e2e2e2; }
.mk-faq details { border-bottom: 1px solid #e2e2e2; }
.mk-faq summary { cursor: pointer; padding: 13px 30px 13px 0; position: relative; list-style: none; font-weight: 600; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary:hover { color: #000; }
.mk-faq summary h3 { display: inline; font: inherit; margin: 0; }
.mk-plus { position: absolute; right: 6px; top: 10px; font-size: 21px; line-height: 1; color: #6a6a6a; font-weight: 400; transition: transform .2s ease; }
.mk-faq details[open] .mk-plus { transform: rotate(45deg); }
.mk-faq-antwoord { padding: 0 30px 16px 0; }

/* ---------------------------------------------------------------- blokken onderaan */
.mk-blokken { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin: 0 0 50px; }
.mk-blok { border: 1px solid #c9c9c9; padding: 22px 24px; }
.mk-blok.mk-twijfel { border: 0; }

/* ---------------------------------------------------------------- vergelijken */
.mk-vbalk {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50;
    background: #111; color: #fff; border-radius: 4px; box-shadow: 0 5px 20px rgba(0,0,0,.3);
    padding: 10px 12px 10px 18px; display: flex; align-items: center; gap: 14px; font-size: 14px;
    max-width: calc(100% - 30px);
}
.mk-vbalk[hidden], .mk-vmodal[hidden] { display: none; }
.mk-vbalk button { font: inherit; font-size: 14px; cursor: pointer; }
.mk-vbalk .mk-vbalk-open { background: #fff; color: #111; border: 0; border-radius: 4px; padding: 6px 14px; }
.mk-vbalk .mk-vbalk-open[aria-disabled="true"] { opacity: .4; cursor: default; }
.mk-vbalk .mk-vbalk-wis { background: none; color: #fff; border: 0; text-decoration: underline; padding: 0; }
.mk-vmodal {
    position: fixed; inset: 0; z-index: 1060; background: rgba(0,0,0,.55);
    display: flex; align-items: flex-start; justify-content: center;
    padding: clamp(10px, 4vh, 50px) 12px; overflow-y: auto;
}
.mk-vblad { background: #fff; width: 100%; max-width: 1000px; padding: clamp(16px, 3vw, 30px); position: relative; color: #333; font-size: 14px; line-height: 1.5; }
.mk-vblad h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 24px; margin: 0 0 18px; }
.mk-vsluit { position: absolute; right: 12px; top: 8px; font: inherit; font-size: 28px; line-height: 1; background: none; border: 0; cursor: pointer; color: #333; }
.mk-vscroll { overflow-x: auto; }
.mk-vraster { display: grid; gap: 0 16px; }
.mk-vkop { align-items: end; padding-bottom: 12px; border-bottom: 1px solid #e2e2e2; }
.mk-vkop-item { display: flex; flex-direction: column; gap: 8px; }
.mk-vkop-foto { aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; }
.mk-vkop-foto img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mk-vkop-naam { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 18px; line-height: 1.2; }
.mk-vblad .mk-knop { display: inline-block; align-self: flex-start; background: #333; color: #fff; text-decoration: none; padding: 6px 14px; border-radius: 4px; }
.mk-vblad .mk-knop:hover, .mk-vblad .mk-knop:focus { background: #1a1a1a; color: #fff; }
.mk-vrij { padding: 9px 0; border-bottom: 1px solid #e2e2e2; }
.mk-vlabel { color: #6a6a6a; }
body.mk-vmodal-open { overflow: hidden; }
