/* ==========================================================================
   myboek – aanvullende stijlen (mobiel eerst)
   Kleuren, fonts en spacing komen uit theme.json (var(--wp--preset--...)).
   ========================================================================== */

:root {
	--mb-radius-s: 10px;
	--mb-radius-m: 18px;
	--mb-radius-l: 28px;
	--mb-shadow: 0 10px 30px -12px rgba(31, 42, 68, 0.18);
	--mb-shadow-lift: 0 24px 50px -20px rgba(31, 42, 68, 0.35);
	--mb-line: var(--wp--preset--color--line);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
	border-radius: 6px;
}
::selection { background: var(--wp--preset--color--sun); color: var(--wp--preset--color--contrast); }

/* ---------- Header ---------- */
.mb-site-header { position: sticky; top: 0; z-index: 60; }
.admin-bar .mb-site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .mb-site-header { top: 32px; } }
.mb-header { border-bottom: 1px solid var(--mb-line); backdrop-filter: saturate(1.2); }
.mb-topbar p { margin: 0; letter-spacing: .01em; }
@media (max-width: 480px) { .mb-topbar p { font-size: .8rem !important; } }

.mb-logo { display: inline-flex; align-items: center; gap: .55rem; margin: 0; line-height: 1; }
.mb-logo::before {
	content: ""; width: 38px; height: 38px; flex: 0 0 38px;
	background: url(../img/logo-mark.svg) center / contain no-repeat;
}
.mb-logo a { white-space: nowrap; }
.mb-logo--light a { color: var(--wp--preset--color--base) !important; }
@media (max-width: 380px) {
	.mb-logo { font-size: 1.35rem !important; }
	.mb-logo::before { width: 32px; height: 32px; flex-basis: 32px; }
}

.mb-header-actions { align-items: center; }
.mb-nav .wp-block-navigation-item__content { padding: .35rem 0; }
.mb-nav .wp-block-navigation__responsive-container-open,
.mb-header-actions .wc-block-mini-cart__button,
.mb-header-actions .wc-block-customer-account a {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; padding: 0; color: var(--wp--preset--color--contrast);
}
.mb-nav .wp-block-navigation__responsive-container-open:hover,
.mb-header-actions .wc-block-mini-cart__button:hover,
.mb-header-actions .wc-block-customer-account a:hover { background: var(--wp--preset--color--base-2); }
.mb-header-actions .wc-block-mini-cart__badge { background: var(--wp--preset--color--primary); color: #fff; border: 0; font-weight: 700; }
.mb-nav { order: 3; }
@media (min-width: 600px) { .mb-nav { order: 0; } }

/* Mobiel menu (overlay) */
.mb-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem clamp(1rem, 5vw, 2rem) 2rem;
	background: var(--wp--preset--color--base) !important;
}
.mb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem; align-items: flex-start;
}
.mb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .25rem; width: 100%; }
.mb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.mb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; font-weight: 650;
	display: block; width: 100%; padding: .7rem 0; border-bottom: 1px solid var(--mb-line);
}
.mb-nav .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; display: grid; place-items: center; }

/* ---------- Algemene bouwstenen ---------- */
.mb-main > .wp-block-post-content > *:first-child { margin-top: 0; }
.mb-section { position: relative; }
.mb-eyebrow {
	display: inline-block; margin-bottom: .25rem !important;
	font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--wp--preset--color--primary-dark);
}
.mb-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--contrast-2); }
.mb-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius-l);
	box-shadow: var(--mb-shadow);
}
.mb-card > *:first-child { margin-top: 0; }
.mb-pill {
	display: inline-flex; align-items: center; gap: .4rem;
	background: var(--wp--preset--color--white); border: 1px solid var(--mb-line);
	border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; font-weight: 650;
}
.mb-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.mb-checks li { position: relative; padding-left: 1.6rem; font-weight: 650; font-size: .95rem; }
.mb-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
	background: var(--wp--preset--color--teal) 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='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.wp-block-button__link { transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(214, 69, 47, .7); }
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--contrast) !important; color: #fff !important; box-shadow: none; }
@media (max-width: 599px) {
	.mb-buttons-stack.wp-block-buttons { flex-direction: column; align-items: stretch; }
	.mb-buttons-stack .wp-block-button { width: 100%; }
	.mb-buttons-stack .wp-block-button__link { width: 100%; }
}

