/* Bouton favori (carte produit) */
.wpfe-favori-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: none;
	outline: none;
	box-shadow: none;
	cursor: pointer;
	padding: 4px;
	line-height: 0;
	transition: transform 0.15s ease;
}
.wpfe-favori-btn svg {
	width: 22px;
	height: 22px;
	display: block;
}
.wpfe-favori-btn .wpfe-heart-outline {
	transition: fill 0.15s ease;
}
.wpfe-favori-btn.wpfe-pop svg {
	transform: scale(1.2);
}
.wpfe-favori-btn__label {
	font-size: 13px;
}

/* Icône déclencheur + chiffre à côté (pas de fond/bordure par défaut) */
.wpfe-favoris-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: none;
	outline: none;
	box-shadow: none;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
}
.wpfe-favoris-trigger svg {
	fill: currentColor;
	flex-shrink: 0;
}
.wpfe-favoris-count {
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

/* Popup / modale */
.wpfe-favoris-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}
.wpfe-favoris-modal.is-open {
	display: block;
}
.wpfe-favoris-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.wpfe-favoris-modal__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 100%;
	max-width: 420px;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
	animation: wpfe-slide-in 0.2s ease-out;
}
@keyframes wpfe-slide-in {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}
.wpfe-favoris-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}
.wpfe-favoris-modal__header h3 {
	margin: 0;
	font-size: 18px;
}
.wpfe-favoris-modal__close {
	background: transparent;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}
.wpfe-favoris-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
}
.wpfe-empty {
	color: #777;
	text-align: center;
	margin-top: 40px;
}

.wpfe-favoris-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.wpfe-favoris-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 12px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}
.wpfe-favoris-item__image img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}
.wpfe-favoris-item__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.wpfe-favoris-item__title {
	font-size: 14px;
	color: #222;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wpfe-favoris-item__price {
	font-size: 13px;
	color: #555;
}
.wpfe-favoris-item__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.wpfe-add-to-cart-favori {
	white-space: nowrap;
	font-size: 12px;
	padding: 8px 12px;
}
.wpfe-add-to-cart-favori.is-loading {
	opacity: 0.6;
	pointer-events: none;
}
.wpfe-remove-favori {
	background: transparent;
	border: none;
	color: #999;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}
.wpfe-remove-favori:hover {
	color: #e63946;
}

.wpfe-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #222;
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 13px;
	z-index: 100001;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.wpfe-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
