/* 123euro – themastijlen bovenop theme.json */

:root {
	--e123-ink: var(--wp--preset--color--ink, #1D2142);
	--e123-muted: var(--wp--preset--color--muted, #585E77);
	--e123-line: var(--wp--preset--color--line, #D9DEE8);
	--e123-paper: var(--wp--preset--color--paper, #F1F3F8);
	--e123-white: #fff;
	--e123-sticker: var(--wp--preset--color--sticker, #FFCD1F);
	--e123-signal: var(--wp--preset--color--signal, #D7311F);
	--e123-display: var(--wp--preset--font-family--display, "Bricolage Grotesque", sans-serif);
	--e123-radius: 14px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

:where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--e123-ink);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Header ---------- */

.e123-header {
	background: var(--e123-white);
	border-bottom: 1px solid var(--e123-line);
	padding-block: 0.85rem;
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .e123-header { top: var(--wp-admin--admin-bar--height, 32px); }

.e123-header__bar { gap: 1rem 2rem; }

.e123-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	text-decoration: none;
	color: var(--e123-ink);
	font-family: var(--e123-display);
	font-size: 1.6rem;
	line-height: 1;
}
.e123-logo__mark {
	display: inline-block;
	background: var(--e123-sticker);
	color: var(--e123-ink);
	font-weight: 800;
	font-stretch: 75%;
	padding: 0.28em 0.42em 0.22em;
	border-radius: 999px;
	transform: rotate(-5deg);
	letter-spacing: -0.02em;
}
.e123-logo__word { font-weight: 500; letter-spacing: -0.02em; }
.e123-logo--light { color: var(--e123-white); }

.e123-search {
	flex: 1 1 280px;
	max-width: 520px;
	display: flex;
	background: var(--e123-paper);
	border: 1.5px solid var(--e123-line);
	border-radius: 999px;
	overflow: hidden;
}
.e123-search:focus-within { border-color: var(--e123-ink); }
.e123-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.65rem 1.1rem;
	font: inherit;
	color: var(--e123-ink);
}
.e123-search input:focus { outline: none; }
.e123-search button {
	border: 0;
	background: var(--e123-ink);
	color: var(--e123-white);
	font: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 0 1.2rem;
	margin: 4px;
	border-radius: 999px;
	cursor: pointer;
}
.e123-search button:hover { background: var(--e123-sticker); color: var(--e123-ink); }

.e123-nav { font-weight: 700; font-size: 0.95rem; gap: 1.4rem; }
.e123-nav a { text-decoration: none; }
.e123-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 781px) {
	.e123-header { position: static; }
	.e123-search { order: 3; flex-basis: 100%; max-width: none; }
}

/* ---------- Secties ---------- */

.e123-main { padding-block-end: var(--wp--preset--spacing--60); }
.e123-section { padding-block-start: var(--wp--preset--spacing--60); }
.e123-section__head { margin-block-end: 1.25rem; gap: 0.25rem 1.5rem; }
.e123-section__head h2 { margin: 0; }
.e123-section__head p { margin: 0; font-weight: 700; }

/* ---------- Hero met prijsstickers ---------- */

.e123-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem); }
.e123-hero__title {
	font-size: clamp(2.75rem, 7vw, 5.25rem);
	font-weight: 800;
	font-stretch: 82%;
	line-height: 0.95;
	letter-spacing: -0.03em;
	max-width: 9ch;
	margin: 0;
}
.e123-hero__intro {
	font-size: 1.2rem;
	max-width: 34ch;
	color: var(--e123-muted);
	margin-block-start: 1.25rem;
}

.e123-stickers {
	max-width: 430px;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.25rem;
	padding: 1rem 0;
}

.e123-sticker {
	--s: 120px;
	--r: -4deg;
	position: relative;
	display: grid;
	place-content: center;
	justify-items: center;
	width: var(--s);
	height: var(--s);
	margin: -0.35rem;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 26%, rgba(255,255,255,.55), rgba(255,255,255,0) 42%),
		var(--e123-sticker);
	color: var(--e123-ink);
	text-decoration: none;
	transform: rotate(var(--r));
	box-shadow: 0 1px 0 rgba(29,33,66,.25), 0 10px 22px -12px rgba(29,33,66,.55);
	transition: transform .18s ease;
}
.e123-sticker::before {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	border: 1.5px dashed rgba(29,33,66,.35);
	pointer-events: none;
}
.e123-sticker__pre {
	font-weight: 700;
	font-size: calc(var(--s) * 0.13);
	line-height: 1;
	margin-bottom: 0.15em;
}
.e123-sticker__price {
	font-family: var(--e123-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: calc(var(--s) * 0.38);
	line-height: 0.9;
	letter-spacing: -0.04em;
}
.e123-sticker:hover { transform: rotate(0deg) scale(1.07); z-index: 2; }
.e123-sticker:focus-visible { outline-offset: 4px; border-radius: 50%; }

/* Grootte loopt op met het budget */
.e123-sticker--3  { --s: 92px;  --r: -10deg; }
.e123-sticker--5  { --s: 108px; --r: 7deg; }
.e123-sticker--10 { --s: 150px; --r: -4deg; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.4), rgba(255,255,255,0) 42%), var(--e123-ink); color: var(--e123-sticker); }
.e123-sticker--10::before { border-color: rgba(255,205,31,.45); }
.e123-sticker--15 { --s: 124px; --r: 9deg; }
.e123-sticker--25 { --s: 140px; --r: -7deg; }