/* ---------- Hero ---------- */
.mb-hero { overflow: hidden; border-radius: 0 0 clamp(28px, 6vw, 64px) clamp(28px, 6vw, 64px); }
.mb-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
	background: url(../img/sterren.svg) right 4% top 10% / 220px no-repeat, url(../img/sterren.svg) left -40px bottom -30px / 180px no-repeat;
}
.mb-hero > * { position: relative; }
.mb-hero h1 { text-wrap: balance; }
.mb-hero h1 em, .mb-highlight { font-style: normal; color: var(--wp--preset--color--primary); position: relative; white-space: nowrap; }
.mb-hero h1 em::after {
	content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .28em; z-index: -1;
	background: var(--wp--preset--color--sun); border-radius: 999px; opacity: .75;
}
.mb-hero .wp-block-columns { align-items: center !important; }

/* Het 'boek' in de hero is opgebouwd uit gewone blokken, dus de naam is in de editor aan te passen. */
.mb-cover-wrap { position: relative; max-width: 380px; margin-inline: auto; padding: 1rem 1rem 1.5rem; }
.mb-cover {
	position: relative; aspect-ratio: 4 / 5; border-radius: 8px 26px 26px 8px;
	background:
		url(../img/sterren.svg) center top 6% / 70% no-repeat,
		radial-gradient(circle at 75% 18%, #FFE9A8 0 9%, transparent 9.5%),
		linear-gradient(165deg, #2A9D8F 0%, #1F7F74 55%, #1A5E6E 100%);
	box-shadow: var(--mb-shadow-lift), inset 14px 0 0 rgba(0,0,0,.12), inset 17px 0 0 rgba(255,255,255,.12);
	padding: 1.6rem 1.4rem 1.4rem 2.2rem !important;
	display: flex; flex-direction: column; justify-content: space-between; color: #fff;
	transform: rotate(-3deg);
	transition: transform .3s ease;
}
.mb-cover:hover { transform: rotate(-1deg) translateY(-4px); }
.mb-cover > * { margin: 0 !important; }
.mb-cover .mb-cover-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.mb-cover .mb-cover-name {
	font-family: var(--wp--preset--font-family--heading); font-weight: 750; line-height: 1;
	font-size: clamp(2.6rem, 9vw, 3.6rem); color: var(--wp--preset--color--sun); text-shadow: 0 3px 0 rgba(0,0,0,.15);
}
.mb-cover .mb-cover-title { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.2rem, 4vw, 1.5rem); line-height: 1.15; font-weight: 600; color: #fff; }
.mb-cover figure.mb-cover-hero { width: 46%; align-self: flex-end; margin-top: auto !important; }
.mb-cover figure.mb-cover-hero img { border-radius: 50%; border: 4px solid rgba(255,255,255,.85); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.mb-badge {
	position: absolute; z-index: 2; right: -4px; top: 4px; transform: rotate(8deg);
	background: var(--wp--preset--color--sun); color: var(--wp--preset--color--contrast);
	font-weight: 800; font-size: .9rem; line-height: 1.1; text-align: center;
	width: 92px; height: 92px; border-radius: 50%; display: grid !important; place-items: center; padding: .5rem;
	box-shadow: var(--mb-shadow); margin: 0 !important;
}
@media (max-width: 781px) {
	.mb-hero .wp-block-column { flex-basis: 100% !important; }
	.mb-cover-wrap { max-width: 300px; }
	.mb-hero .mb-checks { justify-content: flex-start; }
}

/* ---------- Stappen ---------- */
.mb-step { padding: clamp(1.4rem, 4vw, 2rem) !important; height: 100%; }
.mb-step-num {
	display: inline-grid !important; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
	background: var(--wp--preset--color--contrast); color: #fff; font-weight: 800; margin: 0 0 .5rem !important;
}
.mb-step figure.mb-icon, .mb-usp figure.mb-icon { margin: 0 0 .75rem !important; }
.mb-icon img { width: 64px; height: 64px; border-radius: 0 !important; }
.mb-step h3, .mb-usp h3 { margin-top: .25rem; margin-bottom: .35rem; font-size: 1.3rem; }
.mb-step p, .mb-usp p { margin: 0; color: var(--wp--preset--color--contrast-2); }
.wp-block-columns.mb-steps { gap: 1rem; }
@media (max-width: 781px) {
	.wp-block-columns.mb-steps > .wp-block-column { flex-basis: 100% !important; }
}

/* ---------- Personages ---------- */
.mb-avatars { gap: clamp(.75rem, 2.5vw, 1.5rem) !important; }
.mb-avatars figure { margin: 0; text-align: center; }
.mb-avatars img { border-radius: 50% !important; transition: transform .2s ease; box-shadow: var(--mb-shadow); }
.mb-avatars figure:hover img { transform: translateY(-4px) rotate(-3deg); }
.mb-avatars figcaption { font-size: .85rem; font-weight: 650; color: var(--wp--preset--color--contrast-2); margin-top: .5rem; }
@media (max-width: 599px) {
	.mb-avatars { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.mb-avatars figcaption { display: none; }
}

/* ---------- USP's ---------- */
.mb-usp { display: flex; flex-direction: column; }
.mb-usp-grid { gap: 1rem !important; }

/* ---------- Band / CTA ---------- */
.mb-band { border-radius: var(--mb-radius-l); overflow: hidden; position: relative; }
.mb-band::after {
	content: ""; position: absolute; right: -30px; bottom: -40px; width: 220px; height: 220px; pointer-events: none;
	background: url(../img/sterren.svg) center / contain no-repeat; opacity: .8;
}
.mb-band > * { position: relative; z-index: 1; }

/* ---------- FAQ (details) ---------- */
.wp-block-details { box-shadow: 0 1px 0 rgba(31,42,68,.03); }
.wp-block-details + .wp-block-details { margin-top: .75rem; }
.wp-block-details summary {
	font-weight: 750; cursor: pointer; list-style: none; position: relative; padding-right: 2.25rem; min-height: 28px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--base-2); font-size: 1.2rem; line-height: 1; transition: transform .2s ease;
}
.wp-block-details[open] summary::after { content: "–"; background: var(--wp--preset--color--sun); }
.wp-block-details > *:not(summary) { margin-top: .6rem; margin-bottom: 0; color: var(--wp--preset--color--contrast-2); }

/* ---------- Content pagina's ---------- */
.mb-page-hero { border-radius: 0 0 clamp(24px, 5vw, 48px) clamp(24px, 5vw, 48px); }
.mb-page-hero h1 { text-wrap: balance; }
.mb-note {
	background: var(--wp--preset--color--sun-soft); border-left: 4px solid var(--wp--preset--color--sun);
	border-radius: var(--mb-radius-s); padding: 1rem 1.25rem !important;
}
.entry-content table, .wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--mb-line); padding: .6rem .8rem; }
.wp-block-table thead { background: var(--wp--preset--color--base-2); border-bottom: 0; }
.wp-block-table { overflow-x: auto; }

/* ---------- Footer ---------- */
.mb-footer .mb-footer-title { font-family: var(--wp--preset--font-family--body); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; }
.mb-footer-links { list-style: none; padding: 0; margin: 0; }
.mb-footer-links li { margin: 0 0 .45rem; }
.mb-footer-links a { text-decoration: none; color: #E6E8F1 !important; }
.mb-footer-links a:hover { text-decoration: underline; color: #fff !important; }
.mb-footer .mb-logo { margin-bottom: .75rem; }
@media (max-width: 781px) {
	.mb-footer .wp-block-columns { flex-wrap: wrap !important; }
	.mb-footer .wp-block-column:first-child { flex-basis: 100% !important; }
	.mb-footer .wp-block-column:not(:first-child) { flex-basis: calc(50% - 1rem) !important; flex-grow: 0; }
}

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.wc-block-components-button:not(.is-link), .wp-block-button.wc-block-components-product-button .wp-block-button__link {
	background: var(--wp--preset--color--primary) !important; color: #fff !important;
	border-radius: 999px !important; border: 0 !important; font-weight: 750 !important;
	padding: .8rem 1.4rem !important; font-family: var(--wp--preset--font-family--body) !important;
	line-height: 1.2 !important; text-decoration: none !important; min-height: 44px;
}
.woocommerce .button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--wp--preset--color--primary-dark) !important; }
.woocommerce .price, .wc-block-components-product-price { color: var(--wp--preset--color--contrast) !important; font-weight: 750; }
.woocommerce .price del, .wc-block-components-product-price del { opacity: .55; font-weight: 500; }
.woocommerce .price ins, .wc-block-components-product-price ins { text-decoration: none; color: var(--wp--preset--color--primary-dark); }

/* Productkaarten (shortcode en blokken) */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(1rem, 3vw, 1.75rem); margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important;
	background: var(--wp--preset--color--white); border: 1px solid var(--mb-line); border-radius: var(--mb-radius-l);
	padding: .75rem .75rem 1.25rem !important; box-shadow: var(--mb-shadow); display: flex; flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--mb-shadow-lift); }
