/**
 * Vapozone Search — overlay plein écran.
 * Styles isolés par le préfixe .vzs- pour ne pas entrer en conflit avec le thème.
 */

:root {
	--vzs-accent: #111111;
	--vzs-accent-contrast: #ffffff;
	--vzs-bg: #ffffff;
	--vzs-fg: #16181d;
	--vzs-muted: #6b7280;
	--vzs-line: #e6e8ec;
	--vzs-soft: #f6f7f9;
	--vzs-radius: 10px;
	--vzs-sidebar: 300px;
	--vzs-header: 132px;
}

html.vzs-locked { overflow: hidden; }

.vzs-root { display: none; }
.vzs-root.is-open { display: block; }

/* Neutralisation des styles du thème (Elementor, Hello…) à l'intérieur de l'overlay. */
.vzs-root *, .vzs-root *::before, .vzs-root *::after { box-sizing: border-box; }
.vzs-root .vzs-overlay input, .vzs-root .vzs-overlay button, .vzs-root .vzs-overlay select {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	height: auto;
}
.vzs-root .vzs-overlay input[type="search"], .vzs-root .vzs-overlay input[type="checkbox"] { appearance: none; -webkit-appearance: none; }
.vzs-root .vzs-overlay button { background: none; border: 0; padding: 0; }
.vzs-root .vzs-overlay a { text-decoration: none; color: inherit; }
.vzs-root .vzs-overlay p { margin: 0; }
.vzs-root .vzs-overlay img { max-width: 100%; height: auto; }
.vzs-root .vzs-overlay button:focus-visible, .vzs-root .vzs-overlay input:focus-visible, .vzs-root .vzs-overlay select:focus-visible { outline: 2px solid var(--vzs-accent); outline-offset: 2px; }

/* Loupe injectée dans le header du thème : elle vit hors de .vzs-root, dans le DOM
   d'Elementor, dont les règles globales sur <button> sont très agressives — d'où !important. */
button.vzs-trigger-icon, .vzs-trigger-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 34px !important;
	min-height: 0 !important;
	margin: 0 14px 0 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	line-height: 1 !important;
	cursor: pointer;
	color: inherit !important;
	vertical-align: middle;
	transition: opacity .15s ease;
}
.vzs-trigger-icon svg { width: 26px !important; height: 26px !important; stroke-width: 1.6; display: block; }
.vzs-trigger-icon:hover, .vzs-trigger-icon:focus-visible { opacity: .65; background: none !important; }
.vzs-trigger-icon .vzs-sr, .vzs-sr {
	position: absolute !important; width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: -1px !important; overflow: hidden !important;
	clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}

.vzs-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: var(--vzs-bg);
	color: var(--vzs-fg);
	display: flex;
	flex-direction: column;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
}

/* ---------------------------------------------------------- Apparitions */
/* L'état au repos est toujours visible : les animations ne sont posées que via .is-entering
   (rejouée à chaque ouverture) ou sur des éléments fraîchement rendus. */

.vzs-overlay.is-entering { animation: vzs-overlay-in .32s cubic-bezier(.2, .7, .2, 1) both; }
.vzs-overlay.is-entering .vzs-header { animation: vzs-slide-down .38s cubic-bezier(.2, .7, .2, 1) both; }
.vzs-overlay.is-entering .vzs-sidebar { animation: vzs-slide-right .45s cubic-bezier(.2, .7, .2, 1) .08s both; }
.vzs-overlay.is-entering .vzs-toolbar { animation: vzs-fade-up .4s ease-out .12s both; }

@keyframes vzs-overlay-in {
	from { opacity: 0; transform: scale(1.015); }
	to   { opacity: 1; transform: none; }
}
@keyframes vzs-slide-down {
	from { opacity: 0; transform: translateY(-14px); }
	to   { opacity: 1; transform: none; }
}
@keyframes vzs-slide-right {
	from { opacity: 0; transform: translateX(-16px); }
	to   { opacity: 1; transform: none; }
}
@keyframes vzs-fade-up {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}
@keyframes vzs-pop {
	from { opacity: 0; transform: scale(.94) translateY(4px); }
	to   { opacity: 1; transform: none; }
}

