/* EH Quick View — refonte premium */

.eh-qv {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.75rem, 2vw, 1.5rem);
	pointer-events: none;
}

.eh-qv[hidden] {
	display: none !important;
}

.eh-qv.is-open {
	pointer-events: auto;
}

.eh-qv__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.eh-qv.is-open .eh-qv__backdrop {
	opacity: 1;
}

.eh-qv__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1040px, 100%);
	max-height: min(92vh, 820px);
	background: #fff;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.2);
	transform: translateY(16px) scale(0.98);
	opacity: 0;
	transition:
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.35s ease;
	overflow: hidden;
}

.eh-qv.is-open .eh-qv__panel {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.eh-qv__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1rem 0.875rem 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

.eh-qv__eyebrow {
	margin: 0;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.42);
}

.eh-qv__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.375rem;
	height: 2.375rem;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	color: #000;
	cursor: pointer;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.eh-qv__close:hover,
.eh-qv__close:focus {
	border-color: rgba(0, 0, 0, 0.28);
	opacity: 0.75;
}

.eh-qv__close svg {
	width: 0.9375rem;
	height: 0.9375rem;
}

.eh-qv__viewport {
	position: relative;
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}

.eh-qv__loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 320px;
	padding: 2rem;
}

.eh-qv__loader[hidden] {
	display: none !important;
}

.eh-qv__loader-bar {
	display: block;
	width: 3rem;
	height: 1px;
	background: rgba(0, 0, 0, 0.12);
	position: relative;
	overflow: hidden;
}

.eh-qv__loader-bar::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	transform: translateX(-100%);
	animation: eh-qv-load 1.1s ease-in-out infinite;
}

@keyframes eh-qv-load {
	0% { transform: translateX(-100%); }
	50% { transform: translateX(0); }
	100% { transform: translateX(100%); }
}

.eh-qv__loader p {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.45);
}

.eh-qv__content {
	padding: clamp(1rem, 2.5vw, 1.75rem);
}

/* ── Produit ── */
.eh-qv__product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: start;
}

.eh-qv__gallery {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem;
	align-items: stretch;
	position: sticky;
	top: 0;
}

.eh-qv__gallery:not(:has(.eh-qv__thumbs--vertical)) {
	grid-template-columns: minmax(0, 1fr);
}

.eh-qv__thumbs--vertical {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-height: min(72vh, 640px);
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.125rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.eh-qv__thumbs--vertical::-webkit-scrollbar {
	width: 3px;
}

.eh-qv__thumbs--vertical::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.18);
}

.eh-qv__stage {
	position: relative;
	aspect-ratio: 4 / 5;
	min-height: 0;
	background: #f4f4f4;
	overflow: hidden;
}

.eh-qv__stage-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.eh-qv__stage-img.is-active {
	opacity: 1;
}

.eh-qv__stage-img[hidden] {
	display: none !important;
}

.eh-qv__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	padding: 0.3rem 0.55rem;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: #fff;
	color: #000;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.eh-qv__badge--stock {
	left: auto;
	right: 0.75rem;
	color: rgba(0, 0, 0, 0.55);
}

.eh-qv__thumbs {
	display: flex;
	gap: 0.5rem;
}

.eh-qv__thumb {
	display: block;
	width: 3.75rem;
	height: 4.75rem;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	flex-shrink: 0;
	transition:
		border-color 0.2s ease,
		opacity 0.2s ease,
		box-shadow 0.2s ease;
}

.eh-qv__thumb.is-active {
	border-color: #000;
	box-shadow: inset 0 0 0 1px #000;
}

.eh-qv__thumb:hover,
.eh-qv__thumb:focus {
	border-color: rgba(0, 0, 0, 0.35);
	opacity: 0.92;
}

.eh-qv__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.eh-qv__details {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.eh-qv__meta {
	margin: 0 0 0.5rem;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.42) !important;
}

.eh-qv__title {
	margin: 0 0 0.625rem !important;
	font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
	font-weight: 600 !important;
	letter-spacing: 0.03em !important;
	line-height: 1.3 !important;
}

.eh-qv__title a {
	color: #000 !important;
	text-decoration: none !important;
	transition: opacity 0.2s ease;
}

.eh-qv__title a:hover,
.eh-qv__title a:focus {
	opacity: 0.6;
	color: #000 !important;
}

.eh-qv__price {
	margin-bottom: 0.875rem;
	font-size: 0.9375rem;
	color: rgba(0, 0, 0, 0.72) !important;
}

