/*
Theme Name: ZoekGoedkoper
Theme URI: https://zoekgoedkoper.nl
Author: ZoekGoedkoper
Description: Affiliate webshop met ZoekGoedkoper branding (paars / oranje / geel).
Version: 6.1.9
Requires at least: 6.8
Tested up to: 6.8
Text Domain: zoekgoedkoper
*/

:root {
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	/* Merkpalet */
	--purple: #5B2D90;
	--orange: #FF6B00;
	--yellow: #FFD200;
	--white: #FFFFFF;
	--ink: #1a1228;
	--grijs: #6b6478;
	--licht: #f7f4fb;
	--muted: var(--grijs);
	--muted-2: #8b8499;
	--line: #e8e2f0;
	--bg: var(--licht);
	--surface: var(--white);
	--brand: var(--purple);
	--brand-2: #4a2475;
	--accent: var(--orange);
	--accent-soft: #fff1e6;
	--price: var(--orange);
	--deal: var(--orange);
	--mint: var(--orange); /* legacy alias */
	--container: 1280px;
	--pad: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
	font-size: 16px;
	line-height: 1.45;
	font-weight: 400;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--brand); line-height: 1.15; }

.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;
}

.ac-wrap {
	width: min(100% - (var(--pad) * 2), var(--container));
	margin-inline: auto;
}

/* —— Top brand bar —— */
.ac-topbar {
	background: var(--brand);
	color: #fff;
	min-height: 32px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 500;
}
.ac-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.ac-topbar__item svg { flex-shrink: 0; }
.ac-topbar__item--hide-md { display: none; }
.ac-topbar__item--hide-lg { display: none; }
@media (min-width: 768px) {
	.ac-topbar__item--hide-md { display: inline-flex; }
}
@media (min-width: 1024px) {
	.ac-topbar__item--hide-lg { display: inline-flex; }
}

/* —— Header —— */
.ac-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.ac-header__row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0 8px;
}
.ac-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}
.ac-logo__mark {
	height: 48px;
	width: auto;
	display: block;
	overflow: visible;
}
.ac-logo__mark text {
	font-family: var(--font);
}
@media (min-width: 768px) {
	.ac-logo__mark { height: 58px; }
}
.ac-search {
	display: flex;
	align-items: center;
	height: 48px;
	border: 2px solid var(--orange);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	max-width: 720px;
	width: 100%;
	margin-inline: auto;
	padding: 3px 3px 3px 4px;
}
.ac-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18); }
.ac-search input {
	flex: 1; border: 0; outline: 0; background: transparent;
	padding: 10px 8px 10px 16px; min-width: 0;
	color: var(--ink);
	font-weight: 500;
}
.ac-search input::placeholder { color: var(--muted-2); }
.ac-search button {
	border: 0;
	border-radius: 999px;
	background: var(--orange);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0 18px;
	height: 40px;
	cursor: pointer;
	white-space: nowrap;
}
.ac-search button:hover { filter: brightness(1.05); }
.ac-header__icons {
	display: flex; align-items: center; gap: 4px;
}
.ac-icon-btn {
	width: 40px; height: 40px; border: 0; background: transparent;
	color: var(--brand); border-radius: 999px; cursor: pointer;
	display: grid; place-items: center;
}
.ac-icon-btn:hover { background: var(--accent-soft); }

