/* =========================================================================
   Macrolux homepage-blokken — Populaire toepassingen + Uitgelicht ("Lijkt op glas")
   ========================================================================= */

.ml-toep,
.ml-uit {
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	padding: 28px 0;
}

.ml-toep *,
.ml-uit * {
	box-sizing: border-box;
}

.ml-toep .ml-container,
.ml-uit .ml-container {
	width: min(1400px, 100% - 40px);
	margin-inline: auto;
}

.ml-toep a,
.ml-uit a {
	text-decoration: none;
	color: inherit;
}

/* =========================================================================
   POPULAIRE TOEPASSINGEN
   ========================================================================= */
.ml-toep {
	--ml-toep-accent: #ff6600;
}

.ml-toep__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 40px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.ml-toep__title {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: #1d1d1b;
}

.ml-toep__subtitle {
	margin: 0;
	max-width: 620px;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.5);
}

.ml-toep__controls {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

/* Prijs-switch */
.ml-switch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.ml-switch__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.ml-switch__title {
	font-size: 14px;
	color: #161715;
}

.ml-switch__sub {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.5);
}

.ml-switch__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ml-switch__track {
	position: relative;
	width: 52px;
	height: 30px;
	border-radius: 100px;
	background: rgba(0, 0, 0, 0.15);
	transition: background 0.2s ease;
	flex: 0 0 auto;
}

.ml-switch__knob {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 22px;
	height: 22px;
	border-radius: 100px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.ml-switch__input:checked + .ml-switch__track {
	background: var(--ml-toep-accent);
}

.ml-switch__input:checked + .ml-switch__track .ml-switch__knob {
	transform: translateX(22px);
}

/* Segment (Zakelijk / Particulier) met schuivende zwarte pil */
.ml-seg {
	position: relative;
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	padding: 5px;
	border: 1px solid #e9e9e9;
	border-radius: 30px;
	background: #fff;
}

/* De pil zelf: schuift van links (Zakelijk) naar rechts (Particulier). */
.ml-seg::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 5px;
	width: calc(50% - 5px);
	height: calc(100% - 10px);
	border-radius: 20px;
	background: #1d1d1b;
	transform: translateX(0);
	transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.ml-seg.is-incl::before {
	transform: translateX(100%);
}

.ml-seg__btn,
button.ml-seg__btn {
	position: relative;
	z-index: 1;
	padding: 8px 18px;
	border: 0;
	border-radius: 20px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #1d1d1b;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
}

.ml-seg__btn:hover,
.ml-seg__btn:focus,
button.ml-seg__btn:hover,
button.ml-seg__btn:focus {
	background: transparent;
	color: #1d1d1b;
	outline: none;
	box-shadow: none;
}

.ml-seg__btn.is-active,
.ml-seg__btn.is-active:hover,
.ml-seg__btn.is-active:focus,
button.ml-seg__btn.is-active {
	background: transparent;
	color: #fff;
}

/* Cards */
.ml-toep__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.ml-card__media {
	position: relative;
	display: block;
	aspect-ratio: 335 / 231;
	border-radius: 15px;
	background-size: cover;
	background-position: center;
	background-color: #eee;
	overflow: hidden;
	transition: filter 0.2s ease;
}

/* De foto als pseudo-element (erft de inline background-image), zodat hij
   op hover kan inzoomen zonder dat de kaart zelf groter wordt. */
.ml-card__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.ml-card:hover .ml-card__media::before {
	transform: scale(1.06);
}

.ml-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.12) 100%);
}

.ml-card:hover .ml-card__media {
	filter: brightness(0.97);
}

.ml-card__btn {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 100px;
	background: var(--ml-toep-accent);
	color: #fff;
	transition: transform 0.18s ease;
}

.ml-card:hover .ml-card__btn {
	transform: translateY(-2px) scale(1.06);
}

.ml-card__btn .ml-icon {
	width: 20px;
	height: 20px;
}

.ml-card__body {
	padding-top: 16px;
}

.ml-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #1d1d1b;
}

.ml-card__title a:hover {
	color: var(--ml-toep-accent);
}

.ml-card__sub {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.5);
}

/* =========================================================================
   UITGELICHT — "Lijkt op glas"
   ========================================================================= */
.ml-uit {
	--ml-uit-accent: #ff6600;
}

.ml-uit__card {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	background-size: cover;
	background-position: left center;
	background-color: #1d1d1b;
	color: #fff;
}

.ml-uit__overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(70% 120% at 100% 0%, rgba(144, 126, 112, 0.5) 0%, rgba(140, 120, 104, 0) 45%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.45) 35%, rgba(29, 29, 27, 0.97) 62%, #1d1d1b 100%);
}

.ml-uit__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	min-height: 486px;
}

.ml-uit__left {
	padding: 56px 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ml-uit__title {
	margin: 0 0 24px;
	max-width: 560px;
	font-size: clamp(28px, 3.2vw, 50px);
	font-weight: 700;
	line-height: 1.08;
	color: #fff;
}

.ml-uit__text {
	margin: 0 0 32px;
	max-width: 531px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.ml-uit__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ml-uit .ml-btn--primary {
	background: var(--ml-uit-accent);
	color: #fff;
}

.ml-uit .ml-btn--glass {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background 0.25s ease, border-color 0.25s ease;
}

.ml-uit .ml-btn--glass:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.38);
}

/* Tekst blijft wit op hover, ook als het thema linkkleuren aanpast. */
.ml-uit a.ml-btn:hover,
.ml-uit a.ml-btn:focus,
.ml-uit a.ml-btn:active {
	color: #fff;
}

