/*
 * Boris&Doris sections. Colours and fonts come from theme.json presets.
 */

/* ---------- Motion: one ease-out curve; hover effects only with a mouse; calm under reduced motion ---------- */
:root {
	--bd-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--bd-radius: 0.5rem; /* buttons only; photos, cards and fields stay square */
}

/* Carousel buttons answer a press (other buttons: see "Motion in the header and on buttons"). */
.bd-carousel__btn {
	transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms var(--bd-ease-out);
}

.bd-carousel__btn:active:not(:disabled) {
	transform: scale(0.97);
}

.wc-block-product-template .wc-block-components-product-image img {
	transition: transform 300ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.wc-block-product-template li:hover .wc-block-components-product-image img {
		transform: scale(1.035);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-element-button:active,
	.wp-block-button__link:active,
	.bd-carousel__btn:active:not(:disabled),
	.wc-block-product-template li:hover .wc-block-components-product-image img,
	.bd-carousel__more a:hover span::after,
	.bd-insta__photo a:hover img {
		transform: none !important;
	}
}

/* ---------- Header (Jellycat-like): logo centred on top, search/account/cart top right, the menu centred below; it scrolls
 * away with the page (not sticky, at the client's request).
 * Phones (under 600px, where the menu becomes a button): one row, menu button left, logo centred, icons right. */
.wp-site-blocks > header.wp-block-template-part {
	position: relative;
	z-index: 50;
}

.wp-block-group.bd-header {
	padding-top: 0.9rem !important;
	padding-bottom: 0 !important;
	background: var(--wp--preset--color--base);
}

.bd-header > .alignwide {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas:
		".   logo  tools"
		"nav nav   nav";
	align-items: center;
	row-gap: 0.35rem;
}

.bd-header > .alignwide > :is(.bd-logo, .wp-block-site-logo) {
	grid-area: logo;
	justify-self: center;
}

.bd-header .bd-logo img {
	height: 2.6rem !important;
}

.bd-header > .alignwide > .wp-block-navigation {
	grid-area: nav;
	justify-self: center;
	padding-block: 0.55rem 0.7rem;
}

.bd-header > .alignwide > .wp-block-group:last-child {
	grid-area: tools;
	justify-self: end;
}

@media (max-width: 599px) {
	.wp-block-group.bd-header {
		padding-top: 0.6rem !important;
		padding-bottom: 0.6rem !important;
	}

	.bd-header > .alignwide {
		grid-template-areas: "nav logo tools";
	}

	.bd-header > .alignwide > .wp-block-navigation {
		justify-self: start;
		padding-block: 0;
	}

	.bd-header .bd-logo img {
		height: 1.6rem !important;
	}

	/* Equal side columns made the menu button's column as wide as the icons, too wide below ~360px. */
	.bd-header > .alignwide {
		grid-template-columns: auto 1fr auto;
		column-gap: 0.5rem;
	}

	/* The smallest phones (320 wide): a smaller logo and tighter icons, so the language link still fits. */
	@media (max-width: 359px) {
		.bd-header .bd-logo img {
			height: 1.3rem !important;
		}

		.bd-header .wp-block-search__button {
			padding: 0.35rem;
		}

		.bd-header .bd-lang {
			padding-inline: 0.35rem 0;
		}
	}

	/* Account stays reachable through "Mijn account" in the footer. */
	.bd-header .wp-block-woocommerce-customer-account {
		display: none;
	}
}

/* ---------- Motion in the header and on buttons: warm, a little playful, never bouncy ----------
 * --bd-ease-play overshoots by a hair, so things land with some life. */
:root {
	--bd-ease-play: cubic-bezier(0.34, 1.28, 0.64, 1);
}

/* Menu: a yellow line glides under the item you point at (assets/js/header.js) and rests under the current page. */
.bd-header .wp-block-navigation__container {
	position: relative;
}

.bd-nav-line {
	position: absolute;
	left: 0;
	bottom: -0.45rem;
	width: 100px;
	height: 3px;
	background: var(--wp--preset--color--detail);
	transform-origin: 0 50%;
	opacity: 0;
	pointer-events: none;
	transition: transform 340ms var(--bd-ease-play), opacity 200ms ease;
}

.bd-nav-line.is-instant {
	transition: opacity 200ms ease;
}

.bd-header .wp-block-navigation-item__content {
	transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.bd-header .wp-block-navigation-item__content:hover {
		color: var(--wp--preset--color--primary);
	}
}

/* Search, account and cart: they are buttons too. */
.bd-header :is(.wc-block-mini-cart__button, .wp-block-woocommerce-customer-account a, .wp-block-search__button) {
	transition: color 160ms ease, transform 160ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.bd-header :is(.wc-block-mini-cart__button, .wp-block-woocommerce-customer-account a, .wp-block-search__button):hover {
		color: var(--wp--preset--color--primary);
	}
}

.bd-header :is(.wc-block-mini-cart__button, .wp-block-woocommerce-customer-account a, .wp-block-search__button):active {
	transform: scale(0.94);
}

/* The search icon takes the regular button padding from theme.json; here it is an icon like the cart. */
.bd-header .wp-block-search__button {
	padding: 0.5rem;
}

/* Language switch (inc/i18n.php): a quiet "EN" / "NL" after the cart, the same size and weight as the menu. */
.bd-header .bd-lang {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.35rem 0.4rem 0.6rem;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.bd-header .bd-lang:hover {
		color: var(--wp--preset--color--primary);
	}
}

/* Search: the field slides open to the left of the magnifier, which stays put. Core grows the field with
 * flex-basis and an untimed wrapper, so the wrapper jumped and the icon slid across; here only the field's
 * width moves (padding and border with it), on one strong ease-out. */
.bd-header .wp-block-search .wp-block-search__input {
	flex: none;
	width: 14rem;
	transition: width 300ms var(--bd-ease-out), padding 300ms var(--bd-ease-out), border-width 300ms var(--bd-ease-out), opacity 200ms ease;
}

.bd-header .wp-block-search.wp-block-search__searchfield-hidden .wp-block-search__input {
	opacity: 0;
}

/* Phones: no room in the row, so the field slides out over the logo instead of pushing the icons. */
@media (max-width: 599px) {
	.bd-header .wp-block-search .wp-block-search__inside-wrapper {
		position: relative;
		overflow: visible;
	}

	.bd-header .wp-block-search .wp-block-search__input {
		position: absolute;
		top: 50%;
		right: 100%;
		z-index: 2;
		width: calc(100vw - 10rem); /* from the page gutter to the magnifier */
		background: var(--wp--preset--color--base);
		transform: translateY(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bd-header .wp-block-search .wp-block-search__input {
		transition: none;
	}
}

/* Phone menu: slides in softly instead of appearing. */
.bd-header .wp-block-navigation__responsive-container.is-menu-open {
	animation: bd-menu-in 240ms var(--bd-ease-out) both;
}

@keyframes bd-menu-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* Buttons: lift a little under the mouse; a real press when clicked (assets/js/press.js plays it in full,
 * even on a quick click that opens a new page). */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 220ms ease, transform 220ms var(--bd-ease-play);
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-button:not(.is-style-outline):not(.is-style-link) > .wp-block-button__link:hover,
	.wp-element-button:not(.wp-block-button__link):not(.wp-block-search__button):hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 16px -8px rgb(51 117 119 / 0.55);
	}

	/* The secondary button gets a warm tint, not a full colour flip. */
	.wp-block-button.is-style-outline > .wp-block-button__link:hover {
		transform: translateY(-2px);
		background: color-mix(in srgb, var(--wp--preset--color--accent) 9%, transparent);
		color: var(--wp--preset--color--accent-strong);
		border-color: var(--wp--preset--color--accent-strong);
	}
}

/* Held down: pressed in. */
.wp-element-button:active,
.wp-block-button__link:active {
	transform: scale(0.95);
	box-shadow: none;
	transition-duration: 90ms;
	transition-timing-function: var(--bd-ease-out);
}

/* Links in running text: a soft underline that fills in. */
:where(.wp-block-post-content, .bd-verhaal) p a {
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 0.18em;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

:where(.wp-block-post-content, .bd-verhaal) p a:hover {
	text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.bd-nav-line {
		transition: opacity 200ms ease;
	}

	.bd-header .wp-block-navigation__responsive-container.is-menu-open {
		animation: none;
	}

	.wp-element-button:hover,
	.wp-block-button__link:hover,
	.wp-element-button:active,
	.wp-block-button__link:active,
	.bd-header :is(.wc-block-mini-cart__button, .wp-block-woocommerce-customer-account a, .wp-block-search__button):active {
		transform: none !important;
	}
}

/* ---------- Intro: a green block, the text and a yellow button on the left, a cut-out plush peeking up
 * from the bottom on the right, sunlight from the top right (23%, as the client asked). On load the
 * text rises in line by line and the plush peeks up; the sun breathes slowly. Phones: text on top,
 * the plush below it, still on green. ---------- */
.wp-block-group.bd-intro {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	/* With the strip below it, the intro reaches about 90% down the screen (the header's height is
	 * measured by assets/js/header.js; 7.2rem until then). */
	min-height: max(26rem, calc(90svh - var(--bd-header-h, 7.2rem) - 3.3rem));
	padding-block: clamp(3rem, 6vw, 5.5rem) !important;
	overflow: hidden;
}

.bd-intro::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	z-index: -1;
	width: min(62vw, 62rem);
	aspect-ratio: 1100 / 878;
	background: url("../images/zon.webp") top right / contain no-repeat;
	opacity: var(--bd-sun, 0.23);
	transform-origin: top right;
	pointer-events: none;
	animation: bd-sun 9s ease-in-out infinite alternate;
}

/* The sun breathes (a slow, slight swell); its strength stays exactly what each section sets (--bd-sun). */
@keyframes bd-sun {
	to {
		transform: scale(1.06);
	}
}

.bd-intro > .bd-intro__text {
	position: relative;
	z-index: 1;
	width: 100%;
}

.bd-intro__text > * {
	max-width: 30rem;
	animation: bd-rise 700ms var(--bd-ease-out) both;
}

.bd-intro__text h1 {
	margin-top: 0;
	color: var(--wp--preset--color--on-accent);
	text-wrap: balance;
}

.bd-intro__text .bd-story {
	color: var(--wp--preset--color--on-accent);
	animation-delay: 110ms;
}

.bd-intro__text .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--50, 1.5rem);
	animation-delay: 220ms;
}

