/**
 * Thalia Muziektheater — componenten
 *
 * Bouwt voort op de tokens uit style.css. Bevat de hero, kaarten,
 * productie-overzichten, sponsorbalk, blog, reacties en de
 * WooCommerce-opmaak voor de kaartverkoop.
 */

/* ==========================================================================
   1. Hero — het toneel
   ========================================================================== */

.thalia-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: clamp(520px, 78vh, 780px);
	padding-block: clamp(3.5rem, 9vw, 7rem);
	background: var(--thalia-ink);
	color: var(--thalia-white);
	overflow: hidden;
}

/* Achtergrondfoto */
.thalia-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.thalia-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

/* Donker verloop zodat de tekst altijd leesbaar blijft */
.thalia-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(100deg, rgba(26, 18, 20, 0.94) 0%, rgba(26, 18, 20, 0.72) 45%, rgba(107, 20, 24, 0.5) 100%),
		radial-gradient(ellipse at 20% 100%, rgba(193, 39, 45, 0.45), transparent 60%);
}

/* Spotlight-gloed vanuit de bovenhoek */
.thalia-hero::after {
	content: "";
	position: absolute;
	top: -30%;
	right: -5%;
	width: 55vw;
	height: 120%;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse at top, rgba(255, 223, 0, 0.16), transparent 62%);
	transform: rotate(12deg);
}

.thalia-hero__inner {
	max-width: 760px;
}

.thalia-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.5em 1.1em;
	margin-bottom: 1.4rem;
	border: 1px solid rgba(255, 223, 0, 0.5);
	border-radius: 999px;
	background: rgba(255, 223, 0, 0.1);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--thalia-gold);
}

.thalia-hero__eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--thalia-gold);
	box-shadow: 0 0 0 0 rgba(255, 223, 0, 0.7);
	animation: thalia-pulse 2.4s infinite;
}

@keyframes thalia-pulse {
	70% {
		box-shadow: 0 0 0 9px rgba(255, 223, 0, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 223, 0, 0);
	}
}

.thalia-hero__title {
	margin-bottom: 0.4em;
	font-size: clamp(2.6rem, 7vw, 5rem);
	font-weight: 900;
	line-height: 1.02;
	color: var(--thalia-white);
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.thalia-hero__title em {
	display: block;
	font-style: italic;
	color: var(--thalia-gold);
}

.thalia-hero__text {
	max-width: 56ch;
	margin-bottom: 2.2rem;
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	line-height: 1.65;
	color: rgba(255, 250, 243, 0.88);
}

.thalia-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

/* Kleine feiten onder de hero-knoppen */
.thalia-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 4vw, 3rem);
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.thalia-hero__fact {
	min-width: 120px;
}

.thalia-hero__fact dt {
	font-family: var(--thalia-font-display);
	font-size: clamp(1.85rem, 3.5vw, 2.5rem);
	font-weight: 900;
	line-height: 1;
	color: var(--thalia-gold);
}

.thalia-hero__fact dd {
	margin: 0.4em 0 0;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 250, 243, 0.7);
}

/* ==========================================================================
   2. Aankondigingsbalk (lopende tekst)
   ========================================================================== */

.thalia-ticker {
	position: relative;
	overflow: hidden;
	padding-block: 0.85rem;
	background: var(--thalia-red);
	color: var(--thalia-white);
	border-block: 3px solid var(--thalia-gold);
}

.thalia-ticker__track {
	display: flex;
	width: max-content;
	animation: thalia-marquee 38s linear infinite;
}

/* Elke groep neemt zijn eigen tussenruimte mee, zodat -50% exact één
   groep opschuift en de balk naadloos doorloopt. */
.thalia-ticker__group {
	display: flex;
	gap: 3rem;
	padding-right: 3rem;
}

.thalia-ticker:hover .thalia-ticker__track,
.thalia-ticker:focus-within .thalia-ticker__track {
	animation-play-state: paused;
}

.thalia-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
}

.thalia-ticker__item::before {
	content: "★";
	color: var(--thalia-gold);
	font-size: 0.8em;
}

