/* EH Product UI — fiche produit */

/* ── Barre d'achat premium : quantité + panier + wishlist ── */
.product_infos {
	--eh-cta-h: 52px;
	--eh-cta-gap: 10px;
	--eh-cta-gap-desktop: 14px;
	--eh-cta-border: rgba(0, 0, 0, 0.12);
	--eh-cta-accent: #c9a96e;
	--eh-cta-radius: 2px;
	--eh-cta-bg: #000;
	--eh-cta-bg-hover: #1a1a1a;
	--eh-cta-qty-btn: 2.75rem;
	--eh-cta-qty-input: 2.75rem;
	--eh-cta-qty-w: calc(var(--eh-cta-qty-btn) * 2 + var(--eh-cta-qty-input));
}

.product_infos form.cart .eh-cta,
.product_infos .woocommerce-variation-add-to-cart.eh-cta,
.product_infos .eh-cta {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr) max-content;
	align-items: stretch;
	gap: var(--eh-cta-gap);
	width: 100%;
	margin: 1.5rem 0 0;
	clear: both;
}

.product_infos .eh-cta.eh-cta--no-qty {
	grid-template-columns: minmax(0, 1fr) max-content;
}

.product_infos .eh-cta.eh-cta--no-wl {
	grid-template-columns: max-content minmax(0, 1fr);
}

.product_infos .eh-cta.eh-cta--no-qty.eh-cta--no-wl {
	grid-template-columns: 1fr;
}

.product_infos .eh-cta__qty,
.product_infos .eh-cta__cart,
.product_infos .eh-cta__wishlist {
	display: flex;
	align-items: stretch;
	min-height: var(--eh-cta-h);
}

.product_infos .eh-cta__qty {
	flex: 0 0 auto;
	width: var(--eh-cta-qty-w);
	max-width: var(--eh-cta-qty-w);
	justify-self: start;
}

.product_infos .eh-cta__qty:empty {
	display: none;
	width: 0;
	max-width: 0;
}

.product_infos .eh-cta__qty .quantity.hidden {
	display: none !important;
}

.product_infos .eh-cta:has(.eh-cta__qty .quantity.hidden) {
	grid-template-columns: minmax(0, 1fr) max-content;
}

.product_infos .eh-cta:has(.eh-cta__qty .quantity.hidden) .eh-cta__qty {
	display: none;
}

.product_infos .eh-cta:has(.eh-cta__wishlist:empty) {
	grid-template-columns: max-content minmax(0, 1fr);
}

.product_infos .eh-cta.eh-cta--no-qty:has(.eh-cta__wishlist:empty) {
	grid-template-columns: 1fr;
}

.product_infos .eh-cta__cart {
	flex: 1 1 auto;
	min-width: 0;
}

@media (min-width: 768px) {
	.product_infos .eh-cta {
		gap: var(--eh-cta-gap-desktop);
		column-gap: var(--eh-cta-gap-desktop);
	}
}

.product_infos .eh-cta__wishlist {
	flex: 0 0 var(--eh-cta-h);
	width: var(--eh-cta-h);
	max-width: var(--eh-cta-h);
	justify-self: end;
	margin: 0 !important;
}

.product_infos .eh-cta__wishlist:empty {
	display: none;
	width: 0;
	max-width: 0;
	flex-basis: 0;
}

/* ── Quantité ── */
.product_infos .eh-cta .quantity.eh-cta-quantity,
.product_infos .eh-cta .quantity.custom,
.product_infos .eh-cta .quantity.default {
	float: none !important;
	width: var(--eh-cta-qty-w) !important;
	max-width: var(--eh-cta-qty-w) !important;
	min-width: var(--eh-cta-qty-w) !important;
	height: var(--eh-cta-h) !important;
	min-height: var(--eh-cta-h) !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--eh-cta-border);
	border-radius: var(--eh-cta-radius);
	background: #fff;
	box-sizing: border-box;
	flex: 0 0 auto;
}

.product_infos .eh-cta .quantity.custom {
	display: inline-flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
}

.product_infos .eh-cta .quantity.default,
.product_infos .eh-cta .quantity.eh-cta-quantity--stepped {
	display: inline-grid !important;
	grid-template-columns: var(--eh-cta-qty-btn) var(--eh-cta-qty-input) var(--eh-cta-qty-btn);
	align-items: stretch;
	overflow: hidden;
}

