.ffw-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 48px;
	align-items: start;
}

.ffw-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 42px 24px;
	padding-bottom: 120px;
}

.ffw-card {
	position: relative;
	min-width: 0;
	overflow: visible;
}

.ffw-image {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100%;
	min-height: 0;
	background: transparent;
}

.ffw-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 720px;
	object-fit: contain;
	object-position: center;
	transition: transform 250ms ease;
}

.ffw-image:hover img {
	transform: scale(1.02);
}

.ffw-card-content {
	position: relative;
	z-index: 2;
	padding-top: 8px;
	margin-top: 0;
}

.ffw-title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 500;
	font-style: italic;
	line-height: 1.2;
}

.ffw-title a {
	color: inherit;
	text-decoration: none;
}

.ffw-meta {
	margin: 0 0 15px;
	font-size: 13px;
	line-height: 1.45;
	opacity: .65;
}

.ffw-editions {
	display: grid;
	gap: 8px;
}

.ffw-edition {
	position: relative;
	z-index: 3;
	pointer-events: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 38px;
	gap: 3px 12px;
	align-items: center;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.ffw-edition:hover,
.ffw-edition.is-selected {
	background: #111;
	color: #fff;
}

.ffw-edition.is-loading {
	opacity: .55;
	cursor: wait;
}

.ffw-edition-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
}

.ffw-edition-price {
	font-size: 13px;
	white-space: nowrap;
}

.ffw-status {
	grid-column: 1 / -1;
	font-size: 10px;
	letter-spacing: .08em;
}

.ffw-sidebar {
	position: sticky;
	top: 30px;
}

.ffw-summary {
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, .22);
	background: #fff;
}

.ffw-summary h3 {
	margin: 0 0 22px;
	font-size: 17px;
	letter-spacing: .08em;
}

.ffw-count {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.ffw-count strong {
	font-size: 34px;
	line-height: 1;
}

.ffw-progress {
	height: 4px;
	margin: 18px 0;
	overflow: hidden;
	background: rgba(0, 0, 0, .12);
}

.ffw-progress span {
	display: block;
	height: 100%;
	background: currentColor;
	transition: width 250ms ease;
}

.ffw-message {
	margin: 0 0 15px;
	font-size: 14px;
	line-height: 1.5;
}

.ffw-discount {
	margin: 0 0 17px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ffw-total {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid rgba(0, 0, 0, .15);
}

.ffw-actions {
	display: grid;
	gap: 8px;
}

.ffw-actions a {
	display: block;
	padding: 12px;
	border: 1px solid currentColor;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.ffw-actions .ffw-checkout {
	background: #111;
	color: #fff;
}

@media (max-width: 1024px) {
	.ffw-layout {
		grid-template-columns: 1fr;
	}

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

	.ffw-sidebar {
		position: sticky;
		top: 12px;
		z-index: 40;
		order: -1;
	}
}

@media (max-width: 620px) {
	.ffw-layout {
		display: block;
		padding-bottom: 235px;
	}

	.ffw-grid {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-bottom: 40px;
	}

	.ffw-sidebar {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		top: auto;
		z-index: 99999;
		width: auto;
		max-width: none;
		margin: 0;
		max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .18));
	}

	.ffw-summary {
		padding: 16px;
		max-height: none;
		overflow: visible;
	}

	.ffw-summary h3 {
		margin-bottom: 10px;
		font-size: 14px;
	}

	.ffw-count strong {
		font-size: 26px;
	}

	.ffw-progress {
		margin: 10px 0;
	}

	.ffw-message {
		margin-bottom: 8px;
		font-size: 12px;
	}

	.ffw-discount {
		margin-bottom: 8px;
		font-size: 10px;
	}

	.ffw-total {
		padding: 8px 0;
	}

	.ffw-actions {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.ffw-actions a {
		padding: 10px 8px;
		font-size: 13px;
	}
}


.ffw-edition-action {
	display: grid;
	place-items: center;
	align-self: stretch;
	margin: -11px -12px -11px 0;
	border-left: 1px solid currentColor;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.ffw-status {
	display: none;
}


/* v1.2: protection contre les superpositions de thème/Elementor en bas de grille */
.ffw-card:last-child,
.ffw-card:last-child .ffw-card-content,
.ffw-card:last-child .ffw-editions {
	position: relative;
	z-index: 5;
}

.ffw-card:last-child {
	margin-bottom: 40px;
}

@media (max-width: 620px) {

}


@media (max-width: 620px) {
	.ffw-summary h3 {
		padding-top: 2px;
		line-height: 1.2;
	}

	.ffw-sidebar::-webkit-scrollbar {
		width: 4px;
	}
}






@media (max-width: 620px) {
	.ffw-title,
	.ffw-title a {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
	}
}






/* v1.7 — titres compacts sur ordinateur, sans chevauchement */
@media (min-width: 621px) {
	.ffw-card .ffw-title,
	.ffw-card .ffw-title a {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 10px !important;
		font-size: 11px !important;
		font-weight: 500 !important;
		font-style: italic !important;
		line-height: 1.15 !important;
		letter-spacing: -0.01em !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: clip !important;
	}
}

/* Sur téléphone, le titre reste confortable et peut aller à la ligne. */
@media (max-width: 620px) {
	.ffw-card .ffw-title,
	.ffw-card .ffw-title a {
		font-size: 14px !important;
		white-space: normal !important;
		overflow: visible !important;
	}
}





/* v1.9.1 — espacement sûr entre l’image et le titre */
.ffw-card-content {
	padding-top: 8px !important;
	margin-top: 0 !important;
}

.ffw-title {
	margin-top: 0 !important;
}