.eh-qv__price .amount {
	font-size: inherit;
	color: inherit !important;
}

.eh-qv__excerpt {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	line-height: 1.72;
	color: rgba(0, 0, 0, 0.58) !important;
}

.eh-qv__swatches-hint {
	margin: 0 0 1.125rem;
	font-size: 0.75rem;
}

.eh-qv__swatches-hint a {
	color: rgba(0, 0, 0, 0.55) !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	padding-bottom: 1px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.eh-qv__swatches-hint a:hover,
.eh-qv__swatches-hint a:focus {
	color: #000 !important;
	border-color: #000;
}

.eh-qv__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.eh-qv__atc {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.5rem !important;
	margin: 0 !important;
	border: 1px solid #000 !important;
	border-radius: 0 !important;
	background: #000 !important;
	color: #fff !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	transition: opacity 0.2s ease;
}

.eh-qv__atc:hover,
.eh-qv__atc:focus {
	opacity: 0.82;
	color: #fff !important;
}

.eh-qv__atc--ghost {
	background: #fff !important;
	color: #000 !important;
}

.eh-qv__atc--ghost:hover,
.eh-qv__atc--ghost:focus {
	color: #000 !important;
}

.eh-qv__wishlist {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.75rem !important;
	height: 2.75rem !important;
	padding: 0 !important;
	border: 1px solid rgba(0, 0, 0, 0.12) !important;
	background: #fff !important;
	color: #000 !important;
	text-decoration: none !important;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.eh-qv__wishlist::before,
.eh-qv__wishlist::after {
	display: none !important;
	content: none !important;
}

.eh-qv__wishlist:hover,
.eh-qv__wishlist:focus {
	border-color: rgba(0, 0, 0, 0.28) !important;
	opacity: 0.8;
}

.eh-qv__wishlist svg {
	width: 0.9375rem;
	height: 0.9375rem;
}

.eh-qv__wishlist--active {
	color: #000 !important;
}

.eh-qv__accordions {
	margin: 0 0 1.25rem;
	padding: 0;
}

.eh-qv__accordions .eh-pp-accordions {
	margin-top: 0;
}

.eh-qv__accordions .eh-pp-accordion__inner table.shop_attributes {
	margin: 0;
	border: none;
	width: 100%;
}

.eh-qv__accordions .eh-pp-accordion__inner table.shop_attributes th,
.eh-qv__accordions .eh-pp-accordion__inner table.shop_attributes td {
	border: none !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
	font-size: 0.875rem;
	line-height: 1.65;
	color: rgba(0, 0, 0, 0.58) !important;
	padding: 0.55rem 0 !important;
	background: transparent !important;
}

.eh-qv__accordions .eh-pp-accordion__inner table.shop_attributes th {
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.42) !important;
	width: 40%;
}

.eh-qv__accordions .eh-pp-accordion__inner p,
.eh-qv__accordions .eh-pp-accordion__inner li {
	color: rgba(0, 0, 0, 0.58) !important;
}

.eh-qv__footer {
	padding-top: 0.25rem;
}

.eh-qv__link-all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: rgba(0, 0, 0, 0.55) !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	padding-bottom: 1px;
	width: fit-content;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.eh-qv__link-all:hover,
.eh-qv__link-all:focus {
	color: #000 !important;
	border-color: #000;
}

.eh-qv__link-all svg {
	width: 0.75rem;
	height: 0.75rem;
}

body.eh-qv-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.eh-qv__panel {
		max-height: 94vh;
	}

	.eh-qv__product {
		grid-template-columns: 1fr;
	}

	.eh-qv__gallery {
		position: static;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		gap: 0.625rem;
	}

	.eh-qv__stage {
		order: 1;
		aspect-ratio: 1 / 1;
	}

	.eh-qv__thumbs--vertical {
		order: 2;
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-right: 0;
		padding-bottom: 0.125rem;
		scrollbar-width: none;
	}

	.eh-qv__thumbs--vertical::-webkit-scrollbar {
		display: none;
	}

	.eh-qv__thumb {
		width: 3.25rem;
		height: 4rem;
	}

	.eh-qv__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.eh-qv__atc {
		width: 100%;
	}

	.eh-qv__wishlist {
		align-self: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eh-qv__panel,
	.eh-qv__backdrop,
	.eh-qv__stage-img,
	.eh-qv__loader-bar::after {
		transition: none;
		animation: none;
	}
}
