/**
 * MON PORTÉ Product Editorial Details (PDP-B).
 * Strictly .mppd-* scoped. No !important. Mobile-first tiers:
 * base = desktop, max-width:850 tablet, max-width:549 mobile.
 * Responsive numerics arrive as --mppd-*-md/-sm custom properties.
 */

.mppd-details {
	background-color: var(--mppd-bg, #ffffff);
	color: var(--mppd-text, #1f1e1b);
	padding-top: var(--mppd-pad-y, 88px);
	padding-bottom: var(--mppd-pad-y, 88px);
}

.mppd-inner {
	margin-inline: auto;
	padding-inline: var(--mppd-pad-x, 24px);
}

.mppd-w-contained .mppd-inner {
	max-width: 1080px;
}

.mppd-w-wide .mppd-inner {
	max-width: 1320px;
}

.mppd-w-full .mppd-inner {
	max-width: 1600px;
}

/* ---- Header ---- */

.mppd-head {
	margin-bottom: var(--mppd-lower-gap, 32px);
}

.mppd-align-center .mppd-head {
	text-align: center;
}

.mppd-align-right .mppd-head {
	text-align: right;
}

.mppd-align-left .mppd-head {
	text-align: left;
}

.mppd-eyebrow {
	margin: 0 0 12px;
	font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--mppd-muted, #646049);
}

.mppd-title {
	margin: 0;
	font-family: var(--mppd-head-font, "Playfair Display", Georgia, serif);
	font-size: var(--mppd-title-size, 32px);
	font-weight: 500;
	line-height: 1.2;
	text-wrap: balance;
}

/* ---- Features ---- */

.mppd-features {
	display: grid;
	gap: var(--mppd-feat-gap, 24px);
}

.mppd-feat-3 .mppd-features {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mppd-feat-2 .mppd-features {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mppd-feat-1 .mppd-features {
	grid-template-columns: minmax(0, 640px);
	justify-content: center;
}

.mppd-feature {
	margin: 0;
	min-width: 0;
}

.mppd-feature-media {
	margin: 0 0 16px;
	overflow: hidden;
	border-radius: 2px;
	aspect-ratio: var(--mppd-ratio, 4 / 3);
	background-color: color-mix(in srgb, var(--mppd-muted, #646049) 8%, transparent);
}

.mppd-feature-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.mppd-feature:hover .mppd-feature-img {
	transform: scale(1.03);
}

.mppd-feature-title {
	margin: 0 0 8px;
	font-family: var(--mppd-head-font, "Playfair Display", Georgia, serif);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.mppd-ftitle-sans .mppd-feature-title {
	font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.mppd-no-copy .mppd-feature-text {
	display: none;
}

/* ---- Feature layouts (V1): three-col default, asymmetric, horizontal ---- */

.mppd-layout-asymmetric.mppd-feat-3 .mppd-feature:nth-child(2) {
	transform: translateY(32px);
}

.mppd-layout-horizontal .mppd-features {
	grid-template-columns: minmax(0, 1fr);
	max-width: 960px;
	margin-inline: auto;
}

.mppd-layout-horizontal .mppd-feature {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 32px;
	align-items: center;
}

.mppd-layout-horizontal .mppd-feature:nth-child(even) .mppd-feature-media {
	order: 2;
}

.mppd-layout-horizontal .mppd-feature-media {
	margin-bottom: 0;
}

.mppd-feature-text {
	font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--mppd-muted, #646049);
}

.mppd-feature-text p {
	margin: 0 0 0.75em;
}

.mppd-feature-text p:last-child {
	margin-bottom: 0;
}

/* ---- Lower composition ---- */

.mppd-lower {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: var(--mppd-lower-gap, 32px);
	margin-top: var(--mppd-lower-gap, 32px);
	align-items: start;
}

.mppd-lower--solo {
	grid-template-columns: minmax(0, 800px);
	justify-content: center;
}

/* ---- Material ---- */

.mppd-material {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: var(--mppd-feat-gap, 24px);
	align-items: center;
}

.mppd-mat-left .mppd-material-copy {
	order: 2;
}

.mppd-mat-left .mppd-material-media {
	order: 1;
}

.mppd-material-title {
	margin: 0 0 12px;
	font-family: var(--mppd-head-font, "Playfair Display", Georgia, serif);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.25;
}

.mppd-material-text {
	font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mppd-muted, #646049);
}

.mppd-material-text p {
	margin: 0 0 0.75em;
}

.mppd-material-text p:last-child {
	margin-bottom: 0;
}

.mppd-material-media {
	margin: 0;
	overflow: hidden;
	border-radius: 2px;
	aspect-ratio: var(--mppd-mat-ratio, 4 / 3);
	background-color: color-mix(in srgb, var(--mppd-muted, #646049) 8%, transparent);
}

.mppd-material-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mppd-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mppd-accent, #60373d);
}

.mppd-cta:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mppd-cta-arrow {
	transition: transform 0.2s ease;
}

.mppd-cta:hover .mppd-cta-arrow {
	transform: translateX(4px);
}

/* ---- Dimensions ---- */

.mppd-dimensions {
	margin: 0;
	padding: 4px 0 0 32px;
	border: 0;
	border-left: 1px solid color-mix(in srgb, var(--mppd-muted, #646049) 25%, transparent);
	border-radius: 0;
	align-self: stretch;
}

.mppd-dimensions-title {
	margin: 0 0 12px;
	font-family: var(--mppd-head-font, "Playfair Display", Georgia, serif);
	font-size: 20px;
	font-weight: 500;
}

.mppd-dim-values {
	margin: 0 0 8px;
	font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.mppd-dim-cap {
	margin: 0;
	font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	color: var(--mppd-muted, #646049);
}

.mppd-dim-media {
	margin: 20px 0 0;
}

.mppd-dim-top .mppd-dim-media {
	margin: 0 0 16px;
	order: -1;
}

.mppd-dimensions:has(.mppd-dim-media) {
	display: flex;
	flex-direction: column;
}

.mppd-dim-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	background-color: transparent;
}

/* ---- Placeholder (Builder only) ---- */

.mppd-placeholder {
	padding: 24px;
	border: 1px dashed color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 8px;
	font-size: 13.5px;
	text-align: center;
	opacity: 0.75;
}

/* ---- Tablet: max-width 849px ---- */

@media (max-width: 849px) {
	.mppd-details {
		padding-top: var(--mppd-pad-y-md, 72px);
		padding-bottom: var(--mppd-pad-y-md, 72px);
	}

	.mppd-inner {
		padding-inline: var(--mppd-pad-x-md, 24px);
	}

	.mppd-head {
		margin-bottom: var(--mppd-lower-gap-md, 32px);
	}

	.mppd-title {
		font-size: var(--mppd-title-size-md, 28px);
	}

	.mppd-features {
		gap: var(--mppd-feat-gap-md, 20px);
	}

	/* Three cards: 2-col grid, third spans full width, centered. */
	.mppd-feat-3 .mppd-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mppd-feat-3 .mppd-feature:last-child {
		grid-column: 1 / -1;
		max-width: 420px;
		margin-inline: auto;
		width: 100%;
	}

	.mppd-lower {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--mppd-lower-gap-md, 32px);
		margin-top: var(--mppd-lower-gap-md, 32px);
	}

	.mppd-dimensions {
		border-left: 0;
		border-top: 1px solid color-mix(in srgb, var(--mppd-muted, #646049) 25%, transparent);
		padding: 28px 0 0;
		max-width: 560px;
	}

	.mppd-material {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Editorial layouts collapse calmly below desktop. */
	.mppd-layout-asymmetric.mppd-feat-3 .mppd-feature:nth-child(2) {
		transform: none;
	}

	.mppd-layout-horizontal .mppd-feature {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.mppd-layout-horizontal .mppd-feature:nth-child(even) .mppd-feature-media {
		order: 0;
	}
}

/* ---- Mobile: max-width 549px ---- */

@media (max-width: 549px) {
	.mppd-details {
		padding-top: var(--mppd-pad-y-sm, 56px);
		padding-bottom: var(--mppd-pad-y-sm, 56px);
	}

	.mppd-inner {
		padding-inline: var(--mppd-pad-x-sm, 20px);
	}

	.mppd-head {
		margin-bottom: var(--mppd-lower-gap-sm, 28px);
	}

	.mppd-title {
		font-size: var(--mppd-title-size-sm, 26px);
	}

	/* Horizontal scroll-snap rail (default mobile presentation). */
	.mppd-mob-scroll .mppd-features {
		display: flex;
		gap: var(--mppd-rail-gap-sm, var(--mppd-feat-gap-sm, 16px));
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--mppd-pad-x-sm, 20px);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: color-mix(in srgb, var(--mppd-muted, #646049) 45%, transparent) transparent;
		padding-bottom: 8px;
		padding-right: var(--mppd-peek, 0vw);
	}

	.mppd-mob-scroll .mppd-features::-webkit-scrollbar {
		height: 6px;
	}

	.mppd-mob-scroll .mppd-features::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background-color: color-mix(in srgb, var(--mppd-muted, #646049) 45%, transparent);
	}

	.mppd-mob-scroll .mppd-features::-webkit-scrollbar-track {
		background-color: transparent;
	}

	.mppd-mob-scroll.mppd-feat-3 .mppd-features {
		grid-template-columns: none;
	}

	.mppd-mob-scroll .mppd-feature {
		flex: 0 0 80vw;
		max-width: 360px;
		scroll-snap-align: start;
	}

	.mppd-mob-scroll.mppd-feat-3 .mppd-feature:last-child {
		grid-column: auto;
		max-width: 360px;
		margin-inline: 0;
	}

	.mppd-mob-stack .mppd-features {
		grid-template-columns: minmax(0, 1fr);
	}

	.mppd-mob-stack.mppd-feat-3 .mppd-feature:last-child {
		grid-column: auto;
		max-width: none;
	}

	.mppd-lower {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--mppd-lower-gap-sm, 28px);
		margin-top: var(--mppd-lower-gap-sm, 28px);
	}

	.mppd-feature-title {
		font-size: 18px;
	}

	.mppd-material-title {
		font-size: 22px;
	}
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
	.mppd-feature-img,
	.mppd-cta-arrow {
		transition: none;
	}

	.mppd-feature:hover .mppd-feature-img,
	.mppd-cta:hover .mppd-cta-arrow {
		transform: none;
	}

	.mppd-mob-scroll .mppd-features {
		scroll-snap-type: x proximity;
		scroll-behavior: auto;
	}
}