@keyframes thalia-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.thalia-ticker__track {
		animation: none;
		width: 100%;
	}

	/* Zonder beweging is één groep genoeg; die vult netjes de breedte. */
	.thalia-ticker__group {
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		gap: 0.6rem 1.75rem;
		padding-right: 0;
	}

	.thalia-ticker__group[aria-hidden="true"] {
		display: none;
	}
}

/* ==========================================================================
   3. Kaarten — algemeen
   ========================================================================== */

.thalia-grid {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.thalia-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.thalia-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.thalia-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.thalia-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--thalia-white);
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius-lg);
	overflow: hidden;
	box-shadow: var(--thalia-shadow);
	transition: transform var(--thalia-transition), box-shadow var(--thalia-transition),
		border-color var(--thalia-transition);
}

.thalia-card:hover,
.thalia-card:focus-within {
	transform: translateY(-6px);
	border-color: rgba(193, 39, 45, 0.35);
	box-shadow: var(--thalia-shadow-lg);
}

.thalia-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--thalia-paper-alt);
}

.thalia-card__media--wide {
	aspect-ratio: 16 / 10;
}

.thalia-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.thalia-card:hover .thalia-card__media img {
	transform: scale(1.06);
}

.thalia-card__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	padding: 0.4em 0.9em;
	border-radius: 999px;
	background: var(--thalia-gold);
	color: var(--thalia-ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.thalia-card__badge--red {
	background: var(--thalia-red);
	color: var(--thalia-white);
}

.thalia-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.thalia-card__meta {
	margin-bottom: 0.6em;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--thalia-red);
}

.thalia-card__title {
	margin-bottom: 0.45em;
	font-size: 1.4rem;
}

.thalia-card__title a {
	color: inherit;
}

.thalia-card__title a:hover,
.thalia-card__title a:focus {
	color: var(--thalia-red);
	text-decoration: none;
}

.thalia-card__text {
	flex: 1;
	margin-bottom: 1.25em;
	color: var(--thalia-text-muted);
	font-size: 0.98rem;
}

.thalia-card__text > :last-child {
	margin-bottom: 0;
}

.thalia-card__footer {
	margin-top: auto;
}

/* Hele kaart klikbaar maken zonder de semantiek te breken */
.thalia-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ==========================================================================
   4. Groepskaarten (Thalia / Teens / Kids / Kids Project)
   ========================================================================== */

.thalia-group-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 340px;
	padding: clamp(1.4rem, 3vw, 2rem);
	border-radius: var(--thalia-radius-lg);
	overflow: hidden;
	color: var(--thalia-white);
	background: var(--thalia-ink);
	box-shadow: var(--thalia-shadow);
	transition: transform var(--thalia-transition), box-shadow var(--thalia-transition);
}

.thalia-group-card:hover,
.thalia-group-card:focus-within {
	transform: translateY(-6px);
	box-shadow: var(--thalia-shadow-lg);
}

.thalia-group-card img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.thalia-group-card:hover img {
	transform: scale(1.07);
}

.thalia-group-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Onderkant vrijwel dicht: de tekst moet ook op een lichte foto leesbaar
	   blijven. Bovenaan blijft de foto goed zichtbaar. */
	background: linear-gradient(
		to top,
		rgba(26, 18, 20, 0.97) 0%,
		rgba(26, 18, 20, 0.9) 30%,
		rgba(26, 18, 20, 0.55) 62%,
		rgba(26, 18, 20, 0.12) 100%
	);
	transition: background var(--thalia-transition);
}

.thalia-group-card:hover::before {
	background: linear-gradient(
		to top,
		rgba(107, 20, 24, 0.96) 0%,
		rgba(107, 20, 24, 0.86) 30%,
		rgba(26, 18, 20, 0.55) 62%,
		rgba(26, 18, 20, 0.15) 100%
	);
}