.product_infos .eh-cta .quantity.custom .minus-btn,
.product_infos .eh-cta .quantity.custom .plus-btn,
.product_infos .eh-cta .eh-cta-step {
	display: inline-flex !important;
	flex: 0 0 var(--eh-cta-qty-btn);
	align-items: center;
	justify-content: center;
	width: var(--eh-cta-qty-btn);
	height: 100%;
	min-width: var(--eh-cta-qty-btn);
	max-width: var(--eh-cta-qty-btn);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	box-sizing: border-box;
}

.product_infos .eh-cta .quantity.custom .minus-btn:hover,
.product_infos .eh-cta .quantity.custom .plus-btn:hover,
.product_infos .eh-cta .eh-cta-step:hover {
	background: rgba(0, 0, 0, 0.04);
	color: var(--eh-cta-accent);
}

.product_infos .eh-cta .quantity.custom .minus-btn i,
.product_infos .eh-cta .quantity.custom .plus-btn i {
	font-size: 0.75rem;
	line-height: 1;
}

.product_infos .eh-cta .eh-cta-step svg {
	width: 12px;
	height: 12px;
	display: block;
}

.product_infos .eh-cta .quantity.custom input.custom-qty,
.product_infos .eh-cta .quantity.default input,
.product_infos .eh-cta .quantity input.qty,
.product_infos .eh-cta .quantity input[type="number"] {
	flex: 0 0 var(--eh-cta-qty-input) !important;
	width: var(--eh-cta-qty-input) !important;
	min-width: var(--eh-cta-qty-input) !important;
	max-width: var(--eh-cta-qty-input) !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 1px solid var(--eh-cta-border) !important;
	border-right: 1px solid var(--eh-cta-border) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-align: center;
	color: #000 !important;
	-moz-appearance: textfield;
	-webkit-appearance: none;
	appearance: none;
}

.product_infos .eh-cta .quantity.default:not(.eh-cta-quantity--stepped) input {
	border-left: none !important;
	border-right: none !important;
}

.product_infos .eh-cta .quantity input::-webkit-outer-spin-button,
.product_infos .eh-cta .quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.product_infos .eh-cta .quantity .screen-reader-text {
	display: none !important;
}

/* ── Bouton Ajouter au panier ── */
.product_infos form.cart .eh-cta__cart .single_add_to_cart_button,
.product_infos form.cart .eh-cta__cart button[type="submit"].single_add_to_cart_button,
.product_layout_classic .product_content_wrapper .product_infos form.cart .eh-cta__cart .button.single_add_to_cart_button,
.product_layout_cascade .product_content_wrapper .product_infos form.cart .eh-cta__cart .button.single_add_to_cart_button,
.product_layout_2 .product_content_wrapper .product_infos form.cart .eh-cta__cart .button.single_add_to_cart_button,
.product_layout_scattered .product_content_wrapper .product_infos form.cart .eh-cta__cart .button.single_add_to_cart_button,
.product_layout_4 .product_content_wrapper .product_infos form.cart .eh-cta__cart .button.single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-width: 0 !important;
	height: var(--eh-cta-h) !important;
	min-height: var(--eh-cta-h) !important;
	max-height: var(--eh-cta-h) !important;
	margin: 0 !important;
	padding-block: 0 !important;
	padding-inline: 1.5rem calc(1.5rem + 0.05em) !important;
	float: none !important;
	border: none !important;
	border-radius: var(--eh-cta-radius) !important;
	background: var(--eh-cta-bg) !important;
	color: #fff !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	text-align: center !important;
	white-space: nowrap;
	vertical-align: middle !important;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.22s ease, opacity 0.22s ease;
}

.product_infos .eh-cta__cart .single_add_to_cart_button:hover,
.product_infos .eh-cta__cart .single_add_to_cart_button:focus-visible {
	background: var(--eh-cta-bg-hover) !important;
	color: #fff !important;
}

.product_infos .eh-cta__cart .progress-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative;
	overflow: hidden;
	padding: 0 !important;
}

.product_infos .eh-cta__cart .progress-btn::after {
	display: none !important;
}

.product_infos .eh-cta__cart .progress-btn .btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding-block: 0 !important;
	padding-inline: 1.5rem calc(1.5rem + 0.05em) !important;
	font: inherit !important;
	color: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	line-height: 1 !important;
	text-align: center !important;
	opacity: 1 !important;
	box-sizing: border-box;
	transition: opacity 0.25s ease;
}

