/*
 * BKM ontwerpreparaties (december 2026)
 * Wordt als laatste stylesheet geladen (zie functions.php, bkm_fixes_assets).
 * Alles hier is getest op mobiel (390px) en desktop (1440px).
 */

/* ---------------------------------------------------------------------------
   1. Zwevende knop "Offerte aanvragen"
   Stond op mobiel over tekst, prijzen en formuliervelden heen.
   Mobiel: vaste balk onderaan over de volle breedte, met gereserveerde ruimte.
   Verborgen waar hij overbodig is of in de weg zit (offerte, winkelmand, afrekenen).
--------------------------------------------------------------------------- */
body.page-id-15402 .bk-sticky-btn,
body.page-id-7923 .bk-sticky-btn,
body.woocommerce-cart .bk-sticky-btn,
body.woocommerce-checkout .bk-sticky-btn,
body.woocommerce-account .bk-sticky-btn {
	display: none !important;
}

@media (max-width: 768px) {
	body .bk-sticky-btn {
		left: 0;
		right: 0;
		bottom: 0;
		padding: 0;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
	}
	/* niet over het uitgeklapte menu heen */
	body.menuopen .bk-sticky-btn {
		display: none;
	}
	body .bk-sticky-btn a {
		display: block;
		padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0.5px;
		line-height: 20px;
	}
	/* ruimte onderaan zodat de balk nooit het einde van de pagina bedekt */
	body .jviewport .contentholder {
		padding-bottom: 48px;
	}
	body.page-id-15402 .jviewport .contentholder,
	body.page-id-7923 .jviewport .contentholder,
	body.woocommerce-cart .jviewport .contentholder,
	body.woocommerce-checkout .jviewport .contentholder,
	body.woocommerce-account .jviewport .contentholder {
		padding-bottom: 0;
	}
}

/* ---------------------------------------------------------------------------
   2. Homepage: witte tekst over de achtergrondvideo was slecht leesbaar.
--------------------------------------------------------------------------- */
.video-wrap.parallaxvideo::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.38);
	pointer-events: none;
}

/* ---------------------------------------------------------------------------
   3. Portfolio / productoverzicht op mobiel: tegels staken 5px buiten beeld.
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.isotopewrapper .productitem .productcontent {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.productitem .pmask {
		left: 0 !important;
		right: 0 !important;
	}
}

/* ---------------------------------------------------------------------------
   4. Productpagina op mobiel: koopknop groot en over de volle breedte.
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
	body.single-product form.cart {
		margin: 14px 0 18px;
	}
	body.single-product form.cart .single_add_to_cart_button {
		display: block;
		float: none;
		width: 100%;
		min-height: 50px;
		padding: 12px 16px;
		font-size: 16px;
		font-weight: 700;
		letter-spacing: 0.5px;
		line-height: 24px;
	}
}

/* ---------------------------------------------------------------------------
   5. Winkelmand op mobiel: productnaam brak per woord af.
   De kolom "prijs" is gelijk aan "totaal" (aantal is altijd 1) en vervalt op mobiel.
--------------------------------------------------------------------------- */
@media (max-width: 600px) {
	body.woocommerce-cart .cartpage table.shop_table th.product-price,
	body.woocommerce-cart .cartpage table.shop_table td.product-price {
		display: none;
	}
	body.woocommerce-cart .cartpage table.shop_table td.product-name {
		width: auto;
		font-size: 15px;
		line-height: 1.35;
		word-break: normal;
		overflow-wrap: anywhere;
	}
	body.woocommerce-cart .cartpage table.shop_table td.product-subtotal {
		white-space: nowrap;
	}
}

/* ---------------------------------------------------------------------------
   6. Footer / menu: het Webwinkelkeur-bannerplaatje bestaat niet meer bij
   Webwinkelkeur zelf en toonde alleen losse alt-tekst.
--------------------------------------------------------------------------- */
img[src*="webwinkelkeur.nl/banners/"] {
	display: none !important;
}

