
/* ============================================================
   Product Finder Plugin — Stylesheet
   ============================================================ */
.pf-app {
	--pf-green: #95c043;
	--pf-green-light: #95c043;
	--pf-amber: #e07b00;
	--pf-amber-light: #f8f8f6;
	--pf-border: #f8f8f6;
	--pf-bg: #f8f8f6;
	--pf-text: #111;
	--pf-muted: #111;
	--pf-radius: 0 10px;
	--pf-shadow: 0 12px 18px rgba(0, 0, 0, .05);
	font-family: inherit;
	margin: 0 auto;
}

/* ── Step label ────────────────────────────────────────────── */
.pf-step-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--pf-muted);
	margin-bottom: 16px;
	font-weight: 600;
}

/* ── Market selector ───────────────────────────────────────── */
.pf-markets {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}

.pf-mfers {}

.pf-market-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 12px;
	border: 0;
	background: #fff;
	border: 1px solid var(--pf-amber-light);
	cursor: pointer;
	border-radius: 6px;
	font-size: 17px;
	font-weight: normal;
	color: var(--e-global-color-secondary, var(--pf-text));
	transition: all .3s ease;
	min-width: 220px;
	text-decoration: none;
}

.pf-market-icon {
	display: block;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	background-image: var(--pf-market-icon);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.pf-market-btn:hover {
	background: var(--pf-amber-light);
	color: var(--e-global-color-secondary, var(--pf-text));
}

.pf-market-btn.is-active {
	background: var(--pf-amber-light);
	color: var(--e-global-color-secondary, var(--pf-text));
}

/* ── Filters bar ───────────────────────────────────────────── */
.pf-filters-bar {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	background: var(--pf-bg);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	padding: 24px 28px;
	margin-bottom: 32px;
	align-items: flex-start;
}

.pf-filter-group {
	flex: 1;
	min-width: 180px;
}

.pf-filter-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--pf-muted);
	margin: 0 0 12px;
}

.pf-filter-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 260px;
	overflow-y: auto;
}

.pf-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--pf-text);
	cursor: pointer;
	line-height: 1.4;
}

.pf-checkbox-label > span {
	margin-top: 3px;
}

.pf-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--pf-green);
	cursor: pointer;
	flex-shrink: 0;
}

.pf-filter-actions {
	display: flex;
	align-items: flex-end;
	padding-bottom: 2px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.pf-btn-clear {
	background: none;
	border: 1px solid rgba(0, 0, 0, .05);
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13px;
	color: var(--pf-muted);
	cursor: pointer;
	transition: all .15s;
	white-space: nowrap;
}

.pf-btn-clear:hover, .pf-btn-clear:focus {
	border-color: 1px solid rgba(0, 0, 0, .15);
	color: var(--pf-text);
	background: none !important;
}

.pf-btn-text {
	background: none;
	border: none;
	color: var(--pf-green);
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

/* ── Results header ────────────────────────────────────────── */
.pf-results-header {
	font-size: 13px;
	color: var(--pf-muted);
	margin-bottom: 20px;
	min-height: 20px;
}

.pf-step--results {
	margin-top: 30px;
}

/* ── Product grid ──────────────────────────────────────────── */
.pf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* ── Product card (entire card is <a>) ─────────────────────── */
.pf-card {
	background: #fff;
	border: 1px solid var(--e-global-color-5c272fa);
	border-radius: 30px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--pf-shadow);
	transition: box-shadow .18s, transform .18s;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.pf-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

/* Featured image */
.pf-card__image {
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--pf-bg);
	flex-shrink: 0;
}

.pf-card__image img {
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	background: #fff;
	display: block;
	transition: transform .3s ease;
}

.pf-card:hover .pf-card__image img {
	transform: scale(1.03);
}

/* Card body */
.pf-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	flex: 1;
}

.pf-card__header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.pf-card__title {
	font-family: "Schnebel", Sans-serif;
	font-size: 18px !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
	color: var(--e-global-color-secondary);
	margin: 0;
	display: block;
}

/* card_content ACF field */
.pf-card__content {
	font-size: 14px;
	color: var(--pf-muted);
	line-height: 1.6;
	flex: 1;
}

.pf-card__content p {
	margin: 0 0 8px;
}

.pf-card__content p:last-child {
	margin-bottom: 0;
}

.pf-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pf-badge {
	background: transparent;
	color: var(--pf-green-light);
	font-size: 11px;
	border: 1px solid var(--pf-green-light);
	font-weight: 600;
	padding: 4px 10px 2px;
	border-radius: 0 5px;
	white-space: nowrap;
}

/* ── Coming Soon badge (only badge shown) ──────────────────── */
.pf-status.is-coming-soon {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 3px 10px;
	border-radius: 20px;
	background: var(--pf-amber-light);
	color: var(--pf-amber);
}

/* ── Empty & loading states ────────────────────────────────── */
.pf-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--pf-muted);
}

.pf-empty-state p {
	font-size: 16px;
	margin-bottom: 12px;
}

.pf-loading {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 60px 0;
}

.pf-loading span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pf-green);
	animation: pf-bounce .8s infinite alternate;
}

