/* KUBYX – barre de recherche, suggestions et raccourcis. Couleurs reprises du thème (bleu du logo). */
.kubyx-recherche, .kubyx-recherche * { box-sizing: border-box; }
.kubyx-recherche { --kb: var(--wp--preset--color--bleu, #0a5cf0); --kn: var(--wp--preset--color--noir, #0e0e10); --kl: var(--wp--preset--color--ligne, #e4e2de); --kg: var(--wp--preset--color--gris-fonce, #56565c); --ks: var(--wp--preset--color--surface, #f4f3f0);
	position: relative; display: flex; align-items: center; gap: .5rem; width: 100%; margin: 0; background: #fff; border: 1.5px solid var(--kl); border-radius: 999px; padding: 0 .35rem 0 1rem; transition: border-color .15s, box-shadow .15s; }
.kubyx-recherche:focus-within { border-color: var(--kb); box-shadow: 0 0 0 4px rgba(10, 92, 240, .12); }
.kubyx-recherche__ico { display: inline-flex; color: var(--kg); flex: none; }
.kubyx-recherche input[type=search] { flex: 1 1 auto; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent; font: inherit; font-size: 1rem; color: var(--kn); min-height: 44px; padding: .5rem 0; -webkit-appearance: none; appearance: none; }
.kubyx-recherche input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
.kubyx-recherche input[type=search]::placeholder { color: #6b6b72; opacity: 1; }
.kubyx-recherche__go { flex: none; border: 0; border-radius: 999px; background: var(--kb); color: #fff; font-family: var(--wp--preset--font-family--titre, inherit); font-weight: 600; font-size: .9375rem; min-height: 40px; padding: 0 1.15rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.kubyx-recherche__go:hover { background: var(--wp--preset--color--bleu-fonce, #0847c0); }

/* Grande barre (accueil, résultats) */
.kubyx-recherche--grande { padding: .3rem .35rem .3rem 1.15rem; box-shadow: 0 2px 14px rgba(14, 14, 16, .06); max-width: 640px; }
.kubyx-recherche--grande input[type=search] { font-size: 1.0625rem; min-height: 48px; }
.kubyx-recherche--grande .kubyx-recherche__go { min-height: 46px; padding: 0 1.4rem; }
.kubyx-recherche--boutique { max-width: 520px; }

/* En-tête : champ visible sur ordinateur */
.kubyx-recherche-entete { position: relative; }
.kubyx-recherche-entete__ouvrir, .kubyx-recherche-entete__fermer, .kubyx-recherche-entete__raccourcis { display: none; }
.kubyx-recherche--entete { width: clamp(190px, 20vw, 290px); padding: 0 .25rem 0 .85rem; border-width: 1px; background: var(--ks); border-color: transparent; }
.kubyx-recherche--entete:focus-within { background: #fff; }
.kubyx-recherche--entete .kubyx-recherche__ico { display: none; }
.kubyx-recherche--entete input[type=search] { font-size: .9375rem; min-height: 42px; }
.kubyx-recherche--entete .kubyx-recherche__go { background: transparent; color: var(--kn); min-height: 38px; min-width: 38px; padding: 0; justify-content: center; }
.kubyx-recherche--entete .kubyx-recherche__go:hover { background: #e9e8e4; }
.kubyx-recherche--entete .kubyx-suggest { width: min(440px, 92vw); left: auto; right: 0; }

/* Téléphone et tablette : une loupe ouvre un panneau plein écran */
@media (max-width: 1023px) {
	.kubyx-recherche-entete__ouvrir { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--wp--preset--color--noir, #0e0e10); border-radius: 999px; cursor: pointer; padding: 0; }
	.kubyx-recherche-entete__ouvrir:hover { background: var(--wp--preset--color--surface, #f4f3f0); }
	.kubyx-recherche-entete__panneau { display: none; }
	.kubyx-recherche-entete.is-open .kubyx-recherche-entete__panneau { display: flex; flex-direction: column; gap: 1rem; position: fixed; inset: 0; z-index: 100001; background: #fff; padding: 1rem clamp(1rem, 4vw, 2rem) 2rem; overflow-y: auto; }
	.kubyx-recherche-entete.is-open .kubyx-recherche--entete { width: 100%; background: #fff; border: 1.5px solid var(--wp--preset--color--bleu, #0a5cf0); padding-left: 1rem; }
	.kubyx-recherche-entete.is-open .kubyx-recherche--entete .kubyx-recherche__ico { display: inline-flex; }
	.kubyx-recherche-entete.is-open .kubyx-recherche--entete input[type=search] { font-size: 1rem; min-height: 48px; }
	.kubyx-recherche-entete.is-open .kubyx-recherche--entete .kubyx-suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 0; max-height: calc(100vh - 140px); background: #fff; z-index: 2; }
	.kubyx-recherche-entete.is-open .kubyx-recherche-entete__raccourcis { display: block; }
	.kubyx-recherche-entete.is-open .kubyx-recherche-entete__fermer { display: inline-flex; order: -1; align-self: flex-end; border: 0; background: var(--wp--preset--color--surface, #f4f3f0); border-radius: 999px; min-height: 44px; padding: 0 1.25rem; font-weight: 600; cursor: pointer; align-items: center; }
	html.kubyx-recherche-ouverte { overflow: hidden; }
}

/* Suggestions */
.kubyx-suggest { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--kl, #e4e2de); border-radius: 18px; box-shadow: 0 16px 40px rgba(14, 14, 16, .14); padding: .5rem; max-height: min(70vh, 560px); overflow-y: auto; text-align: left; }
.kubyx-suggest a { text-decoration: none; color: var(--wp--preset--color--encre, #18181b); }
.kubyx-suggest__groupe { display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem .35rem .6rem; border-bottom: 1px solid var(--kl, #e4e2de); margin-bottom: .35rem; }
.kubyx-suggest__rub { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .85rem; border-radius: 999px; background: var(--wp--preset--color--bleu-pale, #e9f0fe); color: var(--wp--preset--color--bleu-fonce, #0847c0) !important; font-weight: 600; font-size: .9rem; }
.kubyx-suggest__rub span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; font-weight: 600; }
.kubyx-suggest__rub em { font-style: normal; font-weight: 500; opacity: .75; }
.kubyx-suggest__prod { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .85rem; padding: .45rem .5rem; border-radius: 12px; min-height: 60px; }
.kubyx-suggest__prod img, .kubyx-suggest__vide { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--wp--preset--color--surface, #f4f3f0); display: block; }
.kubyx-suggest__nom { font-weight: 600; line-height: 1.3; }
.kubyx-suggest__prix { font-family: var(--wp--preset--font-family--titre, inherit); font-weight: 600; white-space: nowrap; }
.kubyx-suggest [role=option]:hover, .kubyx-suggest [role=option].on { background: var(--wp--preset--color--surface, #f4f3f0); }
.kubyx-suggest__rub:hover, .kubyx-suggest__rub.on { background: #d6e3fd !important; }
.kubyx-suggest__tout { display: flex; align-items: center; min-height: 48px; padding: 0 .6rem; margin-top: .25rem; border-top: 1px solid var(--kl, #e4e2de); font-weight: 600; color: var(--wp--preset--color--bleu, #0a5cf0) !important; }
.kubyx-suggest__rien { padding: .85rem .75rem; line-height: 1.5; color: var(--wp--preset--color--gris-fonce, #56565c); }
.kubyx-suggest__rien strong { color: var(--wp--preset--color--encre, #18181b); display: block; margin-bottom: .2rem; }
.kubyx-suggest__rien a { color: var(--wp--preset--color--bleu, #0a5cf0); text-decoration: underline; }

/* Raccourcis (occasions, cadeaux, budget) */
.kubyx-raccourcis { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0; }
.kubyx-raccourcis__titre { font-family: var(--wp--preset--font-family--titre, inherit); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--gris-fonce, #56565c); width: 100%; }
.kubyx-raccourcis ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.kubyx-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: 999px; border: 1.5px solid var(--wp--preset--color--ligne, #e4e2de); background: #fff; color: var(--wp--preset--color--encre, #18181b); text-decoration: none; font-weight: 600; font-size: .9375rem; transition: border-color .15s, background-color .15s, color .15s; white-space: nowrap; }
.kubyx-chip:hover, .kubyx-chip:focus-visible { border-color: var(--wp--preset--color--bleu, #0a5cf0); color: var(--wp--preset--color--bleu-fonce, #0847c0); }
.kubyx-chip--occasion { background: var(--wp--preset--color--bleu-pale, #e9f0fe); border-color: transparent; color: var(--wp--preset--color--bleu-fonce, #0847c0); }
.kubyx-chip--tout { border-color: transparent; background: transparent; color: var(--wp--preset--color--bleu, #0a5cf0); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
	.kubyx-raccourcis ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 calc(-1 * var(--wp--style--root--padding-right, 1rem)); padding: 0 var(--wp--style--root--padding-right, 1rem) .25rem; scroll-padding-inline: 1rem; }
	.kubyx-raccourcis ul::-webkit-scrollbar { display: none; }
	.kubyx-recherche-entete__raccourcis .kubyx-raccourcis ul { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
	.kubyx-recherche--grande { padding-left: .9rem; }
	.kubyx-recherche--grande .kubyx-recherche__go { padding: 0 1rem; }
	.kubyx-recherche--grande input[type=search]::placeholder { font-size: .9375rem; }
}
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Pastilles de couleur (fiche produit) */
.kubyx-sw-cache { position: absolute !important; left: 0 !important; top: 0 !important; clip-path: inset(50%); opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.kubyx-teintes-box { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .35rem 0 .25rem; }
.kubyx-teintes { display: flex; flex-wrap: wrap; gap: .6rem; }
.kubyx-teinte { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--wp--preset--color--ligne, #e4e2de); background: var(--c); cursor: pointer; padding: 0; transition: box-shadow .15s, transform .15s; }
.kubyx-teinte.clair { box-shadow: 0 0 0 1.5px #c9c7c1; }
.kubyx-teinte:hover { transform: scale(1.06); }
.kubyx-teinte.on { box-shadow: 0 0 0 2.5px var(--wp--preset--color--bleu, #0a5cf0); }
.kubyx-teinte:disabled { opacity: .3; cursor: not-allowed; background-image: linear-gradient(135deg, transparent 46%, #b42318 46% 54%, transparent 54%); }
.kubyx-teintes__nom { font-size: .9375rem; font-weight: 600; color: var(--wp--preset--color--encre, #18181b); }
table.variations .reset_variations { margin-left: 0; }

/* Barre d'achat qui suit le client sur la fiche produit */
.kubyx-barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 1rem; padding: .65rem clamp(1rem, 4vw, 2.5rem) calc(.65rem + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--wp--preset--color--ligne, #e4e2de); box-shadow: 0 -6px 24px rgba(14,14,16,.08); transform: translateY(110%); transition: transform .2s; }
.kubyx-barre-achat.on { transform: none; }
.kubyx-barre-achat__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.kubyx-barre-achat__txt strong { font-family: var(--wp--preset--font-family--titre, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kubyx-barre-achat__txt span { font-family: var(--wp--preset--font-family--titre, inherit); font-weight: 600; color: var(--wp--preset--color--gris-fonce, #56565c); font-size: .9375rem; }
.kubyx-barre-achat__btn { flex: none; border: 0; border-radius: 999px; background: var(--wp--preset--color--bleu, #0a5cf0); color: #fff; font-family: var(--wp--preset--font-family--titre, inherit); font-weight: 600; font-size: 1rem; min-height: 48px; padding: 0 1.6rem; cursor: pointer; }
.kubyx-barre-achat__btn:hover { background: var(--wp--preset--color--bleu-fonce, #0847c0); }
html.kubyx-barre-on .wc-block-mini-cart__drawer, html.kubyx-barre-on .kubyx-demo-bandeau { margin-bottom: 0; }
@media (min-width: 1024px) { .kubyx-barre-achat { justify-content: flex-end; } .kubyx-barre-achat__txt { flex: 0 1 auto; text-align: right; } }