/* ---------------------------------------------------------------------------
   7. Formulieren op mobiel: 16px voorkomt dat iOS automatisch inzoomt op een veld.
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
	body input[type="text"],
	body input[type="email"],
	body input[type="tel"],
	body input[type="number"],
	body input[type="password"],
	body input[type="search"],
	body select,
	body textarea {
		font-size: 16px;
	}
}

/* ---------------------------------------------------------------------------
   8. Winkelmand en afrekenen op mobiel: het zwevende Webwinkelkeur-rondje
   stond over de invoervelden. Op deze twee pagina's verborgen (alleen mobiel).
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
	body.woocommerce-cart [class^="wwk-sidebar"],
	body.woocommerce-cart [class*=" wwk-sidebar"],
	body.woocommerce-checkout [class^="wwk-sidebar"],
	body.woocommerce-checkout [class*=" wwk-sidebar"] {
		display: none !important;
	}
}

/* ---------------------------------------------------------------------------
   9. Desktop: verkleinde navigatie tijdens scrollen.
   De "Extra CSS" zet span.link_text 37px omlaag voor de hoge header; in de
   verkleinde header (54px) kwamen de menu-items daardoor tegen de onderrand.
--------------------------------------------------------------------------- */
@media (min-width: 1025px) {
	.topnavigation.topnavsmall span.link_text {
		margin-top: 0 !important;
	}
	.topnavigation.topnavsmall .mega_main_menu_ul > li > .item_link {
		display: flex !important;
		align-items: center;
		height: 54px !important;
	}
	.topnavigation.topnavsmall .mega_main_menu_ul > li > .item_link > span {
		display: flex !important;
		align-items: center;
		height: 54px !important;
		line-height: 1.2 !important;
	}
	.topnavigation.topnavsmall .topnavigationsearch {
		height: 54px !important;
	}
}

/* ---------------------------------------------------------------------------
   10. Mobiel: de header (logo + menuknop) blijft zichtbaar tijdens scrollen.
   De "Extra CSS" schoof hem bij scrollen 60px omhoog uit beeld.
--------------------------------------------------------------------------- */
@media (max-width: 910px) {
	body.has-scrolled .responsiveheader,
	body.has-scrolled .wwk-sidebar--top-wrapper {
		transform: none !important;
	}
}

