/**
 * Liste de souhaits — cœurs (tuiles / fiche / quick view), compteur, page « Mes favoris ».
 * Charte TRACEA (voir brand.css). Cœur actif = ocre (mise en valeur).
 */

.ra-wl-host { position: relative; }

.ra-wl-btn.ra-wl-btn.ra-wl-btn {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	width: 38px !important; height: 38px !important; min-width: 0 !important; border-radius: 50% !important; cursor: pointer;
	background: var(--ra-white, #fff) !important; border: 1px solid var(--ra-line, #e5e7eb) !important;
	color: var(--ra-muted, #6b7280) !important; box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
	transition: color .15s ease, transform .15s ease, background .15s ease; text-shadow: none !important;
	padding: 0 !important;
}
.ra-wl-btn.ra-wl-btn.ra-wl-btn:hover { transform: scale(1.08); color: var(--ra-accent, #de9a32) !important; }
.ra-wl-btn.ra-wl-btn.ra-wl-btn.actif { color: var(--ra-accent, #de9a32) !important; border-color: var(--ra-accent, #de9a32) !important; }
.ra-wl-btn.ra-wl-btn.ra-wl-btn .dashicons { font-size: 20px; width: 20px; height: 20px; line-height: 1; }

/* Cœur sur les tuiles produit (coin haut-gauche ; le Quick View occupe le coin haut-droit) */
ul.products li.product.ra-wl-host > .ra-wl-btn { position: absolute; top: 10px; left: 10px; right: auto; z-index: 4; }

/* Cœur sur la fiche produit */
.ra-wl-fiche { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.ra-wl-fiche-label { font-size: 14px; color: var(--ra-muted, #6b7280); }

/* Compteur (à placer par ex. dans le menu : <span class="ra-wl-count"></span>) */
.ra-wl-count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
	padding: 0 5px; border-radius: 999px; background: var(--ra-accent, #de9a32); color: var(--ra-on-accent, #171717);
	font-size: 11px; font-weight: 700;
}
.ra-wl-count--vide { display: none; }

/* Page « Mes favoris » */
.ra-wishlist-page { margin: 16px 0; }
.ra-wl-vide { color: var(--ra-muted, #6b7280); padding: 24px 0; }
.ra-wl-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ra-wl-item { position: relative; border: 1px solid var(--ra-line, #e5e7eb); border-radius: var(--ra-radius, 12px); padding: 12px; background: var(--ra-white, #fff); }
.ra-wl-remove {
	position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.92); color: var(--ra-ink, #171717); cursor: pointer; font-size: 16px; line-height: 1;
	box-shadow: 0 1px 5px rgba(0,0,0,.15);
}
.ra-wl-item-img { display: block; border-radius: var(--ra-radius-sm, 8px); overflow: hidden; background: var(--ra-bg-soft, #f4f4f5); aspect-ratio: 1/1; margin-bottom: 10px; }
.ra-wl-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ra-wl-item-titre { display: block; font-weight: 600; color: var(--ra-ink, #171717); text-decoration: none; font-size: 15px; }
.ra-wl-item-titre:hover { text-decoration: underline; }
.ra-wl-item-prix { color: var(--ra-ink, #171717); font-weight: 700; margin: 6px 0 10px; }
.ra-wl-item-prix del { color: var(--ra-muted, #6b7280); font-weight: 500; margin-right: 6px; }
.ra-wl-item-prix ins { text-decoration: none; color: var(--ra-sale, #b91c1c); }
.ra-wl-panier {
	display: inline-block; background: var(--ra-accent, #de9a32); color: var(--ra-on-accent, #171717) !important;
	border-radius: var(--ra-radius-sm, 8px); padding: 9px 16px; font-weight: 700; font-size: 14px; text-decoration: none;
}
.ra-wl-panier:hover { background: var(--ra-accent-dark, #c4842a); }

/* Cœur dans le popup Quick View */
.ra-qv-corps .ra-wl-btn { align-self: flex-start; margin-bottom: 10px; }

/* Boutons d'en-tête (Coup de cœur / Panier) */
.ra-hdr-btn {
	position: relative; display: inline-flex; align-items: center; gap: 7px;
	text-decoration: none; color: var(--ra-ink, #171717); font-weight: 600; font-size: 14px;
	padding: 8px 12px; border-radius: 999px; line-height: 1; transition: background .15s ease, color .15s ease;
}
.ra-hdr-btn:hover { background: var(--ra-brand-soft, #eef1ec); color: var(--ra-brand-dark, #5f7358); }
.ra-hdr-btn .ra-hdr-ico { font-size: 20px; width: 20px; height: 20px; }
.ra-hdr-coeur:hover .ra-hdr-ico { color: var(--ra-accent, #de9a32); }
.ra-hdr-btn .ra-wl-count,
.ra-hdr-btn .ra-hdr-panier-count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
	padding: 0 5px; border-radius: 999px; background: var(--ra-accent, #de9a32); color: var(--ra-on-accent, #171717);
	font-size: 11px; font-weight: 700;
}
.ra-hdr-btn .ra-wl-count--vide { display: none; }
@media (max-width: 782px) {
	.ra-hdr-btn .ra-hdr-label { display: none; } /* mobile : icônes seules */
	.ra-hdr-btn { min-width: 44px; min-height: 44px; justify-content: center; padding: 10px; } /* cible tactile 44px */
}

/* Fix panier/checkout (B1) : le bloc WooCommerce en alignement « pleine largeur » (alignwide)
   garde une marge négative (~-80px) en mobile qui décale et coupe le contenu (codes promo, résumé)
   hors de l'écran à gauche. On neutralise cette marge en mobile, uniquement sur ces blocs. */
@media (max-width: 820px) {
	.wp-block-woocommerce-cart.alignwide,
	.wp-block-woocommerce-checkout.alignwide {
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
	}
}

@media (max-width: 900px) { .ra-wl-grille { grid-template-columns: repeat(2, 1fr); } }
