/*
Theme Name: Allesveiling
Description: Thema voor Allesveiling.nl – productzoekmachine met affiliate-feeds. Werkt samen met de plugin "Allesveiling Feeds".
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Author: Allesveiling.nl
Text Domain: allesveiling
*/

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
	--blue: #4285F4;          /* merkkleur, vlakken en logo */
	--blue-dark: #1B5FCC;     /* knoppen en links */
	--blue-darker: #123F8A;
	--blue-soft: #EAF2FE;
	--green: #34A853;
	--green-dark: #1E7B3A;    /* prijzen */
	--green-soft: #E6F4EA;
	--orange: #FB8C00;        /* kortingslabels */
	--orange-dark: #C25E00;
	--orange-soft: #FFF1E0;
	--ink: #13213C;
	--ink-2: #3A4763;
	--muted: #4B5873;
	--line: #E3E9F3;
	--line-2: #C9D7EE;
	--bg-soft: #F6F9FE;
	--img-bg: #FFFFFF;
	--radius: 18px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Plus Jakarta Sans", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue-darker); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
h1, h2, h3 { line-height: 1.2; }
.h-display { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; clip: auto; width: auto; height: auto; }

/* ---------- Knoppen en formulieren ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--blue-dark); color: #fff; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-darker); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border: 2px solid var(--line-2); }
.btn--ghost:hover { background: var(--blue-soft); color: var(--ink); }
.input { height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-darker); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip:hover { background: #D9E7FD; color: var(--blue-darker); }
.chip small { font-weight: 500; color: var(--muted); }
.chip--line { background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-weight: 500; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header__top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.logo__text span { color: var(--orange-dark); }
.searchbar { flex: 1 1 360px; display: flex; min-width: 0; }
.searchbar input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid #D5DEEC; border-right: 0; border-radius: 12px 0 0 12px; font: inherit; font-size: 15px; color: var(--ink); }
.searchbar input:focus { border-color: var(--blue); outline: none; }
.searchbar button { width: 56px; border: 0; border-radius: 0 12px 12px 0; background: var(--blue-dark); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.searchbar button:hover { background: var(--blue-darker); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-bottom: 12px; font-size: 14px; font-weight: 500; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--blue-dark); }
.main-nav a[aria-current] { font-weight: 700; }
.main-nav .main-nav__deals { color: var(--orange-dark); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { background: var(--blue-soft); overflow: hidden; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 64px; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__badge { align-self: flex-start; background: var(--orange); color: #1F1300; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.hero h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.hero p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.hero__search { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; max-width: 620px; }
.hero__search input { flex: 1 1 300px; min-width: 0; height: 58px; padding: 0 20px; border: 2px solid var(--line-2); border-radius: 14px; font: inherit; font-size: 17px; color: var(--ink); background: #fff; }
.hero__search input:focus { border-color: var(--blue); outline: none; }
.hero__search .btn { height: 62px; padding: 0 28px; font-size: 17px; font-weight: 700; border-radius: 14px; }
.hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero__art { flex: 1 1 320px; display: flex; justify-content: center; }
.hero__art-box { position: relative; width: 340px; height: 300px; }
.hero__card { position: absolute; left: 20px; top: 30px; width: 230px; height: 250px; background: #fff; border-radius: 20px; box-shadow: 0 18px 40px rgba(19,33,60,.12); transform: rotate(-5deg); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.hero__card-img { flex: 1; background: #F1F5FC; border-radius: 12px; }
.hero__card-line { height: 10px; width: 70%; background: var(--line); border-radius: 5px; }
.hero__seal { position: absolute; right: 10px; top: 0; width: 112px; height: 112px; border-radius: 999px; background: var(--orange); color: #1F1300; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(10deg); box-shadow: 0 10px 24px rgba(194,94,0,.3); font-family: var(--font-head); }
.hero__seal span:first-child { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hero__seal span:last-child { font-size: 30px; font-weight: 800; line-height: 1; }
.hero__hammer { position: absolute; right: 30px; bottom: 10px; width: 64px; height: 64px; border-radius: 18px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-12deg); }

/* ---------- Vertrouwen ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.trust__item strong { display: block; }
.trust__item span { font-size: 14px; color: var(--muted); }

/* ---------- Secties ---------- */
.section { padding-top: 48px; padding-bottom: 24px; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.section__head h2 { margin: 0; font-size: 30px; }
.section__head a { font-weight: 600; font-size: 15px; }
.section__lead { margin: -12px 0 24px; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { color: var(--ink); border-color: var(--line-2); box-shadow: 0 6px 18px rgba(19,33,60,.07); }
.cat-tile__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.cat-tile__icon--blue { background: var(--blue-soft); color: var(--blue-dark); }
.cat-tile__icon--green { background: var(--green-soft); color: var(--green-dark); }
.cat-tile__icon--orange { background: var(--orange-soft); color: #A34E00; }
.cat-tile strong { display: block; font-size: 16px; font-weight: 600; }
.cat-tile small { color: var(--muted); font-size: 13px; }

.how { background: var(--bg-soft); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.how h2 { margin: 0; font-size: 30px; }
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.how__step { display: flex; flex-direction: column; gap: 10px; }
.how__num { width: 40px; height: 40px; border-radius: 999px; background: var(--blue-dark); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.how__step h3 { margin: 0; font-size: 18px; }
.how__step p { margin: 0; color: var(--muted); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.shop-tile { height: 72px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.shop-tile:hover { border-color: var(--line-2); color: var(--ink); }
.shop-tile img { max-height: 44px; width: auto; }

/* ---------- Productkaart ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 8px 22px rgba(19,33,60,.08); }
.card__img { position: relative; aspect-ratio: 1 / 1; background: var(--img-bg); display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--orange); color: #1F1300; font-weight: 800; font-size: 14px; padding: 5px 10px; border-radius: 8px; z-index: 1; }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__shop { font-size: 13px; color: var(--muted); }
.card__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* hele kaart klikbaar */
.card__title a:hover { color: var(--blue-dark); }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; }
.price { font-weight: 800; font-size: 22px; color: var(--green-dark); }
.price-was { font-size: 14px; color: var(--muted); }
.price-was s { text-decoration: line-through; }
.card__meta { font-size: 13px; color: var(--green-dark); display: flex; align-items: center; gap: 6px; }
.card__meta--muted { color: var(--muted); }
.card .btn { position: relative; z-index: 1; margin-top: 4px; }

/* Rij-weergave (zoekresultaten) */
.list { display: flex; flex-direction: column; gap: 14px; }
.card--row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; padding: 16px; }
.card--row .card__img { flex: 0 0 132px; height: 132px; aspect-ratio: auto; border: 0; padding: 8px; border-radius: 12px; }
.card--row .badge { left: 6px; top: 6px; font-size: 13px; padding: 4px 8px; }
.card--row .card__body { flex: 999 1 280px; padding: 0; min-width: 0; }
.card--row .card__title { font-size: 17px; -webkit-line-clamp: 2; }
.card--row .card__buy { flex: 1 1 200px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.card--row .card__price { margin-top: 0; justify-content: flex-end; }
.card--row .price { font-size: 24px; }

/* ---------- Categorie- en zoekpagina ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.breadcrumb span[aria-current] { color: var(--ink); }
.page-head { margin: 20px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.page-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.subcats details { display: contents; }
.subcats summary { list-style: none; cursor: pointer; }
.subcats summary::-webkit-details-marker { display: none; }

.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 56px; }
.layout__side { flex: 0 0 280px; min-width: 0; }
.layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; background: #fff; }
.filters > summary { display: none; }
.filters__title { font-family: var(--font-head); font-weight: 800; font-size: 18px; margin: 12px 0 4px; }
.fgroup { border-top: 1px solid var(--line); padding: 4px 0; }
.fgroup:first-of-type { border-top: 0; }
.fgroup > summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: "▾"; color: var(--muted); }
.fgroup[open] > summary::after { content: "▴"; }
.fgroup__body { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; max-height: 320px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue-dark); flex: 0 0 auto; }
.check small { color: var(--muted); margin-left: auto; }
.check--deal { min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--orange-soft); color: #6B3300; font-weight: 600; margin: 8px 0; }
.check--deal input { accent-color: var(--orange-dark); }
.price-range { display: flex; gap: 8px; }
.price-range .input { width: 100%; }
.price-range label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filters .btn { width: 100%; margin-top: 12px; }
.cat-links a { color: var(--ink); text-decoration: none; display: flex; justify-content: space-between; padding: 4px 0; }
.cat-links a:hover, .cat-links a[aria-current] { color: var(--blue-dark); }
.cat-links a[aria-current] { font-weight: 700; }
.cat-links small { color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.toolbar__count { font-size: 15px; color: var(--muted); }
.toolbar label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.active-filters a::after { content: "×"; font-size: 16px; margin-left: 2px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ink); display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; }
.pagination [aria-current] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.pagination .dots { border: 0; min-width: 20px; padding: 0; }

.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-2); }
.empty h2 { margin-top: 0; }

.seo { display: flex; flex-wrap: wrap; gap: 32px; padding-bottom: 64px; }
.seo__text { flex: 3 1 480px; min-width: 0; line-height: 1.7; color: var(--ink-2); }
.seo__text h2 { color: var(--ink); font-size: 26px; }
.faq { flex: 2 1 320px; min-width: 0; background: var(--bg-soft); border-radius: var(--radius); padding: 24px; align-self: flex-start; }
.faq h2 { margin: 0 0 8px; font-size: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.faq p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.6; }

/* Zoekpagina: filters als knoppenbalk */
.search-page { background: var(--bg-soft); }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filterbar .fgroup { position: relative; border: 0; padding: 0; }
.filterbar .fgroup > summary { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; gap: 6px; }
.filterbar .fgroup[open] > summary, .filterbar .fgroup.is-active > summary { border-color: var(--blue-dark); color: var(--blue-dark); }
.filterbar .fgroup__body { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 16px 40px rgba(19,33,60,.14); }
.filterbar .check--deal { margin: 0; min-height: 44px; border: 2px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 0 16px; font-size: 14px; }
.filterbar .check--deal:has(input:checked) { background: var(--orange); border-color: var(--orange-dark); color: #1F1300; }
.filterbar .btn { width: auto; }
.filterbar__sort { margin-left: auto; }

.prose { max-width: 760px; padding-top: 32px; padding-bottom: 64px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D7E0F0; }
.site-footer a { color: #D7E0F0; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.footer__about { flex: 2 1 320px; display: flex; flex-direction: column; gap: 12px; }
.footer__about p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 440px; }
.footer__brand { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff; }
.footer__brand span { color: #FFB45C; }
.footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col strong { color: #fff; }
.footer__bottom { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid #2A3A5C; font-size: 13px; color: #AEBBD3; }

@media (max-width: 800px) {
	.layout__side { flex: 1 1 100%; }
	.main-nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 20px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.main-nav::-webkit-scrollbar { display: none; }
	.section__head h2, .how h2 { font-size: 24px; }
	.how { padding: 24px; }
	.hero__inner { padding-top: 40px; padding-bottom: 40px; }
	.hero__art { display: none; }
	.filters > summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 800; font-family: var(--font-head); padding: 12px 0; list-style: none; }
	.filters__title { display: none; }
	.filterbar__sort { margin-left: 0; }
	.card--row .card__buy { align-items: stretch; text-align: left; }
	.card--row .card__price { justify-content: flex-start; }
	.card--row .card__img { flex-basis: 96px; height: 96px; }
}

/* ---------- 1.1 ---------- */
.page-head__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.deal-explainer { background: var(--orange-soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; color: #4A2500; }
.deal-explainer h2 { margin: 0; font-size: 20px; color: var(--ink); }
.deal-explainer p { margin: 0; line-height: 1.6; }
.deal-cats { display: flex; flex-wrap: wrap; gap: 8px; }