.thalia-group-card__age {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 0.8em;
	padding: 0.35em 0.85em;
	border-radius: 999px;
	background: var(--thalia-gold);
	color: var(--thalia-ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.thalia-group-card__title {
	margin-bottom: 0.3em;
	font-size: 1.65rem;
	color: var(--thalia-white);
}

.thalia-group-card__text {
	margin-bottom: 1em;
	font-size: 0.95rem;
	color: rgba(255, 250, 243, 0.85);
}

.thalia-group-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--thalia-gold);
}

.thalia-group-card__more::after {
	content: "→";
	transition: transform var(--thalia-transition);
}

.thalia-group-card:hover .thalia-group-card__more::after {
	transform: translateX(5px);
}

.thalia-group-card__more::before {
	content: "";
	position: absolute;
	inset: 0;
}

/* ==========================================================================
   5. Speellijst — binnenkort te zien
   ========================================================================== */

.thalia-playbill {
	display: grid;
	gap: 0.85rem;
}

.thalia-playbill__item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(1rem, 3vw, 2rem);
	padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.25rem, 3vw, 2rem);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--thalia-radius);
	transition: background var(--thalia-transition), border-color var(--thalia-transition),
		transform var(--thalia-transition);
}

.thalia-playbill__item:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 223, 0, 0.45);
	transform: translateX(6px);
}

.thalia-playbill__group {
	display: inline-block;
	padding: 0.4em 0.9em;
	border-radius: 999px;
	background: var(--thalia-red);
	color: var(--thalia-white);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.thalia-playbill__title {
	margin: 0;
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	color: var(--thalia-white);
}

.thalia-playbill__dates {
	margin: 0.25em 0 0;
	font-size: 0.92rem;
	color: var(--thalia-gold);
	font-weight: 600;
}

.thalia-playbill__cta {
	white-space: nowrap;
}

@media (max-width: 720px) {
	.thalia-playbill__item {
		grid-template-columns: 1fr;
		gap: 0.85rem;
		align-items: start;
	}

	.thalia-playbill__group {
		justify-self: start;
	}

	.thalia-playbill__item:hover {
		transform: none;
	}
}

/* ==========================================================================
   6. Sponsorbalk
   ========================================================================== */

.thalia-sponsors__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.thalia-sponsors__list li {
	margin: 0;
}

.thalia-sponsors__list img {
	max-height: 74px;
	width: auto;
	max-width: 190px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.62;
	transition: filter var(--thalia-transition), opacity var(--thalia-transition),
		transform var(--thalia-transition);
}

.thalia-sponsors__list a:hover img,
.thalia-sponsors__list a:focus img,
.thalia-sponsors__list li:hover img {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.05);
}

/* ==========================================================================
   7. Oproep-blok (call to action)
   ========================================================================== */

.thalia-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2.5rem, 6vw, 4.5rem);
	border-radius: var(--thalia-radius-lg);
	background: linear-gradient(135deg, var(--thalia-red) 0%, var(--thalia-red-deep) 100%);
	color: var(--thalia-white);
	text-align: center;
}

.thalia-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 223, 0, 0.22), transparent 45%),
		radial-gradient(circle at 85% 85%, rgba(255, 223, 0, 0.14), transparent 45%);
}

.thalia-cta .thalia-eyebrow {
	justify-content: center;
	color: var(--thalia-gold);
}

.thalia-cta .thalia-eyebrow::after {
	content: "";
	width: 32px;
	height: 3px;
	border-radius: 2px;
	background: var(--thalia-gold);
}

.thalia-cta h2 {
	color: var(--thalia-white);
	margin-bottom: 0.5em;
}

/* Knop onder een sectie, gecentreerd. */
.thalia-section-action {
	margin-top: clamp(1.75rem, 4vw, 2.5rem);
	margin-bottom: 0;
	text-align: center;
}

.thalia-cta p {
	max-width: 58ch;
	margin-inline: auto;
	margin-bottom: 2rem;
	font-size: 1.08rem;
	color: rgba(255, 250, 243, 0.9);
}

.thalia-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}

/* ==========================================================================
   8. Paginakop (binnenpagina's)
   ========================================================================== */