/* Cartes produits : cascade, 35 ms entre chaque carte. */
.vzs-card {
	animation: vzs-fade-up .36s cubic-bezier(.2, .7, .2, 1) both;
	animation-delay: calc(var(--i, 0) * 25ms);
}
.vzs-card__media { transition: box-shadow .25s ease; }
.vzs-card__media img { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.vzs-card:hover .vzs-card__media { box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .28); }
.vzs-card:hover .vzs-card__media img { transform: scale(1.05); }
.vzs-card__badges .vzs-badge { animation: vzs-pop .35s ease-out both; animation-delay: calc(var(--i, 0) * 25ms + 160ms); }

/* Chips de suggestions : cascade rapide, 25 ms. */
.vzs-root .vzs-overlay .vzs-suggest__item {
	animation: vzs-pop .28s ease-out both;
	animation-delay: calc(var(--i, 0) * 25ms);
}
.vzs-root .vzs-overlay .vzs-suggest__item:hover { transform: translateY(-1px); }

/* Chips de filtres actifs et « affinez votre recherche ». */
.vzs-chip, .vzs-tag { animation: vzs-pop .25s ease-out both; }
.vzs-root .vzs-overlay .vzs-chip:hover, .vzs-root .vzs-overlay .vzs-tag:hover { transform: translateY(-1px); }

/* Boutons : légère élévation au survol. */
.vzs-root .vzs-overlay .vzs-card__cart,
.vzs-root .vzs-overlay .vzs-loadmore { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.vzs-root .vzs-overlay .vzs-card__cart:hover,
.vzs-root .vzs-overlay .vzs-loadmore:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .35); }

.vzs-option:hover .vzs-option__box { border-color: var(--vzs-accent); }

/* ---------------------------------------------------------- Disparitions */

.vzs-overlay.is-leaving { animation: vzs-overlay-out .26s cubic-bezier(.4, 0, .6, 1) both; pointer-events: none; }
.vzs-overlay.is-leaving .vzs-header { animation: vzs-slide-up-out .26s ease-in both; }
.vzs-overlay.is-leaving .vzs-sidebar { animation: vzs-slide-left-out .26s ease-in both; }

@keyframes vzs-overlay-out {
	to { opacity: 0; transform: scale(.985); }
}
@keyframes vzs-slide-up-out {
	to { opacity: 0; transform: translateY(-12px); }
}
@keyframes vzs-slide-left-out {
	to { opacity: 0; transform: translateX(-12px); }
}
@keyframes vzs-pop-out {
	to { opacity: 0; transform: scale(.9); }
}
@keyframes vzs-strip-out {
	to { opacity: 0; transform: translateY(-6px); }
}

/* Grille : les anciens résultats s'effacent le temps que les nouveaux arrivent. */
.vzs-grid { transition: opacity .18s ease, transform .18s ease; }
.vzs-grid.is-leaving { opacity: 0; transform: translateY(6px); pointer-events: none; }

