/* En-tête : collant (off | always | on-scroll-up, classe body bp-sticky-*), cœur « liste d'envies », icônes compte / panier, focus. Valeurs neutres surchargeables par variables --bp-icon-*. */

/* ---------- en-tête collant : seule la partie logo / menu / recherche colle, la barre d'annonces défile ---------- */
body.bp-sticky-always .wp-block-template-part:has(> .bp-header),
body.bp-sticky-on-scroll-up .wp-block-template-part:has(> .bp-header) {
	position: sticky;
	top: calc(var(--bp-ab, 0px) - var(--bp-topbar-h, 30px));
	z-index: 200;
	transition: top calc(0.25s * var(--bp-motion-speed,1)) var(--bp-ease,ease);
}
body.bp-sticky-until .wp-block-template-part:has(> .bp-header) { transition: top calc(0.3s * var(--bp-motion-speed,1)) var(--bp-ease,ease); }
/* barre d'annonces collée avec l'en-tête (sticky_until.include_topbar) */
body.bp-sticky-topbar .wp-block-template-part:has(> .bp-header) { top: var(--bp-ab, 0px); }
body.bp-sticky-on-scroll-up .wp-block-template-part.bp-hdr-hidden:has(> .bp-header),
body.bp-sticky-until .wp-block-template-part.bp-hdr-hidden:has(> .bp-header) {
	top: calc(var(--bp-ab, 0px) - var(--bp-hdr-total, 220px) - 4px);
}
/* header_collapse = logo (mobile) : au défilement, seuls la barre d'annonces/sociale et le logo se retirent ; la barre de menu (burger, recherche, compte, panier) reste visible. Ordinateur : jamais masqué (le JS ne pose pas la classe). */
@media (max-width: 749px) {
	body.bp-hdr-collapse-logo .wp-block-template-part.bp-hdr-hidden:has(> .bp-header) { top: calc(var(--bp-ab, 0px) - var(--bp-hide-h, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
	body[class*="bp-sticky-"] .wp-block-template-part:has(> .bp-header) { transition: none; }
}

/* ---------- plus d'encadré au toucher / au clic (le focus clavier reste visible, discret) ---------- */
html, body a, body button, body summary, body label, body [role="button"] { -webkit-tap-highlight-color: transparent; }
html body a:focus:not(:focus-visible),
html body button:focus:not(:focus-visible),
html body summary:focus:not(:focus-visible),
html body [tabindex]:focus:not(:focus-visible),
html body .wc-block-mini-cart__button:focus:not(:focus-visible),
html body .wp-block-woocommerce-customer-account a:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.bp-header a:focus-visible, .bp-header button:focus-visible, .bp-header summary:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.75) !important; outline-offset: 2px; border-radius: var(--bp-radius-md,10px); }

/* ---------- cœur « liste d'envies » : picto seul + pastille ---------- */
a.bp-wish.bp-wish { position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.bp-wish.bp-wish .visually-hidden {
	position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important;
	overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}
a.bp-wish.bp-wish .svg-wrapper { display: inline-flex; width: auto; height: auto; }
a.bp-wish.bp-wish .pp-wishlist-bubble {
	position: absolute !important; top: -2.8px; right: -2.8px; left: auto; bottom: auto; margin: 0; min-width: 17.9px; height: 17.9px; padding: 0 3.8px; border-radius: 100%; box-sizing: border-box;
	background: var(--bp-icon-badge-bg, #231d19); color: var(--bp-icon-badge-text, #fff); font: 700 12px/13.2px 'Nunito', sans-serif; display: flex; align-items: center; justify-content: center;
}
a.bp-wish.bp-wish .pp-wishlist-bubble[hidden] { display: none !important; }

/* ---------- icônes cœur / compte / panier : survol et pastille du panier ---------- */
.bp-icons .bp-wish, .bp-icons .wp-block-woocommerce-customer-account a, .bp-icons .wc-block-mini-cart__button { border-radius: var(--bp-radius-md,12px); transition: background-color calc(0.18s * var(--bp-motion-speed,1)), transform calc(0.18s * var(--bp-motion-speed,1)); }
.bp-icons .bp-wish:hover, .bp-icons .wp-block-woocommerce-customer-account a:hover, .bp-icons .wc-block-mini-cart__button:hover { background: color-mix(in srgb, currentColor 14%, transparent); transform: translateY(-1px); }
.bp-icons .bp-wish:active, .bp-icons .wp-block-woocommerce-customer-account a:active, .bp-icons .wc-block-mini-cart__button:active { transform: scale(0.94); }
.bp-icons .wc-block-mini-cart__button { background: none; border: 0; cursor: pointer; }
.bp-icons .wc-block-mini-cart__quantity-badge { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.bp-icons .wc-block-mini-cart__badge {
	display: flex !important; align-items: center; justify-content: center; position: absolute; top: -7px; right: -9px; left: auto; bottom: auto; margin: 0;
	min-width: 17.9px; height: 17.9px; padding: 0 4px; border-radius: 100px; box-sizing: border-box;
	background: var(--bp-icon-cart-badge-bg, var(--bp-scheme-1-button, var(--bp-accent,#c2410c))) !important; color: var(--bp-icon-cart-badge-text, #fff) !important;
	font: 700 11px/1 'Nunito', sans-serif; box-shadow: 0 0 0 2px var(--bp-hdr, var(--bp-primary-hover,#34439e));
}
.bp-icons .wc-block-mini-cart__badge:empty { display: none !important; }
/* pastille du panier bien lisible sur tout en-tête (surtout vert/bleu foncé) : fond jaune vif, chiffre sombre, liseré blanc. Réglable : --bp-icon-cart-badge-bg / --bp-icon-cart-badge-text */
.bp-header .bp-icons .wc-block-mini-cart__badge.wc-block-mini-cart__badge {
	background: var(--bp-icon-cart-badge-bg, #ffc400) !important; color: var(--bp-icon-cart-badge-text, #1b1b1b) !important;
	min-width: 20px; height: 20px; font: 800 12px/1 'Nunito', sans-serif; box-shadow: 0 0 0 2px #fff;
}