/* ---------------------------------------------------------------------------
   11. Mobiel menu: schuift als laag OVER de site (de pagina schuift niet meer op),
   met sluitkruis en donkere waas. Lichte stijl in lijn met de rest van de site.
   Het sluitkruis en het sluiten via de waas zitten in functions.php (bkm_mobile_menu_script).
--------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	/* paneel */
	body .jviewport .mobile-menu,
	body.menuopen[role="main-mobile-menu"] #main-mobile-menu {
		display: block !important;
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		float: none;
		width: 320px !important;
		max-width: 86vw !important;
		height: 100% !important;
		margin: 0;
		padding: 0 0 32px;
		box-sizing: border-box;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		color: #333;
		z-index: 100001 !important;
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform 0.28s ease, visibility 0s linear 0.28s;
	}
	body.menuopen[role="main-mobile-menu"] #main-mobile-menu {
		transform: translateX(0);
		visibility: visible;
		transition: transform 0.28s ease, visibility 0s;
	}

	/* de pagina blijft op zijn plek */
	body.menuopen[role="main-mobile-menu"] .container {
		left: 0 !important;
		border-left: 0 !important;
		box-shadow: none !important;
	}
	body.menuopen .responsiveheader {
		left: 0 !important;
	}
	body .mobile-menu-trigger.active {
		background: transparent !important;
	}
	body .mobile-menu-trigger.active .iconlist {
		color: inherit !important;
	}

	/* donkere waas over de hele pagina; tikken sluit het menu */
	body.menuopen::after {
		content: "";
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0 !important;
		max-width: none !important;
		background: rgba(0, 0, 0, 0.5);
		z-index: 100000 !important;
		pointer-events: auto !important;
		cursor: pointer;
	}

	/* kop met sluitkruis */
	body .mobile-menu .bkm-menu-head {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 60px;
		padding: 0 8px 0 20px;
		background: #fff;
		border-bottom: 1px solid #ececec;
	}
	body .mobile-menu .bkm-menu-head span {
		font-family: "Lato", "Open Sans", sans-serif;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 2px;
		text-transform: uppercase;
		color: #333;
	}
	body .mobile-menu .bkm-menu-close {
		width: 48px;
		height: 48px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: #333;
		font-family: Arial, sans-serif;
		font-size: 34px;
		font-weight: 300;
		line-height: 44px;
		text-align: center;
		cursor: pointer;
	}
	body .mobile-menu .bkm-menu-close:hover,
	body .mobile-menu .bkm-menu-close:focus {
		background: #f2f2f2;
		outline: none;
	}

	/* inhoud */
	body .mobile-menu .mobile-menu-content {
		padding: 0;
	}
	body .mobile-menu h2.bkm-hide {
		display: none; /* "Menu" staat al in de kop */
	}
	/* zwarte achtergrondlaag van het thema (270px breed) is niet meer nodig */
	body .mobile-menu .mobile-float {
		display: none !important;
	}
	body .mobile-menu h2 {
		margin: 22px 20px 6px;
		font-family: "Lato", "Open Sans", sans-serif;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 2px;
		text-transform: uppercase;
		color: #999;
	}
	body .mobile-menu ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	body .mobile-menu li a,
	body .mobile-menu li a:hover {
		display: block;
		margin: 0 !important;
		padding: 0 20px;
		border: 0;
		border-bottom: 1px solid #f0f0f0;
		border-left: 4px solid transparent;
		background: #fff;
		color: #333;
		font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
		font-size: 16px;
		font-weight: 400;
		line-height: 52px;
		text-decoration: none;
	}
	body .mobile-menu li a:active {
		background: #f6f6f6;
	}
	body .mobile-menu li[class^="current"] > a,
	body .mobile-menu li[class*="current_"] > a,
	body .mobile-menu li[class*="current-"] > a {
		margin-left: 0 !important;
		border-left: 4px solid #008f34;
		border-top: 0;
		background: #f4faf6;
		color: #008f34;
		font-weight: 700;
	}
	/* "Offerte aanvragen" als opvallende knop */
	body .mobile-menu #menu-mobile li.menu-item-15425 {
		padding: 14px 20px 6px;
	}
	body .mobile-menu #menu-mobile li.menu-item-15425 > a {
		border: 0;
		border-radius: 3px;
		background: #009b7b;
		color: #fff;
		font-weight: 700;
		letter-spacing: 0.5px;
		text-align: center;
		text-transform: uppercase;
		line-height: 50px;
	}
	body .mobile-menu i {
		top: 2px;
		width: 24px;
		margin-right: 10px;
		font-size: 19px;
		color: #008f34;
		text-align: center;
	}
	body .mobile-menu .mobile-copyright {
		margin: 26px 20px 0;
		padding: 14px 16px;
		border-radius: 3px;
		background: #f5f5f5;
		color: #666;
		font-size: 13px;
		line-height: 1.6;
		text-align: center;
	}
	body .mobile-menu .mobile-copyright p {
		margin: 0;
	}
}

/* ---------------------------------------------------------------------------
   12. Lege stroken boven de footer
   - secties uit de paginabouwer zonder enige inhoud (alleen opvulling)
   - 30px ondermarge van het laatste tekstblok, waardoor een witte strook
     tussen de laatste sectie en de footer ontstond
--------------------------------------------------------------------------- */
body .landingpagewrapper > section:not(:has(.sectioncontainer > *)):not(:has(> img, > video, > iframe)) {
	display: none !important;
}
body .landingpagewrapper > .vce-row-container:has(+ .section-footer) .vce-text-block-wrapper:last-child,
body .landingpagewrapper > .vce-row-container:has(+ .section-footer) .vce-col-content > :last-child {
	margin-bottom: 0 !important;
}

