/*
Theme Name: PrijsRunner
Theme URI: https://prijsrunner.nl
Author: PrijsRunner
Description: Kleurrijke productvergelijker, koopgids en dealsite theme voor PrijsRunner.nl.
Version: 0.1.0
Requires PHP: 8.0
Text Domain: prijsrunner
*/

:root {
	--pr-orange: #ff6b35;
	--pr-orange-dark: #e2551f;
	--pr-teal: #0f9b8e;
	--pr-teal-dark: #0b7a70;
	--pr-purple: #7c4dff;
	--pr-purple-dark: #5e35d6;
	--pr-pink: #ec4899;
	--pr-pink-dark: #c2347a;
	--pr-blue: #3b82f6;
	--pr-blue-dark: #2563eb;
	--pr-green: #22c55e;
	--pr-green-dark: #16a34a;
	--pr-yellow: #ffc93c;
	--pr-cyan: #06b6d4;
	--pr-cyan-dark: #0891b2;
	--pr-amber: #f5a623;
	--pr-amber-dark: #d1860f;
	--pr-lime: #84cc16;
	--pr-lime-dark: #5f9c0d;
	--pr-red: #ef4444;
	--pr-red-dark: #c62f2f;
	--pr-violet: #a855f7;
	--pr-violet-dark: #8b2fe0;

	--pr-bg: #f7f8fb;
	--pr-surface: #ffffff;
	--pr-text: #1a1f36;
	--pr-text-muted: #5b6479;
	--pr-border: #e7eaf0;
	--pr-radius: 14px;
	--pr-shadow: 0 2px 10px rgba(26, 31, 54, 0.06);
	--pr-shadow-hover: 0 10px 24px rgba(26, 31, 54, 0.12);

	/* Central layout tokens — every content container derives its width from
	   these two. Change here, not per-selector, to resize the whole site. */
	--pr-max-width: 1320px;
	--pr-pad-inline: 20px;
}

@media (min-width: 768px) {
	:root { --pr-pad-inline: 24px; }
}

@media (min-width: 992px) {
	:root { --pr-pad-inline: 28px; }
}

