/*
Theme Name: Loeiwarm
Theme URI: https://www.loeiwarm.nl
Description: Child-thema voor Loeiwarm — warme, natuurlijke huisstijl ("Zacht. Warm. Natuurlijk.") bovenop Twenty Twenty-Five. Palet en typografie afgeleid van de eigen productfotografie: walnoot, haver, salie en logo-rood.
Author: Loeiwarm
Template: twentytwentyfive
Version: 2.1
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: loeiwarm
*/

:root {
	--loei-ground: #EBE4D7;
	--loei-panel: #F6F1E7;
	--loei-ink: #2A211C;
	--loei-ink-soft: #5F5248;
	--loei-line: #D6CCB9;
	--loei-line-soft: #E2DACA;
	--loei-sage: #66735A;
	--loei-sage-dim: #8E9880;
	--loei-red: #B23A2C;
	--loei-on-red: #FDF8F1;
}

/* ---------------------------------------------------------------
   Basis
   --------------------------------------------------------------- */

body {
	background: var(--loei-ground);
	color: var(--loei-ink);
}

:focus-visible {
	outline: 2px solid var(--loei-red);
	outline-offset: 3px;
}

/* Kleine bovenkop boven een titel: "DE VULLING", "HANDGEMAAKT IN NEDERLAND" */
.loei-eyebrow,
.loei-eyebrow p {
	font-size: .7rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--loei-sage);
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 .8rem;
}

.loei-lead {
	color: var(--loei-ink-soft);
	max-width: 46ch;
}

/* ---------------------------------------------------------------
   Kop van de site: slank en plakkend
   --------------------------------------------------------------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--loei-ground);
	border-bottom: 1px solid var(--loei-line-soft);
}

.wp-block-site-title a,
.wp-block-site-title {
	font-family: var(--wp--preset--font-family--loei-heading);
	font-size: 1.2rem;
	letter-spacing: .01em;
	text-decoration: none;
	color: var(--loei-ink);
}

.loei-brand .wp-block-site-logo img {
	border-radius: 50%;
}

header .wp-block-navigation a {
	font-size: .74rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--loei-ink-soft);
	text-decoration: none;
	padding-bottom: 3px;
	border-bottom: 1px solid transparent;
}

header .wp-block-navigation a:hover,
header .wp-block-navigation .current-menu-item a {
	color: var(--loei-ink);
	border-bottom-color: var(--loei-red);
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.loei-hero.wp-block-cover {
	min-height: min(84vh, 720px);
	padding: 0;
}

/* WordPress zet bij een cover met eigen tekstpositie `margin:0;width:auto` op de
   inner container (regel met 4 klassen). Zonder !important plakt de heldtekst
   daardoor tegen de schermrand in plaats van uitgelijnd op de rest van de pagina. */
.wp-block-cover.loei-hero > .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: 1180px;
	margin-inline: auto !important;
	padding: 0 28px 64px;
}

.loei-hero .wp-block-cover__image-background {
	object-position: 58% 45%;
}

.loei-hero h1 {
	font-size: clamp(2.9rem, 7.2vw, 5.2rem);
	line-height: .94;
	color: #FBF6EC;
	max-width: 14ch;
	margin: 0 0 20px;
}

.loei-hero .loei-eyebrow p,
.loei-hero .loei-eyebrow {
	color: #C9CBA8;
}

.loei-hero p:not(.loei-eyebrow) {
	color: #EADFCF;
	max-width: 30rem;
	font-size: 1.06rem;
}

/* ---------------------------------------------------------------
   Statement-band
   --------------------------------------------------------------- */

.loei-statement h2 {
	font-size: clamp(1.9rem, 4vw, 3.1rem);
	line-height: 1.08;
	max-width: 22ch;
}

/* ---------------------------------------------------------------
   Beeld/tekst-banden
   --------------------------------------------------------------- */