.ac-nav {
	display: flex; gap: 28px; align-items: center;
	padding: 0 0 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.ac-nav::-webkit-scrollbar { display: none; }
.ac-nav a {
	color: var(--brand);
	font-weight: 500;
	font-size: 16px;
	padding: 12px 0 14px;
	white-space: nowrap;
	box-shadow: inset 0 -2px 0 transparent;
}
.ac-nav a:hover,
.ac-nav a.is-current { box-shadow: inset 0 -2px 0 var(--orange); }

/* —— Breadcrumbs —— */
.zg-bc {
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding: 10px 0;
}
.zg-bc__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted);
}
.zg-bc__item {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}
.zg-bc__item:not(:last-child)::after {
	content: "›";
	margin: 0 8px;
	color: var(--muted-2);
	font-weight: 700;
}
.zg-bc__item a {
	color: var(--purple);
}
.zg-bc__item a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.zg-bc__item.is-current span {
	color: var(--ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(52vw, 420px);
}

/* —— Deal banner (iBOOD-achtig) —— */
.zg-deal {
	background: #efe8f8;
	padding: 20px 0 8px;
}
.zg-deal__shell {
	position: relative;
	display: block;
}
.zg-deal__viewport {
	position: relative;
	background: #f7f2fc;
	border-radius: 18px;
	min-height: 340px;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(91, 45, 144, 0.06);
}
.zg-deal__slide {
	display: grid;
	grid-template-columns: minmax(240px, 1.05fr) minmax(280px, 1fr);
	gap: clamp(16px, 3vw, 40px);
	align-items: center;
	padding: clamp(20px, 3vw, 36px);
}
.zg-deal__slide.is-swap {
	animation: zgDealIn 0.35s ease;
}
@keyframes zgDealIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
.zg-deal__media {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 260px;
	background: #fff;
	border-radius: 14px;
	padding: 20px;
}
.zg-deal__media img {
	max-height: 280px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	margin-inline: auto;
}
.zg-deal__ph {
	width: 140px;
	height: 140px;
	border-radius: 24px;
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, var(--purple), #7a45b8);
	color: #fff;
	font-weight: 800;
	font-size: 2rem;
	letter-spacing: -0.04em;
}
.zg-deal__ph[hidden] { display: none !important; }
.zg-deal__disc {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--orange);
	color: #fff;
	font-weight: 800;
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	line-height: 1;
	padding: 12px 16px;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
	letter-spacing: -0.02em;
}
.zg-deal__body { min-width: 0; }
.zg-deal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: baseline;
	margin-bottom: 10px;
	font-weight: 700;
	font-size: 0.95rem;
}
.zg-deal__timer { color: var(--orange); }
.zg-deal__title {
	margin: 0 0 8px;
	font-size: clamp(1.35rem, 2.8vw, 1.85rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--purple);
}
.zg-deal__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.zg-deal__lead {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 0.95rem;
	max-width: 42ch;
}
.zg-deal__features {
	list-style: none;
	margin: 0 0 16px;
	padding: 12px 14px;
	background: #fff;
	border-radius: 12px;
	display: grid;
	gap: 6px;
}
.zg-deal__features li {
	position: relative;
	padding-left: 1.1em;
	font-size: 0.92rem;
	color: var(--ink);
}
.zg-deal__features li::before {
	content: "›";
	position: absolute;
	left: 0;
	color: var(--orange);
	font-weight: 800;
}
.zg-deal__priceblock { margin: 0 0 16px; }
.zg-deal__msrp {
	margin: 0 0 2px;
	color: var(--muted);
	font-size: 0.85rem;
}
.zg-deal__price {
	margin: 0;
	display: inline-block;
	font-weight: 800;
	font-size: clamp(2.2rem, 4vw, 3rem);
	line-height: 1;
	color: var(--ink);
	letter-spacing: -0.03em;
	border-bottom: 4px solid var(--orange);
	padding-bottom: 2px;
}
.zg-deal__price-frac {
	font-size: 0.55em;
	vertical-align: super;
}
.zg-deal__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border-radius: 10px;
	background: var(--orange);
	color: #fff !important;
	font-weight: 800;
	font-size: 1.05rem;
	box-shadow: 0 8px 20px rgba(255, 107, 0, 0.28);
}
.zg-deal__cta:hover { filter: brightness(1.05); }
@media (max-width: 860px) {
	.zg-deal__slide {
		grid-template-columns: 1fr;
		text-align: left;
	}
	.zg-deal__media { min-height: 200px; }
	.zg-deal__media img { max-height: 200px; }
}

