/* Etikashion - Favoris
   Charte : bordeaux #7A0000, rouge #C40000, ecru #FAF7F2, blanc, noir.
   Les familles typographiques sont heritees du theme, jamais forcees. */

.etk-fav-page,
.etk-fav-btn,
.etk-fav-compteur {
	--etk-bord: #7A0000;
	--etk-rouge: #C40000;
	--etk-ecru: #FAF7F2;
	--etk-ligne: #E3D8CC;
	--etk-gris: #5A5A5A;
}

/* ---------- Bouton coeur ---------- */

.etk-fav-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--etk-ligne);
	border-radius: 0;
	cursor: pointer;
	padding: 10px;
	line-height: 0;
	transition: border-color .2s, background .2s;
}

.etk-fav-btn:hover {
	border-color: var(--etk-bord);
}

.etk-fav-btn:focus-visible {
	outline: 3px solid var(--etk-rouge);
	outline-offset: 2px;
}

.etk-fav-icone {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--etk-bord);
	stroke-width: 1.6;
	stroke-linejoin: round;
	transition: fill .2s, stroke .2s;
}

.etk-fav-btn[aria-pressed="true"] .etk-fav-icone {
	fill: var(--etk-rouge);
	stroke: var(--etk-rouge);
}

.etk-fav-btn[aria-pressed="true"] {
	border-color: var(--etk-rouge);
}

/* Variante grille : pastille flottante en haut a droite de la vignette */
.woocommerce ul.products li.product,
ul.products li.product,
.wc-block-grid__product,
.elementor-loop-item,
.woocommerce-loop-product,
[data-etk-fav-pret] {
	position: relative;
}

.etk-fav-btn--loop {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	padding: 9px;
	background: rgba( 255, 255, 255, .92 );
}

.etk-fav-btn--loop:hover {
	background: #fff;
}

/* Variante fiche produit : bouton avec libelle, aligne sur la DA */
.etk-fav-btn--single {
	margin: 18px 0 0;
	padding: 15px 24px;
	line-height: 1;
}

.etk-fav-libelle {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--etk-bord);
	line-height: 1;
}

.etk-fav-btn--single[aria-pressed="true"] .etk-fav-libelle {
	color: var(--etk-rouge);
}

/* Petite animation de confirmation */
@keyframes etkFavPulse {
	0%   { transform: scale(1); }
	45%  { transform: scale(1.22); }
	100% { transform: scale(1); }
}

.etk-fav-btn.etk-fav-anime .etk-fav-icone {
	animation: etkFavPulse .35s ease;
}

@media (prefers-reduced-motion: reduce) {
	.etk-fav-btn.etk-fav-anime .etk-fav-icone { animation: none; }
}

/* ---------- Pastille sur les liens de navigation ---------- */

.etk-fav-lien-badge {
	position: relative;
	overflow: visible;
}

.etk-fav-badge {
	position: absolute;
	top: -7px;
	right: -11px;
	display: inline-block;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	background: #C40000;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	font-style: normal;
	line-height: 17px;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	text-decoration: none;
	border-radius: 20px;
	pointer-events: none;
	box-sizing: border-box;
}

.etk-fav-badge[hidden] {
	display: none;
}

/* ---------- Compteur de menu ---------- */

.etk-fav-compteur {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--etk-bord);
	font-size: 14px;
	letter-spacing: 1px;
}

.etk-fav-compteur:hover { color: var(--etk-rouge); }

.etk-fav-compteur-nombre {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	background: var(--etk-rouge);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.etk-fav-compteur-nombre[hidden] { display: none; }

/* ---------- Page favoris ---------- */

.etk-fav-barre {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	align-items: baseline;
	justify-content: flex-start;
	padding: 0 0 18px;
	margin: 0 0 34px;
	border-bottom: 1px solid var(--etk-ligne);
}

.etk-fav-barre[hidden] { display: none; }

.etk-fav-somme {
	margin: 0 !important;
	font-size: 13px;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--etk-gris);
}