/* ---------------------------------------------------------------------------
   13. Drukke schilderijtjes-achtergrond achter tekst: vervangen door een
   rustige, egale achtergrond (Werkwijze, Offerte, FAQ, Over ons, ...)
--------------------------------------------------------------------------- */
body section.parallaxfallback.bkm-calm,
body section.parallaxfallback:has(> img.newparallax[src*="achtergrond-schilderijtjes"]) {
	background-image: none !important;
	background-color: #fff !important;
}
body section.parallaxfallback > img.newparallax[src*="achtergrond-schilderijtjes"] {
	display: none !important;
}

/* ---------------------------------------------------------------------------
   14. Productpagina - nieuwe opmaak
   Gewone twee-koloms opmaak (afbeelding links, gegevens rechts) in plaats van
   het zwevende blok van het thema dat over de footer heen schoof.
--------------------------------------------------------------------------- */
body.single-product .bk-sticky-btn { display: none !important; }

body.single-product .pagewrapper.productline {
	max-width: 1320px;
	margin: 0 auto !important;
	padding: 40px 32px 72px !important;
	box-sizing: border-box;
	float: none;
}
body.single-product .productline .pageholder { margin: 0 !important; }
body.single-product .productline .pageholdwrapper {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	height: auto !important;
}
body.single-product .productline .mainpage,
body.single-product .productline .mainsidebar {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
}
/* het script van het thema zet dit blok vast tijdens scrollen: uitschakelen */
body.single-product .productline .mainsidebar-wrapper {
	position: static !important;
	width: auto !important;
	top: auto !important;
	bottom: auto !important;
}
body.single-product .productline .blog-sidebar,
body.single-product .productline .blog-sidebar-content {
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* afbeelding */
body.single-product .productline .imagelist-content-wrapper { margin: 0 !important; }
body.single-product .productline .imageholder {
	background: #f6f6f4;
	padding: 28px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: auto !important;
}
body.single-product .productline .imageholder a { display: block; height: auto !important; }
body.single-product .productline .imageholder img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 74vh;
	object-fit: contain;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
/* dubbele miniatuur van dezelfde afbeelding onder de hoofdafbeelding */
body.single-product .productline .woocommerce-product-gallery:not(:has(.woocommerce-product-gallery__image ~ .woocommerce-product-gallery__image)) {
	display: none !important;
}

/* titel, prijs, status */
body.single-product .productline .product_title.article-header {
	padding: 0 !important;
	margin: 0 0 14px !important;
	border: 0 !important;
	background: none !important;
	text-align: left !important;
}
body.single-product .productline .product_title h1 {
	font-family: Lato, "Open Sans", Arial, sans-serif;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: #222;
	margin: 0;
	padding: 0;
	text-align: left;
	text-wrap: balance;
}
body.single-product .productline .product_price_desktops { margin: 0 0 18px; }
body.single-product .productline .product_price_desktops p.price {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 30px !important;
	line-height: 1.2 !important;
	font-weight: 700;
	color: #222 !important;
	float: none !important;
}
body.single-product .productline p.price .woocommerce-price-suffix {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 400;
	color: #6b6b6b;
}
body.single-product .jkreativ-woocommerce.productline p.stock {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px !important;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e8f5ec;
	color: #00702a !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
body.single-product .productline p.stock::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #008f34;
}
body.single-product .productline p.stock.out-of-stock { background: #fdecec; color: #b3261e !important; }
body.single-product .productline p.stock.out-of-stock::before { background: #b3261e; }

/* betaalknop */
body.single-product .productline form.cart { display: flex; gap: 12px; align-items: stretch; margin: 0 0 18px !important; width: auto; float: none; }
body.single-product .productline form.cart::before,
body.single-product .productline form.cart::after { display: none !important; }
body.single-product .productline form.cart .quantity { flex: 0 0 76px; margin: 0 !important; float: none; }
body.single-product .productline form.cart .quantity input.qty {
	width: 100% !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 0 6px !important;
	box-sizing: border-box;
	border: 1px solid #cfcfcf !important;
	border-radius: 4px;
	background: #fff;
	font-size: 16px !important;
	font-weight: 600;
	text-align: center;
	color: #222;
}
body.single-product .productline form.cart .quantity:has(input[type="hidden"]) { display: none; }
body.single-product .productline form.cart .single_add_to_cart_button {
	display: block;
	flex: 1 1 auto;
	width: auto;
	min-height: 56px;
	margin: 0;
	padding: 14px 24px;
	float: none;
	border: 0 !important;
	border-radius: 4px;
	background: #009b7b !important;
	color: #fff !important;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px !important;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-shadow: none;
	box-shadow: none;
	transition: background-color .15s ease;
}
body.single-product .productline form.cart .single_add_to_cart_button:hover,
body.single-product .productline form.cart .single_add_to_cart_button:focus-visible { background: #007f65 !important; }

/* zekerheden */
body .bkm-usps { list-style: none; margin: 0 0 30px; padding: 0; }
body .bkm-usps li {
	position: relative;
	margin: 0;
	padding: 5px 0 5px 28px;
	font-size: 15px;
	line-height: 1.5;
	color: #444;
	list-style: none;
}
body .bkm-usps li::before {
	content: "";
	position: absolute;
	left: 3px; top: 10px;
	width: 12px; height: 6px;
	border-left: 2px solid #008f34;
	border-bottom: 2px solid #008f34;
	transform: rotate(-45deg);
}

/* uitklapblokken */
body.single-product .productline #accordion { margin: 0; border-top: 1px solid #e2e2e2; }
body.single-product .productline #accordion .panel {
	margin: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #e2e2e2 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
}
body.single-product .productline #accordion .panel-heading {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}
body.single-product .productline #accordion .panel-title { margin: 0; }
body.single-product .productline #accordion .panel-title a {
	position: relative;
	display: block;
	padding: 18px 36px 18px 0;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #222;
	text-decoration: none;
}
body.single-product .productline #accordion .panel-title a::after {
	content: "";
	position: absolute;
	right: 8px; top: 50%;
	width: 9px; height: 9px;
	margin-top: -3px;
	border-right: 2px solid #222;
	border-bottom: 2px solid #222;
	transform: rotate(-135deg);
	transition: transform .15s ease;
}
body.single-product .productline #accordion .panel:not(:has(.panel-collapse.in)) .panel-title a::after {
	margin-top: -8px;
	transform: rotate(45deg);
}
body.single-product .productline #accordion .panel-body {
	padding: 0 0 20px !important;
	border: 0 !important;
	font-size: 15px;
	line-height: 1.7;
	color: #444;
}
body.single-product .productline #accordion .panel-body > :last-child { margin-bottom: 0; }

