/* 2DA Favoris — front */
:root { --da2f-brand: #1e3a8a; --da2f-heart: #e11d48; }

/* ----- Cœur ----- */
.da2f-host { position: relative; }
.da2f-heart { --s: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: var(--s); height: var(--s); padding: 0; border: 0; border-radius: 999px; background: #fff; color: #64748b; box-shadow: 0 2px 10px rgba(15,23,42,.18); cursor: pointer; transition: transform .15s ease, color .15s ease, box-shadow .15s ease; line-height: 1; font: inherit; }
.da2f-heart svg { width: 20px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill .15s ease, transform .15s ease; }
.da2f-heart:hover { color: var(--da2f-heart); transform: scale(1.06); }
.da2f-heart.is-on { color: var(--da2f-heart); }
.da2f-heart.is-on svg { fill: currentColor; }
.da2f-heart.is-busy { opacity: .7; }
.da2f-heart.is-pop svg { animation: da2f-pop .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes da2f-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.da2f-heart--card { position: absolute; top: 10px; right: 10px; z-index: 5; }
.da2f-heart--single { width: auto; height: 46px; padding: 0 18px 0 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #0f172a; background: #fff; border: 1.5px solid #e2e8f0; box-shadow: none; }
.da2f-heart--single svg { width: 22px; height: 22px; }
.da2f-heart--single:hover { transform: none; border-color: var(--da2f-heart); color: var(--da2f-heart); }
.da2f-heart--single.is-on { border-color: var(--da2f-heart); color: var(--da2f-heart); background: #fff1f2; }
.da2f-single { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 6px; }
/* 1.2.2 — cœur compact à droite du titre de la fiche produit */
.da2f-title-host { position: relative; }
/* sélecteur renforcé : le thème force padding:0 0 14px !important sur le titre (spécificité 0,3,2) */
html body .da2f-title-host.da2f-title-host .da2f-title-has-heart.da2f-title-has-heart { padding-right: 52px !important; }
.da2f-heart.da2f-heart--title { --s: 40px; position: absolute; top: -2px; right: 0; z-index: 3; width: var(--s); height: var(--s); min-width: 0; padding: 0; margin: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #ffc21a; box-shadow: none; -webkit-text-fill-color: currentColor; }
.da2f-heart.da2f-heart--title svg { width: 21px; height: 21px; stroke-width: 2.2; }
.da2f-heart.da2f-heart--title:hover { transform: none; border-color: #ffc21a; background: rgba(255,194,26,.12); color: #ffc21a; }
.da2f-heart.da2f-heart--title.is-on { color: var(--da2f-heart); border-color: var(--da2f-heart); background: rgba(225,29,72,.14); }
.da2f-heart.da2f-heart--title:focus-visible { outline: 2px solid #ffc21a; outline-offset: 2px; }
.da2f-single--social { margin: 8px 0 4px; }
@media (max-width: 767px) {
	html body .da2f-title-host.da2f-title-host .da2f-title-has-heart.da2f-title-has-heart { padding-right: 46px !important; }
	.da2f-heart.da2f-heart--title { --s: 38px; top: -4px; }
}
@media (prefers-reduced-motion: reduce) { .da2f-heart.da2f-heart--title.is-pop svg { animation: none; } }
.da2f-social { font-size: 13px; font-weight: 600; color: #f59e0b; }
.single-product .da2f-social { color: #fbbf24; }

/* ----- En-tête ----- */
.da2f-header { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 4px; color: inherit; text-decoration: none; }
.da2f-header svg { width: 24px; height: 24px; fill: transparent; stroke: currentColor; stroke-width: 2; }
.da2f-header-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--da2f-heart); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* ----- Toast ----- */
.da2f-toast { position: fixed; left: 50%; bottom: 24px; z-index: 99999; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(15,23,42,.35); transform: translate(-50%, 20px); opacity: 0; transition: transform .25s ease, opacity .25s ease; max-width: calc(100vw - 32px); }
.da2f-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.da2f-toast__icon { color: var(--da2f-heart); font-size: 18px; }
.da2f-toast__link { color: #fbbf24; font-weight: 800; text-decoration: none; margin-left: 4px; }

/* ----- Modale ----- */
/* Un élément masqué doit le rester même avec display:flex */
.da2f-modal[hidden], .da2f-toast[hidden], .da2f-social[hidden], .da2f-heart[hidden] { display: none !important; }
.da2f-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .da2f-modal { align-items: center; } }
.da2f-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(2px); }
.da2f-modal__box { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; background: #fff; color: #0f172a; border-radius: 20px 20px 0 0; padding: 26px 22px 20px; box-shadow: 0 20px 60px rgba(15,23,42,.4); animation: da2f-up .3s ease; }
@media (min-width: 640px) { .da2f-modal__box { border-radius: 20px; } }
@keyframes da2f-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.da2f-modal__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 15px; cursor: pointer; }
.da2f-modal__icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.da2f-modal__head h3, .da2f-modal__done h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #0f172a; }
.da2f-modal__head p, .da2f-modal__done p { margin: 0 0 16px; font-size: 14px; color: #475569; line-height: 1.5; }
.da2f-modal__form label { display: block; margin-bottom: 12px; }
.da2f-modal__form label span { display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 4px; }
.da2f-modal__form label em { font-weight: 400; color: #94a3b8; font-style: normal; }
.da2f-modal__form input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 16px; color: #0f172a; background: #fff; }
.da2f-modal__form input:focus { outline: none; border-color: var(--da2f-brand); box-shadow: 0 0 0 3px rgba(30,58,138,.15); }
.da2f-modal__error { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.da2f-modal__submit.button, .da2f-modal__done .button { display: block; width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--da2f-brand) !important; color: #fff !important; font-weight: 800; font-size: 15px; text-align: center; line-height: 48px; padding: 0; cursor: pointer; }
.da2f-modal__submit.is-loading { opacity: .6; }
.da2f-modal__skip { display: block; width: 100%; margin-top: 8px; border: 0; background: none; color: #64748b; font-size: 13px; cursor: pointer; text-decoration: underline; }
.da2f-modal__trust { margin-top: 12px; font-size: 11px; color: #94a3b8; text-align: center; }
body.da2f-modal-open { overflow: hidden; }

/* ----- Page favoris ----- */
.da2f-list { --gap: 16px; color: #0f172a; }
.da2f-list__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 16px; }
.da2f-list__count { font-size: 15px; color: #475569; }
.da2f-list__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.da2f-list__actions .button { border-radius: 10px !important; font-weight: 700 !important; }
.da2f-alertbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #fff7ed, #fef3c7); border: 1px solid #fde68a; font-size: 14px; line-height: 1.45; color: #78350f; }
.da2f-alertbox .button { background: #d97706 !important; color: #fff !important; border: 0; border-radius: 10px !important; font-weight: 800 !important; }
.da2f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap); }
@media (max-width: 520px) { .da2f-grid { grid-template-columns: repeat(2, 1fr); --gap: 10px; } }
.da2f-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: transform .25s ease, opacity .25s ease, box-shadow .2s ease; }
.da2f-card:hover { box-shadow: 0 10px 28px rgba(15,23,42,.1); }
.da2f-card.is-removed { transform: scale(.9); opacity: 0; }
.da2f-card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: 10px; }
.da2f-card__img img { width: 100%; height: 100%; object-fit: contain; }
.da2f-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff !important; -webkit-text-fill-color: #fff !important; background: #d8243c !important; box-shadow: 0 2px 6px rgba(216,36,60,.28); text-decoration: none !important; }
.da2f-badge--drop { background: #1b8c4e !important; box-shadow: 0 2px 6px rgba(27,140,78,.28); }
.da2f-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.da2f-card__title { color: #0f172a !important; font-weight: 700; font-size: 14px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.da2f-card__price { font-size: 17px; font-weight: 800; color: #dc2626; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.da2f-card__price del { color: #94a3b8; font-weight: 500; font-size: 13px; }
.da2f-card__price .woocommerce-Price-amount { color: inherit; }
.da2f-card__stock { font-size: 12px; font-weight: 600; }
.da2f-card__stock.is-in { color: #16a34a; }
.da2f-card__stock.is-out { color: #dc2626; }
.da2f-card__social { font-size: 12px; color: #d97706; font-weight: 600; }
.da2f-card__cta { display: flex; gap: 8px; align-items: stretch; margin-top: auto; padding-top: 8px; }
.da2f-card__buy.button { flex: 1; text-align: center; border-radius: 10px !important; font-weight: 800 !important; font-size: 13px !important; padding: 10px 8px !important; background: var(--da2f-brand) !important; color: #fff !important; line-height: 1.2 !important; }
.da2f-card__remove { width: 40px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff; color: #94a3b8; cursor: pointer; font-size: 14px; }
.da2f-card__remove:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.da2f-trust { margin-top: 22px; text-align: center; font-size: 13px; color: #64748b; }
.da2f-empty { text-align: center; padding: 40px 16px; border: 1.5px dashed #e2e8f0; border-radius: 16px; }
.da2f-empty__icon { font-size: 46px; color: #e2e8f0; line-height: 1; }
.da2f-empty h3 { margin: 12px 0 6px; font-size: 20px; font-weight: 800; }
.da2f-empty p { max-width: 460px; margin: 0 auto 16px; color: #475569; font-size: 14px; line-height: 1.5; }
.da2f-empty__cta.button { border-radius: 10px !important; background: var(--da2f-brand) !important; color: #fff !important; font-weight: 800 !important; }

/* ---- Onglet « Favoris » dans la barre fixe mobile du thème ---- */
.da2f-mobile { position: relative; }
.da2f-mobile__icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; line-height: 1; }
.da2f-mobile__icon svg { width: 22px; height: 22px; display: block; }
.da2f-mobile .da2f-header-count[hidden] { display: none !important; }

/* ══ Page autonome /favoris/ : mise en page « premium » et responsive ══ */
body.da2f-page { background: #f6f7fb; }
body.da2f-page .da2f-page-main {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0f172a;
	width: min(1180px, 100%);
	margin: 0 auto;
	padding: 18px 16px 48px;
	box-sizing: border-box;
}
@media (min-width: 768px) { body.da2f-page .da2f-page-main { padding: 26px 24px 64px; } }
body.da2f-page .da2f-page-main * { box-sizing: border-box; }

.da2f-crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #94a3b8; margin-bottom: 14px; }
.da2f-crumb a { color: #64748b; text-decoration: none; }
.da2f-crumb a:hover { color: var(--da2f-brand); text-decoration: underline; }

.da2f-hero {
	display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
	padding: 22px 22px; margin-bottom: 20px; border-radius: 18px;
	background: linear-gradient(135deg, #ffffff 0%, #f2f5ff 100%);
	border: 1px solid #e6eaf5; box-shadow: 0 10px 30px rgba(15, 27, 60, .05);
}
.da2f-hero__text { min-width: 0; }
.da2f-hero h1 { margin: 0 0 6px; font-size: clamp(22px, 4.5vw, 30px); font-weight: 850; letter-spacing: -.02em; line-height: 1.15; color: #0f1b3c; }
.da2f-hero p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #5b6478; max-width: 56ch; }
.da2f-hero__badge {
	flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 86px; padding: 12px 16px; border-radius: 14px;
	background: var(--da2f-brand, #1e3a8a) !important; color: #fff !important;
}
.da2f-hero__badge, .da2f-hero__badge strong, .da2f-hero__badge span { -webkit-text-fill-color: #fff !important; }
.da2f-hero__badge strong { font-size: 26px; font-weight: 850; line-height: 1; color: #fff !important; }
.da2f-hero__badge span { font-size: 11.5px; opacity: .85; margin-top: 3px; color: #fff !important; }

body.da2f-page .da2f-list__bar { margin: 0 0 16px; }
body.da2f-page .da2f-list .button { border-radius: 11px !important; font-weight: 700 !important; }
body.da2f-page .da2f-card { border-color: #e8ecf5; border-radius: 18px; }
body.da2f-page .da2f-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 27, 60, .10); }
body.da2f-page .da2f-empty { background: #fff; border-color: #e2e8f0; padding: 52px 20px; }
body.da2f-page .da2f-trust { margin-top: 26px; padding-top: 18px; border-top: 1px solid #e8ecf5; }

@media (max-width: 640px) {
	.da2f-hero { padding: 18px 16px; border-radius: 16px; }
	.da2f-hero__badge { min-width: 72px; padding: 10px 13px; }
	.da2f-hero__badge strong { font-size: 21px; }
	body.da2f-page .da2f-list__bar { flex-direction: column; align-items: stretch; }
	body.da2f-page .da2f-list__actions { display: flex; gap: 8px; }
	body.da2f-page .da2f-list__actions .button { flex: 1 1 0; text-align: center; padding-left: 10px !important; padding-right: 10px !important; font-size: 13px !important; }
	body.da2f-page .da2f-alertbox { flex-direction: column; align-items: stretch; text-align: left; }
	body.da2f-page .da2f-alertbox .button { width: 100%; }
}

/* En-tête compacte de la page autonome (le modèle du thème n'est pas chargé ici) */
body.da2f-page .site-header, body.da2f-page #masthead { display: none !important; }
.da2f-topbar { position: sticky; top: 0; z-index: 40; background: #0f1b3c; color: #fff; }
.da2f-topbar__in { width: min(1180px, 100%); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.da2f-topbar__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 15px; letter-spacing: .01em; min-width: 0; }
.da2f-topbar__brand img { width: auto !important; height: 38px !important; max-width: 120px; object-fit: contain; }
.da2f-topbar__nav { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.da2f-topbar__nav a { color: rgba(255,255,255,.9) !important; text-decoration: none !important; font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.da2f-topbar__nav a:hover { background: rgba(255,255,255,.12); color: #fff !important; }
.da2f-topbar__cart { background: #e11d48; color: #fff !important; }
.da2f-topbar__cart:hover { background: #be123c !important; }
@media (max-width: 480px) {
	.da2f-topbar__brand span { display: none; }
	.da2f-topbar__brand img { height: 34px !important; }
	.da2f-topbar__in { padding: 8px 14px; }
}

/* 1.1.5 : jamais de coeur dans la barre d'etapes de la commande (garde-fou si un JS en cache l'injecte encore) */
.da2-purchase-progress .da2f-header{display:none!important}

/* =====================================================================
 *  Bain & Élégance — adaptation au thème (fiches claires, bleu nuit)
 * =================================================================== */
.da2f-heart.da2f-heart--title { color: var(--da2f-brand); border-color: rgba(20, 36, 59, .2); background: #fff; }
.da2f-heart.da2f-heart--title:hover { color: var(--da2f-heart); border-color: var(--da2f-heart); background: rgba(227, 24, 55, .06); }
.da2f-heart.da2f-heart--title.is-on { color: var(--da2f-heart); border-color: var(--da2f-heart); background: rgba(227, 24, 55, .08); }
.da2f-heart.da2f-heart--title:focus-visible { outline-color: var(--da2f-brand); }
.beh-prod .da2f-heart--card { top: 10px; right: 10px; }
.bain-header .da2f-header { margin-right: 0; color: inherit; }
.da2f-toast { background: var(--da2f-brand); }