/*
Theme Name:   De Boog (Mijnkerk Child)
Template:     mijnkerk
Description:  Child-thema voor De Boog Uitgeverij op het mijnkerk-thema. Design overgenomen van de oude Ark-site.
Version:      1.0
*/

/* ============================================================
   VARIABELEN – huisstijl De Boog (uit de oude site)
   ============================================================ */
:root {
	--boog-donker: #34343c;     /* koppen, menu */
	--boog-tekst: #333333;
	--boog-tekst-licht: #606060;
	--boog-cyaan: #00bcd4;      /* links, knoppen */
	--boog-blauw: #054b88;      /* prijslabels, nieuwsbriefknop */
	--boog-blauw-2: #054e84;
	--boog-label: #f7f8fa;      /* uitvoering-label, paginaachtergrond */
	--boog-lichtblauw: #f5faff; /* nieuwsbriefblok */
	--boog-footer: #3a3a3a;
	--boog-lijn: #333333;
	--boog-container: 1170px;
	--boog-schaduw: 2px 2px 10px 0 rgba(0, 0, 0, .4);
	--boog-hoek: 0 100px 100px 0;
}

/* ============================================================
   ALGEMEEN
   ============================================================ */
body {
	font-family: 'Roboto', Arial, sans-serif;
	color: var(--boog-tekst);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}
h1, h2, h3, h4, h5, h6,
.boventitel,
section.verwijzingen h2, section.verwijzingen h4,
section.page-breaker .div-block > h3 {
	font-family: 'Roboto', Arial, sans-serif;
	color: var(--boog-donker);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}
a { color: var(--boog-cyaan); }
a:hover { color: var(--boog-blauw); }
strong, b { font-weight: 500; }

.section-inner-wrap,
.header-container,
.footer-inner-wrap {
	max-width: var(--boog-container);
}

/* Knoppen: wit met cyaan rand, zoals "In winkelmand" op de oude site */
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: #fff;
	color: var(--boog-cyaan);
	border: 1px solid var(--boog-cyaan);
	border-radius: 3px;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	padding: 8px 15px;
	box-shadow: none !important;
	transform: none;
}
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--boog-cyaan);
	color: #fff;
	border-color: var(--boog-cyaan);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce input.button.alt {
	background: var(--boog-blauw);
	border-color: var(--boog-blauw);
	color: #fff;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--boog-blauw-2);
	border-color: var(--boog-blauw-2);
}

/* ============================================================
   HEADER – donkere balk bovenaan, logo links, menu rechts
   ============================================================ */
#header {
	border-top: 8px solid var(--boog-lijn);
	box-shadow: none;
}
#header .header-row {
	background: #fff;
	padding-top: 4px;
	padding-bottom: 4px;
}
#header .site-logo { height: 70px; }
#header.header-scroll .site-logo { height: 55px; }
#header .header-center { display: none; } /* productzoekbalk zat niet in de header van de oude site */

#hoofdmenu-list > .menu-item > a,
#hoofdmenu-list .menu-item a {
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--boog-donker);
}
body.home #hoofdmenu-list > .menu-item > a,
body:not(.home) #hoofdmenu-list > .menu-item > a,
body.home header.header-scroll #hoofdmenu-list > .menu-item > a,
body:not(.home) header.header-scroll #hoofdmenu-list > .menu-item > a {
	color: var(--boog-donker);
}
#hoofdmenu-list .menu-item a:hover,
#hoofdmenu-list .current-menu-item > a,
body.home #hoofdmenu-list > .menu-item > a:hover,
body:not(.home) #hoofdmenu-list > .menu-item > a:hover {
	color: var(--boog-cyaan);
}
#hoofdmenu-list .sub-menu {
	border-top: 3px solid var(--boog-cyaan);
}
#hoofdmenu-list .sub-menu .menu-item a {
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
}
#header .dashicons-admin-users { display: none; } /* oude site toonde alleen de winkelwagen */
#header .dashicons-cart { color: var(--boog-donker); }
#header .cart-total {
	background: var(--boog-cyaan);
	color: #fff;
	font-size: 10px;
	font-weight: 500;
}