@media (min-width: 1280px) {
	:root { --pr-pad-inline: 32px; }
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--pr-bg);
	color: var(--pr-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.pr-container {
	max-width: var(--pr-max-width);
	margin: 0 auto;
	padding: 0 var(--pr-pad-inline);
}

/* Category color utility classes */
.pr-c-teal { --c: var(--pr-teal); --c-dark: var(--pr-teal-dark); }
.pr-c-orange { --c: var(--pr-orange); --c-dark: var(--pr-orange-dark); }
.pr-c-purple { --c: var(--pr-purple); --c-dark: var(--pr-purple-dark); }
.pr-c-pink { --c: var(--pr-pink); --c-dark: var(--pr-pink-dark); }
.pr-c-blue { --c: var(--pr-blue); --c-dark: var(--pr-blue-dark); }
.pr-c-green { --c: var(--pr-green); --c-dark: var(--pr-green-dark); }
.pr-c-cyan { --c: var(--pr-cyan); --c-dark: var(--pr-cyan-dark); }
.pr-c-amber { --c: var(--pr-amber); --c-dark: var(--pr-amber-dark); }
.pr-c-lime { --c: var(--pr-lime); --c-dark: var(--pr-lime-dark); }
.pr-c-red { --c: var(--pr-red); --c-dark: var(--pr-red-dark); }
.pr-c-violet { --c: var(--pr-violet); --c-dark: var(--pr-violet-dark); }

/* Header */
.pr-header {
	background: var(--pr-surface);
	border-bottom: 1px solid var(--pr-border);
	position: sticky;
	top: 0;
	z-index: 50;
}

.pr-header-inner {
	max-width: var(--pr-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px var(--pr-pad-inline);
	flex-wrap: wrap;
}

.pr-logo {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.pr-logo span:first-child { color: var(--pr-teal); }
.pr-logo span:last-child { color: var(--pr-orange); }

.pr-search {
	flex: 1 1 360px;
	display: flex;
	max-width: 680px;
	margin: 0 auto;
}

.pr-search input {
	flex: 1;
	border: 2px solid var(--pr-border);
	border-right: none;
	border-radius: 999px 0 0 999px;
	padding: 10px 18px;
	font-size: 15px;
	outline: none;
}

.pr-search input:focus {
	border-color: var(--pr-teal);
}

.pr-search button {
	border: 2px solid var(--pr-teal);
	background: var(--pr-teal);
	color: #fff;
	border-radius: 0 999px 999px 0;
	padding: 0 20px;
	font-weight: 600;
	cursor: pointer;
}

.pr-nav {
	display: flex;
	gap: 22px;
	font-weight: 600;
	font-size: 15px;
	flex-wrap: wrap;
}

.pr-nav a {
	color: var(--pr-text);
	white-space: nowrap;
}

.pr-nav a:hover {
	color: var(--pr-teal);
}

.pr-nav .pr-nav-ai {
	color: var(--pr-purple);
}

/* Hero */
.pr-hero {
	background: linear-gradient(135deg, var(--pr-teal) 0%, var(--pr-purple) 100%);
	color: #fff;
	padding: 64px var(--pr-pad-inline) 56px;
	text-align: center;
}

.pr-hero h1 {
	font-size: clamp(28px, 4vw, 44px);
	margin: 0 0 14px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pr-hero p {
	margin: 0 auto 28px;
	max-width: 560px;
	font-size: 17px;
	opacity: 0.92;
}

.pr-hero-search {
	display: flex;
	max-width: 760px;
	margin: 0 auto 24px;
	box-shadow: var(--pr-shadow-hover);
	border-radius: 999px;
}

.pr-hero-search input {
	flex: 1;
	border: none;
	border-radius: 999px 0 0 999px;
	padding: 16px 22px;
	font-size: 16px;
	outline: none;
}

.pr-hero-search button {
	border: none;
	background: var(--pr-orange);
	color: #fff;
	border-radius: 0 999px 999px 0;
	padding: 0 28px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.pr-hero-search button:hover {
	background: var(--pr-orange-dark);
}

.pr-hero-pills {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.pr-pill {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
}

.pr-pill:hover {
	background: rgba(255, 255, 255, 0.28);
}

/* Sections */
.pr-section {
	padding: 44px var(--pr-pad-inline);
}

.pr-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	max-width: var(--pr-max-width);
	margin: 0 auto 20px;
	gap: 12px;
}

.pr-section-head h2 {
	font-size: 22px;
	margin: 0;
	font-weight: 800;
}

.pr-section-head a {
	font-size: 14px;
	font-weight: 700;
	color: var(--pr-teal);
	white-space: nowrap;
}

/*
 * Product/guide grids — explicit column counts per breakpoint tier
 * (mobile-first) rather than auto-fill, so counts match the shopping-site
 * spec exactly instead of whatever happens to fit:
 *   <768px mobile: 2 cols (1 below 480px) · 768-991px tablet: 2 cols
 *   992-1279px compact desktop/tablet landscape: 3 cols · >=1280px desktop: 4 cols
 * .pr-grid-wide (Koopgidsen/Eigen aanbiedingen) stays one tier narrower
 * since its cards carry more text.
 */
.pr-grid {
	max-width: var(--pr-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.pr-grid.pr-grid-wide {
	grid-template-columns: 1fr;
}

@media (max-width: 479px) {
	.pr-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
	.pr-grid.pr-grid-wide { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
	.pr-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
	.pr-grid { grid-template-columns: repeat(4, 1fr); }
	.pr-grid.pr-grid-wide { grid-template-columns: repeat(3, 1fr); }
}

/* Product card */
.pr-card {
	background: var(--pr-surface);
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius);
	overflow: hidden;
	box-shadow: var(--pr-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
}

.pr-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--pr-shadow-hover);
}

.pr-card-image {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, var(--c, var(--pr-teal)), color-mix(in srgb, var(--c, var(--pr-teal)) 60%, #fff));
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pr-card-image svg {
	width: 44%;
	height: 44%;
	opacity: 0.9;
	stroke: #fff;
}

.pr-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--pr-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 9px;
	border-radius: 999px;
}

.pr-badge.pr-badge-own {
	background: var(--pr-purple);
}

.pr-badge.pr-badge-ad {
	background: var(--pr-text-muted);
}

.pr-card-body {
	padding: 14px 16px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pr-card-cat {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--c-dark, var(--pr-teal-dark));
}

.pr-card-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	color: var(--pr-text);
}

.pr-card-prices {
	margin-top: auto;
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding-top: 6px;
}

.pr-price {
	font-size: 18px;
	font-weight: 800;
	color: var(--pr-text);
}

.pr-price-old {
	font-size: 13px;
	color: var(--pr-text-muted);
	text-decoration: line-through;
}

/* Guide card */
.pr-guide-card {
	background: var(--pr-surface);
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius);
	padding: 20px;
	box-shadow: var(--pr-shadow);
	border-top: 4px solid var(--c, var(--pr-teal));
}

.pr-guide-card h3 {
	margin: 6px 0 8px;
	font-size: 16px;
}

.pr-guide-card p {
	margin: 0;
	font-size: 14px;
	color: var(--pr-text-muted);
}

.pr-eyebrow {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--c-dark, var(--pr-teal-dark));
}

/* Shop per categorie — large touch-friendly cards */
.pr-grid-shop-cats {
	max-width: var(--pr-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

@media (max-width: 479px) {
	.pr-grid-shop-cats { grid-template-columns: 1fr; gap: 12px; }
}

@media (min-width: 992px) {
	.pr-grid-shop-cats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
	.pr-grid-shop-cats { grid-template-columns: repeat(4, 1fr); gap: 22px; }
	.pr-shop-cat-card { padding: 30px 24px; min-height: 168px; }
	.pr-shop-cat-icon { width: 56px; height: 56px; }
	.pr-shop-cat-icon svg { width: 28px; height: 28px; }
	.pr-shop-cat-title { font-size: 17px; }
}

.pr-shop-cat-card {
	background: var(--pr-surface);
	border: 1px solid var(--pr-border);
	border-top: 4px solid var(--c, var(--pr-teal));
	border-radius: var(--pr-radius);
	padding: 26px 20px;
	min-height: 148px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	box-shadow: var(--pr-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pr-shop-cat-card:hover,
.pr-shop-cat-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--pr-shadow-hover);
	border-top-color: var(--c-dark, var(--pr-teal-dark));
}

.pr-shop-cat-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--c, var(--pr-teal)) 16%, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pr-shop-cat-icon svg {
	width: 24px;
	height: 24px;
	stroke: var(--c-dark, var(--pr-teal-dark));
}

.pr-shop-cat-title {
	font-weight: 800;
	font-size: 16px;
	color: var(--pr-text);
}

.pr-shop-cat-subtitle {
	font-size: 13px;
	color: var(--pr-text-muted);
}

/* Category landing page hero */
.pr-cat-hero {
	background: linear-gradient(135deg, var(--c, var(--pr-teal)), var(--c-dark, var(--pr-teal-dark)));
	color: #fff;
	padding: 48px var(--pr-pad-inline);
	text-align: center;
}

.pr-cat-hero-icon {
	display: inline-flex;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.18);
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.pr-cat-hero-icon svg {
	width: 28px;
	height: 28px;
	stroke: #fff;
}

.pr-cat-hero h1 {
	margin: 0 0 6px;
	font-size: clamp(24px, 3vw, 32px);
}

.pr-cat-hero p {
	margin: 0;
	opacity: 0.9;
}

/* AI section */
.pr-ai-section {
	background: linear-gradient(135deg, #f3edff 0%, #eafaf8 100%);
	border-radius: 20px;
	max-width: var(--pr-max-width);
	margin: 0 auto;
	padding: 40px 28px;
}

.pr-ai-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	margin-top: 20px;
}

@media (min-width: 768px) {
	.pr-ai-grid { grid-template-columns: repeat(3, 1fr); }
}

.pr-ai-card {
	background: #fff;
	border-radius: var(--pr-radius);
	padding: 20px;
	box-shadow: var(--pr-shadow);
}

.pr-ai-card .pr-ai-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--pr-purple);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.pr-ai-card .pr-ai-icon svg {
	width: 20px;
	height: 20px;
	stroke: #fff;
}

.pr-ai-card h3 {
	font-size: 15px;
	margin: 0 0 6px;
}

.pr-ai-card p {
	font-size: 13px;
	color: var(--pr-text-muted);
	margin: 0;
}

/* Ad slot (reserved, inactive at launch) */
.pr-ad-slot {
	max-width: var(--pr-max-width);
	margin: 0 auto;
	display: none;
}

/* Footer */
.pr-footer {
	background: #12162a;
	color: #c7cbe0;
	padding: 40px var(--pr-pad-inline) 24px;
	margin-top: 40px;
}

.pr-footer-inner {
	max-width: var(--pr-max-width);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
}

.pr-footer-brand {
	max-width: 340px;
	font-size: 13px;
	line-height: 1.6;
}

.pr-footer-brand .pr-logo span:first-child { color: #4fd8c9; }
.pr-footer-brand .pr-logo span:last-child { color: #ff9466; }

.pr-footer-social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.pr-social-icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: default;
}

.pr-social-icon svg {
	width: 16px;
	height: 16px;
	stroke: #c7cbe0;
}

.pr-footer-nav {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}

.pr-footer-nav h4 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8991b5;
	margin: 0 0 10px;
}

.pr-footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pr-footer-bottom {
	max-width: var(--pr-max-width);
	margin: 24px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 12.5px;
	color: #8991b5;
	line-height: 1.6;
}

@media (max-width: 640px) {
	.pr-header-inner { flex-direction: column; align-items: stretch; }
	.pr-nav { justify-content: center; }
	.pr-hero { padding: 44px 16px 40px; }
}