/* —— Sections —— */
.ac-section { padding: 28px 0 8px; }
.ac-section__head {
	display: flex; justify-content: space-between; align-items: end;
	gap: 16px; margin-bottom: 16px;
}
.ac-section__head h2 {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
}
.ac-section__head p {
	margin: 4px 0 0; color: var(--muted); font-weight: 400; font-size: .95rem;
}
.ac-section__head a {
	color: var(--brand); font-weight: 700; white-space: nowrap; font-size: .95rem;
}
.ac-section__head a:hover { color: var(--accent); }

/* —— Category circles —— */
.ac-cats {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(88px, 1fr);
	gap: 12px;
	overflow-x: auto;
	padding: 4px 0 12px;
	scrollbar-width: thin;
}
.ac-cat {
	display: grid;
	justify-items: center;
	gap: 10px;
	text-align: center;
	min-width: 88px;
}
.ac-cat__icon {
	width: 88px; height: 88px;
	border-radius: 50%;
	background: var(--accent-soft);
	display: grid; place-items: center;
	overflow: hidden;
	font-weight: 700; font-size: 1.35rem; color: var(--brand);
	transition: transform .25s ease;
}
.ac-cat:nth-child(3n) .ac-cat__icon { background: #fff1e6; color: var(--orange); }
.ac-cat:nth-child(4n) .ac-cat__icon { background: #f3eafc; color: var(--purple); }
.ac-cat:hover .ac-cat__icon { transform: scale(1.1); }
.ac-cat strong {
	font-size: .85rem; font-weight: 500; color: var(--brand);
	line-height: 1.25;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-cat__count {
	font-size: 0.75rem;
	color: var(--muted);
	font-weight: 500;
}
.ac-cats--page {
	display: grid;
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	grid-auto-columns: unset;
	overflow: visible;
	gap: 20px 16px;
	padding: 8px 0 24px;
}
.zg-cats-page .ac-section__head h1 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--purple);
}

/* —— Promo strip —— */
.ac-promo {
	margin: 20px 0;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(105deg, #f3eafc 0%, #fff 55%, #fff1e6 100%);
	padding: clamp(20px, 4vw, 36px);
	border: 1px solid #e8d9f5;
}
.ac-promo h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.ac-promo p { margin: 0; color: var(--muted); font-weight: 500; max-width: 48ch; }

/* —— Product grid —— */
.ac-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
@media (min-width: 640px) {
	.ac-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
	.ac-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
	.ac-grid { grid-template-columns: repeat(5, 1fr); }
}

.ac-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px 14px 16px;
	border-radius: 8px;
	background: #fff;
	transition: background .15s ease;
}
.ac-card:hover { background: var(--licht); color: inherit; }
.ac-card__media {
	position: relative;
	aspect-ratio: 1;
	max-height: 230px;
	display: grid; place-items: center;
	margin: 0 auto;
	width: 100%;
}
.ac-card__media img {
	max-height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	padding: 8px 0;
	transition: transform .25s ease;
}
.ac-card:hover .ac-card__media img { transform: scale(1.05); }

/* Weekactie ribbon */
.ac-tag {
	position: absolute;
	top: 0; left: 0;
	z-index: 2;
	display: inline-flex;
	align-items: stretch;
	max-width: calc(100% - 24px);
	height: 22px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}
.ac-tag__label {
	background: var(--deal);
	padding: 0 6px 0 8px;
	display: inline-flex; align-items: center;
	white-space: nowrap;
}
.ac-tag__arrow {
	width: 10px;
	background: var(--deal);
	clip-path: polygon(0 0, 100% 0, 1px 100%, 0 100%);
}

.ac-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	margin-top: 8px;
	margin-bottom: 8px;
}
.ac-card__title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--brand);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-card__desc {
	font-size: 14px;
	line-height: 1.25;
	color: var(--muted-2);
	font-weight: 400;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	flex: 1;
}

