/* ==========================================================================
   Matthys nieuwe look (info.matthys.net)
   Stijl gebaseerd op de Magento-shop www.matthys.net
   ========================================================================== */

:root {
	--mx-green: #669d24;
	--mx-green-dark: #558420;
	--mx-text: #1f2937;
	--mx-black: #1d1d1b;
	--mx-muted: #6b7280;
	--mx-line: #e2e8f0;
	--mx-line-strong: #cbd5e1;
	--mx-soft: #f5f7f9;
	--mx-navy: #111827;
	--mx-radius: 4px;
	--mx-font: nimbus-sans, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.mx-theme {
	font-family: var(--mx-font);
	color: var(--mx-text);
	background: #fff;
	font-size: 16px;
	line-height: 1.65;
	margin: 0;
}

.mx-theme *,
.mx-theme *::before,
.mx-theme *::after { box-sizing: border-box; }

.mx-theme svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx-theme img { max-width: 100%; height: auto; }

.mx-wrap { max-width: 1800px; margin: 0 auto; padding: 0 24px; }
.mx-wrap--narrow { max-width: 1328px; }

.mx-skip { position: absolute; left: -9999px; }
.mx-theme .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mx-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.mx-hdr { background: #fff; border-bottom: 1px solid var(--mx-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .mx-hdr { top: 32px; }
.mx-hdr__top { display: flex; align-items: center; gap: 48px; min-height: 70px; padding-top: 6px; }
.mx-logo { display: block; flex-shrink: 0; line-height: 0; }
.mx-logo img { width: 250px; height: auto; }

.mx-search { flex: 1; display: flex; max-width: 1210px; margin: 0; }
.mx-search input[type="search"] {
	flex: 1; height: 44px; margin: 0; border: 1px solid var(--mx-line-strong); border-right: 0; border-radius: 0;
	padding: 0 20px; font: 14px var(--mx-font); color: var(--mx-text); background: #fff; -webkit-appearance: none;
}
.mx-search input::placeholder { color: #64748b; }
.mx-search button {
	width: 50px; height: 44px; border: 0; border-radius: 0; padding: 0; background: var(--mx-green); color: #fff;
	cursor: pointer; display: grid; place-items: center;
}
.mx-search button:hover { background: var(--mx-green-dark); }

.mx-hdr__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.mx-lang { position: relative; }
.mx-lang__btn { position: relative; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--mx-black); cursor: pointer; display: grid; place-items: center; }
.mx-badge {
	position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
	border: 2px solid var(--mx-green); font-size: 8px; font-weight: 700; line-height: 1; display: grid; place-items: center; color: var(--mx-black);
}
.mx-lang__list {
	display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 80px; margin: 0; padding: 0;
	list-style: none; background: #fff; border: 1px solid var(--mx-line); box-shadow: 0 6px 20px rgba(0,0,0,.08); z-index: 60;
}
.mx-lang.is-open .mx-lang__list { display: block; }
.mx-lang__list a { display: block; padding: 10px 16px; color: var(--mx-text); text-decoration: none; font-size: 14px; }
.mx-lang__list a:hover,
.mx-lang__list a[aria-current] { color: var(--mx-green); font-weight: 700; }

body.mx-theme .mx-shop-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; background: var(--mx-green);
	color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none;
}
body.mx-theme .mx-shop-btn:hover,
body.mx-theme .mx-shop-btn:focus { background: var(--mx-green-dark); color: #fff; }

.mx-burger { display: none; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--mx-black); cursor: pointer; }

.mx-nav { min-height: 56px; display: flex; align-items: center; }
.mx-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.mx-nav__list > li { position: relative; }
.mx-nav__list a { display: block; padding: 16px 0; color: var(--mx-black); text-decoration: none; }
.mx-nav__list a:hover,
.mx-nav__list .current-menu-item > a,
.mx-nav__list .current-menu-ancestor > a,
.mx-nav__list .current-post-ancestor > a { color: var(--mx-green); }
.mx-nav__list .current-menu-item > a { font-weight: 700; }
.mx-nav__list .sub-menu {
	display: none; position: absolute; top: 100%; left: -16px; min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
	background: #fff; border: 1px solid var(--mx-line); box-shadow: 0 6px 20px rgba(0,0,0,.08); z-index: 60;
}
.mx-nav__list li:hover > .sub-menu,
.mx-nav__list li:focus-within > .sub-menu { display: block; }
.mx-nav__list .sub-menu a { padding: 8px 16px; }
.mx-nav__hint { margin: 0; font-size: 13px; color: #b45309; }

/* ---------- Titelband en broodkruimel ---------- */
.mx-page-hd { background: var(--mx-soft); border-bottom: 1px solid var(--mx-line); padding: 18px 0 32px; }
.mx-crumbs { font-size: 13px; color: var(--mx-muted); margin-bottom: 18px; }
.mx-crumbs a { color: var(--mx-muted); text-decoration: none; }
.mx-crumbs a:hover { color: var(--mx-green); }
.mx-crumbs__sep { margin: 0 6px; }
.mx-page-hd__title { font-family: var(--mx-font); font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--mx-black); max-width: 900px; margin: 8px 0 0; }
.mx-page-hd__intro { max-width: 760px; margin-top: 12px; color: #374151; }
.mx-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--mx-muted); }

