/* EH Product Experience : mise en page ample, teintes, barre d'achat */

.eh-px {
	--eh-px-tint: #f4f1ec;
	--eh-px-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.eh-px #page_wrapper,
.eh-px .product_layout_classic {
	transition: background-color 0.7s ease;
}

.eh-px.eh-px-tinted #page_wrapper {
	background-color: color-mix(in srgb, var(--eh-px-tint) 7%, #fff);
}

/* ── Mise en page desktop ── */
@media (min-width: 1025px) {
	.eh-px .product_layout_classic div.product > .row > .columns {
		width: 100% !important;
		max-width: 1440px !important;
		margin: 0 auto !important;
		padding: 0 clamp(1.5rem, 4vw, 4rem) !important;
		float: none !important;
	}

	.eh-px .product_content_wrapper > .row {
		display: grid !important;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		gap: clamp(2.5rem, 5vw, 5.5rem);
		align-items: start;
		max-width: none !important;
		margin: 0 !important;
	}

	.eh-px .product_content_wrapper > .row::before,
	.eh-px .product_content_wrapper > .row::after {
		display: none !important;
	}

	.eh-px .product_content_wrapper > .row > .columns {
		width: auto !important;
		max-width: none !important;
		padding: 0 !important;
		float: none !important;
		left: auto !important;
	}

	.eh-px .product_content_wrapper > .row > .large-1 {
		display: none !important;
	}

	.eh-px .product_content_wrapper > .row > .columns:last-child {
		position: sticky;
		top: 104px;
	}

	.admin-bar.eh-px .product_content_wrapper > .row > .columns:last-child {
		top: 136px;
	}

	/* Galerie */
	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery {
		display: grid !important;
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 1rem;
		width: 100% !important;
		float: none !important;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery .flex-viewport {
		grid-column: 2;
		grid-row: 1;
		width: 100% !important;
		max-width: none !important;
		background: color-mix(in srgb, var(--eh-px-tint) 10%, #f6f4f1);
		transition: background-color 0.7s ease;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery ol.flex-control-thumbs {
		grid-column: 1;
		grid-row: 1;
		display: flex !important;
		flex-direction: column;
		gap: 0.625rem;
		width: 76px !important;
		max-height: min(calc(100vh - 140px), 900px);
		margin: 0 !important;
		padding: 0 !important;
		overflow-y: auto;
		scrollbar-width: none;
		position: static !important;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery ol.flex-control-thumbs::-webkit-scrollbar {
		display: none;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery ol.flex-control-thumbs li {
		flex: 0 0 auto;
		width: 76px !important;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery ol.flex-control-thumbs li img {
		display: block;
		width: 76px !important;
		height: 95px !important;
		object-fit: cover;
		opacity: 0.55 !important;
		transition: opacity 0.3s ease, box-shadow 0.3s ease;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery ol.flex-control-thumbs li img:hover,
	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active {
		opacity: 1 !important;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active {
		box-shadow: 0 0 0 1px #111;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery .flex-viewport img {
		max-width: 100% !important;
		padding-left: 0 !important;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery__image img {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 4 / 5;
		object-fit: cover;
	}

	.eh-px .product_layout_classic .product-images-wrapper .woocommerce-product-gallery__wrapper {
		margin: 0 !important;
	}
}

.eh-px .product_navigation {
	display: none !important;
}

/* ── Résumé ── */
.eh-px .product_infos .product_title {
	font-size: clamp(2.25rem, 3.6vw, 3.5rem) !important;
	font-weight: 300 !important;
	line-height: 1.02 !important;
	letter-spacing: -0.03em !important;
}

.eh-px .product_infos p.price {
	margin-top: 0.75rem !important;
	font-size: 1.25rem !important;
	font-weight: 400 !important;
}

/* Pastilles rondes et nommées */
.eh-px .eh-cs-variations table.variations tr:has(.eh-cs-swatches-wrapper) th.label label {
	display: flex !important;
	align-items: baseline;
	gap: 0.6rem;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: rgba(0, 0, 0, 0.5) !important;
}

.eh-px .eh-px-colorname {
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: -0.01em;
	text-transform: none;
	color: #111;
	transition: opacity 0.2s ease;
}

.eh-px .eh-px-colorname.is-preview {
	opacity: 0.55;
}

.eh-px .eh-cs-selected-name {
	display: none !important;
}

.eh-px .eh-cs-swatches {
	gap: 0.7rem !important;
	padding: 0.35rem 0.2rem;
}

.eh-px .eh-cs-swatch {
	flex: 0 0 2.125rem !important;
	width: 2.125rem !important;
	height: 2.125rem !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 0 0 #fff, 0 0 0 0 #111 !important;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.eh-px .eh-cs-swatch:hover {
	transform: scale(1.12) !important;
}

.eh-px .eh-cs-swatch__ring {
	display: none !important;
}

.eh-px .eh-cs-swatch--selected {
	transform: scale(1.06);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 0 3px #fff, 0 0 0 4px #111 !important;
}

.eh-px .eh-cs-swatches-wrapper.eh-px-nudge .eh-cs-swatch {
	animation: eh-px-nudge 0.7s var(--eh-px-ease);
	animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes eh-px-nudge {
	40% {
		transform: translateY(-6px) scale(1.12);
	}
}

.eh-px table.variations tr {
	position: relative;
}

.eh-px table.variations .reset_variations {
	position: absolute;
	top: 0.5rem;
	right: 0;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 22px;
}

.eh-px .reset_variations {
	font-size: 0.75rem !important;
	letter-spacing: 0.04em;
	color: rgba(0, 0, 0, 0.55) !important;
	text-decoration: underline !important;
}

/* ── Nuancier ── */
.eh-px-palette {
	max-width: 1440px;
	margin: clamp(4rem, 8vw, 7rem) auto 0;
	padding: 0 clamp(1.25rem, 4vw, 4rem);
}

.eh-px-palette__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1rem 3rem;
	align-items: end;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.eh-px-eyebrow {
	grid-column: 1 / -1;
	margin: 0 !important;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.5);
}

.eh-px-palette__title {
	margin: 0 !important;
	font-size: clamp(1.875rem, 3.4vw, 3rem) !important;
	font-weight: 300 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.03em !important;
	text-transform: none !important;
}

.eh-px-palette__lead {
	max-width: 32rem;
	margin: 0 !important;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.65);
}

.eh-px-palette__rail {
	display: flex;
	scroll-padding-inline: clamp(1.25rem, 4vw, 4rem);
	gap: clamp(0.75rem, 1.4vw, 1.25rem);
	margin: 0 calc(clamp(1.25rem, 4vw, 4rem) * -1) !important;
	padding: 0.5rem clamp(1.25rem, 4vw, 4rem) 1.25rem !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}

.eh-px-palette__rail::-webkit-scrollbar {
	display: none;
}

.eh-px-palette__rail > li {
	flex: 0 0 clamp(200px, 21vw, 300px);
	margin: 0 !important;
	scroll-snap-align: start;
}

.eh-px .eh-px-tile {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	text-align: left;
}

.eh-px .eh-px-tile:not(.eh-px-tile--solid) {
	background: #f4f4f4 !important;
}

.eh-px-tile img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform 1s var(--eh-px-ease);
}

.eh-px-tile:hover img,
.eh-px-tile:focus-visible img {
	transform: scale(1.05);
}

.eh-px-tile__cap {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.8rem 0.45rem 0.5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #111;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: transform 0.4s var(--eh-px-ease);
}

.eh-px-tile__cap i {
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.eh-px-tile.is-active {
	outline: 1px solid #111;
	outline-offset: 4px;
}

.eh-px-tile.is-active .eh-px-tile__cap {
	background: #111;
	color: #fff;
}

/* ── Barre d'achat ── */
.eh-px-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	padding: 0 clamp(0.75rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.25rem);
	pointer-events: none;
	transform: translateY(120%);
	transition: transform 0.5s var(--eh-px-ease);
}

.eh-px-bar.is-on {
	transform: none;
}

.eh-px-bar__in {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 880px;
	margin: 0 auto;
	padding: 0.6rem 0.6rem 0.6rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	backdrop-filter: saturate(1.4) blur(16px);
	box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
}

.eh-px-bar__thumb img {
	display: block;
	width: 2.75rem !important;
	height: 2.75rem !important;
	border-radius: 50%;
	object-fit: cover;
}

.eh-px-bar__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.eh-px-bar__info strong {
	overflow: hidden;
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.eh-px-bar__color {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	color: rgba(0, 0, 0, 0.6);
}

.eh-px-bar__color i {
	display: none;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.eh-px-bar.has-color .eh-px-bar__color i {
	display: inline-block;
}

.eh-px-bar__price {
	font-size: 0.9375rem;
	white-space: nowrap;
}

.eh-px-bar__price del {
	opacity: 0.45;
}

.eh-px-bar .eh-px-bar__btn {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0.95rem 1.5rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #111 !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 0.04em !important;
	text-transform: none !important;
	white-space: nowrap;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease !important;
}

.eh-px-bar .eh-px-bar__btn:hover {
	background: #333 !important;
	transform: translateY(-1px);
}

/* ── Mobile ── */
@media (max-width: 1024px) {
	.eh-px .woocommerce-product-gallery .flex-viewport,
	.eh-px .eh-pg-carousel .flex-viewport {
		background: color-mix(in srgb, var(--eh-px-tint) 10%, #f6f4f1);
	}
}

@media (max-width: 767px) {
	.eh-px-palette__head {
		grid-template-columns: 1fr;
	}

	.eh-px-palette__rail > li {
		flex-basis: 62vw;
	}

	.eh-px-bar {
		padding: 0 0.5rem 0.5rem;
	}

	.eh-px-bar__in {
		gap: 0.65rem;
		padding: 0.45rem 0.45rem 0.45rem 0.5rem;
	}

	.eh-px-bar__thumb img {
		width: 2.5rem !important;
		height: 2.5rem !important;
	}

	.eh-px-bar__price {
		display: none;
	}

	.eh-px-bar .eh-px-bar__btn {
		padding: 0.85rem 1.1rem !important;
		font-size: 0.75rem !important;
	}

	.eh-px .eh-cs-swatch {
		flex-basis: 2.25rem !important;
		width: 2.25rem !important;
		height: 2.25rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eh-px-bar,
	.eh-px-tile img,
	.eh-px .eh-cs-swatch {
		transition: none !important;
		animation: none !important;
	}
}