/* Bande de suggestions et chips de filtres. */
.vzs-root .vzs-overlay .vzs-suggest.is-leaving { animation: vzs-strip-out .22s ease-in both; pointer-events: none; }
.vzs-root .vzs-overlay .vzs-chip.is-leaving { animation: vzs-pop-out .2s ease-in both; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	.vzs-overlay.is-entering, .vzs-overlay.is-entering .vzs-header, .vzs-overlay.is-entering .vzs-sidebar,
	.vzs-overlay.is-entering .vzs-toolbar, .vzs-card, .vzs-card__badges .vzs-badge,
	.vzs-root .vzs-overlay .vzs-suggest__item, .vzs-chip, .vzs-tag,
	.vzs-overlay.is-leaving, .vzs-overlay.is-leaving .vzs-header, .vzs-overlay.is-leaving .vzs-sidebar,
	.vzs-root .vzs-overlay .vzs-suggest.is-leaving, .vzs-root .vzs-overlay .vzs-chip.is-leaving { animation: none; }
	.vzs-grid, .vzs-grid.is-leaving { transition: none; opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Header */

.vzs-header {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 22px 28px 0;
	border-bottom: 1px solid var(--vzs-line);
	flex: 0 0 auto;
}

.vzs-header__bar {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	border-bottom: 2px solid var(--vzs-fg);
	padding: 8px 2px 14px;
}

.vzs-header__icon { display: flex; color: var(--vzs-muted); }

.vzs-root .vzs-overlay .vzs-input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: clamp(20px, 3vw, 30px);
	font-weight: 600;
	color: var(--vzs-fg);
	padding: 0;
	min-width: 0;
}
.vzs-root .vzs-overlay .vzs-input:focus, .vzs-root .vzs-overlay .vzs-input:focus-visible { outline: 0; box-shadow: none; }
.vzs-root .vzs-overlay .vzs-input::placeholder { color: #b9bec7; font-weight: 500; }
.vzs-root .vzs-overlay .vzs-input::-webkit-search-cancel-button { display: none; }

.vzs-root .vzs-overlay .vzs-clear {
	background: none;
	border: 0;
	color: var(--vzs-muted);
	font-size: 13px;
	font-style: italic;
	cursor: pointer;
	padding: 4px 6px;
}
.vzs-root .vzs-overlay .vzs-clear:hover { color: var(--vzs-fg); }

.vzs-root .vzs-overlay .vzs-close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: var(--vzs-accent);
	color: var(--vzs-accent-contrast);
	display: grid;
	place-items: center;
	cursor: pointer;
	margin-top: 4px;
}
.vzs-root .vzs-overlay .vzs-close:hover { opacity: .85; }

/* ---------------------------------------------------------- Suggestions */
/* Bande de suggestions intégrée à la mise en page, entre la barre de recherche et le corps. */

.vzs-root .vzs-overlay .vzs-suggest {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 28px 12px;
	background: var(--vzs-soft);
	border-bottom: 1px solid var(--vzs-line);
}
.vzs-suggest[hidden] { display: none; }

.vzs-suggest__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.vzs-suggest__title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vzs-muted);
	margin-right: 6px;
	white-space: nowrap;
}

.vzs-root .vzs-overlay .vzs-suggest__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 13.5px;
	line-height: 1.2;
	color: var(--vzs-fg);
	background: var(--vzs-bg);
	border: 1px solid var(--vzs-line);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .12s ease, background-color .12s ease;
}
.vzs-root .vzs-overlay .vzs-suggest__item:hover,
.vzs-root .vzs-overlay .vzs-suggest__item.is-active { border-color: var(--vzs-accent); background: var(--vzs-bg); }
.vzs-root .vzs-overlay .vzs-suggest__item strong { font-weight: 700; color: var(--vzs-accent); }
.vzs-suggest__item--query > svg { color: var(--vzs-muted); }

.vzs-suggest__kind {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vzs-muted);
}
.vzs-suggest__count { color: var(--vzs-muted); font-size: 11px; }

@media (max-width: 768px) {
	.vzs-root .vzs-overlay .vzs-suggest { padding: 8px 16px 10px; }
	.vzs-suggest__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.vzs-suggest__row::-webkit-scrollbar { display: none; }
	.vzs-root .vzs-overlay .vzs-suggest__item { flex: 0 0 auto; }
}

/* ------------------------------------------------------------------ Body */

.vzs-body {
	flex: 1;
	display: grid;
	grid-template-columns: var(--vzs-sidebar) 1fr;
	min-height: 0;
}