@media (min-width: 1025px) {
	/* afbeelding blijft in beeld terwijl je door de gegevens scrolt */
	body.single-product .productline .mainpage { position: sticky !important; top: 120px; }
	/* 'hidden' maakt meescrollen onmogelijk; 'clip' knipt hetzelfde af zonder dat nadeel */
	body.single-product .jviewport .contentholder { overflow: clip !important; }
}
@media (max-width: 1024px) {
	body.single-product .pagewrapper.productline { padding: 20px 16px 48px !important; }
	body.single-product .productline .pageholdwrapper { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	body.single-product .productline .imageholder { padding: 14px; gap: 14px; }
	body.single-product .productline .imageholder img { max-height: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
	body.single-product .productline .product_title h1 { font-size: 26px; }
	body.single-product .productline .product_price_desktops p.price { font-size: 26px !important; }
	body.single-product .jviewport .contentholder { padding-bottom: 0; }
	/* zwevend keurmerk viel over de betaalknop en de tekst heen */
	body.single-product [class^="wwk-sidebar"],
	body.single-product [class*=" wwk-sidebar"] { display: none !important; }
}

/* ---------------------------------------------------------------------------
   15. Footer onder zwevende inhoud houden
   Op gewone pagina's zweeft de inhoud (float) en had de omhullende laag geen
   hoogte; de toegevoegde footer kon daardoor over de inhoud heen schuiven.
--------------------------------------------------------------------------- */
body .pagewrapper::after,
body .pageholder::after,
body .pageholdwrapper::after { content: ""; display: table; clear: both; }
body .section-footer.bkm-site-footer { clear: both; position: relative; }