.thalia-page-header {
	position: relative;
	isolation: isolate;
	padding-block: clamp(3rem, 7vw, 5rem);
	background: var(--thalia-ink);
	color: var(--thalia-white);
	overflow: hidden;
}

.thalia-page-header__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.thalia-page-header__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.4;
}

.thalia-page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(115deg, rgba(26, 18, 20, 0.95) 20%, rgba(107, 20, 24, 0.7) 100%),
		radial-gradient(circle at 85% 15%, rgba(255, 223, 0, 0.14), transparent 50%);
}

.thalia-page-header__title {
	margin-bottom: 0;
	color: var(--thalia-white);
}

.thalia-page-header__subtitle {
	max-width: 62ch;
	margin: 1rem 0 0;
	font-size: 1.1rem;
	color: rgba(255, 250, 243, 0.82);
}

/* Kruimelpad */
.thalia-breadcrumbs {
	margin-bottom: 1.1rem;
	font-size: 0.85rem;
	color: rgba(255, 250, 243, 0.65);
}

.thalia-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.thalia-breadcrumbs li {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.55em;
}

.thalia-breadcrumbs li:not(:last-child)::after {
	content: "/";
	color: rgba(255, 223, 0, 0.6);
}

.thalia-breadcrumbs a {
	color: rgba(255, 250, 243, 0.85);
}

.thalia-breadcrumbs a:hover,
.thalia-breadcrumbs a:focus {
	color: var(--thalia-gold);
}

.thalia-breadcrumbs [aria-current="page"] {
	color: var(--thalia-gold);
	font-weight: 600;
}

/* ==========================================================================
   9. Inhoud (the_content)
   ========================================================================== */

.thalia-content > *:first-child {
	margin-top: 0;
}

.thalia-content > *:last-child {
	margin-bottom: 0;
}

.thalia-content h2 {
	margin-top: 1.8em;
}

.thalia-content h3,
.thalia-content h4 {
	margin-top: 1.6em;
}

.thalia-content img {
	border-radius: var(--thalia-radius);
}

.thalia-content ul li::marker {
	color: var(--thalia-red);
}

.thalia-content ol li::marker {
	color: var(--thalia-red);
	font-weight: 700;
}

/* WordPress uitlijningen */
.alignleft {
	float: left;
	margin: 0.35em 1.75em 1.25em 0;
	max-width: 50%;
}

.alignright {
	float: right;
	margin: 0.35em 0 1.25em 1.75em;
	max-width: 50%;
}

.aligncenter {
	display: block;
	margin-inline: auto;
	margin-bottom: 1.5em;
}

.alignwide {
	width: min(100vw - 2 * var(--thalia-gutter), 1140px);
	max-width: none;
	margin-inline: calc(50% - min(50vw - var(--thalia-gutter), 570px));
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

@media (max-width: 640px) {
	.alignleft,
	.alignright {
		float: none;
		margin-inline: 0;
		max-width: 100%;
	}
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
	margin-top: 0.65em;
	font-size: 0.88rem;
	color: var(--thalia-text-muted);
	text-align: center;
	font-style: italic;
}

.sticky .thalia-card__badge,
.gallery-caption {
	display: block;
}

/* Audiospeler — gebruikt op de ledenpagina's met oefenbestanden */
.thalia-content audio,
.wp-block-audio audio {
	width: 100%;
	margin-bottom: 0.5em;
}

/* ==========================================================================
   10. Blog & archief
   ========================================================================== */

.thalia-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	font-size: 0.88rem;
	color: var(--thalia-text-muted);
}

.thalia-post-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.thalia-post-thumb {
	margin-bottom: 2rem;
	border-radius: var(--thalia-radius-lg);
	overflow: hidden;
	box-shadow: var(--thalia-shadow);
}

.thalia-pagination {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.thalia-pagination .nav-links,
.thalia-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.thalia-pagination a.page-numbers,
.thalia-pagination span.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 0.75em;
	border: 1.5px solid var(--thalia-border);
	border-radius: 10px;
	background: var(--thalia-white);
	color: var(--thalia-ink);
	font-weight: 600;
	transition: background var(--thalia-transition), color var(--thalia-transition),
		border-color var(--thalia-transition);
}