@keyframes bd-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

.bd-intro > .bd-intro__photo {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 0;
	width: min(68%, 75rem);
	max-width: none;
	margin: 0 !important;
	pointer-events: none;
	animation: bd-peek 1100ms var(--bd-ease-out) 150ms both;
}

.bd-intro__photo img {
	display: block;
	width: 100%;
	height: auto;
}

@keyframes bd-peek {
	from {
		opacity: 0;
		transform: translateY(16%);
	}
}

/* The yellow button (button style "Geel"): black text on the sun yellow. */
.wp-block-button.is-style-sun .wp-block-button__link {
	background: var(--wp--preset--color--detail);
	color: var(--wp--preset--color--contrast);
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-button.is-style-sun .wp-block-button__link:hover {
		background: color-mix(in srgb, var(--wp--preset--color--detail) 86%, var(--wp--preset--color--contrast));
		color: var(--wp--preset--color--contrast);
	}
}

@media (max-width: 781px) {
	/* Phones: as tall as on larger screens (with the strip, about 90% down); the text centred in the
	 * green above the plush, the plush at the bottom. */
	.wp-block-group.bd-intro {
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 0 !important;
	}

	.bd-intro::before {
		width: 140vw;
	}

	.bd-intro > .bd-intro__text {
		display: flex;
		flex: 1;
		flex-direction: column;
		justify-content: center;
	}

	.bd-intro__text {
		text-align: center;
	}

	.bd-intro__text .bd-story {
		margin-inline: auto;
	}

	.bd-intro__text .wp-block-buttons {
		justify-content: center;
	}

	.bd-intro > .bd-intro__photo {
		position: relative;
		width: 100vw;
		flex: none;
		margin: var(--wp--preset--spacing--60, 2.25rem) calc(50% - 50vw) 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bd-intro::before,
	.bd-intro__text > *,
	.bd-intro > .bd-intro__photo {
		animation: none;
	}
}

/* ---------- Nieuw binnen: swipeable row ---------- */
.bd-carousel {
	--bd-gap: var(--wp--preset--spacing--50, 1.5rem);
	--bd-per-view: 4;
	position: relative;
	container-type: inline-size; /* lets the arrows match one photo's height (100cqw is the row's width) */
}

.bd-carousel .wc-block-product-template {
	display: flex !important;
	flex-wrap: nowrap !important; /* WooCommerce wraps .is-flex-container */
	gap: var(--bd-gap) !important;
	overflow-x: auto;
	overflow-y: hidden; /* a lifted card must not make the row scroll down: a touchpad would get stuck in it */
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 0 0 4px;
	margin: 0;
	list-style: none;
}

.bd-carousel .wc-block-product-template::-webkit-scrollbar {
	display: none;
}

.bd-carousel .wc-block-product-template > li {
	flex: 0 0 calc((100% - (var(--bd-per-view) - 1) * var(--bd-gap)) / var(--bd-per-view)) !important;
	width: auto !important;
	max-width: none !important;
	margin: 0;
	scroll-snap-align: start;
}

/* The last card: a link to the whole shop. */
.bd-carousel__more a {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	padding: 1.5rem;
	border-radius: 0;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	text-align: center;
	text-decoration: none;
	transition: background-color 200ms ease;
}

.bd-carousel__more a span::after {
	content: "";
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	margin: 1rem auto 0;
	border-radius: 0;
	background: var(--wp--preset--color--base) center / 1.1rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23cd5437' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	transition: transform 200ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.bd-carousel__more a:hover {
		background: var(--wp--preset--color--secondary);
		color: var(--wp--preset--color--base);
	}

	.bd-carousel__more a:hover span::after {
		transform: translateX(4px);
	}
}

.bd-carousel__more a:active {
	background: var(--wp--preset--color--secondary);
}

/* Previous/next sit on the photos, vertically centred at the left and right edge of the row. */
.bd-carousel__nav {
	position: absolute;
	inset: 0 0 auto;
	/* one photo's height (4:5 of a card's width), so the arrows sit on the photos, not on the names under them */
	height: calc((100cqw - (var(--bd-per-view) - 1) * var(--bd-gap)) / var(--bd-per-view) * 1.25);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-inline: 0.75rem;
	pointer-events: none;
}

.bd-carousel__btn {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: var(--bd-radius);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 2px 10px rgb(31 43 44 / 0.16);
	cursor: pointer;
	pointer-events: auto;
}

.bd-carousel__prev svg {
	transform: scaleX(-1);
}

@media (hover: hover) and (pointer: fine) {
	.bd-carousel__btn:hover:not(:disabled) {
		background: var(--wp--preset--color--contrast);
		color: var(--wp--preset--color--base);
	}
}

/* At either end the button fades away instead of sitting greyed out on a photo. */
.bd-carousel__btn:disabled {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 1100px) {
	.bd-carousel { --bd-per-view: 3; }
}

@media (max-width: 781px) {
	/* Phones: the row runs to the screen edge and the next card clearly peeks in, like Populaire categorieën. */
	.bd-carousel { --bd-per-view: 1.55; --bd-gap: 0.85rem; }
	.bd-carousel__nav { display: none; }

	.bd-carousel .wc-block-product-template {
		box-sizing: border-box;
		width: 100vw;
		max-width: none;
		margin-inline: calc(50% - 50vw) !important;
		padding-inline: var(--wp--style--root--padding-left, 1.25rem) !important;
		scroll-padding-inline: var(--wp--style--root--padding-left, 1.25rem);
	}
}

/* ---------- Het verhaal (homepage): the photo fills the left half edge to edge, the right half is green
 * with the story, two yellow buttons ("Lees het verhaal" bold, the second regular) and sunlight from the
 * top right at 15%. Phones: the photo full width, then the green block, the buttons side by side. ---------- */
.wp-block-group.bd-about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 0 !important;
}