.product_infos .eh-cta__cart .progress-btn.active {
	margin-top: 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
}

.product_infos .eh-cta__cart .progress-btn.check .btn {
	opacity: 0;
	font-size: 0 !important;
}

.product_infos .eh-cta__cart .progress-btn .checked {
	top: 50% !important;
	left: 50% !important;
	margin: 0 !important;
	transform: translate(-50%, -50%);
}

.product_infos .eh-cta__cart .progress-btn.check .checked {
	margin-top: 0 !important;
}

.product_infos .eh-cta__cart .progress-btn.check .checked::after {
	font-size: 1rem !important;
	color: #fff;
}

.product_infos .eh-cta__cart .single_add_to_cart_button:disabled,
.product_infos .eh-cta__cart .single_add_to_cart_button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ── Wishlist ── */
.product_infos .eh-cta .yith-add-to-wishlist-button-block,
.product_layout_classic .product_content_wrapper .product_infos .eh-cta .yith-add-to-wishlist-button-block,
.product_layout_cascade .product_content_wrapper .product_infos .eh-cta .yith-add-to-wishlist-button-block,
.product_layout_2 .product_content_wrapper .product_infos .eh-cta .yith-add-to-wishlist-button-block,
.product_layout_scattered .product_content_wrapper .product_infos .eh-cta .yith-add-to-wishlist-button-block,
.product_layout_4 .product_content_wrapper .product_infos .eh-cta .yith-add-to-wishlist-button-block {
	margin: 0 !important;
}

.product_infos .eh-cta__wishlist .yith-add-to-wishlist-button-block {
	width: var(--eh-cta-h);
	height: var(--eh-cta-h);
	flex-shrink: 0;
}

.product_infos .eh-cta__wishlist .yith-add-to-wishlist-button-block--single {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.product_infos .eh-cta__wishlist .yith-add-to-wishlist-button-block::after {
	display: none !important;
}

.product_infos .eh-cta__wishlist .yith-wcwl-add-to-wishlist-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: var(--eh-cta-h) !important;
	height: var(--eh-cta-h) !important;
	min-width: var(--eh-cta-h) !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid var(--eh-cta-border) !important;
	border-radius: var(--eh-cta-radius) !important;
	background: #fff !important;
	color: #000 !important;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.product_infos .eh-cta__wishlist .yith-wcwl-add-to-wishlist-button:hover,
.product_infos .eh-cta__wishlist .yith-wcwl-add-to-wishlist-button:focus-visible {
	border-color: var(--eh-cta-accent) !important;
	background: #faf9f7 !important;
}

.product_infos .eh-cta__wishlist .yith-wcwl-add-to-wishlist-button__label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.product_infos .eh-cta__wishlist .yith-wcwl-icon-svg {
	width: 20px !important;
	height: 20px !important;
}

/* Overrides Shopkeeper — ne pas casser la barre CTA */
.product_infos form.cart .eh-cta .button,
.product_infos form.cart .eh-cta .single_add_to_cart_button {
	float: none !important;
	vertical-align: middle !important;
}

.product_layout_cascade .product_content_wrapper .product_infos form.cart .eh-cta .quantity:not(.hidden).default,
.product_layout_2 .product_content_wrapper .product_infos form.cart .eh-cta .quantity:not(.hidden).default {
	margin-bottom: 0 !important;
}

.product_layout_cascade .product_content_wrapper .product_infos form.cart .eh-cta .quantity:not(.hidden).default input,
.product_layout_2 .product_content_wrapper .product_infos form.cart .eh-cta .quantity:not(.hidden).default input {
	padding: 0 !important;
}

@media all and (max-width: 767px) {
	.product_layout_cascade .product_content_wrapper .product_infos form.cart .eh-cta .button,
	.product_layout_2 .product_content_wrapper .product_infos form.cart .eh-cta .button,
	.product_layout_classic .product_infos form.cart .eh-cta .button {
		float: none !important;
		width: 100% !important;
		min-width: 0 !important;
		padding: 0 0.875rem !important;
	}
}

/* ── Klarna — sous le prix, sans fond ── */
.product_infos .eh-klarna-slot {
	display: none;
	margin: 0.625rem 0 1.5rem;
	padding: 0;
	background: none;
	border: none;
}

.product_infos .eh-klarna-slot.eh-klarna-slot--visible {
	display: block;
}

.product_infos .eh-klarna-slot #payment-method-message {
	--wc-bnpl-margin-bottom: 0;
	position: relative;
	height: auto !important;
	min-height: 0;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.product_infos .eh-klarna-slot #payment-method-message iframe,
.product_infos .eh-klarna-slot #payment-method-message > * {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 24px;
}

