/*
 * Slimthuisbatterijkopen.nl — homepage layout additions v2
 * Equal-weight curated recommendations + standalone brochure campaign banner.
 * Scoped to the new homepage classes and safe to layer over the existing theme CSS.
 */

.fp-featured {
	padding: 70px 0 62px;
	background: #f7faff;
}

.fp-featured-card__price small,
.fp-prod__price small {
  display: block;
  max-width: 240px;
  margin-top: 4px;
  color: #6b7f96;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.fp-featured__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 26px;
}

.fp-featured__head > div {
	max-width: 720px;
}

.fp-featured__eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 5px 10px;
	margin-bottom: 9px;
	border-radius: 999px;
	background: #e9f5ff;
	color: #0878d1;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

/* The recommendation block is now the primary job of this section. */
.fp-featured__products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.fp-featured-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #dfe8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 36, 68, .055);
	color: #0b2144;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fp-featured-card:hover {
	transform: translateY(-3px);
	border-color: #c3d8ed;
	box-shadow: 0 16px 38px rgba(15, 36, 68, .09);
}

.fp-featured-card__topline {
	position: absolute;
	z-index: 4;
	top: 14px;
	left: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.fp-featured-card__badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eaf5ff;
	color: #0878d1;
	font-size: 10px;
	font-weight: 850;
	line-height: 1.1;
}

.fp-featured-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 210px;
	padding: 42px 24px 20px;
	background: linear-gradient(180deg, #fcfdff 0%, #f2f7fc 100%);
}

.fp-featured-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.fp-featured-card__placeholder {
	display: grid;
	place-items: center;
	width: 82px;
	height: 82px;
	border-radius: 18px;
	background: #eaf3fb;
	color: #7b93ad;
}

.fp-featured-card__placeholder svg {
	width: 38px;
	height: 38px;
}

.fp-featured-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 20px 19px;
}

.fp-featured-card__body h3 {
	margin: 0 0 6px;
	font-size: clamp(18px, 1.4vw, 22px);
	font-weight: 850;
	line-height: 1.14;
	letter-spacing: -.025em;
	color: #0a2145;
}

.fp-featured-card__product-name {
	min-height: 34px;
	margin-bottom: 10px;
	color: #748397;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

.fp-featured-card__body p {
	margin: 0 0 14px;
	color: #5e7087;
	font-size: 13px;
	line-height: 1.5;
}

.fp-featured-card__note {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 2px;
	padding-top: 13px;
	border-top: 1px solid #e8eef5;
	color: #315271;
	font-size: 11px;
	font-weight: 750;
}

.fp-featured-card__note svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: #1687e8;
}

.fp-featured-card__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 20px;
}

.fp-featured-card__price {
	font-size: 20px;
	font-weight: 850;
	line-height: 1.15;
	color: #081f42;
}

.fp-featured-card__price del {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #8b98a7;
}

.fp-featured-card__price ins {
	text-decoration: none;
}

.fp-featured-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0878d1;
	font-size: 12px;
	font-weight: 850;
	white-space: nowrap;
}

.fp-featured-card__link svg {
	width: 14px;
	height: 14px;
	transition: transform .18s ease;
}

.fp-featured-card:hover .fp-featured-card__link svg {
	transform: translateX(3px);
}

/*
 * Brochure gets its own campaign moment instead of pretending to be product #4.
 * It remains visually prominent and retains the human-face creative.
 */
.fp-guide-banner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
	min-height: 210px;
	margin-top: 28px;
	overflow: hidden;
	border: 1px solid #f0d4bf;
	border-radius: 22px;
	background:
		radial-gradient(circle at 84% 20%, rgba(255, 120, 44, .12), transparent 32%),
		linear-gradient(120deg, #fff9f4 0%, #fff2e7 62%, #ffe4d0 100%);
	color: #0a2145;
}

.fp-guide-banner__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 720px;
	padding: 30px 34px;
}

.fp-guide-banner__eyebrow {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 8px;
	color: #d85d18;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.fp-guide-banner h3 {
	max-width: 700px;
	margin: 0 0 8px;
	font-size: clamp(22px, 2vw, 31px);
	font-weight: 850;
	line-height: 1.05;
	letter-spacing: -.035em;
	color: #0a2145;
}