@media (max-width: 600px) {
	.e123-sticker--3  { --s: 76px; }
	.e123-sticker--5  { --s: 86px; }
	.e123-sticker--10 { --s: 112px; }
	.e123-sticker--15 { --s: 94px; }
	.e123-sticker--25 { --s: 104px; }
}

.e123-stickers--row { justify-content: flex-start; padding-block: 2rem; }

/* Eén moment beweging: de stickers worden bij het laden 'opgeplakt' */
@media (prefers-reduced-motion: no-preference) {
	.e123-hero .e123-sticker {
		animation: e123-slap .42s cubic-bezier(.2, 1.4, .4, 1) both;
	}
	.e123-hero .e123-sticker--3  { animation-delay: .05s; }
	.e123-hero .e123-sticker--5  { animation-delay: .15s; }
	.e123-hero .e123-sticker--10 { animation-delay: .25s; }
	.e123-hero .e123-sticker--15 { animation-delay: .35s; }
	.e123-hero .e123-sticker--25 { animation-delay: .45s; }
}
@keyframes e123-slap {
	from { opacity: 0; transform: rotate(calc(var(--r) * 3)) scale(1.35); }
	to   { opacity: 1; transform: rotate(var(--r)) scale(1); }
}

/* ---------- Productkaarten (HTML komt uit de plugin) ---------- */

.e123-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 520px) {
	.e123-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
}

.e123-card { position: relative; display: flex; flex-direction: column; }
.e123-card__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	text-decoration: none;
	color: inherit;
}
.e123-card__media {
	aspect-ratio: 1;
	background: var(--e123-white);
	border-radius: var(--e123-radius);
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 12%;
	border: 1px solid var(--e123-line);
}
.e123-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.e123-card__link:hover .e123-card__media { border-color: var(--e123-ink); }

.e123-pricetag {
	position: absolute;
	top: -10px;
	left: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: var(--e123-sticker);
	color: var(--e123-ink);
	font-family: var(--e123-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 1.45rem;
	line-height: 1;
	letter-spacing: -0.03em;
	transform: rotate(-8deg);
	box-shadow: 0 1px 0 rgba(29,33,66,.25), 0 6px 14px -8px rgba(29,33,66,.6);
	white-space: nowrap;
}
.e123-pricetag sup { font-size: 0.6em; align-self: flex-start; margin-top: 1.05em; margin-left: 1px; line-height: 1; letter-spacing: 0; }

.e123-card__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0.8rem 0 0.3rem;
	color: var(--e123-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	letter-spacing: 0;
}
.e123-card__meta {
	display: block;
	font-size: 0.85rem;
	color: var(--e123-muted);
	margin: 0;
	line-height: 1.4;
}
.e123-card__was { color: var(--e123-signal); margin-right: 0.35rem; }
.e123-card__shop {
	margin-top: auto;
	padding-top: 0.6rem;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.e123-card__link:hover .e123-card__shop { text-decoration: none; }

.e123-empty {
	padding: 2rem;
	border: 1.5px dashed var(--e123-line);
	border-radius: var(--e123-radius);
	color: var(--e123-muted);
}

/* Filterbalk op productpagina's */
.e123-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 0 1.5rem;
	padding: 0;
	list-style: none;
}
.e123-filters a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1.5px solid var(--e123-line);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	background: var(--e123-white);
}
.e123-filters a[aria-current="page"] { background: var(--e123-ink); color: var(--e123-white); border-color: var(--e123-ink); }

.e123-pager { display: flex; justify-content: space-between; margin-top: 2rem; font-weight: 700; }

/* ---------- Gelegenheden ---------- */