.thalia-pagination a.page-numbers:hover,
.thalia-pagination a.page-numbers:focus {
	background: var(--thalia-paper-alt);
	border-color: var(--thalia-red);
	color: var(--thalia-red);
	text-decoration: none;
}

.thalia-pagination .page-numbers.current {
	background: var(--thalia-red);
	border-color: var(--thalia-red);
	color: var(--thalia-white);
}

/* Vorige/volgende bericht */
.thalia-post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--thalia-border);
}

.thalia-post-nav a {
	display: block;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius);
	background: var(--thalia-white);
	transition: border-color var(--thalia-transition), transform var(--thalia-transition);
}

.thalia-post-nav a:hover,
.thalia-post-nav a:focus {
	border-color: var(--thalia-red);
	transform: translateY(-3px);
	text-decoration: none;
}

.thalia-post-nav__label {
	display: block;
	margin-bottom: 0.35em;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--thalia-red);
}

.thalia-post-nav__title {
	font-family: var(--thalia-font-display);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--thalia-ink);
}

.thalia-post-nav__next {
	text-align: right;
}

/* ==========================================================================
   11. Reacties
   ========================================================================== */

.thalia-comments {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--thalia-border);
}

.comment-list {
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 1rem 0 0;
	padding-left: clamp(1rem, 4vw, 2.5rem);
	border-left: 2px solid var(--thalia-border);
}

.comment-body {
	padding: 1.5rem;
	margin-bottom: 1rem;
	background: var(--thalia-white);
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
	font-weight: 700;
	color: var(--thalia-ink);
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	margin-bottom: 0.9rem;
	font-size: 0.85rem;
	color: var(--thalia-text-muted);
}

.comment-reply-link {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.88rem;
	font-weight: 700;
}

.comment-respond {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--thalia-paper-alt);
	border-radius: var(--thalia-radius-lg);
}

.comment-form p {
	margin-bottom: 1.1rem;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.comment-form .comment-form-cookies-consent input {
	width: auto;
	margin-top: 0.3em;
}

.comment-form .comment-form-cookies-consent label {
	font-weight: 400;
	margin: 0;
}

/* ==========================================================================
   12. Widgets & zijbalk
   ========================================================================== */

.thalia-layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

@media (max-width: 940px) {
	.thalia-layout-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}
}

.thalia-sidebar .widget {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: var(--thalia-white);
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius);
}

.thalia-sidebar .widget-title,
.thalia-sidebar .wp-block-heading {
	margin-bottom: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 3px solid var(--thalia-gold);
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-family: var(--thalia-font-body);
	font-weight: 800;
}

.thalia-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.thalia-sidebar li + li {
	margin-top: 0.5em;
	padding-top: 0.5em;
	border-top: 1px solid var(--thalia-border);
}

/* Zoekformulier */
.thalia-search-form {
	display: flex;
	gap: 0.5rem;
}

.thalia-search-form input[type="search"] {
	flex: 1;
}

.thalia-search-form button {
	padding-inline: 1.25em;
	flex-shrink: 0;
}

/* ==========================================================================
   13. 404 & lege staten
   ========================================================================== */

.thalia-empty {
	max-width: 620px;
	margin-inline: auto;
	padding-block: clamp(3rem, 8vw, 6rem);
	text-align: center;
}

.thalia-empty__code {
	font-family: var(--thalia-font-display);
	font-size: clamp(5rem, 18vw, 10rem);
	font-weight: 900;
	line-height: 0.9;
	color: var(--thalia-red);
	opacity: 0.18;
	margin-bottom: 0.1em;
}

.thalia-empty__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 2rem;
}

/* ==========================================================================
   14. Contact
   ========================================================================== */

.thalia-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.thalia-contact-card {
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--thalia-white);
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius-lg);
	box-shadow: var(--thalia-shadow);
}