/* ============================================================
   SECTIEKOPPEN – gecentreerd met dikke donkere lijn eronder
   ============================================================ */
body.home .paginablokken section.tekst-afbeelding .tekst-inner > h3,
body.home .paginablokken section.overzicht .section-inner-wrap > h2,
body.home .paginablokken section.page-breaker .div-block > h3 {
	font-size: 24px;
	font-weight: 400;
	text-align: center;
	color: var(--boog-donker);
	margin: 0 0 15px;
}
body.home .paginablokken section.tekst-afbeelding .tekst-inner > h3::after,
body.home .paginablokken section.overzicht .section-inner-wrap > h2::after,
body.home .paginablokken section.page-breaker .div-block > h3::after {
	content: '';
	display: block;
	height: 5px;
	background: var(--boog-lijn);
	margin: 15px 0 45px;
}
body.home .paginablokken section.tekst-afbeelding .collumns-2.no_img {
	display: block;
}
body.home .paginablokken section.tekst-afbeelding .collumns-2.no_img > .media { display: none; }
body.home .paginablokken section.tekst-afbeelding .tekst-inner {
	max-width: none;
	width: 100%;
	padding: 0;
}
body.home .paginablokken section {
	background: #fff;
}

/* ============================================================
   HOME – banner met twee kaarten (Boeken / E-Books)
   ============================================================ */
body.home .paginablokken section.verwijzingen.afbeelding {
	position: relative;
	padding: 0 0 20px;
	background: #fff;
	overflow: visible;
}
body.home .paginablokken section.verwijzingen.afbeelding > img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 250px;
	object-fit: cover;
	object-position: center 35%;
	border-bottom: 8px solid var(--boog-lijn);
	z-index: 0;
}
body.home .paginablokken section.verwijzingen.afbeelding .section-inner-wrap {
	position: relative;
	z-index: 1;
	padding-top: 95px;
	padding-bottom: 0;
}
section.verwijzingen.afbeelding .verwijzing-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 458px));
	justify-content: center;
	gap: 30px;
}
section.verwijzingen .verwijzing-columns > a {
	background: #fff;
	border-radius: var(--boog-hoek);
	box-shadow: var(--boog-schaduw) !important;
	padding: 40px;
	min-height: 190px;
	text-align: center;
	align-items: center;
	justify-content: flex-start;
	color: var(--boog-donker);
	text-shadow: none;
	transition: box-shadow .2s ease, transform .2s ease;
}
section.verwijzingen .verwijzing-columns > a:hover {
	box-shadow: 4px 6px 18px 0 rgba(0, 0, 0, .35) !important;
	transform: translateY(-2px);
}
section.verwijzingen .verwijzing-columns > a h4,
section.verwijzingen .verwijzing-columns > a .verwijzing-titel {
	font-size: 24px;
	font-weight: 400;
	color: var(--boog-donker);
	text-shadow: none;
	margin: 0 0 15px;
	text-align: center;
}
section.verwijzingen .verwijzing-columns > a .verwijzing-tekst {
	font-size: 15px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--boog-donker);
	text-shadow: none;
	text-align: center;
}
section.verwijzingen .verwijzing-columns > a .verwijzing-boventitel:empty { display: none; }

/* ============================================================
   PRODUCTKAARTEN (winkel + homepage)
   ============================================================ */
.woocommerce ul.products,
.deboog-producten ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 50px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.deboog-producten.kolommen-1 ul.products { grid-template-columns: 1fr; }
.deboog-producten.kolommen-2 ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deboog-producten.kolommen-3 ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce.columns-3 ul.products,
.woocommerce-page .rounded.content ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.woocommerce ul.products li.product {
	position: relative;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0;
	text-align: center;
	background: transparent;
	box-shadow: none;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	position: relative;
	color: var(--boog-donker);
}
.woocommerce ul.products li.product a img {
	width: auto;
	max-width: 100%;
	height: 250px;
	object-fit: contain;
	margin: 0 auto 20px;
	box-shadow: none;
	border-radius: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
	font-weight: 400;
	color: var(--boog-donker);
	padding: 0;
	margin: 0 0 12px;
	line-height: 1.35;
}
/* Op de homepage toonde de oude site geen titel onder de cover */
body.home .deboog-producten ul.products li.product .woocommerce-loop-product__title { display: none; }