.bd-about > .bd-about__photo {
	margin: 0 !important;
	min-height: clamp(20rem, 30vw, 34rem);
	overflow: hidden;
}

/* A hair larger than its half, so a soft or transparent edge in the photo never shows a seam. */
.bd-about__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
}

.wp-block-group.bd-about__panel {
	--bd-sun: 0.15;
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 !important;
	padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 5.5rem);
	overflow: hidden;
}

.bd-about__panel::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	z-index: -1;
	width: min(100%, 40rem);
	aspect-ratio: 1100 / 878;
	background: url("../images/zon.webp") top right / contain no-repeat;
	opacity: var(--bd-sun);
	transform-origin: top right;
	pointer-events: none;
	animation: bd-sun 9s ease-in-out infinite alternate;
}

.bd-about__panel > * {
	max-width: 34rem;
}

.bd-about__panel h2 {
	margin-top: 0;
	color: var(--wp--preset--color--on-accent);
}

.bd-about__panel p {
	color: var(--wp--preset--color--on-accent);
	line-height: 1.6;
}

.bd-about__buttons {
	margin-top: var(--wp--preset--spacing--40, 1rem);
	gap: 0.75rem 1rem !important;
}

.bd-about__buttons .bd-btn-light .wp-block-button__link {
	font-weight: 500;
}

@media (max-width: 781px) {
	.wp-block-group.bd-about {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-about > .bd-about__photo {
		min-height: 0;
		aspect-ratio: 3 / 2;
	}

	.bd-about__buttons {
		flex-wrap: nowrap !important;
		gap: 0.6rem !important;
	}

	.bd-about__buttons > .wp-block-button {
		flex: 0 1 calc(50% - 0.3rem);
		min-width: 0;
	}

	.bd-about__buttons .wp-block-button__link {
		width: 100%;
		padding-inline: 0.5rem;
		font-size: clamp(0.78rem, 3.4vw, 1rem);
		text-wrap: balance;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bd-about__panel::before {
		animation: none;
	}
}

/* ---------- Strong points: one cream strip below the intro that keeps scrolling, an icon before each
 * point (rendered by the theme, see functions.php). Pauses under the mouse; under reduced motion it stands
 * still on one line. ---------- */
.wp-block-group.bd-usps {
	padding-block: 0.85rem;
	background: var(--wp--preset--color--on-accent);
	overflow: hidden;
}

.bd-ticker {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.bd-ticker__track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: bd-ticker 100s linear infinite;
}

.bd-ticker:hover .bd-ticker__track {
	animation-play-state: paused;
}

.bd-ticker__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding-inline: 2.5rem;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	white-space: nowrap;
}

.bd-ticker__item img {
	width: 1.5rem;
	height: 1.5rem;
}

@keyframes bd-ticker {
	to {
		transform: translateX(-50%);
	}
}

/* Reduced motion (also phones in power-saving or "remove animations" mode): no scrolling, but still one line;
 * the points sit centred when they fit and can be swiped sideways when they do not, instead of a 4-line block. */
@media (prefers-reduced-motion: reduce) {
	.bd-ticker {
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.bd-ticker::-webkit-scrollbar {
		display: none;
	}

	.bd-ticker__track {
		flex-wrap: nowrap;
		width: auto;
		justify-content: safe center;
		animation: none;
	}

	.bd-ticker__item {
		padding-inline: 1.25rem;
	}

	.bd-ticker__item[aria-hidden] {
		display: none;
	}
}

/* ---------- Steps: small photo, big number, small capital title, text ---------- */
/* Same column as the page text, also for older content where the block was set to wide. */
.bd-steps,
.is-layout-constrained > .bd-steps.alignwide {
	counter-reset: bd-step;
	max-width: var(--wp--style--global--content-size, 720px) !important;
	margin-inline: auto !important;
}

.bd-steps > .bd-steps__row + .bd-steps__row {
	margin-block-start: var(--wp--preset--spacing--50, 1.5rem) !important;
}

.bd-steps__row {
	counter-increment: bd-step;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--50, 1.5rem) !important;
}

.bd-steps__row > .wp-block-column:first-child {
	flex: 0 0 112px !important;
}

.bd-steps__row > .wp-block-column:last-child {
	align-self: flex-start !important;
}

/* The step number sits on the title's line, in the same type. */
.bd-steps__row h2,
.bd-steps__row h3 {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--large);
}

.bd-steps__row :is(h2, h3)::before {
	content: counter(bd-step) ". ";
}

.bd-steps__row p {
	margin: 0;
}

.bd-steps__photo {
	margin: 0;
}

.bd-steps__photo img {
	width: 112px;
	height: 112px;
	object-fit: cover;
}

@media (max-width: 600px) {
	.bd-steps__row > .wp-block-column:first-child {
		flex-basis: 72px !important;
	}

	.bd-steps__photo img {
		width: 72px;
		height: 72px;
	}
}

/* Empty photo slot: keep the step aligned without an empty square. */
.bd-steps__row > .wp-block-column:first-child:empty {
	display: none;
}

/* Onze werkwijze (client, 2026-10-02): the steps as text on the left, one photo on the right (the bear in the bath,
 * 3:4). Phones: the photo first, cropped to 4:3 from the top, then the steps. */
.bd-werkwijze {
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--80, 5rem) !important;
}

body:has(.bd-werkwijze) .wp-block-post-title {
	max-width: var(--wp--style--global--wide-size) !important;
}

.bd-steps.bd-steps--text {
	max-width: none !important;
	margin-inline: 0 !important;
}

.bd-steps--text > .bd-steps__row + .bd-steps__row {
	margin-block-start: var(--wp--preset--spacing--60, 2.25rem) !important;
}

.bd-werkwijze__photo {
	margin: 0;
}

.bd-werkwijze__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

@media (max-width: 781px) {
	.bd-werkwijze {
		flex-direction: column-reverse;
		gap: var(--wp--preset--spacing--60, 2.25rem) !important;
	}

	.bd-werkwijze__photo img {
		aspect-ratio: 4 / 3;
		object-position: 50% 15%;
	}
}

.bd-alternate__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- Instagram: a compact block, title above four small square photos ---------- */
.wp-block-group.bd-insta {
	padding-top: var(--wp--preset--spacing--60, 2.25rem) !important;
	padding-bottom: var(--wp--preset--spacing--60, 2.25rem) !important;
}

.bd-insta.is-layout-constrained > .alignwide {
	max-width: 780px;
}

.bd-insta h2 {
	margin-bottom: 1rem;
	font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem);
}

.bd-insta__grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	margin-top: 0 !important;
}

.bd-insta__photo {
	margin: 0;
}

.bd-insta__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 300ms var(--bd-ease-out);
}

.bd-insta__photo a {
	display: block;
	overflow: hidden;
	border-radius: 0;
}

@media (hover: hover) and (pointer: fine) {
	.bd-insta__photo a:hover img {
		transform: scale(1.04);
	}
}

@media (max-width: 781px) {
	.bd-insta__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

/* The Instagram Feed plugin in its place, as the swipe in the client's mock-up (Jellycat-like, 2026-10-20): the title
 * centred, then a full-width row of tall 3:5 posts that runs off the right edge and scrolls sideways (swipe, trackpad,
 * or the slim yellow scrollbar with a mouse). Our title already says where to follow, so no plugin header or buttons. */
.bd-insta:has(.bd-insta__feed) h2 {
	text-align: center;
}

.bd-insta.is-layout-constrained > .bd-insta__feed {
	max-width: none !important;
	margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1.25rem)) calc(-1 * var(--wp--style--root--padding-right, 1.25rem)) !important; /* edge to edge; 100vw would add the scrollbar's width */
}

.bd-insta__feed :is(.sb_instagram_header, #sbi_load) {
	display: none !important;
}

.bd-insta__feed #sb_instagram {
	width: 100% !important;
	padding: 0 !important;
}

.bd-insta__feed #sb_instagram #sbi_images {
	display: flex !important;
	justify-content: safe center; /* a few posts sit centred; once they overflow, the row starts at the left */
	gap: 0.5rem !important;
	padding: 0 var(--wp--style--root--padding-left, 1.25rem) 0.75rem !important;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--wp--style--root--padding-left, 1.25rem);
	scrollbar-width: none;
}