.thalia-contact-card h3 {
	display: flex;
	align-items: center;
	gap: 0.6em;
	font-size: 1.2rem;
}

.thalia-mail-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.thalia-mail-list li {
	padding-block: 0.6em;
	border-bottom: 1px solid var(--thalia-border);
}

.thalia-mail-list li:last-child {
	border-bottom: 0;
}

.thalia-mail-list strong {
	display: block;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--thalia-text-muted);
	margin-bottom: 0.15em;
}

/* Contact Form 7 */
.wpcf7-form p {
	margin-bottom: 1.15rem;
}

.wpcf7-not-valid-tip {
	color: var(--thalia-red);
	font-size: 0.88rem;
	font-weight: 600;
	margin-top: 0.35em;
}

.wpcf7-response-output {
	margin: 1.5rem 0 0 !important;
	padding: 1em 1.25em !important;
	border-width: 2px !important;
	border-radius: var(--thalia-radius) !important;
	font-weight: 600;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #2e9e5b !important;
	background: rgba(46, 158, 91, 0.08);
	color: #1d7343;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--thalia-red) !important;
	background: rgba(193, 39, 45, 0.07);
	color: var(--thalia-red-dark);
}

.wpcf7-spinner {
	margin-left: 0.75em;
}

/* ==========================================================================
   15. WooCommerce — kaartverkoop
   ========================================================================== */

.woocommerce-page .thalia-site-main,
.woocommerce .thalia-site-main {
	padding-block: var(--thalia-section-y);
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	padding: 1.1em 1.4em 1.1em 3.2em;
	border-top: 0;
	border-left: 4px solid var(--thalia-red);
	border-radius: var(--thalia-radius);
	background: var(--thalia-white);
	box-shadow: var(--thalia-shadow);
	font-size: 0.98rem;
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
	color: var(--thalia-red);
	top: 1.15em;
	left: 1.25em;
}

.woocommerce .woocommerce-message {
	border-left-color: #2e9e5b;
}

.woocommerce .woocommerce-message::before {
	color: #2e9e5b;
}

/* Productoverzicht */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

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

.woocommerce ul.products li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 0 1.5rem;
	display: flex;
	flex-direction: column;
	background: var(--thalia-white);
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius-lg);
	overflow: hidden;
	box-shadow: var(--thalia-shadow);
	text-align: center;
	transition: transform var(--thalia-transition), box-shadow var(--thalia-transition),
		border-color var(--thalia-transition);
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
	border-color: rgba(193, 39, 45, 0.35);
	box-shadow: var(--thalia-shadow-lg);
}

.woocommerce ul.products li.product a img {
	margin-bottom: 1.1rem;
	border-radius: 0;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 1.25rem 0.5rem !important;
	font-family: var(--thalia-font-display);
	font-size: 1.25rem !important;
	font-weight: 700;
	color: var(--thalia-ink);
}

.woocommerce ul.products li.product .price {
	display: block;
	margin-bottom: 1rem;
	padding-inline: 1.25rem;
	color: var(--thalia-red) !important;
	font-family: var(--thalia-font-body);
	font-size: 1.35rem !important;
	font-weight: 800;
}

.woocommerce ul.products li.product .price del {
	color: var(--thalia-text-muted) !important;
	font-size: 0.7em;
	opacity: 0.7;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

.woocommerce ul.products li.product .button {
	margin: auto 1.25rem 0;
}

.woocommerce span.onsale {
	top: 1rem;
	right: 1rem;
	left: auto;
	min-height: 0;
	min-width: 0;
	padding: 0.45em 1em;
	border-radius: 999px;
	background: var(--thalia-gold);
	color: var(--thalia-ink);
	font-weight: 800;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

/* Productdetail */
.woocommerce div.product .product_title {
	margin-bottom: 0.4em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--thalia-red);
	font-size: 1.75rem;
	font-weight: 800;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	border-bottom-color: var(--thalia-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 0.35rem 0 0;
	padding: 0;
	background: var(--thalia-paper-alt);
	border: 1px solid var(--thalia-border);
	border-radius: 10px 10px 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--thalia-white);
	border-bottom-color: var(--thalia-white);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 0.75em 1.4em;
	font-weight: 700;
	color: var(--thalia-ink);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--thalia-red);
}