.e123-occasions { padding-block-start: var(--wp--preset--spacing--60); }
.e123-occasions__list {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	border-top: 1.5px solid var(--e123-ink);
}
.e123-occasions__list li { border-bottom: 1px solid var(--e123-line); }
.e123-occasions__list a {
	display: flex;
	flex-direction: column;
	padding: 1rem 0.25rem 1.1rem;
	text-decoration: none;
}
.e123-occasions__name {
	font-family: var(--e123-display);
	font-weight: 750;
	font-size: 1.6rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.e123-occasions__hint { color: var(--e123-muted); font-size: 0.95rem; }
.e123-occasions__list a:hover .e123-occasions__name { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--e123-sticker); text-underline-offset: 5px; }

/* ---------- Blog ---------- */

.e123-post-thumb img { border-radius: var(--e123-radius); }
.e123-blog-title { margin-bottom: 2rem; }
.e123-meta { gap: 0.25rem 1rem; color: var(--e123-muted); font-size: 0.9rem; }
.e123-disclosure {
	border-left: 4px solid var(--e123-sticker);
	padding: 0.5rem 0 0.5rem 1rem;
	color: var(--e123-muted);
	margin-top: 3rem !important;
}
.wp-block-post-content > .e123-grid { margin-block: 2rem; }

/* ---------- Footer ---------- */

.e123-footer { padding-block: var(--wp--preset--spacing--60) 2rem; }
.e123-footer a { color: var(--e123-white); }
.e123-footer__note { max-width: 42ch; opacity: .85; margin-top: 1.25rem; }
.e123-footer__title { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--e123-sticker); }
.e123-footer__links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.e123-footer__links a { text-decoration: none; }
.e123-footer__links a:hover { text-decoration: underline; }
.e123-footer__small { font-size: 0.85rem; opacity: .65; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); }

/* Atkinson heeft een doorgestreepte nul; bedragen in navigatie en links in de displayletter */
.e123-nav, .e123-filters a, .e123-section__head p, .e123-footer__links, .e123-card__meta, .e123-search input {
	font-family: var(--e123-display);
	font-stretch: 92%;
}
.e123-nav, .e123-filters a, .e123-section__head p { font-weight: 650; font-size: 1.02rem; }

/* ---------- Winkels ---------- */

.e123-card__partner {
	align-self: flex-start;
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--e123-muted);
	text-underline-offset: 3px;
}
.e123-card__partner:hover { color: var(--e123-ink); }

.e123-partner__head { gap: 1.5rem 2rem; margin-bottom: var(--wp--preset--spacing--50); }
.e123-partner__logo {
	flex: 0 0 auto;
	background: var(--e123-white);
	border: 1px solid var(--e123-line);
	border-radius: 50%;
	padding: 18px;
	box-sizing: content-box;
}
.e123-partner__logo img { border-radius: 0; }
.e123-partner__intro { flex: 1 1 320px; }
.e123-partner__intro h1 { margin: 0; }
.e123-partner__excerpt { font-size: 1.15rem; color: var(--e123-muted); max-width: 52ch; }
.e123-partner-link { margin: 1rem 0 0; }
.e123-partner__text { margin-top: var(--wp--preset--spacing--60); }
.e123-lead { font-size: 1.15rem; color: var(--e123-muted); max-width: 60ch; }

.e123-partners {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.25rem;
}
.e123-partners a {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	height: 100%;
	padding: 1.25rem;
	background: var(--e123-white);
	border: 1px solid var(--e123-line);
	border-radius: var(--e123-radius);
	text-decoration: none;
}
.e123-partners a:hover { border-color: var(--e123-ink); }
.e123-partners__logo { height: 56px; display: flex; align-items: center; margin-bottom: 0.5rem; }
.e123-partners__logo img { max-height: 56px; width: auto; }
.e123-partners__initial {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--e123-sticker);
	font-family: var(--e123-display);
	font-weight: 800;
	font-size: 1.6rem;
}
.e123-partners__name { font-family: var(--e123-display); font-weight: 750; font-size: 1.35rem; line-height: 1.15; }
.e123-partners__desc { color: var(--e123-muted); font-size: 0.92rem; }

/* ---------- Abonnementen (gratis verzending) ---------- */

.e123-memberships {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
	margin: 0 0 1.25rem;
	font-size: 0.92rem;
	color: var(--e123-muted);
}
.e123-memberships label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.3rem 0.8rem 0.3rem 0.55rem;
	background: var(--e123-white);
	border: 1.5px solid var(--e123-line);
	border-radius: 999px;
	color: var(--e123-ink);
	font-weight: 700;
	cursor: pointer;
}
.e123-memberships label:has(input:checked) { border-color: var(--e123-ink); background: var(--e123-sticker); }
.e123-memberships input { width: 1rem; height: 1rem; accent-color: var(--e123-ink); margin: 0; }