.mx-tag {
	display: inline-block; background: var(--mx-green); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5;
	padding: 3px 10px; border-radius: var(--mx-radius); text-transform: uppercase; letter-spacing: .3px; text-decoration: none;
}
a.mx-tag:hover { background: var(--mx-green-dark); color: #fff; }

/* ---------- Artikel-layout ---------- */
.mx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding: 40px 0 64px; }
.mx-hero { margin: 0 0 32px; }
.mx-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--mx-radius); display: block; }

.mx-content { max-width: 760px; }
.mx-content--wide { max-width: none; padding: 40px 0 64px; }
.mx-content p { margin: 0 0 18px; }
.mx-content h2 { font-size: 24px; line-height: 1.3; margin: 36px 0 12px; color: var(--mx-black); }
.mx-content h3 { font-size: 19px; line-height: 1.35; margin: 26px 0 10px; color: var(--mx-black); }
.mx-content h4 { font-size: 17px; margin: 22px 0 8px; }
.mx-content ul,
.mx-content ol { margin: 0 0 18px 22px; padding: 0; }
.mx-content li { margin-bottom: 6px; }
.mx-content li::marker { color: var(--mx-green); }
.mx-content a { color: var(--mx-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.mx-content a:hover { color: var(--mx-green); }
.mx-content img { border-radius: var(--mx-radius); }
.mx-content blockquote { border-left: 4px solid var(--mx-green); background: var(--mx-soft); margin: 0 0 24px; padding: 16px 22px; font-style: normal; }
.mx-content table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.mx-content th,
.mx-content td { border: 1px solid var(--mx-line); padding: 10px 14px; text-align: left; }
.mx-content th { background: var(--mx-soft); font-weight: 700; }
.mx-content iframe[src*="youtube"],
.mx-content .wp-block-embed iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Bouwstenen voor in de editor: voeg de CSS-klasse toe aan een blok. */
.mx-tldr { border-left: 4px solid var(--mx-green); background: var(--mx-soft); padding: 18px 22px; margin: 0 0 28px; }
.mx-tldr > :first-child::before {
	content: "In het kort"; display: block; font-size: 13px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .5px; color: var(--mx-green-dark); margin-bottom: 4px;
}
html[lang^="fr"] .mx-tldr > :first-child::before { content: "En bref"; }
.mx-lead { font-size: 19px; color: #374151; }

/* Knoppen */
body.mx-theme .mx-btn,
.mx-content .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 8px; background: var(--mx-green); color: #fff; font-weight: 700;
	font-size: 15px; padding: 12px 20px; border-radius: var(--mx-radius); white-space: nowrap; text-decoration: none; border: 0;
}
body.mx-theme .mx-btn:hover,
.mx-content .wp-block-button__link:hover { background: var(--mx-green-dark); color: #fff; }
.mx-btn--ghost,
.mx-content .is-style-outline .wp-block-button__link { background: #fff; color: var(--mx-text); border: 1px solid var(--mx-line-strong); }

/* ---------- Sidebar ---------- */
.mx-sidebar .mx-box { border: 1px solid var(--mx-line); border-radius: var(--mx-radius); padding: 22px; margin-bottom: 24px; }
.mx-box__title { font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--mx-line); color: var(--mx-black); }
.mx-list,
.mx-sidebar .mx-box ul { list-style: none; margin: 0; padding: 0; }
.mx-list li,
.mx-sidebar .mx-box li { padding: 7px 0; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.mx-sidebar a { color: var(--mx-text); text-decoration: none; }
.mx-sidebar a:hover { color: var(--mx-green); }
.mx-list span { color: var(--mx-muted); font-size: 13px; }
.mx-sidebar .mx-box--help { background: var(--mx-navy); color: #fff; border: 0; }
.mx-box--help .mx-box__title { color: #fff; border-color: #374151; }
.mx-box--help p { font-size: 14px; color: #d1d5db; margin: 0 0 14px; }
.mx-sidebar .mx-help__tel { display: block; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.mx-sidebar .mx-box--help .mx-btn { color: #fff; }

/* ---------- Kaarten en overzicht ---------- */
.mx-related { background: var(--mx-soft); border-top: 1px solid var(--mx-line); padding: 48px 0 60px; }
.mx-related__title { font-size: 24px; margin: 0 0 22px; color: var(--mx-black); }
.mx-archive { padding-top: 40px; padding-bottom: 64px; }
.mx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
body.mx-theme .mx-card { display: block; background: #fff; border: 1px solid var(--mx-line); border-radius: var(--mx-radius); overflow: hidden; color: var(--mx-text); text-decoration: none; transition: box-shadow .15s; }
body.mx-theme .mx-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); color: var(--mx-text); }
.mx-card__img { aspect-ratio: 16 / 10; background: #eef2f5; overflow: hidden; }
.mx-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-card__body { padding: 16px 18px 20px; }
.mx-card__title { font-size: 17px; line-height: 1.35; margin: 10px 0 8px; color: var(--mx-black); }
.mx-card:hover .mx-card__title { color: var(--mx-green-dark); }
.mx-card__text { font-size: 14px; color: var(--mx-muted); margin: 0; }
.mx-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.mx-pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--mx-line); color: var(--mx-text); text-decoration: none; }
.mx-pagination .current,
.mx-pagination a:hover { background: var(--mx-green); border-color: var(--mx-green); color: #fff; }

/* ---------- Footer ---------- */
.mx-ftr { background: var(--mx-navy); color: #d1d5db; font-size: 14px; }
.mx-ftr a { color: #d1d5db; text-decoration: none; }
.mx-ftr a:hover { color: #fff; }
.mx-ftr__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 52px 0 40px; }
.mx-ftr__logo { width: 200px; height: auto; margin-bottom: 16px; filter: invert(1); }
.mx-ftr p { margin: 0 0 8px; }
.mx-ftr__muted { color: #9ca3af; }
.mx-ftr__title { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.mx-ftr__list { list-style: none; margin: 0; padding: 0; }
.mx-ftr__list li { padding: 3px 0; }
.mx-ftr__bottom { border-top: 1px solid #374151; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: #9ca3af; }
.mx-ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.mx-ftr__legal a { color: #9ca3af; }

/* ---------- Links: zwart, groen bij hover (wint van Elementor-kleuren) ---------- */
body.mx-theme .mx-site a:not(.elementor-button):not(.mx-btn):not(.mx-tag):not(.wp-block-button__link),
body.mx-theme .mx-site a:not(.elementor-button):not(.mx-btn):not(.mx-tag):not(.wp-block-button__link):visited { color: var(--mx-black); }
body.mx-theme .mx-site a:not(.elementor-button):not(.mx-btn):not(.mx-tag):not(.wp-block-button__link):hover,
body.mx-theme .mx-site a:not(.elementor-button):not(.mx-btn):not(.mx-tag):not(.wp-block-button__link):focus { color: var(--mx-green); }

/* ---------- Titels: zwart en kleiner (wint van Elementor-typografie) ---------- */
body.mx-theme .mx-site h1,
body.mx-theme .mx-site h2,
body.mx-theme .mx-site h3,
body.mx-theme .mx-site h4,
body.mx-theme .mx-site .elementor-heading-title { color: var(--mx-black); font-family: var(--mx-font); font-weight: 700; }
body.mx-theme .mx-site h1,
body.mx-theme .mx-site h1.elementor-heading-title { font-size: 34px; line-height: 1.2; }
body.mx-theme .mx-site h2,
body.mx-theme .mx-site h2.elementor-heading-title { font-size: 24px; line-height: 1.3; }
body.mx-theme .mx-site h3,
body.mx-theme .mx-site h3.elementor-heading-title { font-size: 19px; line-height: 1.35; }
body.mx-theme .mx-site .elementor-post__title,
body.mx-theme .mx-site .elementor-post__title a { font-size: 17px; line-height: 1.35; font-weight: 700; }
@media (max-width: 600px) {
	body.mx-theme .mx-site h1,
	body.mx-theme .mx-site h1.elementor-heading-title { font-size: 26px; }
	body.mx-theme .mx-site h2,
	body.mx-theme .mx-site h2.elementor-heading-title { font-size: 21px; }
}

/* ---------- Header: menu naast logo, zoekbalk via icoon ---------- */
.mx-hdr__top { gap: 40px; min-height: 80px; padding-top: 0; }
.mx-nav { min-height: 0; }
.mx-nav__list a { padding: 28px 0; }
.mx-search-toggle { width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--mx-black); cursor: pointer; display: grid; place-items: center; }
.mx-search-toggle:hover,
.mx-search-toggle[aria-expanded="true"] { color: var(--mx-green); }
.mx-search { max-width: none; padding: 0 0 16px; }
.mx-search[hidden] { display: none; }

/* ---------- Nieuwsbriefblok (Elementor-templates 1935 NL, 3055 FR): zwart met groen ---------- */
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .elementor-section,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .elementor-section { background-color: var(--mx-black) !important; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .elementor-heading-title,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .elementor-heading-title { color: #fff !important; font-family: var(--mx-font) !important; font-size: 30px !important; line-height: 1.25 !important; font-weight: 700 !important; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .elementor-icon-list-text,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .elementor-icon-list-text { color: #fff !important; font-family: var(--mx-font) !important; font-size: 18px !important; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .elementor-icon-list-icon i,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .elementor-icon-list-icon i { color: var(--mx-green) !important; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .elementor-icon-list-icon svg,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .elementor-icon-list-icon svg { fill: var(--mx-green) !important; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .ff-el-form-control,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .ff-el-form-control { border: 1px solid transparent !important; border-radius: 0 !important; font-family: var(--mx-font) !important; font-size: 15px !important; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .ff-el-form-control:focus,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .ff-el-form-control:focus { border-color: var(--mx-green) !important; box-shadow: 0 0 0 2px var(--mx-green) !important; outline: 0; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .ff-btn-submit,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .ff-btn-submit { background-color: var(--mx-green) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; font-family: var(--mx-font) !important; font-size: 15px !important; font-weight: 700 !important; padding: 12px 24px !important; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .ff-btn-submit *,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .ff-btn-submit * { color: #fff !important; }
body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .ff-btn-submit:hover,
body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .ff-btn-submit:hover { background-color: var(--mx-green-dark) !important; }
@media (max-width: 600px) {
	body.mx-theme.mx-theme.mx-theme .elementor-1935.elementor-1935.elementor-1935 .elementor-heading-title,
	body.mx-theme.mx-theme.mx-theme .elementor-3055.elementor-3055.elementor-3055 .elementor-heading-title { font-size: 22px !important; }
}

/* ---------- Responsief ---------- */
@media (max-width: 1024px) {
	.mx-hdr__top { gap: 16px; flex-wrap: wrap; }
	.mx-burger { display: grid; place-items: center; }
	.mx-logo img { width: 180px; }
	.mx-nav { display: none; order: 10; flex-basis: 100%; }
	.mx-nav.is-open { display: block; border-top: 1px solid var(--mx-line); }
	.mx-nav__list { display: block; }
	.mx-nav__list a { padding: 12px 0; border-bottom: 1px solid var(--mx-line); }
	.mx-nav__list .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.mx-layout { grid-template-columns: 1fr; gap: 24px; }
	.mx-grid { grid-template-columns: repeat(2, 1fr); }
	.mx-ftr__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .mx-hdr { top: 0; position: relative; }
}
@media (max-width: 600px) {
	.mx-wrap { padding: 0 16px; }
	.mx-hdr__top { gap: 10px; }
	.mx-logo img { width: 120px; }
	.mx-hdr__right { gap: 10px; }
	.mx-shop-btn { padding: 0 12px; font-size: 14px; height: 40px; }
	.mx-shop-btn svg { display: none; }
	.mx-hdr__top { gap: 8px; }
	.mx-logo img { width: 110px; }
	.mx-hdr__right { gap: 6px; }
	.mx-search-toggle,
	.mx-burger { width: 32px; }
	body.mx-theme .mx-shop-btn { padding: 0 10px; font-size: 13px; height: 38px; }
	.mx-page-hd__title { font-size: 26px; }
	.mx-grid,
	.mx-ftr__cols { grid-template-columns: 1fr; }
}