/* Prijslabel rechtsboven (donkerblauw, pijlvorm) */
.woocommerce ul.products li.product .deboog-prijs {
	position: absolute;
	top: -10px;
	right: -10px;
	z-index: 3;
	background: var(--boog-blauw);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 23px;
	padding: 6px 10px 6px 14px;
	border-radius: 0 50px 50px 0;
	clip-path: polygon(12% 0, 100% 0, 100% 100%, 12% 100%, 0 50%);
	white-space: nowrap;
}
.woocommerce ul.products li.product .deboog-prijs .amount,
.woocommerce ul.products li.product .deboog-prijs bdi { color: #fff; }
.woocommerce ul.products li.product .deboog-prijs del {
	opacity: .7;
	font-size: 13px;
	margin-right: 4px;
}
.woocommerce ul.products li.product .deboog-prijs ins { text-decoration: none; }

/* Uitvoering-label (zachte kaft / harde kaft / e-book) */
.woocommerce ul.products li.product .deboog-uitvoering {
	position: absolute;
	top: -10px;
	right: 20px;
	z-index: 2;
	background: var(--boog-label);
	color: var(--boog-blauw);
	font-size: 14px;
	line-height: 20px;
	padding: 7px 55px 7px 18px;
	clip-path: polygon(12% 0, 100% 0, 100% 100%, 12% 100%, 0 50%);
	white-space: nowrap;
}
.woocommerce ul.products li.product .onsale { display: none; }

.woocommerce ul.products li.product .button {
	margin-top: 0;
	display: inline-block;
}
.woocommerce ul.products li.product .added_to_cart {
	display: block;
	font-size: 12px;
	margin-top: 6px;
}

/* Uitgelicht: vier kolommen, elk met kop + één product */
.deboog-uitgelicht {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}
.deboog-uitgelicht-kolom h3 {
	font-size: 20px;
	font-weight: 400;
	text-align: center;
	color: var(--boog-donker);
	margin: 0 0 25px;
}

/* ============================================================
   NIEUWS (berichtenoverzicht op home)
   ============================================================ */
body.home section.overzicht .overzicht-inner {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}
body.home section.overzicht .overzicht-inner > * {
	background: #fff;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}
body.home section.overzicht h3,
body.home section.overzicht .overzicht-titel {
	font-size: 28px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--boog-donker);
}
body.home section.overzicht .overzicht-datum,
body.home section.overzicht .datum {
	font-size: 13px;
	font-weight: 300;
	color: var(--boog-donker);
}

/* ============================================================
   NIEUWSBRIEF (page breaker op home)
   ============================================================ */
section.page-breaker.achtergrondkleur3 {
	background: var(--boog-lichtblauw);
	min-height: 0;
	padding: 40px 0;
	text-shadow: none;
}
section.page-breaker.achtergrondkleur3 .text-shadow,
section.page-breaker.achtergrondkleur3 h3,
section.page-breaker.achtergrondkleur3 div { text-shadow: none; color: var(--boog-donker); }
section.page-breaker .mc4wp-form-fields {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}
section.page-breaker .mc4wp-form-fields p { margin: 0; }
section.page-breaker .mc4wp-form input[type="email"] {
	width: 380px;
	max-width: 100%;
	height: 38px;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 0 12px;
	font-size: 13px;
}
section.page-breaker .mc4wp-form input[type="submit"] {
	height: 38px;
	padding: 0 25px;
	background: var(--boog-blauw-2);
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

/* ============================================================
   GEWONE PAGINA'S – banner + witte kaart met afgeronde hoek
   ============================================================ */
body.page:not(.home),
body.single,
body.woocommerce-page,
body.archive {
	background: var(--boog-label);
}
body.page:not(.home) .hero-image,
body.single .hero-image {
	width: 100%;
	height: 280px;
	object-fit: cover;
	object-position: center 35%;
}
body.page:not(.home) .content-section {
	background: transparent;
}
body.page:not(.home) .content-section .section-inner-wrap {
	margin-top: -170px;
	position: relative;
	z-index: 2;
	padding-bottom: 60px;
}
body.page:not(.home) .content-section .section-inner-wrap.nohero { margin-top: 40px; }
body.page:not(.home) .content-section .rounded.content {
	background: transparent;
	box-shadow: none;
	padding: 0;
	max-width: none;
	width: 100%;
}
body.page:not(.home) .content-section h1 {
	font-size: 36px;
	font-weight: 300;
	color: var(--boog-donker);
	border-bottom: 5px solid var(--boog-donker);
	padding-bottom: 0;
	margin: 0 0 15px;
}
.deboog-pagina-grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}
.deboog-pagina-inhoud,
.deboog-aanbevolen,
body.page:not(.home) .content-section .rounded.content > h1 {
	background: #fff;
}
/* De paginatitel staat boven de grid; samen met de inhoud vormt hij één kaart */
body.page:not(.home) .content-section .rounded.content {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	column-gap: 30px;
}
body.page:not(.home) .content-section .rounded.content > * { grid-column: 1; }
body.page:not(.home) .content-section .rounded.content > h1 {
	padding: 20px 30px 0;
	margin: 0;
	border-bottom: 0;
	border-radius: 0 100px 0 0;
}
body.page:not(.home) .content-section .rounded.content > h1::after {
	content: '';
	display: block;
	height: 5px;
	background: var(--boog-donker);
	margin-top: 4px;
}
body.page:not(.home) .content-section .rounded.content > #breadcrumbs { display: none; }
body.page:not(.home) .content-section .rounded.content > div:has(.deboog-pagina-grid) {
	grid-column: 1 / -1;
	margin-top: -1px;
}
body.page:not(.home) .content-section .rounded.content > h1 { grid-column: 1; }
.deboog-pagina-inhoud {
	padding: 15px 30px 30px;
	border-radius: 0 0 100px 0;
	font-size: 15px;
	font-weight: 300;
	color: var(--boog-tekst-licht);
}
.deboog-pagina-inhoud h2,
.deboog-pagina-inhoud h3,
.deboog-pagina-inhoud h4 {
	color: var(--boog-donker);
	font-weight: 400;
	margin: 20px 0 10px;
}
.deboog-pagina-inhoud h3 { font-size: 20px; }
.deboog-pagina-inhoud h4 { font-size: 17px; }
.deboog-aanbevolen {
	padding: 20px 30px 30px;
	border-radius: var(--boog-hoek);
	grid-row: 1 / span 2;
	margin-top: calc(-1 * var(--boog-titel-hoogte, 75px));
}
.deboog-aanbevolen-titel {
	font-size: 20px;
	font-weight: 300;
	color: var(--boog-donker);
	border-bottom: 1px solid var(--boog-blauw-2);
	padding-bottom: 10px;
	margin: 0 0 30px;
}
.deboog-aanbevolen ul.products { gap: 40px; }

/* Shop-, winkelwagen- en accountpagina's */
body.woocommerce-page .content-section .section-inner-wrap,
body.woocommerce-page section > .section-inner-wrap {
	position: relative;
	z-index: 2;
}
body.woocommerce-page .rounded.content {
	background: #fff;
	border-radius: var(--boog-hoek);
	box-shadow: none;
	padding: 20px 30px 40px;
}
body.woocommerce-page .rounded.content h1,
body.woocommerce-page .woocommerce-products-header__title {
	font-size: 36px;
	font-weight: 300;
	color: var(--boog-donker);
	border-bottom: 5px solid var(--boog-donker);
	margin: 0 0 15px;
}

/* Winkel-zijbalk (Product zoeken / Categorieën) */
#sidebar-1 {
	background: #fff;
	border-radius: var(--boog-hoek);
	padding: 20px 30px;
	align-self: start;
}
#sidebar-1 .widget { margin-bottom: 30px; }
#sidebar-1 .widgettitle,
#sidebar-1 h2 {
	font-size: 20px;
	font-weight: 300;
	color: var(--boog-donker);
	border-bottom: 1px solid var(--boog-blauw-2);
	padding-bottom: 10px;
	margin: 0 0 15px;
}
#sidebar-1 ul { list-style: none; margin: 0; padding: 0; }
#sidebar-1 li { font-size: 14px; padding: 3px 0; }
#sidebar-1 li a { color: var(--boog-tekst); }
#sidebar-1 li a::before {
	content: '\203A';
	margin-right: 6px;
	color: var(--boog-tekst);
}
#sidebar-1 li a:hover { color: var(--boog-cyaan); }
#sidebar-1 .woocommerce-product-search {
	display: flex;
	border: 1px solid #ebeef6;
	border-radius: 3px;
}
#sidebar-1 .woocommerce-product-search input[type="search"] {
	border: 0;
	padding: 8px 10px;
	font-size: 13px;
	flex: 1;
}
#sidebar-1 .woocommerce-product-search button {
	border: 0;
	background: transparent;
	color: var(--boog-cyaan);
	padding: 0 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
	background: var(--boog-footer);
	color: #cfcfcf;
	font-size: 14px;
	font-weight: 300;
}
footer .footer-row-top { padding-top: 40px; padding-bottom: 30px; }
footer .footer-heading,
footer h4.footer-heading {
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 24px;
	font-weight: 400;
	color: #fff;
	margin: 0 0 25px;
}
footer .footer-collumn-text,
footer .footer-collumn-text p { color: #cfcfcf; font-size: 14px; line-height: 1.55; }
footer a { color: #fff; }
footer a:hover { color: var(--boog-cyaan); }
footer .footer-collumn-text a.footer-meer { font-weight: 500; }
footer ul.footer-pijlen { list-style: none; margin: 0; padding: 0; }
footer ul.footer-pijlen li { padding: 3px 0; }
footer ul.footer-pijlen li a { color: #cfcfcf; font-weight: 300; }
footer ul.footer-pijlen li a::before { content: '\203A'; margin-right: 8px; color: #fff; }
footer ul.footer-pijlen li a:hover { color: var(--boog-cyaan); }
footer img.footer-betaallogo { display: block; margin: 0 0 15px; }
footer .footer_collumn_1_wrapper,
footer .footer_collumn_2_wrapper,
footer .footer_collumn_3_wrapper,
footer .footer_collumn_4_wrapper { grid-column: span 1; }
footer .footer-row-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
footer .footer-divider { border-top: 1px solid #4d4c4c; background: none; }
footer .footer-row-bottom { color: #cfcfcf; font-size: 13px; padding: 20px 0; }
footer .footer-row-bottom a { color: #fff; font-weight: 500; }
.back-to-top .back-to-top-container { background: var(--boog-cyaan); border-radius: 3px; }

/* ============================================================
   RESPONSIEF
   ============================================================ */
@media (max-width: 991px) {
	.woocommerce ul.products,
	.deboog-producten ul.products,
	.deboog-uitgelicht { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.home section.overzicht .overzicht-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	footer .footer-row-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.deboog-pagina-grid,
	body.page:not(.home) .content-section .rounded.content { grid-template-columns: 1fr; }
	.deboog-aanbevolen { grid-row: auto; margin-top: 0; }
	#hoofdmenu-list > .menu-item > a { letter-spacing: 1px; }
}
@media (max-width: 767px) {
	section.verwijzingen.afbeelding .verwijzing-columns { grid-template-columns: 1fr; }
	body.home .paginablokken section.verwijzingen.afbeelding .section-inner-wrap { padding-top: 140px; }
	section.verwijzingen .verwijzing-columns > a { padding: 30px; min-height: 0; }
	body.page:not(.home) .content-section .section-inner-wrap { margin-top: -100px; }
	body.page:not(.home) .hero-image { height: 200px; }
}
@media (max-width: 479px) {
	.woocommerce ul.products,
	.deboog-producten ul.products,
	.deboog-uitgelicht,
	body.home section.overzicht .overzicht-inner,
	footer .footer-row-top { grid-template-columns: 1fr; }
	.deboog-producten.kolommen-4 ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 15px; }
	.woocommerce ul.products li.product .deboog-uitvoering { right: 10px; padding-right: 45px; font-size: 12px; }
	.woocommerce ul.products li.product .deboog-prijs { right: -5px; font-size: 14px; }
}