.loei-band {
	border-top: 1px solid var(--loei-line-soft);
	padding-top: 74px;
	padding-bottom: 74px;
}

.loei-band .loei-media figure,
.loei-band .loei-media img {
	margin: 0;
	width: 100%;
	height: clamp(320px, 44vw, 520px);
	object-fit: cover;
}

.loei-band h3 {
	font-size: clamp(1.5rem, 2.6vw, 2.15rem);
	line-height: 1.1;
	margin: 0 0 16px;
}

.loei-band .loei-copy p:not(.loei-eyebrow) {
	color: var(--loei-ink-soft);
	max-width: 38ch;
}

@media (max-width: 820px) {
	.loei-band {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	/* Op mobiel altijd eerst het beeld, dan de tekst */
	.loei-band .wp-block-columns {
		display: flex;
		flex-direction: column;
	}

	.loei-band .loei-media { order: 1; }
	.loei-band .loei-copy { order: 2; }
}

/* ---------------------------------------------------------------
   Placeholder voor een foto die nog gemaakt moet worden
   --------------------------------------------------------------- */

.loei-ph {
	position: relative;
	height: clamp(320px, 44vw, 520px);
	background:
		repeating-linear-gradient(45deg, transparent 0 14px, rgba(102, 115, 90, .055) 14px 28px),
		var(--loei-panel);
	border: 1px solid var(--loei-sage-dim);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 34px;
}

.loei-ph::before {
	content: "Foto nog te maken";
	position: absolute;
	top: 0;
	left: 0;
	background: var(--loei-sage);
	color: var(--loei-panel);
	font-size: .62rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 6px 11px;
}

.loei-ph strong {
	font-family: var(--wp--preset--font-family--loei-heading);
	font-weight: 600;
	font-size: 1.14rem;
	display: block;
}

.loei-ph p {
	color: var(--loei-ink-soft);
	font-size: .94rem;
	max-width: 34ch;
	margin: 0;
	line-height: 1.5;
}

/* ---------------------------------------------------------------
   Producten
   --------------------------------------------------------------- */

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}

.woocommerce ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 0 18px;
	background: var(--loei-panel);
	border: 1px solid var(--loei-line-soft);
	text-align: left;
	transition: border-color .2s ease;
}

.woocommerce ul.products li.product:hover {
	border-color: var(--loei-sage-dim);
}

.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	margin: 0 0 14px;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.woocommerce ul.products li.product > a:first-of-type {
	display: block;
	overflow: hidden;
}

.woocommerce ul.products li.product:hover a img {
	transform: scale(1.045);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--loei-heading);
	font-size: 1.14rem !important;
	font-weight: 600;
	padding: 0 16px !important;
	margin: 0 0 4px;
}

.woocommerce ul.products li.product .price {
	display: block;
	padding: 0 16px;
	color: var(--loei-ink-soft) !important;
	font-size: .95rem !important;
	font-variant-numeric: tabular-nums;
	margin: 0 0 12px;
}

.woocommerce ul.products li.product .button {
	margin: 0 16px;
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: 0;
	background: transparent;
	color: var(--loei-ink);
	border: 1px solid var(--loei-ink);
	padding: 10px 16px;
}

.woocommerce ul.products li.product .button:hover {
	background: var(--loei-ink);
	color: var(--loei-ground);
}

@media (max-width: 980px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* De winkelpagina gebruikt de WooCommerce-blokken; zelfde kaart als op de homepage. */
ul.wc-block-product-template {
	display: grid;
	gap: 20px;
	padding: 0;
	margin: 0;
	list-style: none;
}

ul.wc-block-product-template.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.wc-block-product-template.columns-4 { grid-template-columns: repeat(4, 1fr); }
ul.wc-block-product-template.columns-5 { grid-template-columns: repeat(5, 1fr); }

li.wc-block-product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 0 18px;
	background: var(--loei-panel);
	border: 1px solid var(--loei-line-soft);
	text-align: left;
	transition: border-color .2s ease;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

li.wc-block-product:hover {
	border-color: var(--loei-sage-dim);
}

li.wc-block-product .wc-block-components-product-image {
	margin: 0 0 14px;
	overflow: hidden;
}

li.wc-block-product .wc-block-components-product-image img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

li.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.045);
}