/* ── Tableau remises quantité (WCCS) — scoped eh-bulk-table uniquement ── */
.product_infos p.wccs-bulk-pricing-table-title {
	margin: 1rem 0 0.75rem !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: rgba(0, 0, 0, 0.45) !important;
}

.product_infos p.wccs-bulk-pricing-table-title strong {
	font-weight: inherit !important;
}

.product_infos .eh-bulk-table.wccs-bulk-pricing-table-container {
	margin: 0 0 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 2px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #faf9f7;
	width: 100%;
}

.product_infos .eh-bulk-table .wccs-bulk-pricing-table {
	width: 100%;
	min-width: 100%;
	margin: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	table-layout: auto;
}

.product_infos .eh-bulk-table .wccs-bulk-pricing-table th,
.product_infos .eh-bulk-table .wccs-bulk-pricing-table td {
	padding: 0.875rem 1rem !important;
	font-size: 0.875rem !important;
	line-height: 1.45 !important;
	text-align: center !important;
	vertical-align: middle !important;
	color: rgba(0, 0, 0, 0.72) !important;
	white-space: nowrap !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.product_infos .eh-bulk-table .wccs-bulk-pricing-table thead th {
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: rgba(0, 0, 0, 0.42) !important;
	background: #fff !important;
}

.product_infos .eh-bulk-table .wccs-bulk-pricing-table tbody tr:first-child th:first-child,
.product_infos .eh-bulk-table .wccs-bulk-pricing-table tbody td:first-child {
	text-align: left !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: rgba(0, 0, 0, 0.42) !important;
	background: #fff !important;
}

.product_infos .eh-bulk-table .wccs-bulk-pricing-table tbody tr:first-child th:not(:first-child) {
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #000 !important;
	background: #fff !important;
}

.product_infos .eh-bulk-table .wccs-bulk-pricing-table tbody tr:last-child th,
.product_infos .eh-bulk-table .wccs-bulk-pricing-table tbody tr:last-child td {
	border-bottom: none !important;
}

.product_infos .eh-bulk-table .wccs-bulk-pricing-table tbody tr:nth-child(even) td:not(:first-child),
.product_infos .eh-bulk-table .wccs-bulk-pricing-table tbody tr:nth-child(even) th:not(:first-child) {
	background: rgba(255, 255, 255, 0.55) !important;
}

.product_infos .eh-bulk-table .wccs-bulk-pricing-table td[data-type="price"] .amount,
.product_infos .eh-bulk-table .wccs-bulk-pricing-table td[data-type="price"] bdi {
	font-weight: 600 !important;
	color: #000 !important;
}

/* ── Mobile ── */
@media (max-width: 767px) {
	.product_infos {
		--eh-cta-h: 48px;
		--eh-cta-gap: 8px;
		--eh-cta-qty-btn: 2.5rem;
		--eh-cta-qty-input: 2.5rem;
	}

	.product_infos form.cart .eh-cta__cart .single_add_to_cart_button,
	.product_infos form.cart .eh-cta__cart button[type="submit"].single_add_to_cart_button {
		padding-block: 0 !important;
		padding-inline: 0.875rem calc(0.875rem + 0.04em) !important;
		font-size: 0.75rem !important;
		letter-spacing: 0.08em !important;
	}

	.product_infos .eh-cta__cart .progress-btn .btn {
		padding-block: 0 !important;
		padding-inline: 0.875rem calc(0.875rem + 0.04em) !important;
	}

	.product_infos .eh-klarna-slot {
		margin: 0.5rem 0 1.25rem;
	}

	.product_infos .eh-bulk-table.wccs-bulk-pricing-table-container {
		margin-bottom: 1.25rem;
	}

	.product_infos .eh-bulk-table .wccs-bulk-pricing-table th,
	.product_infos .eh-bulk-table .wccs-bulk-pricing-table td {
		padding: 0.75rem 0.875rem !important;
		font-size: 0.8125rem !important;
	}
}
