/* Balian – Booster les ventes : éléments présents sur tout le site (panier latéral, notification, messages, compte) */
:root{--bb-ink:#242424;--bb-mute:#6b6b6b;--bb-line:#ece6d8;--bb-cream:#faf5e9;--bb-honey:#ffb10f;--bb-honey-dk:#8a5a00;--bb-ok:#2e7d4f;--bb-ok-bg:#eaf5ee;--bb-ok-line:#cfe5d6;--bb-err:#b42318;--bb-err-bg:#fdecea;--bb-err-line:#f5c2bd}

/* Barre de livraison offerte */
.bb-fs-bar{font-size:14px;line-height:1.45;color:var(--bb-ink);background:#fffdf7;border:1px solid var(--bb-line);border-radius:16px;padding:14px 16px;margin:0 0 18px}
.bb-fs-bar[hidden],.bb-hidden{display:none!important}
.bb-fs-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.bb-fs-msg{display:block;flex:1;min-width:0}
.bb-fs-msg strong{font-weight:800;white-space:nowrap}
.bb-fs-track{height:6px;border-radius:99px;background:#f1ebdd;overflow:hidden}
.bb-fs-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffcc55,var(--bb-honey));transition:width .5s cubic-bezier(.2,.8,.2,1)}
.bb-fs-bar.is-done{background:var(--bb-ok-bg);border-color:var(--bb-ok-line)}
.bb-fs-bar.is-done .bb-fs-top{margin-bottom:0}
.bb-fs-bar.is-done .bb-fs-track{display:none}
.bb-fs-bar.is-done .bb-fs-msg{font-weight:700;color:var(--bb-ok)}
.bb-check{width:20px;height:20px;border-radius:50%;background:var(--bb-ok);position:relative;flex:none}
.bb-check:after{content:"";position:absolute;left:7px;top:4px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.bb-fs-sugg{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--bb-line)}
.bb-fs-sugg-link{display:flex;align-items:center;gap:10px;color:var(--bb-ink)!important;text-decoration:none;font-weight:600;font-size:13px;min-width:0}
.bb-fs-sugg-link img{width:44px!important;height:44px!important;object-fit:cover;border-radius:10px;background:var(--bb-cream);flex:none}
.bb-fs-sugg-link em{display:block;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--bb-honey-dk)}
.bb-fs-sugg-btn{flex:none;padding:9px 16px;border-radius:10px;border:1px solid var(--bb-ink);color:var(--bb-ink)!important;background:#fff;font-size:13px;font-weight:700;text-decoration:none;transition:.2s}
.bb-fs-sugg-btn:hover{background:var(--bb-ink);color:#fff!important}

/* Pictogrammes */
.bb-ico{flex:none;width:36px;height:36px;border-radius:50%;background:#fff3d1;position:relative}
.bb-ico:after{content:"";position:absolute;inset:9px;background:var(--bb-honey-dk);-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.bb-ico-truck{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9.5h-11z'/%3E%3Cpath d='M13.5 9.5h4l3 3.2V16h-7'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3C/svg%3E")}
.bb-ico-cal{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E")}

/* États des boutons */
.bb-loading{opacity:.55;pointer-events:none}
.bb-added{background-color:var(--bb-ok)!important;color:#fff!important;border-color:var(--bb-ok)!important}
.bb-added i,.bb-added svg{color:#fff!important;fill:#fff!important}

/* Notification d'ajout au panier */
.bb-toast{position:fixed;z-index:99999;top:112px;right:24px;width:380px;max-width:calc(100vw - 32px);background:#fff;border:1px solid var(--bb-line);border-radius:20px;padding:18px;box-shadow:0 24px 48px -24px rgba(36,36,36,.35);color:var(--bb-ink);font-size:14px;opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .25s,transform .25s}
.bb-toast.is-on{opacity:1;transform:none;pointer-events:auto}
.bb-toast,.bb-toast *{text-align:left}
.bb-toast .bb-toast-x{position:absolute;top:10px;right:10px;width:30px;height:30px;min-height:0;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;font-size:20px;line-height:30px;text-align:center;color:var(--bb-mute)!important;cursor:pointer;padding:0!important}
.bb-toast .bb-toast-x:hover{background:#f4efe3!important;color:var(--bb-ink)!important}
.bb-toast-main{display:flex;gap:14px;align-items:center;padding-right:24px}
.bb-toast-img{flex:none;width:60px;height:60px;border-radius:12px;background:var(--bb-cream);overflow:hidden}
.bb-toast-img img{width:100%;height:100%;object-fit:cover}
.bb-toast-body{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.bb-toast-kicker{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--bb-ok)}
.bb-toast-kicker .bb-check{width:16px;height:16px}
.bb-toast-kicker .bb-check:after{left:5.5px;top:3px;width:4px;height:7px}
.bb-toast-name{font-weight:700;font-size:15px;line-height:1.3}
.bb-toast-meta{font-size:13px;color:var(--bb-mute)}
.bb-toast-fs{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#fff8e6;font-size:13px;color:#5c3c00}
.bb-toast-fs.is-done{background:var(--bb-ok-bg);color:var(--bb-ok);font-weight:600}
.bb-toast-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.bb-toast .bb-toast-actions a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:46px;padding:10px 14px;border-radius:12px;font-weight:700;font-size:14px;line-height:1.2;text-decoration:none;transition:background-color .2s,color .2s,border-color .2s}
.bb-toast .bb-toast-cart{border:1px solid var(--bb-ink);color:var(--bb-ink)!important;background:#fff}
.bb-toast .bb-toast-cart:hover{background:var(--bb-ink);color:#fff!important}
.bb-toast .bb-toast-go{border:1px solid var(--bb-honey);background:var(--bb-honey);color:var(--bb-ink)!important}
.bb-toast .bb-toast-go:hover{background:var(--bb-ink);border-color:var(--bb-ink);color:#fff!important}
@media (max-width:767px){
	.bb-toast{top:auto;bottom:12px;right:12px;left:12px;width:auto;max-width:none;transform:translateY(12px)}
	body.single-product .bb-toast{bottom:84px}
}

/* Panier latéral */
.bb-mini-title{margin:0 0 4px;padding-right:44px;font-size:20px;font-weight:700;color:var(--bb-ink)}
.bb-mini{margin:4px 0 12px}
.bb-mini .bb-fs-bar{margin:0 0 10px;padding:12px 14px;font-size:13px}
.bb-mini-ship{display:flex;align-items:center;gap:10px;margin:0;padding:10px 12px;border-radius:12px;background:var(--bb-ok-bg);font-size:13px;font-weight:600;color:var(--bb-ok)}
.bb-mini-ship .bb-ico{width:28px;height:28px;background:#d6ecdd}
.bb-mini-ship .bb-ico:after{inset:7px;background:var(--bb-ok)}
.bb-mini-meta{display:inline-block;margin-right:6px;padding:2px 8px;border-radius:99px;background:var(--bb-cream);color:var(--bb-honey-dk);font-size:12px;font-weight:600}

/* Messages WooCommerce */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error,.woocommerce-message,.woocommerce-info,.woocommerce-error{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 20px!important;padding:14px 18px 14px 50px!important;border:1px solid var(--bb-ok-line)!important;border-radius:14px!important;background:var(--bb-ok-bg)!important;color:var(--bb-ink)!important;font-size:15px;line-height:1.45;list-style:none}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{position:absolute!important;left:18px!important;top:50%!important;transform:translateY(-50%);color:var(--bb-ok)!important;margin:0!important}
.woocommerce-info{border-color:#ffdf8f!important;background:#fff8e6!important}
.woocommerce-info::before{color:var(--bb-honey-dk)!important}
.woocommerce-error{border-color:var(--bb-err-line)!important;background:var(--bb-err-bg)!important}
.woocommerce-error::before{color:var(--bb-err)!important}
.woocommerce-message a:not(.button),.woocommerce-info a:not(.button),.woocommerce-error a:not(.button){color:var(--bb-ink)!important;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.woocommerce-message .button,.woocommerce-info .button,.woocommerce-error .button{order:2;margin-left:auto!important;padding:8px 14px!important;border-radius:10px!important;border:1px solid var(--bb-ink)!important;background:#fff!important;color:var(--bb-ink)!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important}
.woocommerce-message .button:hover,.woocommerce-info .button:hover,.woocommerce-error .button:hover{background:var(--bb-ink)!important;color:#fff!important}

/* Icône compte */
.bb-account{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:10px;margin:-10px;color:#242424!important;line-height:0;transition:color .2s}
.bb-account:hover{color:#8a5a00!important}
.bb-account svg{width:24px;height:24px}
.bb-account-ok{position:absolute;right:6px;bottom:7px;width:14px;height:14px;border-radius:50%;background:var(--bb-ok);border:2px solid #fff}
.bb-account-ok:after{content:"";position:absolute;left:3.5px;top:1.5px;width:3px;height:6px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.bb-fs-top .bb-ico{width:30px;height:30px}
.bb-fs-top .bb-ico:after{inset:7px}
.bb-mini .bb-fs-top .bb-ico{width:26px;height:26px}

/* Fenêtre de recherche : suggestions */
.bb-ss{margin-top:16px;padding-top:16px;border-top:1px solid var(--bb-line)}
.bb-ss.is-typing{display:none}
.bb-ss-title{margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--bb-honey-dk)}
.bb-ss-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.bb-ss-chip{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:99px;background:var(--bb-cream);color:var(--bb-ink)!important;font-size:14px;font-weight:600;text-decoration:none;transition:background-color .2s}
.bb-ss-chip:hover{background:#ffefc2}
.bb-ss-prods{list-style:none;margin:0 0 14px;padding:0;border-top:1px solid var(--bb-line)}
.bb-ss-prods li{margin:0;border-bottom:1px solid var(--bb-line)}
.bb-ss-prods a{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;column-gap:14px;padding:10px 6px;color:var(--bb-ink)!important;text-decoration:none;transition:background-color .2s}
.bb-ss-prods a:hover{background:#fffdf7}
.bb-ss-prods img{width:52px!important;height:52px!important;object-fit:cover;border-radius:10px;background:var(--bb-cream)}
.bb-ss-name{font-size:14px;font-weight:600;line-height:1.3}
.bb-ss-price{font-size:14px;font-weight:800;white-space:nowrap}
.bb-ss-note{display:flex;align-items:center;gap:10px;margin:0;padding:10px 12px;border-radius:12px;background:var(--bb-ok-bg);color:var(--bb-ok);font-size:13px;font-weight:600}
.bb-ss-note .bb-ico{width:28px;height:28px;background:#d6ecdd}
.bb-ss-note .bb-ico:after{inset:7px;background:var(--bb-ok)}
@media (max-width:767px){.bb-ss-prods a{grid-template-columns:44px minmax(0,1fr) auto;column-gap:10px;padding:8px 4px}.bb-ss-prods img{width:44px!important;height:44px!important}.bb-ss-name{font-size:13px}.bb-ss-chip{font-size:13px;min-height:34px;padding:0 12px}}

/* Défilement horizontal sur tablette et mobile (classe à poser sur un conteneur Elementor) */
@media (max-width:1024px){
	.bb-hscroll{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding-bottom:12px!important;scrollbar-width:thin;scrollbar-color:#e3a20a #f4eddc}
	.bb-hscroll::-webkit-scrollbar{height:4px}
	.bb-hscroll::-webkit-scrollbar-track{background:#f4eddc;border-radius:99px}
	.bb-hscroll::-webkit-scrollbar-thumb{background:#e3a20a;border-radius:99px}
	.bb-hscroll>*{flex-shrink:0!important;scroll-snap-align:start}
}
@media (max-width:767px){
	.bb-hscroll-m{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding-bottom:12px!important;scrollbar-width:thin;scrollbar-color:#e3a20a #f4eddc}
	.bb-hscroll-m::-webkit-scrollbar{height:4px}
	.bb-hscroll-m::-webkit-scrollbar-track{background:#f4eddc;border-radius:99px}
	.bb-hscroll-m::-webkit-scrollbar-thumb{background:#e3a20a;border-radius:99px}
	.bb-hscroll-m>*{flex-shrink:0!important;scroll-snap-align:start}
}
/* Barres de défilement du site */
html{scrollbar-color:#d6c9a8 #faf7ef}
::-webkit-scrollbar{width:10px;height:6px}
::-webkit-scrollbar-track{background:#faf7ef}
::-webkit-scrollbar-thumb{background:#d6c9a8;border-radius:99px;border:2px solid #faf7ef}
::-webkit-scrollbar-thumb:hover{background:#c4b48c}