li.wc-block-product .wp-block-post-title {
	font-family: var(--wp--preset--font-family--loei-heading);
	font-size: 1.14rem;
	font-weight: 600;
	margin: 0;
	padding: 0 16px;
	text-align: left;
}

li.wc-block-product .wc-block-components-product-price {
	display: block;
	padding: 0 16px;
	margin: 0 0 12px;
	color: var(--loei-ink-soft);
	font-size: .95rem;
	font-variant-numeric: tabular-nums;
	text-align: left;
}

li.wc-block-product .wc-block-components-product-button {
	margin: auto 16px 0;
	text-align: left;
}

li.wc-block-product .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	background: transparent;
	color: var(--loei-ink);
	border: 1px solid var(--loei-ink);
	border-radius: 0;
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 10px 16px;
}

li.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover {
	background: var(--loei-ink);
	color: var(--loei-ground);
}

@media (max-width: 620px) {
	ul.wc-block-product-template.columns-3,
	ul.wc-block-product-template.columns-4,
	ul.wc-block-product-template.columns-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Losse productpagina: rustiger uitlijnen */
.woocommerce div.product .product_title {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.woocommerce div.product p.price {
	color: var(--loei-ink) !important;
	font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------
   Reviews
   --------------------------------------------------------------- */

.loei-reviews {
	background: var(--loei-panel);
	border-top: 1px solid var(--loei-line-soft);
}

.loei-quote {
	border: 1px solid var(--loei-line);
	padding: 26px;
	height: 100%;
}

.loei-quote .loei-stars {
	color: var(--loei-sage);
	letter-spacing: .22em;
	font-size: .9rem;
	margin: 0 0 12px;
}

.loei-quote blockquote,
.loei-quote p.loei-q {
	font-family: var(--wp--preset--font-family--loei-heading);
	font-size: 1.1rem;
	line-height: 1.4;
	color: var(--loei-ink-soft);
	font-style: italic;
	margin: 0 0 12px;
}

.loei-quote cite {
	font-style: normal;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--loei-sage);
}

/* ---------------------------------------------------------------
   Voettekst
   --------------------------------------------------------------- */

.wp-site-blocks > footer.wp-block-template-part {
	border-top: 1px solid var(--loei-line);
	background: var(--loei-ground);
}

footer h2,
footer h3 {
	font-family: var(--wp--preset--font-family--loei-body) !important;
	font-size: .7rem !important;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--loei-sage);
	font-weight: 600;
	margin: 0 0 14px;
}

footer .loei-fbrand {
	font-family: var(--wp--preset--font-family--loei-heading) !important;
	font-size: 1.3rem !important;
	letter-spacing: normal;
	text-transform: none;
	color: var(--loei-ink);
	margin: 0 0 8px;
}

footer .wp-block-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

footer .wp-block-list li {
	margin-bottom: 8px;
}

footer a {
	color: var(--loei-ink-soft);
	text-decoration: none;
	font-size: .94rem;
}

footer a:hover {
	color: var(--loei-ink);
}

.loei-ideal {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	border: 1px solid var(--loei-line);
	padding: 7px 13px;
	font-size: .76rem;
	letter-spacing: .1em;
	color: var(--loei-ink-soft);
}

.loei-ideal::before {
	content: "";
	width: 9px;
	height: 9px;
	background: var(--loei-sage);
	border-radius: 50%;
	display: block;
}

.loei-legal {
	border-top: 1px solid var(--loei-line-soft);
	padding-top: 20px;
	font-size: .82rem;
	color: var(--loei-ink-soft);
}