@media (hover: hover) and (pointer: fine) {
	.bd-insta__feed #sb_instagram #sbi_images {
		scrollbar-width: thin;
		scrollbar-color: var(--wp--preset--color--detail) transparent;
	}
}

.bd-insta__feed #sb_instagram #sbi_images > .sbi_item {
	flex: 0 0 clamp(10rem, 15.5vw, 17rem);
	width: auto !important;
	padding: 0 !important;
	scroll-snap-align: start;
}

.bd-insta__feed #sb_instagram .sbi_photo {
	height: auto !important; /* the plugin sets a fixed height in JS */
	aspect-ratio: 3 / 5;
	border-radius: 0;
}

.bd-insta__feed #sb_instagram .sbi_photo img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* ---------- Legal and info pages (Algemene voorwaarden, Privacybeleid, Retourneren, Verzending; class "bd-legal"):
 * the client's texts word for word, set for reading: calm section headings, red list numbers and bullets,
 * "Let op" notes on a soft band with a red edge. ---------- */
.bd-legal {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
}

.bd-legal h2 {
	margin-top: var(--wp--preset--spacing--60, 2.25rem);
	margin-bottom: 0.5rem;
	font-size: clamp(1.15rem, 1rem + 0.4vw, 1.3rem);
	line-height: 1.35;
}

.bd-legal h2 + * {
	margin-top: 0;
}

.bd-legal :is(ul, ol) {
	padding-left: 1.4rem;
}

.bd-legal li + li {
	margin-top: 0.4rem;
}

.bd-legal li::marker {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.bd-legal a[href^="mailto:"] {
	white-space: nowrap;
}

.bd-legal__warning strong {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border: 1.5px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.06em;
}

.bd-legal__note {
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--surface);
	border-left: 3px solid var(--wp--preset--color--primary);
}

/* ---------- Het verhaal (story page) and Waarom Pre-loved: parts of text, each with its photo.
 * Phones and tablets: the photo above its text (the story's flat illustrations full width, edge to edge, as on
 * the homepage; the framed polaroids of Waarom Pre-loved centred). Desktop: photo and text side by side,
 * alternating; the photo stands still next to its text. ---------- */
.bd-verhaal__part + .bd-verhaal__part {
	margin-top: var(--wp--preset--spacing--60, 2.25rem);
}

.bd-verhaal__part p {
	margin: 0 0 1.1em;
}

.bd-verhaal .bd-verhaal__photo,
.bd-verhaal .bd-verhaal__photo:is(.alignleft, .alignright) {
	float: none;
	width: min(78%, 26rem);
	max-width: none;
	margin: 0 auto 1.25rem;
}

.bd-verhaal .bd-verhaal__photo.bd-verhaal__photo--flat {
	width: 100vw;
	margin: 0 calc(50% - 50vw) 1.25rem;
}

.bd-verhaal .bd-verhaal__photo img {
	display: block;
	width: 100%;
	height: auto;
}

/* The real Boris and Doris, with a hand-drawn note pointing at them. */
.bd-verhaal__real {
	margin-top: var(--wp--preset--spacing--70, 3.38rem);
}

.bd-handnote {
	width: fit-content;
	max-width: 14ch;
	margin: 0 6% -1.5rem auto !important;
	font-family: Caveat, "Segoe Print", "Bradley Hand", cursive;
	font-size: clamp(1.6rem, 1.25rem + 1vw, 2.1rem);
	font-weight: 600;
	line-height: 1.05;
	text-align: center;
	color: var(--wp--preset--color--detail);
	transform: rotate(-4deg);
}

.bd-handnote::after {
	content: "";
	display: block;
	width: 5.5rem;
	height: 4.1rem;
	margin: 0.2rem 0 0 -2.5rem;
	background: center / contain no-repeat url("../images/arrow-hand.svg");
}

.bd-verhaal__real .bd-verhaal__photo {
	width: 80%;
	max-width: 36rem;
	margin: 0 auto;
}

.bd-verhaal__real .bd-verhaal__photo img {
	width: 100%;
	height: auto;
}

.bd-verhaal__cta {
	margin-top: var(--wp--preset--spacing--60, 2.25rem);
}

/* Headings inside a part (Waarom Pre-loved): the story page's parts have none. */
.bd-verhaal__part h2 {
	margin: 0 0 0.6em;
}

.bd-verhaal__part p + h2 {
	margin-top: 1.6em;
}

/* Figures (Waarom Pre-loved): each number large in red on a light card with a yellow top edge, its sentence below. */
.bd-stats {
	margin-block: var(--wp--preset--spacing--70, 3.38rem);
}

.bd-stats h2 {
	margin: 0 0 var(--wp--preset--spacing--50, 1.5rem);
}

.bd-stats__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50, 1.5rem);
}

.bd-stat {
	margin: 0 !important;
	padding: 1.75rem 1.5rem 1.6rem;
	border-top: 4px solid var(--wp--preset--color--detail);
	background: var(--wp--preset--color--surface);
}

.bd-stat__number {
	margin: 0 0 0.9rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(3rem, 2.2rem + 2.6vw, 4.5rem);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--primary);
}

.bd-stat__text {
	margin: 0 !important;
	font-size: 1rem;
	line-height: 1.55;
}

@media (max-width: 781px) {
	.bd-stats__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	/* Phones: number and sentence side by side, so three cards stay short. */
	.bd-stat {
		display: grid;
		grid-template-columns: 5.5rem minmax(0, 1fr);
		column-gap: 1rem;
		align-items: start;
		padding: 1.25rem 1.1rem;
	}

	.bd-stat__number {
		margin: 0;
		font-size: 2.6rem;
	}
}

/* Desktop: wider than the text column, each part as photo and text side by side, alternating like the document. */
@media (min-width: 900px) {
	.is-layout-constrained > .bd-verhaal,
	body:has(.bd-verhaal) .wp-block-post-title {
		max-width: min(68rem, var(--wp--style--global--wide-size)) !important;
	}

	.bd-verhaal {
		font-size: 1.125rem;
		line-height: 1.7;
	}

	.bd-verhaal__part {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--wp--preset--spacing--70, 3.38rem);
		align-items: start;
	}

	.bd-verhaal__part + .bd-verhaal__part {
		margin-top: var(--wp--preset--spacing--70, 3.38rem);
	}

	.bd-verhaal__part > * {
		grid-column: 2;
	}

	.bd-verhaal .bd-verhaal__part > .bd-verhaal__photo {
		grid-column: 1;
		grid-row: 1 / span 20;
		width: 100%;
		margin: 0;
	}

	/* Photo on the right: swap the columns. */
	.bd-verhaal__part:has(> .alignright) {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.bd-verhaal__part:has(> .alignright) > * {
		grid-column: 1;
	}

	.bd-verhaal .bd-verhaal__part > .bd-verhaal__photo.alignright {
		grid-column: 2;
	}

	/* The story's landscape illustrations: half and half, the photo centred next to its text. */
	.bd-verhaal__part:has(> .bd-verhaal__photo--flat),
	.bd-verhaal__part:has(> .bd-verhaal__photo--flat.alignright) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.bd-verhaal .bd-verhaal__part > .bd-verhaal__photo--flat {
		align-self: center;
	}

	.bd-verhaal__real .bd-verhaal__photo {
		width: 62%;
		max-width: 40rem;
	}

	.bd-handnote {
		margin-right: 14% !important;
	}
}

@media (max-width: 600px) {
	.bd-verhaal__real .bd-verhaal__photo {
		width: 100%;
	}

	.bd-handnote {
		margin-right: 2% !important;
	}
}

/* ---------- Populaire categorieën: three tall photos, each one link; phones swipe through them ---------- */
.bd-cats__grid {
	gap: var(--wp--preset--spacing--50, 1.5rem) !important;
}

.bd-cat {
	position: relative;
	transition: transform 200ms var(--bd-ease-play);
}

.bd-cat:active {
	transform: scale(0.985);
	transition-duration: 90ms;
}

.bd-cat__photo {
	margin: 0 0 0.9rem;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--surface);
}