.vzs--no-filters .vzs-body { grid-template-columns: 0 1fr; }
.vzs--no-filters .vzs-sidebar { display: none; }

.vzs-sidebar {
	border-right: 1px solid var(--vzs-line);
	overflow-y: auto;
	padding: 8px 0 60px;
	scrollbar-width: thin;
}

.vzs-main {
	overflow-y: auto;
	padding: 0 28px 80px;
	scrollbar-width: thin;
}

/* --------------------------------------------------------------- Facettes */

.vzs-facet { border-bottom: 1px solid var(--vzs-line); padding: 4px 22px 14px; }
.vzs-facet--switch { padding-top: 16px; padding-bottom: 16px; }

.vzs-root .vzs-overlay .vzs-facet__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: 0;
	padding: 14px 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--vzs-fg);
	cursor: pointer;
}
.vzs-facet.is-collapsed .vzs-facet__body { display: none; }
.vzs-facet.is-collapsed .vzs-chevron { transform: rotate(-90deg); }
.vzs-chevron { transition: transform .15s ease; }

.vzs-root .vzs-overlay .vzs-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	cursor: pointer;
	font-size: 14px;
}
.vzs-root .vzs-overlay .vzs-option[hidden] { display: none; }
.vzs-root .vzs-overlay .vzs-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.vzs-option__box {
	width: 17px;
	height: 17px;
	border: 1.5px solid #cbd0d8;
	border-radius: 4px;
	flex: 0 0 auto;
	position: relative;
	transition: all .12s ease;
}
.vzs-root .vzs-overlay .vzs-option input:checked + .vzs-option__box {
	background: var(--vzs-accent);
	border-color: var(--vzs-accent);
}
.vzs-root .vzs-overlay .vzs-option input:checked + .vzs-option__box::after {
	content: '';
	position: absolute;
	left: 5px; top: 1px;
	width: 4px; height: 9px;
	border: solid var(--vzs-accent-contrast);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.vzs-root .vzs-overlay .vzs-option input:focus-visible + .vzs-option__box { outline: 2px solid var(--vzs-accent); outline-offset: 2px; }
.vzs-option__label { flex: 1; }
.vzs-option__count { color: var(--vzs-muted); font-size: 12px; }

.vzs-root .vzs-overlay .vzs-more {
	background: none;
	border: 0;
	padding: 8px 0 0;
	font-size: 12px;
	font-style: italic;
	color: var(--vzs-muted);
	cursor: pointer;
	text-decoration: underline;
}
.vzs-root .vzs-overlay .vzs-more:hover { color: var(--vzs-fg); }

/* Facette dépliée : liste complète à défilement + champ de filtrage local */
.vzs-facet__list--scroll {
	max-height: 288px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #c9ccd2 transparent;
	padding-right: 6px;
	margin-right: -6px;
	border-bottom: 1px solid var(--vzs-line);
}
.vzs-facet__list--scroll::-webkit-scrollbar { width: 6px; }
.vzs-facet__list--scroll::-webkit-scrollbar-thumb { background: #c9ccd2; border-radius: 3px; }
.vzs-facet__list--scroll::-webkit-scrollbar-thumb:hover { background: var(--vzs-accent); }
.vzs-root .vzs-overlay .vzs-facet__filter {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 2px 0 8px;
	padding: 7px 10px;
	border: 1px solid var(--vzs-line);
	border-radius: 8px;
	background: #fff;
	color: var(--vzs-fg);
	font: inherit;
	font-size: 13px;
	line-height: 1.3;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.vzs-root .vzs-overlay .vzs-facet__filter:focus { border-color: var(--vzs-accent); box-shadow: 0 0 0 3px rgba(203, 162, 64, .18); }
.vzs-root .vzs-overlay .vzs-facet__filter::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; }
.vzs-facet__note, .vzs-facet__empty { margin: 8px 0 0; font-size: 12px; color: var(--vzs-muted); }

/* Interrupteur */
.vzs-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.vzs-switch input { position: absolute; opacity: 0; }
.vzs-switch__track {
	width: 40px; height: 22px;
	border-radius: 999px;
	background: #d7dbe2;
	position: relative;
	transition: background .15s ease;
	flex: 0 0 auto;
}
.vzs-switch__track::after {
	content: '';
	position: absolute;
	top: 3px; left: 3px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s ease;
}
.vzs-switch input:checked + .vzs-switch__track { background: var(--vzs-accent); }
.vzs-switch input:checked + .vzs-switch__track::after { transform: translateX(18px); }

/* --------------------------------------------------------------- Toolbar */

.vzs-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	position: sticky;
	top: 0;
	background: var(--vzs-bg);
	z-index: 5;
	border-bottom: 1px solid transparent;
}

.vzs-root .vzs-overlay .vzs-toggle-filters {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	font-size: 14px;
	color: var(--vzs-fg);
	cursor: pointer;
	padding: 6px 0;
}
.vzs--no-filters .vzs-toggle-filters { margin-left: 0; }

.vzs-toolbar__right { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.vzs-count { color: var(--vzs-muted); }
.vzs-count strong { color: var(--vzs-fg); }

.vzs-badge-ai {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--vzs-soft);
	color: var(--vzs-muted);
}

.vzs-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--vzs-muted); white-space: nowrap; flex: 0 0 auto; }
.vzs-sort > span { white-space: nowrap; }
.vzs-count { white-space: nowrap; }
.vzs-toolbar__right { flex-wrap: nowrap; }
.vzs-root .vzs-overlay .vzs-sort__select {
	border: 0;
	background: none;
	font-weight: 700;
	color: var(--vzs-fg);
	font-size: 14px;
	cursor: pointer;
	padding: 4px 2px;
}