/* Grote prijs: euros + centen */
.ac-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: auto;
}
.ac-price__unit {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	line-height: 12px;
	color: var(--muted-2);
}
.ac-price__row {
	display: flex;
	align-items: flex-start;
	color: var(--price);
	line-height: 1;
}
.ac-price__whole {
	font-weight: 700;
	font-size: 40px;
	letter-spacing: 1px;
	line-height: 28px;
}
.ac-price__frac {
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 1px;
	line-height: 14px;
	margin-top: 0;
}
@media (min-width: 768px) {
	.ac-price__whole { font-size: 48px; line-height: 33px; }
	.ac-price__frac { font-size: 28px; line-height: 19px; }
}
.ac-price__old {
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted-2);
	text-decoration: line-through;
	font-weight: 500;
}

/* —— Detail —— */
.ac-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	padding: 28px 0 48px;
}
.ac-detail__media {
	background: #f5f5f4;
	border-radius: 12px;
	min-height: 360px;
	display: grid; place-items: center;
	padding: 24px;
	position: relative;
}
.ac-detail__media img { max-height: 340px; object-fit: contain; }
.ac-detail__disc {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	background: var(--orange);
	color: #fff;
	font-weight: 800;
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	line-height: 1;
	padding: 12px 16px;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
	letter-spacing: -0.02em;
}
.ac-detail__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	justify-content: center;
}
.ac-detail__thumb {
	border: 2px solid transparent;
	background: #fff;
	border-radius: 10px;
	padding: 4px;
	cursor: pointer;
	width: 64px;
	height: 64px;
}
.ac-detail__thumb.is-active,
.ac-detail__thumb:hover { border-color: var(--orange); }
.ac-detail__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ac-detail__rating {
	margin: 0 0 8px;
	color: var(--orange);
	font-weight: 700;
}
.ac-detail__meta {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	color: var(--muted);
	font-size: 0.9rem;
	display: grid;
	gap: 4px;
}
.ac-detail__meta span {
	font-weight: 700;
	color: var(--ink);
	margin-right: 6px;
}
.ac-detail h1 {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	margin: 0 0 12px;
}
.ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--orange);
	color: #fff;
	font-weight: 700;
	border-radius: 999px;
	padding: 14px 24px;
	margin-top: 18px;
	border: 0;
	cursor: pointer;
}
.ac-btn:hover { filter: brightness(1.05); color: #fff; }
.ac-btn--accent { background: var(--orange); }
.ac-btn--accent:hover { filter: brightness(1.05); color: #fff; }

.ac-empty {
	padding: 40px;
	text-align: center;
	color: var(--muted);
	background: var(--accent-soft);
	border-radius: 12px;
	font-weight: 500;
}

.ac-page { padding: 32px 0 48px; }
.ac-page h1 { margin-bottom: 16px; }

/* —— Footer —— */
.ac-foot {
	background: var(--brand);
	color: rgba(255,255,255,.85);
	padding: 40px 0 48px;
	margin-top: 40px;
	font-size: .92rem;
	font-weight: 500;
}
.ac-foot strong,
.ac-foot__logo { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.ac-foot a { color: var(--yellow); font-weight: 700; }
.ac-foot__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 28px;
}
.ac-foot__title {
	color: #fff;
	font-weight: 700;
	margin: 0 0 10px;
}
.ac-foot ul { list-style: none; margin: 0; padding: 0; }
.ac-foot li { margin: 0 0 8px; }

@media (max-width: 960px) {
	.ac-header__row { grid-template-columns: auto 1fr; }
	.ac-header__icons { display: none; }
	.ac-detail { grid-template-columns: 1fr; }
	.ac-foot__grid { grid-template-columns: 1fr; }
	.ac-nav { display: none; }
}
@media (max-width: 560px) {
}