.bd-cat__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 600ms var(--bd-ease-out);
}

.bd-cat .wp-block-buttons {
	margin: 0;
}

/* The label keeps one look in every state (the theme's Link button style would reset its font on hover). */
.bd-cat .wp-block-button.bd-cat__link .wp-block-button__link,
.bd-cat .wp-block-button.bd-cat__link .wp-block-button__link:is(:hover, :focus, :active) {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 0 0.35rem;
	/* The yellow line under the text grows from the left on hover. */
	background: linear-gradient(var(--wp--preset--color--detail), var(--wp--preset--color--detail)) 0 100% / 0 3px no-repeat;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transform: none;
	transition: background-size 380ms var(--bd-ease-out);
}

/* The whole tile is the link. */
.bd-cat .wp-block-button.bd-cat__link .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.bd-cat .wp-block-button.bd-cat__link .wp-block-button__link::after {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%233e5e2f' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E");
	transition: transform 320ms var(--bd-ease-play);
}

@media (hover: hover) and (pointer: fine) {
	.bd-cat:hover .bd-cat__photo img {
		transform: scale(1.03);
	}

	.bd-cat:hover .wp-block-button.bd-cat__link .wp-block-button__link::after {
		transform: translateX(4px);
	}

	.bd-cat:hover .wp-block-button.bd-cat__link .wp-block-button__link {
		background-size: calc(100% - 1.55em) 3px;
	}
}

.bd-cat:focus-within .wp-block-button.bd-cat__link .wp-block-button__link {
	background-size: calc(100% - 1.55em) 3px;
}

@media (prefers-reduced-motion: reduce) {
	.bd-cat,
	.bd-cat:active,
	.bd-cat:hover .bd-cat__photo img {
		transform: none;
	}
}

/* Phones: a swipeable row that runs to the screen edge, the next tile clearly peeking in, with a position indicator (assets/js/carousel.js). */
@media (max-width: 781px) {
	.bd-cats__grid {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		gap: 0.85rem !important;
		box-sizing: border-box;
		width: 100vw;
		max-width: none !important;
		margin-inline: calc(50% - 50vw) !important;
		padding-inline: var(--wp--style--root--padding-left, 1.25rem);
		scroll-padding-inline: var(--wp--style--root--padding-left, 1.25rem);
	}

	.bd-cats__grid::-webkit-scrollbar {
		display: none;
	}

	.bd-cats__grid > .bd-cat {
		flex: 0 0 64% !important;
		scroll-snap-align: start;
	}
}

/* Position bars under swipe rows on phones (Nieuw binnen, Populaire categorieën; assets/js/carousel.js). */
.bd-swipe-dots {
	display: none;
}

@media (max-width: 781px) {
	.bd-swipe-dots {
		display: flex;
		justify-content: center;
		gap: 0.4rem;
		margin-top: 1.1rem;
	}

	.bd-swipe-dots span {
		width: 1.1rem;
		height: 3px;
		background: color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
		transition: background-color 200ms ease, width 260ms var(--bd-ease-out);
	}

	.bd-swipe-dots span.is-active {
		width: 1.9rem;
		background: var(--wp--preset--color--detail);
	}
}

/* ---------- In het zonnetje: a sun-yellow band (white text, as in the client's layout), the text and a
 * cream button with a dark border on the left, the plush as a square polaroid on the right, sunlight from
 * the bottom right at 48%. Phones: the text first, centred, then the polaroid. ---------- */
.wp-block-group.bd-spotlight {
	--bd-sun: 0.48;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: linear-gradient(100deg, var(--wp--preset--color--detail) 40%, color-mix(in srgb, var(--wp--preset--color--detail) 82%, var(--wp--preset--color--primary)));
	color: var(--wp--preset--color--base);
}

.bd-spotlight::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	z-index: -1;
	width: min(70vw, 52rem);
	aspect-ratio: 1100 / 878;
	background: url("../images/zon.webp") top right / contain no-repeat;
	opacity: var(--bd-sun);
	transform-origin: top right;
	pointer-events: none;
	animation: bd-sun 9s ease-in-out infinite alternate;
}

/* Text and polaroid sit together in the middle as one composition. */
.bd-spotlight__cols {
	justify-content: center;
	align-items: center !important;
	gap: var(--wp--preset--spacing--80, 5rem) !important;
}

.bd-spotlight__cols > .wp-block-column:first-child {
	flex: 0 1 30rem !important;
}

.bd-spotlight__cols > .wp-block-column:last-child {
	flex: 0 1 30rem !important;
}

.bd-spotlight__title {
	margin: 0;
	color: var(--wp--preset--color--base);
	text-shadow: 0 1px 12px rgb(120 70 10 / 0.35);
}

/* The name is on the polaroid (caption); the heading stays for screen readers. */
.bd-spotlight__name {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.bd-spotlight .bd-story {
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	color: var(--wp--preset--color--base);
	/* white on sun yellow is light: a soft warm shadow keeps the letters readable */
	text-shadow: 0 1px 10px rgb(120 70 10 / 0.4);
}

.bd-spotlight .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--50, 1.5rem);
}

/* The button: cream with a dark border; under the mouse it turns dark with cream text. */
.bd-spotlight .wp-block-button__link {
	border: 1.5px solid var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--on-accent);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.bd-spotlight .wp-block-button__link:hover {
		background: var(--wp--preset--color--contrast);
		color: var(--wp--preset--color--on-accent);
	}
}

/* The plush as a snapshot in the sun: a square photo in a white frame, slightly tilted, that
 * straightens up under the mouse; its name on the white strip. */
.bd-spotlight__photo {
	margin: 0;
	padding: 1rem 1rem 0;
	background: var(--wp--preset--color--base);
	box-shadow: 0 2px 4px rgb(60 40 20 / 0.08), 0 26px 40px -22px rgb(60 40 20 / 0.5);
	transform: rotate(2.5deg);
	transition: transform 500ms var(--bd-ease-play), box-shadow 500ms ease;
}

.bd-spotlight__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
	background: var(--wp--preset--color--surface);
}

.bd-spotlight__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.bd-spotlight__caption {
	margin: 0;
	padding: 0.9rem 0.25rem 1.2rem;
	text-align: center;
}

.bd-spotlight__caption-name {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.2;
}

@media (hover: hover) and (pointer: fine) {
	.bd-spotlight__cols:hover .bd-spotlight__photo {
		transform: rotate(0.5deg) translateY(-4px);
		box-shadow: 0 2px 4px rgb(60 40 20 / 0.08), 0 34px 48px -24px rgb(60 40 20 / 0.55);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bd-spotlight::before {
		animation: none;
	}

	.bd-spotlight__cols:hover .bd-spotlight__photo {
		transform: rotate(2.5deg);
	}
}

/* Phones: the text first, centred, then the polaroid. */
@media (max-width: 781px) {
	.bd-spotlight__cols > .wp-block-column:first-child {
		flex-basis: auto !important;
		text-align: center;
	}

	.bd-spotlight .wp-block-buttons {
		justify-content: center;
	}

	.bd-spotlight__cols {
		flex-direction: column;
		gap: var(--wp--preset--spacing--60, 2.25rem) !important;
	}

	.bd-spotlight__cols > .wp-block-column:last-child {
		flex-basis: auto !important;
		width: min(86%, 22rem);
		align-self: center;
	}

	.bd-spotlight::before {
		width: 110vw;
	}
}

/* ---------- Footer: brand column, then four link columns; phones: brand on top, links two by two ---------- */
.bd-footer__cols .wp-block-navigation {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400; /* plain links, so the bold headings stand apart (client, 2026-10-02) */
}

/* Brand column: the tagline as quiet as the links, the social icons lined up with the logo and text. */
.bd-footer__brand .bd-story {
	max-width: 28ch;
	margin-top: 1rem;
	text-wrap: balance;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.55;
	color: var(--wp--preset--color--on-accent);
}

.bd-footer__brand .bd-social {
	margin-top: 1.25rem;
	gap: 0.9rem;
}

.bd-footer__brand .bd-social .wp-social-link,
.bd-footer__brand .bd-social .wp-social-link a {
	margin: 0;
	padding: 0;
}

@media (max-width: 781px) {
	.bd-footer__cols {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}

	.bd-footer__cols > .bd-footer__brand {
		grid-column: 1 / -1;
	}
}

/* Jump links (footer "FAQs") land with a little room above. */
[id] {
	scroll-margin-top: 1rem;
}

/* ---------- Veelgestelde vragen: questions that fold open (assets/js/faq.js animates the height) ---------- */
.bd-faq__list {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
}

.bd-faq .wp-block-details {
	margin: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
	overflow: hidden;
}

.bd-faq .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	transition: color 160ms ease;
}