/* ----------------------------------------------------------------- Chips */

.vzs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
.vzs-root .vzs-overlay .vzs-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--vzs-line);
	background: var(--vzs-soft);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	color: var(--vzs-fg);
}
.vzs-root .vzs-overlay .vzs-chip:hover { border-color: var(--vzs-fg); }
.vzs-chip--clear { background: none; font-style: italic; color: var(--vzs-muted); }

/* --------------------------------------------------------------- Produits */

.vzs-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 26px 20px;
	padding-top: 6px;
}

.vzs-card { display: flex; flex-direction: column; gap: 6px; position: relative; isolation: isolate; }
/* Les badges tiers (ex. « Prix Gold » du plugin de prix fidélité) portent leur propre z-index :
   le contexte d'empilement de la carte les empêche de passer au-dessus de la barre d'outils et des filtres. */
.vzs-root .vzs-overlay .vzs-card [class*="badge"] { z-index: 1; }
.vzs-card.is-out { opacity: .62; }
.vzs-root .vzs-overlay .vzs-card__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }

.vzs-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--vzs-soft);
	border-radius: var(--vzs-radius);
	overflow: hidden;
}
.vzs-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.vzs-card__noimg { display: block; width: 100%; height: 100%; }

.vzs-card__badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 1; }
.vzs-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 4px 8px;
	border-radius: 4px;
	background: #fff;
	border: 1px solid var(--vzs-line);
}
.vzs-badge--sale { background: var(--vzs-accent); color: var(--vzs-accent-contrast); border-color: transparent; }