.woocommerce ul.products li.product a img { border-radius: var(--mb-radius-m); margin-bottom: .9rem !important; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--heading) !important; font-size: 1.3rem !important; font-weight: 650; padding: 0 .5rem !important; line-height: 1.2;
}
.woocommerce ul.products li.product .price { padding: 0 .5rem; font-size: 1.05rem !important; margin-bottom: .9rem !important; }
.woocommerce ul.products li.product .button { margin: auto .5rem 0 !important; text-align: center; }
.woocommerce ul.products li.product a { text-decoration: none; color: inherit; }
.woocommerce span.onsale { background: var(--wp--preset--color--sun) !important; color: var(--wp--preset--color--contrast) !important; border-radius: 999px; min-height: 0; line-height: 1; padding: .5rem .75rem; font-weight: 800; }

.wc-block-product-template .wc-block-product, .wp-block-woocommerce-product-template li {
	background: var(--wp--preset--color--white); border: 1px solid var(--mb-line); border-radius: var(--mb-radius-l);
	padding: .75rem .75rem 1.25rem; box-shadow: var(--mb-shadow);
}
.wc-block-components-product-image img { border-radius: var(--mb-radius-m); }

/* Productpagina */
.single-product .wp-block-woocommerce-product-image-gallery img,
.single-product .woocommerce-product-gallery__image img { border-radius: var(--mb-radius-l); }
.single-product .wp-block-post-title { font-size: var(--wp--preset--font-size--xx-large) !important; line-height: 1.1; }
.single-product .wc-block-components-product-price, .single-product .price { font-size: 1.6rem !important; }
.woocommerce div.product form.cart { margin-top: 1rem; }
.woocommerce div.product form.cart .quantity .qty { min-height: 48px; border-radius: 999px; border: 1px solid var(--mb-line); width: 4.5rem; text-align: center; font-size: 1rem; }
.woocommerce div.product form.cart .single_add_to_cart_button { min-height: 52px; padding-inline: 2rem !important; font-size: 1.05rem !important; }
@media (max-width: 599px) {
	.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: .75rem; }
	.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 auto; }
	.single-product .wp-block-columns { gap: 1.25rem; }
}
.woocommerce-tabs ul.tabs li { border-radius: 999px 999px 0 0 !important; }

/* Formulieren */
.woocommerce form .input-text, .woocommerce form select, .wc-block-components-text-input input {
	border-radius: var(--mb-radius-s) !important; border: 1px solid #d8ccbf !important; min-height: 48px; font-size: 16px !important;
}
.woocommerce-store-notice, p.demo_store { background: var(--wp--preset--color--contrast) !important; }
.wc-block-components-notice-banner { border-radius: var(--mb-radius-m); }