.bd-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

/* A red plus that turns into a cross when the answer is open. */
.bd-faq .wp-block-details summary::after {
	content: "";
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	background:
		linear-gradient(var(--wp--preset--color--primary) 0 0) center / 100% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--primary) 0 0) center / 3px 100% no-repeat;
	transition: transform 320ms var(--bd-ease-play);
}

.bd-faq .wp-block-details[open] summary::after,
.bd-faq .wp-block-details.is-opening summary::after {
	transform: rotate(135deg);
}

.bd-faq .wp-block-details.is-closing summary::after {
	transform: rotate(0deg);
}

@media (hover: hover) and (pointer: fine) {
	.bd-faq .wp-block-details summary:hover {
		color: var(--wp--preset--color--primary);
	}
}

.bd-faq .wp-block-details > :not(summary) {
	margin-top: 0;
	padding-bottom: 1.25rem;
	max-width: 62ch;
	color: var(--wp--preset--color--muted);
}

/* Answers of several paragraphs: closer together inside, the full gap only after the last one. */
.bd-faq .wp-block-details > :not(summary):has(+ :not(summary)) {
	padding-bottom: 0.75rem;
}

/* ---------- Alternating photo and text ---------- */
@media (min-width: 782px) {
	.bd-alternate__row:nth-child(even) {
		flex-direction: row-reverse;
	}
}

/* ---------- Shop: the sort menu in the house style instead of the browser default ---------- */
.wc-block-catalog-sorting .woocommerce-ordering {
	margin: 0;
}

.wc-block-catalog-sorting .woocommerce-ordering select.orderby {
	appearance: none;
	-webkit-appearance: none;
	min-height: 2.75rem;
	padding: 0.55em 2.75em 0.55em 1.1em;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	border-radius: var(--bd-radius);
	background: var(--wp--preset--color--base) right 1em center / 0.9em no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23302649' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.wc-block-catalog-sorting .woocommerce-ordering select.orderby:hover {
		border-color: var(--wp--preset--color--contrast);
	}
}

.wc-block-catalog-sorting .woocommerce-ordering select.orderby:focus-visible {
	border-color: var(--wp--preset--color--contrast);
}

.woocommerce-result-count {
	color: var(--wp--preset--color--muted);
}

/* ---------- Forms (Forminator): fields, upload and button in the house style ----------
 * Forminator writes per-form rules at ID strength (.forminator-ui#forminator-module-58...).
 * :is(<attribute>, #bd-form) takes the ID's weight while still matching every form by its
 * attribute, and the leading body adds one more step, so these win for any Forminator form. */
