/* Icône panier header ESM — charte chocolat / olive / crème, jamais de noir. */
header.esm-header a.esm-header__cart,
header.esm-header a.esm-header__cart:link,
header.esm-header a.esm-header__cart:visited {
	flex: 0 0 auto;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: #5B3A29;
	background: transparent;
	text-decoration: none;
	border-radius: 50%;
	box-sizing: border-box;
	transition: transform 200ms ease, color 200ms ease;
}

header.esm-header a.esm-header__cart:hover,
header.esm-header a.esm-header__cart:focus-visible {
	color: #5F6446;
	background: transparent;
	text-decoration: none;
	transform: translateY(-2px);
}

header.esm-header a.esm-header__cart:focus-visible {
	outline: 2px solid #5F6446;
	outline-offset: 3px;
}

header.esm-header .esm-header__cart-icon {
	display: block;
	width: 26px;
	height: 26px;
}

header.esm-header .esm-header__cart-count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 999px;
	background-color: #5F6446;
	color: #FBF3E8;
	font-family: Poppins, "Poppins", sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	pointer-events: none;
}

header.esm-header .esm-header__cart-count[hidden] {
	display: none !important;
}

@media (max-width: 1024px) {
	header.esm-header a.esm-header__cart {
		/* Zone tactile 44 px ; glyphe 24 px, proche de la hauteur du burger (28 px). */
		width: 44px;
		height: 44px;
		margin-left: 0;
		margin-right: 0;
	}

	header.esm-header .esm-header__cart-icon {
		width: 24px;
		height: 24px;
	}

	header.esm-header .esm-header__cart-count {
		top: 4px;
		right: 2px;
		min-width: 17px;
		height: 17px;
		font-size: 10px;
		line-height: 17px;
		padding: 0 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	header.esm-header a.esm-header__cart {
		transition: none;
	}
	header.esm-header a.esm-header__cart:hover,
	header.esm-header a.esm-header__cart:focus-visible {
		transform: none;
	}
}