.fp-guide-banner p {
	max-width: 640px;
	margin: 0;
	color: #657486;
	font-size: 13px;
	line-height: 1.5;
}

.fp-guide-banner__actions {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.fp-guide-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 11px 15px;
	border-radius: 10px;
	background: #0a2145;
	color: #fff;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .18s ease, background .18s ease;
}

.fp-guide-banner__button:hover {
	transform: translateY(-1px);
	background: #123567;
	color: #fff;
}

.fp-guide-banner__button svg {
	width: 14px;
	height: 14px;
}

.fp-guide-banner__button.is-disabled {
	background: rgba(10, 33, 69, .78);
	cursor: default;
}

.fp-guide-banner__note {
	font-size: 10px;
	font-weight: 700;
	color: #7b7068;
}

.fp-guide-banner__visual {
	position: relative;
	z-index: 1;
	min-height: 210px;
}

.fp-guide-banner__visual::before {
	content: '';
	position: absolute;
	inset: 18px 12px -38px 4px;
	border-radius: 52% 48% 0 0;
	background: rgba(255, 120, 44, .12);
	transform: rotate(-3deg);
}

.fp-guide-banner__visual img {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 96%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
}

/* The generic comparison row now sits further down the page. */
.fp-prods--lower {
	padding-top: 62px;
	padding-bottom: 62px;
}

@media (max-width: 980px) {
	.fp-featured__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fp-featured-card:last-child {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(220px, .75fr) minmax(0, 1fr);
	}

	.fp-featured-card:last-child .fp-featured-card__image {
		height: 100%;
		min-height: 220px;
	}

	.fp-guide-banner {
		grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
	}
}

@media (max-width: 760px) {
	.fp-featured {
		padding: 48px 0;
	}

	.fp-featured__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.fp-featured__products {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.fp-featured-card,
	.fp-featured-card:last-child {
		display: grid;
		grid-template-columns: minmax(145px, 34%) minmax(0, 1fr);
		grid-column: auto;
	}

	.fp-featured-card__image,
	.fp-featured-card:last-child .fp-featured-card__image {
		height: 100%;
		min-height: 210px;
		padding: 48px 16px 18px;
	}

	.fp-featured-card__body {
		padding: 18px;
	}

	.fp-featured-card__topline {
		right: auto;
		max-width: calc(34% - 24px);
		flex-wrap: wrap;
	}

	.fp-featured-card__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.fp-guide-banner {
		grid-template-columns: minmax(0, 1fr) minmax(190px, 38%);
		min-height: 225px;
	}

	.fp-guide-banner__content {
		padding: 26px 24px;
	}

	.fp-guide-banner__visual {
		min-height: 225px;
	}
}

@media (max-width: 560px) {
	.fp-featured {
		padding: 38px 0 42px;
	}

	.fp-featured__head {
		margin-bottom: 19px;
	}

	.fp-featured-card,
	.fp-featured-card:last-child {
		display: flex;
		grid-template-columns: none;
		border-radius: 17px;
	}

	.fp-featured-card__topline {
		right: 12px;
		max-width: none;
	}

	.fp-featured-card__image,
	.fp-featured-card:last-child .fp-featured-card__image {
		height: 180px;
		min-height: 0;
		padding: 42px 20px 16px;
	}

	.fp-featured-card__body h3 {
		font-size: 19px;
	}

	.fp-featured-card__product-name {
		min-height: 0;
	}

	.fp-featured-card__bottom {
		align-items: center;
		flex-direction: row;
	}

	.fp-guide-banner {
		display: block;
		min-height: 390px;
		margin-top: 20px;
		border-radius: 17px;
	}

	.fp-guide-banner__content {
		position: relative;
		z-index: 3;
		padding: 24px 22px 0;
	}

	.fp-guide-banner h3 {
		max-width: 92%;
		font-size: 24px;
	}

	.fp-guide-banner p {
		max-width: 92%;
		font-size: 12px;
	}

	.fp-guide-banner__visual {
		position: absolute;
		right: 6px;
		bottom: 0;
		width: 56%;
		height: 205px;
		min-height: 0;
	}

	.fp-guide-banner__visual img {
		width: 100%;
		object-position: center bottom;
	}

	.fp-guide-banner__actions {
		position: relative;
		z-index: 4;
		max-width: 48%;
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
		margin-top: 16px;
	}
}