.ml-uit__right {
	position: relative;
	padding: 56px 50px;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ml-uit__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.ml-uit__badge {
	display: inline-flex;
	align-items: center;
	height: 25px;
	padding: 0 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 12px;
	font-weight: 600;
}

.ml-uit__rating {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 25px;
	padding: 0 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.08);
}

.ml-stars {
	position: relative;
	display: inline-flex;
	width: max-content;
	line-height: 0;
}

.ml-stars__base,
.ml-stars__fill {
	display: inline-flex;
	gap: 4px;
}

.ml-stars__base {
	color: rgba(255, 255, 255, 0.3);
}

.ml-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
	color: #ffffff;
}

.ml-star {
	flex: 0 0 auto;
	display: block;
	width: 14px;
	height: 14px;
}

.ml-uit__reviews {
	position: relative;
	padding-left: 11px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
}

/* Dun scheidingslijntje tussen de sterren en het aantal reviews. */
.ml-uit__reviews::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 11px;
	background: rgba(255, 255, 255, 0.3);
}

.ml-uit__product-title {
	margin: 0 0 14px;
	max-width: 252px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.ml-uit__product-text {
	margin: 0 0 20px;
	max-width: 230px;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.5);
}

.ml-uit__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.ml-uit__amount {
	font-size: 22px;
	font-weight: 600;
	color: var(--ml-uit-accent);
}

.ml-uit__suffix {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.35);
}

.ml-uit__product-img {
	position: absolute;
	right: -10px;
	bottom: 64px;
	width: 240px;
	max-width: 55%;
	height: auto;
	pointer-events: none;
	filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}

.ml-uit__cart {
	position: absolute;
	right: 40px;
	bottom: 40px;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 100px;
	background: var(--ml-uit-accent);
	color: #fff;
	transition: transform 0.18s ease;
}

.ml-uit__cart:hover {
	transform: translateY(-2px) scale(1.06);
}

.ml-uit__cart .ml-icon {
	width: 20px;
	height: 20px;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
	.ml-toep__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 20px;
	}
}

@media (max-width: 900px) {
	.ml-uit__grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.ml-uit__right {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}
	/* Single column: productfoto niet meer rechtsonder zweven,
	   maar groter en gecentreerd onder de tekst. */
	.ml-uit__product-img {
		position: static;
		display: block;
		width: 340px;
		max-width: 82%;
		margin: 30px auto 0;
	}
	.ml-uit__product-title,
	.ml-uit__product-text {
		max-width: none;
	}
}

@media (max-width: 768px) {
	/* Gestapelde layout: overlay loopt van boven naar beneden donker uit,
	   zodat het productdeel (onderin) op de donkere achtergrond staat. */
	.ml-uit__overlay {
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.35) 0%,
			rgba(0, 0, 0, 0.45) 30%,
			rgba(29, 29, 27, 0.97) 60%,
			#1d1d1b 100%
		);
	}
}

@media (max-width: 560px) {
	.ml-toep__grid {
		grid-template-columns: 1fr;
	}
	.ml-toep__head {
		align-items: flex-start;
	}
	.ml-uit__left,
	.ml-uit__right {
		padding: 36px 28px;
	}
	.ml-uit__product-img {
		width: 260px;
		max-width: 85%;
		margin: 26px auto 0;
	}
	.ml-uit__right {
		padding-bottom: 36px;
	}
}

/* =========================================================================
   WAAROM POLYCARBONAAT
   ========================================================================= */
.ml-waarom {
	--ml-waarom-accent: #ff6600;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	padding: 90px 0 50px;
}

.ml-waarom * {
	box-sizing: border-box;
}

.ml-waarom .ml-container {
	width: min(1400px, 100% - 40px);
	margin-inline: auto;
}

.ml-waarom a {
	text-decoration: none;
	color: inherit;
}

.ml-waarom__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: start;
	gap: 24px 60px;
	margin-bottom: 48px;
}

.ml-waarom__title {
	flex: 0 1 595px;
	max-width: 595px;
	margin: 0;
	font-size: clamp(30px, 3.2vw, 42px);
	font-weight: 700;
	line-height: 1.19;
	color: #1d1d1b;
}

.ml-waarom__intro {
	flex: 0 1 684px;
	max-width: 684px;
	margin: 0;
	font-size: clamp(18px, 1.7vw, 24px);
	font-weight: 400;
	line-height: 1.35;
	color: rgba(29, 29, 27, 0.5);
}

.ml-waarom__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px;
	align-items: start;
}

.ml-wcard__media {
	display: block;
	width: 100%;
	aspect-ratio: 321 / 305;
	border-radius: 15px;
	background-size: cover;
	background-position: center;
	background-color: #eee;
	transition: filter 0.2s ease;
}

.ml-wcard--tall .ml-wcard__media {
	aspect-ratio: 306 / 393;
}

a.ml-wcard__media:hover {
	filter: brightness(0.97);
}

.ml-wcard__title {
	margin: 30px 0 20px;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	line-height: 1.3;
	color: #1d1d1b;
}

.ml-wcard__text {
	margin: 0;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(29, 29, 27, 0.5);
}

.ml-wcard__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ml-waarom-accent);
}

.ml-wcard__link .ml-icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 1024px) {
	.ml-waarom {
		padding: 60px 0 40px;
	}
	.ml-waarom__head {
		flex-direction: column;
		gap: 16px;
	}
	.ml-waarom__title,
	.ml-waarom__intro {
		flex: 1 1 auto;
		max-width: 100%;
	}
	.ml-waarom__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 24px;
	}
}

@media (max-width: 560px) {
	.ml-waarom__grid {
		grid-template-columns: 1fr;
	}
	.ml-wcard__media,
	.ml-wcard--tall .ml-wcard__media {
		aspect-ratio: 16 / 11;
	}
}