body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) {
	--bd-field-line: color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	margin-top: var(--wp--preset--spacing--50, 1.5rem);
	font-family: inherit;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-row:not(.forminator-row-last) {
	margin-bottom: var(--wp--preset--spacing--40, 1rem);
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-label {
	margin-bottom: 0.4rem;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.3;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-label .forminator-required {
	color: var(--wp--preset--color--primary);
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) :is(.forminator-input, .forminator-textarea) {
	width: 100%;
	min-height: 2.9rem;
	padding: 0.7em 1em;
	border: 1.5px solid var(--bd-field-line);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color 160ms ease;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-textarea {
	min-height: 8rem;
	resize: vertical;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) :is(.forminator-input, .forminator-textarea)::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 0.8;
}

@media (hover: hover) and (pointer: fine) {
	body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) :is(.forminator-input, .forminator-textarea):hover {
		border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	}
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) :is(.forminator-input, .forminator-textarea):focus {
	border-color: var(--wp--preset--color--contrast);
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Photo upload: a soft linen drop zone. */
body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-multi-upload {
	padding: 1.75rem 1rem;
	border: 2px dashed var(--bd-field-line);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	transition: border-color 160ms ease, background-color 160ms ease;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-multi-upload:is(:hover, .forminator-dragover) {
	border-color: var(--wp--preset--color--accent);
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-multi-upload .forminator-icon-upload::before {
	color: var(--wp--preset--color--accent);
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-multi-upload-message p {
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-multi-upload-message a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-uploaded-files li {
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

/* Consent checkbox. */
body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-checkbox .forminator-checkbox-box {
	width: 22px;
	height: 22px;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	border-radius: 0;
	background: var(--wp--preset--color--base);
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-checkbox input:checked + .forminator-checkbox-box {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-checkbox__label,
body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-checkbox__label p {
	color: var(--wp--preset--color--contrast);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Submit: the theme's primary button. */
body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-button-submit {
	min-height: 2.9rem;
	padding: 0.75em 1.6em;
	border: 0;
	border-radius: var(--bd-radius);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 180ms ease, transform 220ms var(--bd-ease-play);
}

@media (hover: hover) and (pointer: fine) {
	body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-button-submit:hover {
		background: var(--wp--preset--color--accent-strong);
	}
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-button-submit:active {
	transform: scale(0.95);
	transition-duration: 90ms;
}

/* Messages: errors in madder, the thank-you on linen. */
body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-error-message {
	margin-top: 0.35rem;
	padding: 0;
	background: none;
	color: var(--wp--preset--color--primary);
	font-size: 0.9rem;
	font-weight: 600;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-has_error :is(.forminator-input, .forminator-textarea, .forminator-multi-upload) {
	border-color: var(--wp--preset--color--primary);
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-response-message {
	border-radius: 0;
	font-size: 1rem;
}

body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-response-message.forminator-success {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--wp--preset--color--contrast) 15%, transparent);
}

@media (prefers-reduced-motion: reduce) {
	body .forminator-ui.forminator-custom-form:is([id^="forminator-module-"], #bd-form) .forminator-button-submit:active {
		transform: none;
	}
}

/* ---------- Shop: title and line on top, a bar with the filter button, and the filter panel sliding in from the right ---------- */
.bd-shop-intro {
	margin-bottom: var(--wp--preset--spacing--50, 1.5rem);
}

.bd-shop-intro h1 {
	margin: 0;
}

.bd-shop-intro__text {
	max-width: 52ch;
	margin-top: 0.6rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.bd-shop-bar {
	margin-bottom: var(--wp--preset--spacing--50, 1.5rem);
	gap: 1rem;
}

.bd-shop-bar__left {
	gap: 1.25rem !important;
}

.bd-filter-open {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 2.75rem;
	padding: 0.55em 1.1em;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	border-radius: var(--bd-radius);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.bd-filter-open:hover {
		border-color: var(--wp--preset--color--contrast);
	}
}

.bd-filter-open:active {
	transform: scale(0.97);
}

.bd-shop-bar .woocommerce-result-count {
	margin: 0;
}

/* The panel: a native dialog at the left edge, full height; the full width on phones.
 * Opens in 260ms, closes faster (200ms); the dimmed page follows. */
.is-layout-constrained > dialog.bd-filter-dialog,
dialog.bd-filter-dialog {
	--bd-panel-pad: 1.75rem;
	position: fixed;
	inset: 0 auto 0 0;
	width: min(26rem, 100vw);
	max-width: none !important;
	height: 100dvh;
	max-height: none;
	margin: 0 !important;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	accent-color: var(--wp--preset--color--accent);
	box-shadow: 18px 0 40px -24px rgb(31 43 44 / 0.45);
	flex-direction: column;
	translate: -100% 0;
	transition: translate 200ms cubic-bezier(0.4, 0, 1, 1), overlay 200ms allow-discrete, display 200ms allow-discrete;
}

dialog.bd-filter-dialog[open] {
	display: flex;
	translate: 0 0;
	transition: translate 260ms var(--bd-ease-out), overlay 260ms allow-discrete, display 260ms allow-discrete;
}

@starting-style {
	dialog.bd-filter-dialog[open] {
		translate: -100% 0;
	}
}

dialog.bd-filter-dialog::backdrop {
	background: rgb(31 43 44 / 0);
	transition: background-color 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete;
}

dialog.bd-filter-dialog[open]::backdrop {
	background: rgb(31 43 44 / 0.4);
}

@starting-style {
	dialog.bd-filter-dialog[open]::backdrop {
		background: rgb(31 43 44 / 0);
	}
}

@media (max-width: 480px) {
	dialog.bd-filter-dialog {
		--bd-panel-pad: 1.25rem;
	}
}

.bd-filter-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 var(--bd-panel-pad);
	padding: 1.6rem 0 1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
}

.bd-filter-dialog__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.bd-filter-dialog__close {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: -0.65rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: color 160ms ease, transform 220ms var(--bd-ease-play);
}

@media (hover: hover) and (pointer: fine) {
	.bd-filter-dialog__close:hover {
		color: var(--wp--preset--color--primary);
		transform: rotate(90deg);
	}
}

.bd-filter-dialog__body {
	flex: 1;
	overflow-y: auto;
	padding: 0 var(--bd-panel-pad) 1.5rem;
	overscroll-behavior: contain;
}

.bd-filter-dialog .wc-block-product-filters__content {
	gap: 0 !important;
}

/* Active filters on top, as small chips. */
.bd-filter-dialog .wp-block-woocommerce-product-filter-active:not(:empty) {
	padding: 1rem 0 0.25rem;
}

/* Each filter folds open under its name, with a chevron; space between them, no lines. */
.bd-filter-dialog .bd-filter-group {
	margin: 0;
	border: 0;
	overflow: hidden;
}

.bd-filter-dialog .bd-filter-group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0.1rem;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	transition: color 160ms ease;
}

.bd-filter-dialog .bd-filter-group summary::-webkit-details-marker {
	display: none;
}

.bd-filter-dialog .bd-filter-group summary::after {
	content: "";
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
	transition: transform 280ms var(--bd-ease-play);
}

.bd-filter-dialog .bd-filter-group[open] summary::after,
.bd-filter-dialog .bd-filter-group.is-opening summary::after {
	transform: rotate(180deg);
}

.bd-filter-dialog .bd-filter-group.is-closing summary::after {
	transform: rotate(0deg);
}

@media (hover: hover) and (pointer: fine) {
	.bd-filter-dialog .bd-filter-group summary:hover {
		color: var(--wp--preset--color--primary);
	}
}

.bd-filter-dialog .bd-filter-group > :not(summary) {
	margin: 0;
	padding: 0 0.1rem 1.35rem;
}

/* Checkbox lists: no box around them, square checkboxes that fill teal. */
/* In this WooCommerce version the list's wrapper is .wp-block-woocommerce-product-filter-checkbox-list, so
 * WooCommerce's own rule that removes the browser's fieldset frame never applies; this one does. */
.bd-filter-dialog :is(.wp-block-woocommerce-product-filter-checkbox-list, .wc-block-product-filter-checkbox-list),
.bd-filter-dialog :is(.wp-block-woocommerce-product-filter-checkbox-list, .wc-block-product-filter-checkbox-list) fieldset,
.bd-filter-dialog .wc-block-product-filter-checkbox-list__items {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.bd-filter-dialog .wc-block-product-filter-checkbox-list__items {
	display: grid;
	gap: 0.75rem;
}

.bd-filter-dialog .wc-block-product-filter-checkbox-list__label {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--medium);
}

.bd-filter-dialog .wc-block-product-filter-checkbox-list__input-wrapper {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
}

.bd-filter-dialog .wc-block-product-filter-checkbox-list__input-wrapper::before {
	display: none;
}

.bd-filter-dialog input[type="checkbox"].wc-block-product-filter-checkbox-list__input {
	appearance: none;
	-webkit-appearance: none;
	width: 1.2rem;
	height: 1.2rem;
	margin: 0;
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	cursor: pointer;
	transition: background-color 140ms ease, border-color 140ms ease;
}

.bd-filter-dialog input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
}

.bd-filter-dialog svg.wc-block-product-filter-checkbox-list__mark {
	display: none;
	position: absolute;
	top: auto;
	left: auto;
	height: auto;
	padding: 0;
	width: 0.7rem;
	color: var(--wp--preset--color--base);
	pointer-events: none;
}

.bd-filter-dialog input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked + svg.wc-block-product-filter-checkbox-list__mark {
	display: block;
}

.bd-filter-dialog input[type="checkbox"].wc-block-product-filter-checkbox-list__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.bd-filter-dialog .wc-block-product-filter-checkbox-list__count {
	color: var(--wp--preset--color--muted);
}

/* Price: a slim teal slider with plain fields under it. */
.bd-filter-dialog .wc-block-product-filter-price-slider {
	--bd-slider: var(--wp--preset--color--accent);
	color: var(--bd-slider);
}

.bd-filter-dialog .wc-block-product-filter-price-slider__content {
	gap: 1rem;
}

.bd-filter-dialog .wc-block-product-filter-price-slider .text input {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
}

.bd-filter-dialog .wc-block-product-filter-price-slider .text input:focus {
	border-color: var(--wp--preset--color--contrast);
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.bd-filter-dialog__foot {
	margin: 0 var(--bd-panel-pad);
	padding: 1rem 0 calc(1.25rem + env(safe-area-inset-bottom));
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
}

.bd-filter-dialog__apply {
	width: 100%;
}

.bd-filter-dialog__clear {
	display: block;
	margin: 0.85rem auto 0;
	padding: 0.35rem 0.5rem;
	border: 0;
	background: none;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: 0.2em;
	cursor: pointer;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.bd-filter-dialog__clear:hover {
		color: var(--wp--preset--color--primary);
		text-decoration-color: currentColor;
	}
}

.bd-filter-clear .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
}

@media (prefers-reduced-motion: reduce) {
	dialog.bd-filter-dialog,
	dialog.bd-filter-dialog[open],
	dialog.bd-filter-dialog::backdrop {
		transition-duration: 0ms;
	}
}

/* ---------- Shop cards: on hover the price makes way for "Direct adopteren" and a second photo fades in ----------
 * Price and button share one spot; phones keep the price (a tap opens the plush). */
.wp-block-woocommerce-product-collection .wc-block-product {
	display: grid;
	grid-template-rows: auto auto auto;
	align-content: start;
	justify-items: center;
	text-align: center;
}

.wc-block-product > .wp-block-woocommerce-product-price,
.wc-block-product > .bd-card-adopt {
	grid-row: 3;
	grid-column: 1;
	align-self: start;
}

/* Name, price and button centred under the photo, in a regular weight (Jellycat-like). */
.wp-block-woocommerce-product-collection .wc-block-product .wp-block-post-title {
	font-weight: 500;
	letter-spacing: 0;
	text-align: center;
}

.wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-price,
.wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price {
	font-weight: 400;
	text-align: center;
}

.wc-block-product > .bd-card-adopt {
	margin: 0.35rem 0 0 !important;
	text-align: center;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 280ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wc-block-product > .bd-card-adopt .wp-block-button__link,
.wc-block-product > .bd-card-adopt .wc-block-components-product-button__button {
	width: auto;
	margin: 0;
	padding: 0.6em 1.3em;
	font-size: var(--wp--preset--font-size--medium);
}

.wc-block-product > .wp-block-woocommerce-product-price {
	transition: opacity 280ms ease 60ms, transform 360ms cubic-bezier(0.22, 1, 0.36, 1) 60ms;
}

@media (hover: hover) and (pointer: fine) {
	/* In: the price glides up and out first, the button follows and settles. Out: the reverse. */
	.wc-block-product:is(:hover, :focus-within) > .wp-block-woocommerce-product-price {
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 260ms ease, transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.wc-block-product:is(:hover, :focus-within) > .bd-card-adopt {
		opacity: 1;
		transform: none;
		pointer-events: auto;
		transition: opacity 360ms ease 90ms, transform 460ms cubic-bezier(0.22, 1, 0.36, 1) 90ms;
	}
}

@media (hover: none), (pointer: coarse) {
	.wc-block-product > .bd-card-adopt {
		display: none;
	}
}

/* The second photo lies on top of the first, invisible until hover. */
.wc-block-product .wc-block-components-product-image {
	position: relative;
}

/* The second photo drifts in: a slow crossfade while it settles from slightly
 * enlarged, and a quicker fade back on leaving. */
.wc-block-product .bd-card-alt {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 450ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.wc-block-product:hover .bd-card-alt {
		opacity: 1;
		transform: none;
		transition: opacity 650ms cubic-bezier(0.4, 0, 0.2, 1), transform 1100ms var(--bd-ease-out);
	}

	/* A plush with a second photo swaps instead of zooming. */
	.wc-block-product:hover .wc-block-components-product-image:has(.bd-card-alt) img {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wc-block-product .bd-card-alt {
		transform: none;
	}

	.wc-block-product > .bd-card-adopt,
	.wc-block-product > .wp-block-woocommerce-product-price {
		transform: none !important;
	}
}

/* ---------- Empty cart page: a sad bunny instead of WooCommerce's crying face, a button to the shop, and calm product cards ---------- */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	width: 5.5rem;
	height: 5.5rem;
	margin: 0 auto 1.25rem;
	background: center / contain no-repeat url("../icons/konijn-verdrietig.svg");
	-webkit-mask: none;
	mask: none;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
	margin-bottom: 1.25rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.wp-block-woocommerce-empty-cart-block .bd-empty-cart__cta {
	margin-bottom: var(--wp--preset--spacing--70, 3.38rem);
}

.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots {
	display: none;
}

/* WooCommerce's "newest products" grid, styled like the shop cards. */
.wc-block-grid .wc-block-grid__products {
	gap: var(--wp--preset--spacing--50, 1.5rem);
	margin: 0;
}

.wc-block-grid .wc-block-grid__product {
	border: 0;
	padding: 0;
	text-align: center;
}

.wc-block-grid .wc-block-grid__product-link {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.wc-block-grid .wc-block-grid__product-image {
	margin-bottom: 0.9rem;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.wc-block-grid .wc-block-grid__product-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 450ms var(--bd-ease-out);
}

.wc-block-grid .wc-block-grid__product-title {
	margin: 0 0 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	text-decoration: none;
}

.wc-block-grid .wc-block-grid__product-price {
	margin-bottom: 0.75rem;
	font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
	.wc-block-grid .wc-block-grid__product:hover .wc-block-grid__product-image img {
		transform: scale(1.035);
	}

	.wc-block-grid .wc-block-grid__product-link:hover .wc-block-grid__product-title {
		color: var(--wp--preset--color--primary);
	}
}

/* ---------- Product page: the photos stay in view beside a long story ---------- */
@media (min-width: 782px) {
	.bd-product-gallery {
		position: sticky;
		top: var(--wp--preset--spacing--50, 1.5rem);
		align-self: flex-start;
	}
}

.bd-story-title {
	margin-top: var(--wp--preset--spacing--50, 1.5rem);
}


/* ---------- Homepage rhythm: one spacing unit between sections ----------
 * Sections sit flush (no block gap, so no white strip beside a coloured band) and
 * every section gets the same padding. Two white sections in a row share one unit
 * instead of adding theirs up. The strengths band stays a compact strip. */
.home .wp-block-post-content {
	--bd-section: clamp(3rem, 2rem + 3vw, 5rem);
}

.home .wp-block-post-content > .alignfull {
	margin-block: 0 !important;
}

.home .wp-block-post-content > .alignfull:not(.bd-intro) {
	padding-block: var(--bd-section) !important;
}

.home .wp-block-post-content > .alignfull:not(.bd-intro, .bd-usps, .bd-spotlight, .bd-about) + .alignfull:not(.bd-usps, .bd-spotlight, .bd-about) {
	padding-top: 0 !important;
}

.home .wp-block-post-content > .alignfull.bd-usps {
	padding-block: 0.85rem !important;
}

.home .wp-block-post-content > .alignfull.bd-about {
	padding-block: 0 !important;
}

/* ---------- Product photo: a magnifying glass under the mouse (assets/js/loupe.js) ---------- */
.woocommerce-product-gallery__image {
	position: relative;
	overflow: hidden;
}

.woocommerce-product-gallery__image:has(.bd-loupe) {
	cursor: none;
}

.bd-loupe {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: clamp(13rem, 46%, 19rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var(--wp--preset--color--surface);
	background-repeat: no-repeat;
	box-shadow:
		0 0 0 3px var(--wp--preset--color--base),
		0 0 0 4px color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent),
		0 18px 40px -12px color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	pointer-events: none;
	opacity: 0;
	scale: 0.6;
	transition: opacity 160ms ease-out, scale 200ms var(--bd-ease-out);
	will-change: translate;
}

.woocommerce-product-gallery__image.is-looking .bd-loupe {
	opacity: 1;
	scale: 1;
	transition: opacity 180ms ease-out, scale 260ms var(--bd-ease-play);
}

@media (prefers-reduced-motion: reduce) {
	.bd-loupe,
	.woocommerce-product-gallery__image.is-looking .bd-loupe {
		scale: 1;
		transition: opacity 120ms linear;
	}
}

/* Empty cart panel: the same sad bunny as the empty cart page. */
.wc-block-mini-cart__empty-cart-wrapper .has-text-align-center:first-child::before {
	content: "";
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 1rem;
	background: center / contain no-repeat url("../icons/konijn-verdrietig.svg");
}

/* ---------- WooCommerce notice banners (account, product page, cart): the site's own look ----------
 * Surface colour with a coloured edge instead of a blue outlined box; the link in a
 * notice is a real button. Yellow for information, blue-green for done, red for errors. */
.wc-block-components-notice-banner {
	--bd-notice: var(--wp--preset--color--detail);
	align-items: center;
	gap: 0.9rem;
	padding: 1rem 1.4rem !important;
	border: 0;
	border-left: 4px solid var(--bd-notice);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
}

.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-error {
	border-color: var(--bd-notice);
	background: var(--wp--preset--color--surface);
}

.wc-block-components-notice-banner.is-success { --bd-notice: var(--wp--preset--color--accent); }
.wc-block-components-notice-banner.is-error { --bd-notice: var(--wp--preset--color--primary); }

.wc-block-components-notice-banner > svg,
.wc-block-components-notice-banner:is(.is-info, .is-success, .is-error, .is-warning) > svg {
	width: 1.5rem;
	height: 1.5rem;
	background-color: var(--bd-notice);
}

/* Only a notice that ends in a button lays out as text and button side by side;
 * other notices (such as a login error with links) stay running text. */
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content {
	line-height: 1.55;
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content:has(> .wc-forward) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content a:not(.wc-forward) {
	color: inherit;
	font-weight: 600;
	text-underline-offset: 0.2em;
}

/* On a surface-coloured card (lost password) the notice is white, so it still reads as a notice. */
.woocommerce-account:not(.logged-in) .woocommerce:not(:has(.bd-login)) .wc-block-components-notice-banner {
	margin: 0 0 1.5rem;
	background: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	order: 2;
	float: none;
	margin: 0;
	padding: 0.65rem 1.25rem !important;
	border: 0;
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--on-accent) !important;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
	opacity: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 160ms ease;
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--accent-strong) !important;
	text-decoration: none;
}

/* A longer notice without a button: the icon sits by the first line. */
.wc-block-components-notice-banner:not(:has(.wc-forward)) {
	align-items: flex-start;
}

.wc-block-components-notice-banner:not(:has(.wc-forward)) > svg {
	margin-top: 0.1rem;
}

/* Warning under a plush's story (inc/shop.php): the outlined red label of the Veiligheid page. */
.bd-warning {
	margin-top: var(--wp--preset--spacing--40);
	padding: 1rem 1.25rem;
	border: 1.5px solid var(--wp--preset--color--primary);
}

.bd-warning__label {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	letter-spacing: 0.06em;
}

.bd-warning p:last-child {
	margin-bottom: 0;
}