/* Hoeveelheid */
.woocommerce .quantity .qty {
	width: 5.5em;
	padding: 0.6em;
	text-align: center;
	border-radius: 10px;
	border: 1.5px solid var(--thalia-border);
}

/* Winkelwagen & afrekenen */
.woocommerce table.shop_table {
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce table.shop_table th {
	background: var(--thalia-paper-alt);
	font-family: var(--thalia-font-body);
	font-weight: 800;
	color: var(--thalia-ink);
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	padding: 1em;
}

.woocommerce-cart table.cart img {
	width: 72px;
	border-radius: 8px;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--thalia-white);
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius-lg);
	box-shadow: var(--thalia-shadow);
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3 {
	font-size: 1.3rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--thalia-gold);
	margin-bottom: 1.25rem;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	padding: 0.85em 1.9em;
	background: var(--thalia-red);
	border: 2px solid var(--thalia-red);
	border-radius: 999px;
	color: var(--thalia-white);
	font-family: var(--thalia-font-body);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	transition: background var(--thalia-transition), border-color var(--thalia-transition),
		transform var(--thalia-transition), box-shadow var(--thalia-transition);
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--thalia-red-dark);
	border-color: var(--thalia-red-dark);
	color: var(--thalia-white);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(193, 39, 45, 0.3);
}

.woocommerce a.button.wc-forward,
.woocommerce .checkout-button {
	background: var(--thalia-gold);
	border-color: var(--thalia-gold);
	color: var(--thalia-ink);
}

.woocommerce a.button.wc-forward:hover,
.woocommerce .checkout-button:hover {
	background: var(--thalia-gold-deep);
	border-color: var(--thalia-gold-deep);
	color: var(--thalia-ink);
}

.woocommerce .woocommerce-breadcrumb {
	display: none;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin-bottom: 1.75rem;
	color: var(--thalia-text-muted);
}

.woocommerce .woocommerce-ordering select {
	width: auto;
	min-width: 220px;
}

/* Mijn account */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	background: var(--thalia-white);
	border: 1px solid var(--thalia-border);
	border-radius: var(--thalia-radius);
	overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	border-bottom: 1px solid var(--thalia-border);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.85em 1.2em;
	font-weight: 600;
	color: var(--thalia-ink);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--thalia-red);
	color: var(--thalia-white);
	text-decoration: none;
}

/* ==========================================================================
   16. Elementor — laat bestaande pagina's ongemoeid
   ========================================================================== */

.elementor-page .thalia-content > .elementor {
	max-width: none;
}

/* Elementor-secties mogen zelf hun breedte bepalen */
.thalia-content .elementor-section.elementor-section-full_width {
	margin-inline: calc(50% - 50vw);
	width: 100vw;
}

/* ==========================================================================
   17. Terug-naar-boven
   ========================================================================== */

.thalia-to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 800;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--thalia-red);
	color: var(--thalia-white);
	box-shadow: var(--thalia-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity var(--thalia-transition), visibility var(--thalia-transition),
		transform var(--thalia-transition), background var(--thalia-transition);
}

.thalia-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.thalia-to-top:hover,
.thalia-to-top:focus {
	background: var(--thalia-red-dark);
	transform: translateY(-3px);
	box-shadow: var(--thalia-shadow-lg);
}

.thalia-to-top svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* ==========================================================================
   18. Onthullen bij scrollen
   ========================================================================== */

/* Alleen verbergen wanneer JavaScript het weer kan tonen. */
.thalia-js .thalia-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
		transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.thalia-js .thalia-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.thalia-js .thalia-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   19. Printen
   ========================================================================== */

@media print {
	.thalia-header,
	.thalia-footer,
	.thalia-to-top,
	.thalia-ticker,
	.thalia-nav-overlay {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 12pt;
	}

	a {
		color: #000;
		text-decoration: underline;
	}
}