.vzs-card__brand { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--vzs-muted); }
.vzs-card__title {
	font-size: 14px;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vzs-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vzs-card__price { font-weight: 700; font-size: 15px; color: var(--vzs-accent); }
.vzs-card__price .woocommerce-Price-amount, .vzs-card__price .amount, .vzs-card__price bdi { color: inherit; }
.vzs-card__price del { display: none; }
.vzs-card__variations { font-size: 11px; color: var(--vzs-muted); }

.vzs-stock { font-size: 11px; white-space: nowrap; }
.vzs-stock--in { color: #1c7c3f; }
.vzs-stock--out { color: #b32020; }

.vzs-root .vzs-overlay .vzs-card__view { display: block; text-align: center; text-decoration: none; }
/* Bouton « Ajouter » / « Voir le produit » : bordure or 3 px, fond blanc, texte or ; survol en noir. */
.vzs-root .vzs-overlay .vzs-card__cart {
	margin-top: 4px;
	border: 3px solid var(--vzs-accent);
	background: #ffffff;
	color: var(--vzs-accent);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all .12s ease;
}
.vzs-root .vzs-overlay .vzs-card__cart:hover,
.vzs-root .vzs-overlay .vzs-card__cart:focus-visible { background: #ffffff; color: #000000; border-color: #000000; }
.vzs-root .vzs-overlay .vzs-card__cart.is-loading { opacity: .5; }
.vzs-root .vzs-overlay .vzs-card__cart.is-done { background: #1c7c3f; border-color: #1c7c3f; color: #fff; }

/* ------------------------------------------------- États vide / footer */

.vzs-empty { padding: 60px 0; max-width: 620px; }
.vzs-start { padding: 10px 0 26px; max-width: 760px; }
.vzs-empty__title { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.vzs-empty__hint, .vzs-correction { color: var(--vzs-muted); font-size: 14px; }
.vzs-correction { margin: 0 0 14px; }
.vzs-root .vzs-overlay .vzs-suggest-link {
	background: none; border: 0; padding: 0;
	font: inherit; color: var(--vzs-fg);
	font-weight: 700; text-decoration: underline; cursor: pointer;
}

.vzs-start__title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--vzs-muted); margin: 0 0 14px; }
.vzs-start__tags, .vzs-related { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.vzs-root .vzs-overlay .vzs-tag {
	border: 1px solid var(--vzs-line);
	background: #fff;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	color: var(--vzs-fg);
}
.vzs-root .vzs-overlay .vzs-tag:hover { border-color: var(--vzs-fg); }

.vzs-footer { padding: 40px 0 0; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.vzs-related { justify-content: center; }
.vzs-related__title { width: 100%; text-align: center; font-size: 13px; color: var(--vzs-muted); margin: 0 0 6px; }

.vzs-root .vzs-overlay .vzs-loadmore {
	border: 1px solid var(--vzs-fg);
	background: transparent;
	color: var(--vzs-fg);
	border-radius: 999px;
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.vzs-root .vzs-overlay .vzs-loadmore:hover { background: var(--vzs-accent); color: var(--vzs-accent-contrast); }

/* ------------------------------------------------------------- Chargement */

.vzs-overlay.is-loading .vzs-main { opacity: .55; transition: opacity .12s ease; }
.vzs-overlay.is-loading::after {
	content: '';
	position: absolute;
	top: var(--vzs-header); left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--vzs-accent), transparent);
	animation: vzs-bar 1s linear infinite;
}
@keyframes vzs-bar {
	0%   { transform: translateX(-60%); }
	100% { transform: translateX(60%); }
}

/* ---------------------------------------------------- Widget Elementor */

/* Le widget vit dans le DOM d'Elementor : on verrouille ce que le thème repeint sur <button>. */
.vzs-el { display: flex; align-items: center; width: 100%; }
.vzs-el button.vzs-el__trigger, .vzs-el .vzs-el__trigger {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px;
	background: none;
	border: 0;
	padding: 0;
	margin: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	line-height: 1.2 !important;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none;
	border-radius: 0;
	text-align: left;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.vzs-el__icon { display: inline-flex; color: inherit; flex: 0 0 auto; }
.vzs-el__icon svg { width: 26px; height: 26px; stroke-width: 1.6; display: block; }
.vzs-el__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vzs-el__kbd {
	font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	padding: 4px 6px;
	border: 1px solid currentColor;
	border-radius: 5px;
	opacity: .55;
	flex: 0 0 auto;
}

/* Icône seule : rien d'autre que la loupe, comme l'icône compte à côté. */
.vzs-el--icon .vzs-el__trigger:hover { opacity: .65; }

/* Champ : une barre de recherche factice, sobre, héritant des couleurs du thème. */
.vzs-el--field .vzs-el__trigger {
	width: 100%;
	max-width: 420px;
	padding: 10px 18px 10px 16px;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 999px;
	background: rgba(0, 0, 0, .035);
	font-size: 14px;
	opacity: .85;
}
.vzs-el--field .vzs-el__trigger:hover { opacity: 1; border-color: currentColor; }
.vzs-el--field .vzs-el__icon svg { width: 18px; height: 18px; stroke-width: 2; }

/* Bouton : reprend la couleur d'accent de l'overlay par défaut. */
.vzs-el--button .vzs-el__trigger {
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--vzs-accent);
	color: var(--vzs-accent-contrast);
	font-size: 14px;
	font-weight: 600;
}
.vzs-el--button .vzs-el__trigger:hover { opacity: .88; }
.vzs-el--button .vzs-el__icon svg { width: 18px; height: 18px; stroke-width: 2; }

/* ------------------------------------------------------------ Déclencheur */

.vzs-trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--vzs-line);
	background: var(--vzs-soft);
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
	color: var(--vzs-muted);
	cursor: pointer;
	width: 100%;
	max-width: 420px;
}
.vzs-trigger:hover { border-color: var(--vzs-fg); color: var(--vzs-fg); }

/* -------------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
	:root { --vzs-sidebar: 260px; }
	.vzs-main { padding: 0 18px 80px; }
	.vzs-header { padding: 16px 18px 0; }
}

.vzs-sidebar__apply { display: none; }

@media (max-width: 768px) {
	/* iPhone à encoche, si le thème déclare viewport-fit=cover (sinon env() vaut 0). */
	.vzs-header { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
	/* Spécificité ≥ à « .vzs--no-filters .vzs-body » : sinon la colonne principale tombe dans la piste de 0 px. */
	.vzs-body, .vzs--no-filters .vzs-body { grid-template-columns: 1fr; position: relative; }
	/* Panneau de filtres : recouvre exactement la zone sous l'en-tête et la bande de suggestions,
	   quelle que soit leur hauteur réelle (position absolue dans .vzs-body, pas « fixed » depuis
	   l'overlay animé). Pas de padding-bottom : WebKit décale l'élément « sticky » d'autant. */
	.vzs-sidebar {
		position: absolute;
		inset: 0;
		background: var(--vzs-bg);
		z-index: 30;
		border-right: 0;
		padding-bottom: 0;
		display: flex;
		flex-direction: column;
	}
	.vzs-sidebar > .vzs-facet { flex: 0 0 auto; }
	.vzs--no-filters .vzs-sidebar { display: none; }
	.vzs-sidebar__apply {
		display: block;
		position: sticky;
		bottom: 0;
		margin-top: auto;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
		background: var(--vzs-bg);
		border-top: 1px solid var(--vzs-line);
	}
	.vzs-root .vzs-overlay .vzs-apply-filters {
		width: 100%;
		border: 3px solid var(--vzs-accent);
		background: var(--vzs-accent);
		color: #ffffff;
		border-radius: 999px;
		padding: 12px 16px;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}
	.vzs-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
	.vzs-toolbar { flex-wrap: wrap; gap: 10px; }
	.vzs-toolbar__right { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
	.vzs-overlay, .vzs-overlay::after { animation: none; }
	/* Limité au plugin : un « * » nu supprimait les transitions de tout le site. */
	.vzs-root *, .vzs-trigger-icon, .vzs-el, .vzs-el * { transition: none !important; }
}