.etk-fav-somme strong {
	color: var(--etk-bord);
	font-weight: 700;
	letter-spacing: 1px;
	margin-left: 6px;
}

.etk-fav-barre .etk-fav-vider {
	margin-left: auto !important;
}

@media (max-width: 600px) {
	.etk-fav-barre { gap: 8px 18px; }
	.etk-fav-barre .etk-fav-vider { margin-left: 0 !important; }
}

.etk-fav-vider,
.etk-fav-page .etk-fav-vider,
.etk-fav-retirer,
.etk-fav-page .etk-fav-retirer {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	border-radius: 0 !important;
	cursor: pointer;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--etk-gris) !important;
	text-decoration: underline;
	text-underline-offset: 4px;
	-webkit-appearance: none;
	appearance: none;
}

.etk-fav-vider:hover,
.etk-fav-page .etk-fav-vider:hover,
.etk-fav-retirer:hover,
.etk-fav-page .etk-fav-retirer:hover {
	color: var(--etk-rouge) !important;
	background: none !important;
}

.etk-fav-vider:focus-visible,
.etk-fav-retirer:focus-visible {
	outline: 3px solid var(--etk-rouge);
	outline-offset: 3px;
}

.etk-fav-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 34px 30px;
}

.etk-fav-carte {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-top: 3px solid var(--etk-bord);
	overflow: hidden;
	min-width: 0;
}

.etk-fav-corps {
	padding: 20px 0 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.etk-fav-total {
	margin: 0 !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--etk-rouge);
}

.etk-fav-visuel {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--etk-ecru);
}

.etk-fav-visuel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.etk-fav-carte:hover .etk-fav-visuel img { transform: scale(1.04); }

.etk-fav-nom {
	margin: 0 0 6px;
	font-size: 19px;
	line-height: 1.3;
}

.etk-fav-nom a {
	color: var(--etk-bord);
	text-decoration: none;
}

.etk-fav-nom a:hover { color: var(--etk-rouge); }

.etk-fav-prix {
	margin: 0 0 16px;
	font-size: 15px;
	color: #000;
}

.etk-fav-prix del { color: var(--etk-gris); margin-right: 6px; }

.etk-fav-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: auto;
	padding-bottom: 4px;
}

.etk-fav-panier,
.etk-fav-page .etk-fav-panier {
	display: inline-block;
	padding: 14px 20px !important;
	background: var(--etk-bord) !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background .2s;
}

.etk-fav-panier:hover,
.etk-fav-page .etk-fav-panier:hover {
	background: var(--etk-rouge) !important;
	color: #fff !important;
}

.etk-fav-panier:focus-visible {
	outline: 3px solid var(--etk-rouge);
	outline-offset: 3px;
}

/* ---------- Etat vide ---------- */

.etk-fav-vide {
	grid-column: 1 / -1;
	background: var(--etk-ecru);
	border-top: 3px solid var(--etk-rouge);
	padding: 60px 40px;
	text-align: center;
}

.etk-fav-vide-titre {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.25;
	color: var(--etk-bord);
}

.etk-fav-vide-texte {
	margin: 0 auto 24px;
	max-width: 520px;
	font-size: 16px;
	line-height: 1.7;
	color: #000;
}

.etk-fav-vide-cta {
	display: inline-block;
	padding: 17px 32px;
	background: var(--etk-bord);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none;
	transition: background .2s;
}

.etk-fav-vide-cta:hover { background: var(--etk-rouge); color: #fff; }

/* ---------- Annonce accessible ---------- */

.etk-fav-annonce {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 767px) {
	.etk-fav-grille { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; }
	.etk-fav-nom { font-size: 17px; }
	.etk-fav-vide { padding: 40px 22px; }
	.etk-fav-vide-titre { font-size: 23px; }
}
