/**
 * Felau Kids — front-end layer bovenop theme.json + WooCommerce blocks.
 * Houd dit bestand compact; uitbreiden via SCSS partials (zie /assets/scss).
 */

/* -------------------------------------------------------------------------
   Tokens (fallbacks; primaire bron blijft theme.json)
   ------------------------------------------------------------------------- */
:root {
	--felau-radius-card: 1rem;
	--felau-radius-img: 0.75rem;
	--felau-shadow-card: 0 8px 30px rgba(107, 107, 94, 0.08);
	--felau-transition: 180ms ease-out;
}

/* -------------------------------------------------------------------------
   Basis
   ------------------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video {
	height: auto;
	max-width: 100%;
}

/* -------------------------------------------------------------------------
   Header + aankondigingsbalk (schets)
   ------------------------------------------------------------------------- */
.felau-header-sticky {
	position: sticky;
	top: 0;
	z-index: 50;
}

.felau-announcement-bar {
	color: var(--wp--preset--color--white, #fff);
}

.felau-announcement-bar p {
	color: inherit;
}

.felau-announcement-bar .wp-block-social-link-anchor,
.felau-announcement-bar .wp-block-social-link-anchor:active,
.felau-announcement-bar .wp-block-social-link-anchor:visited {
	color: inherit !important;
}

.felau-header-main {
	border-bottom: 1px solid var(--wp--preset--color--beige, #e8dec9);
	backdrop-filter: saturate(140%) blur(10px);
	background-color: color-mix(in srgb, var(--wp--preset--color--background, #f7f4ef) 92%, transparent);
}

@supports not (backdrop-filter: blur(2px)) {
	.felau-header-main {
		background-color: var(--wp--preset--color--background, #f7f4ef);
	}
}

@media (min-width: 783px) {
	.felau-header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		flex-wrap: nowrap;
	}

	.felau-header-brand {
		flex: 0 1 auto;
		min-width: 8rem;
	}

	.felau-header-nav {
		flex: 1 1 auto;
		display: flex;
		justify-content: center;
	}

	.felau-header-tools {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 0.35rem;
		flex-wrap: nowrap;
	}
}

.felau-header-tools .wp-block-search .wp-block-search__inside-wrapper {
	border-radius: 999px;
	overflow: hidden;
}

.felau-header-tools .wp-block-search__input {
	min-width: 0;
	max-width: 11rem;
}

/* -------------------------------------------------------------------------
   WooCommerce — product grid (archief / categorie)
   ------------------------------------------------------------------------- */
.felau-shop-archive .wc-block-product-template,
.felau-shop-archive .wp-block-woocommerce-product-template {
	gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);
}

.felau-shop-archive .wc-block-components-product-image,
.felau-shop-archive .wp-block-woocommerce-product-image {
	border-radius: var(--felau-radius-img);
	overflow: hidden;
	box-shadow: var(--felau-shadow-card);
	transition: transform var(--felau-transition), box-shadow var(--felau-transition);
}

.felau-shop-archive .wc-block-components-product-image:hover,
.felau-shop-archive .wp-block-woocommerce-product-image:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 40px rgba(107, 107, 94, 0.12);
}

.felau-shop-archive .wp-block-post-title a {
	text-decoration: none;
}

.felau-shop-archive .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* Productkaart-CTA’s in tan (schets) */
.felau-shop-archive .wp-block-woocommerce-product-button .wp-block-button__link,
.felau-shop-archive .wc-block-components-product-button .wc-block-components-product-button__button {
	background-color: var(--wp--preset--color--tan, #c8b28b) !important;
	color: var(--wp--preset--color--foreground, #6b6b5e) !important;
	border-radius: 999px;
	font-weight: 600;
	transition:
		background-color var(--felau-transition),
		transform var(--felau-transition),
		box-shadow var(--felau-transition);
}

.felau-shop-archive .wp-block-woocommerce-product-button .wp-block-button__link:hover,
.felau-shop-archive .wc-block-components-product-button .wc-block-components-product-button__button:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--tan, #c8b28b) 88%, #000) !important;
	transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   PDP (single product)
   ------------------------------------------------------------------------- */
.felau-single-product .woocommerce-product-gallery img,
.felau-single-product .wc-block-components-product-gallery img {
	border-radius: var(--felau-radius-img);
}

/* -------------------------------------------------------------------------
   Cart / checkout / account (block + klassieke markup)
   ------------------------------------------------------------------------- */
.felau-cart .woocommerce,
.felau-checkout .woocommerce,
.woocommerce-account .woocommerce {
	font-size: inherit;
	line-height: inherit;
}

.felau-checkout .wp-block-post-content,
.felau-cart .wp-block-post-content {
	max-width: 100%;
}

/* -------------------------------------------------------------------------
   Sticky add-to-cart bar (mobiel)
   ------------------------------------------------------------------------- */
.felau-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: none;
	padding: 0.75rem clamp(0.75rem, 2vw, 1.25rem) calc(0.75rem + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--wp--preset--color--background, #f7f4ef) 92%, transparent);
	border-top: 1px solid var(--wp--preset--color--beige, #e8dec9);
	backdrop-filter: blur(10px);
}

.felau-sticky-atc.is-visible {
	display: block;
}

.felau-sticky-atc__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
}

.felau-sticky-atc__title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.25;
	max-width: 55%;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.felau-sticky-atc__actions {
	flex: 0 0 auto;
}

.felau-sticky-atc__actions .single_add_to_cart_button,
.felau-sticky-atc__actions .wp-block-button__link {
	white-space: nowrap;
}

@media (min-width: 782px) {
	.felau-sticky-atc {
		display: none !important;
	}
}

/* -------------------------------------------------------------------------
   Patterns / utilities
   ------------------------------------------------------------------------- */
.felau-hero-visual {
	min-height: clamp(220px, 32vh, 420px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.felau-checklist li::marker {
	color: var(--wp--preset--color--terracotta, #e9a87a);
}

.felau-footer-list {
	list-style: none;
	padding-left: 0;
}

.felau-footer-list li {
	margin-bottom: 0.35rem;
}

.felau-flow > * + * {
	margin-top: var(--wp--preset--spacing--70, 1.25rem);
}

.u-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