.pf-loading span:nth-child(2) {
	animation-delay: .2s;
}

.pf-loading span:nth-child(3) {
	animation-delay: .4s;
}

@keyframes pf-bounce {
	from {
		opacity: .3;
		transform: scale(.7);
	}
	
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.pf-error {
	color: #c0392b;
	text-align: center;
	padding: 40px;
}

.pf-none {
	font-size: 13px;
	color: var(--pf-muted);
	font-style: italic;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
	.pf-markets {
		gap: 10px;
	}
	
	.pf-market-btn {
		min-width: calc(50% - 5px);
		padding: 12px;
		font-size: 14px;
	}
	
	.pf-filters-bar {
		flex-direction: column;
		gap: 20px;
		padding: 20px;
	}
	
	.pf-filter-group {
		width: 100%;
	}
	
	.pf-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Filter bar collapse/expand header ─────────────────────── */
.pf-filters-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 28px;
	background: var(--pf-bg);
	border: 1px solid rgba(0, 0, 0, .01);
	border-radius: 0 20px 0 0;
	cursor: default;
}

/* When body is hidden, round all corners */
.pf-step--filters:has(#pf-filters-body[style*="display: none"]) .pf-filters-header, .pf-step--filters:has(#pf-filters-body:hidden) .pf-filters-header {
	border-radius: var(--pf-radius);
}

.pf-filters-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--pf-muted);
}

/* Body — connected to header */
.pf-filters-body .pf-filters-bar {
	border-top: none;
	border-radius: 0 0 0 20px;
}

/* ── Hamburger → X toggle ──────────────────────────────────── */
.pf-filters-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: none;
	border: 1px solid var(--pf-border);
	border-radius: 6px;
	cursor: pointer;
	padding: 0;
	transition: border-color .15s, background .15s;
}

.pf-filters-toggle:hover, .pf-filters-toggle:focus {
	border-color: transparent;
	background: transparent;
}

.pf-hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 18px;
	height: 14px;
	position: relative;
}

.pf-hamburger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--pf-muted);
	border-radius: 2px;
	position: absolute;
	transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.pf-hamburger span:nth-child(1) {
	top: 0;
}

.pf-hamburger span:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

.pf-hamburger span:nth-child(3) {
	top: 100%;
	transform: translateY(-100%);
}

/* Open state → X */
.pf-filters-toggle.is-open .pf-hamburger span:nth-child(1) {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

.pf-filters-toggle.is-open .pf-hamburger span:nth-child(2) {
	opacity: 0;
	transform: translateY(-50%) scaleX(0);
}

.pf-filters-toggle.is-open .pf-hamburger span:nth-child(3) {
	top: 50%;
	transform: translateY(-50%) rotate(-45deg);
}

.pf-filters-toggle:hover .pf-hamburger span {
	background: var(--pf-green);
}

/* ═══════════════════════════════════════════════════
   RESOURCE LIBRARY CARDS
   ═══════════════════════════════════════════════════ */

/* PDF icon area replacing featured image */
.pf-card--resource .pf-card__pdf-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pf-bg);
	padding: 24px;
}

.pf-card--resource .pf-card__pdf-icon svg {
	width: 64px;
	height: 80px;
	display: block;
}

/* Resource Type badge — sits top-right in card header */
.pf-badge--resource-type {
	background: var(--e-global-color-5c272fa);
	color: var(--e-global-color-secondary);
	border: none;
	border-radius: 0 5px;
	font-size: 11px;
	font-weight: normal;
	padding: 4px 10px 2px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Resource card header aligns badge to the right */
.pf-card--resource .pf-card__header {
	justify-content: flex-end;
}

/* Resource cards open in new tab — show subtle external indicator */
.pf-card--resource .pf-card__title::after {
	content: " ↗";
	font-size: .75em;
	opacity: .4;
}

/* ── Resource card horizontal layout ───────────────────────── */
.pf-card--resource {
	border-radius: 10px;
}

.pf-resource-card__inner {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	height: 100%;
	min-height: 140px;
}

/* Left: PDF icon block */
.pf-resource-card__icon {
	flex-shrink: 0;
	width: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 12px;
	background: var(--e-global-color-5c272fa);
}

.pf-resource-card__icon svg {
	width: 48px;
	height: 60px;
	display: block;
}

/* Resource type image from ACF field */
.pf-resource-type-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	max-width: 60px;
	max-height: 60px;
}

/* Right: content */
.pf-resource-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 30px 16px;
	position: relative;
}

/* Resource Type badge — top right */
.pf-resource-card__type {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	gap: 6px;
}

/* Title — sits below the badge area */
.pf-resource-card__title {
	font-size: 16px !important;
	padding-right: 0;
	/* prevent overlap with type badge */
	margin-top: 0;
}

/* Remove the ↗ arrow added to resource titles globally */
.pf-card--resource .pf-card__title::after {
	display: none;
}

/* Solution category badges row */
.pf-resource-card__cats {
	margin-top: 4px;
}

@media (max-width: 480px) {
	.pf-resource-card__title {
		padding-right: 0;
		margin-top: 28px;
	}
}
