:root {
	--pwtes-text: #2b1a12;
	--pwtes-muted: #76665c;
	--pwtes-line: #eadfd4;
	--pwtes-bg: #fffdf9;
	--pwtes-soft: #f8f1e9;
	--pwtes-soft-2: #fdf8f1;
	--pwtes-accent: #401812;
	--pwtes-accent-hover: #2b100c;
	--pwtes-gold: #b88a4a;
	--pwtes-overlay: rgba(29, 19, 14, 0.48);
	--pwtes-radius: 18px;
	--pwtes-radius-sm: 12px;
	--pwtes-font: inherit;
}

.pwtes-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pwtes-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 16px 0;
	border-bottom: 1px solid var(--pwtes-line);
	font-family: var(--pwtes-font);
}

.pwtes-open {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0;
	background: transparent;
	padding: 8px 0;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pwtes-text);
	cursor: pointer;
}

.pwtes-open:hover {
	opacity: 0.7;
}

.pwtes-open__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.pwtes-open__icon path,
.pwtes-drawer__close path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.pwtes-open__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--pwtes-accent);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0;
}

.pwtes-open__count[hidden] {
	display: none;
}

.pwtes-sort select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b1a12' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	padding: 8px 22px 8px 0;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pwtes-text);
	cursor: pointer;
}

.pwtes-open:focus-visible,
.pwtes-sort select:focus-visible,
.pwtes-chip:focus-visible,
.pwtes-btn:focus-visible,
.pwtes-drawer__close:focus-visible,
.pwtes-facet__head:focus-visible {
	outline: 2px solid var(--pwtes-accent);
	outline-offset: 3px;
}

.pwtes-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 0 0;
}

.pwtes-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--pwtes-line);
	background: var(--pwtes-soft);
	padding: 7px 10px;
	font: inherit;
	font-size: 12px;
	color: var(--pwtes-text);
	cursor: pointer;
}

.pwtes-chip:hover {
	border-color: var(--pwtes-accent);
}

.pwtes-chip--clear {
	background: transparent;
	color: var(--pwtes-muted);
}

.pwtes-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	font-family: var(--pwtes-font);
}

.pwtes-drawer__overlay {
	position: absolute;
	inset: 0;
	background: var(--pwtes-overlay);
	opacity: 0;
	transition: opacity 220ms ease;
}

.pwtes-drawer.is-open .pwtes-drawer__overlay {
	opacity: 1;
}

.pwtes-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	right: auto;
	display: flex;
	flex-direction: column;
	width: 460px;
	max-width: 92vw;
	height: 100%;
	background:
		linear-gradient(180deg, rgba(248, 241, 233, 0.9) 0%, rgba(255, 253, 249, 1) 26%),
		var(--pwtes-bg);
	color: var(--pwtes-text);
	box-shadow: 24px 0 70px rgba(20, 10, 5, 0.18);
	transform: translateX(-100%);
	transition: transform 320ms cubic-bezier(.22,1,.36,1);
}

.pwtes-drawer.is-open .pwtes-drawer__panel {
	transform: translateX(0);
}

.pwtes-drawer__header {
	position: relative;
	padding: 34px 34px 28px;
	border-bottom: 1px solid var(--pwtes-line);
}

.pwtes-drawer__eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pwtes-muted);
}

.pwtes-drawer__title {
	margin: 0;
	font-size: clamp(30px, 4vw, 42px);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--pwtes-text);
}

.pwtes-drawer__close {
	position: absolute;
	top: 22px;
	right: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(64, 24, 18, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(8px);
	padding: 0;
	color: var(--pwtes-text);
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.pwtes-drawer__close:hover {
	background: #fff;
	border-color: var(--pwtes-accent);
	transform: rotate(90deg);
}

.pwtes-drawer__close svg {
	width: 24px;
	height: 24px;
	display: block;
}

.pwtes-form {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1;
}

.pwtes-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 34px 28px;
	scrollbar-width: thin;
	scrollbar-color: rgba(64,24,18,.35) transparent;
}

.pwtes-facet {
	margin: 0 0 14px;
	border: 1px solid var(--pwtes-line);
	border-radius: var(--pwtes-radius);
	background: rgba(255, 255, 255, 0.72);
	overflow: hidden;
	box-shadow: 0 10px 24px rgba(43, 26, 18, 0.035);
}

.pwtes-facet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: 0;
	background: transparent;
	padding: 18px 20px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pwtes-text);
	cursor: pointer;
	transition: background 180ms ease;
}

.pwtes-facet__head:hover {
	background: var(--pwtes-soft-2);
}

.pwtes-facet__head span:last-child {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--pwtes-soft);
	font-size: 20px;
	line-height: 1;
	transition: transform 180ms ease, background 180ms ease;
}

.pwtes-facet.is-closed .pwtes-facet__head span:last-child {
	transform: rotate(45deg);
}

.pwtes-facet__body {
	display: grid;
	gap: 8px;
	padding: 0 16px 18px;
}

.pwtes-facet.is-closed .pwtes-facet__body {
	display: none;
}

.pwtes-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 8px;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.35;
	cursor: pointer;
	color: var(--pwtes-text);
	transition: background 160ms ease, transform 160ms ease;
}

.pwtes-option:hover {
	background: var(--pwtes-soft-2);
	transform: translateX(2px);
}

.pwtes-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pwtes-option__box {
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 1.5px solid rgba(118, 102, 92, 0.75);
	border-radius: 6px;
	background: #fff;
	box-shadow: inset 0 0 0 2px #fff;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pwtes-option input:checked + .pwtes-option__box {
	background: var(--pwtes-accent);
	border-color: var(--pwtes-accent);
	transform: scale(1.04);
}

.pwtes-option input:checked + .pwtes-option__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 1.7px 1.7px 0;
	transform: rotate(45deg);
}

.pwtes-option input:focus-visible + .pwtes-option__box {
	outline: 2px solid var(--pwtes-accent);
	outline-offset: 3px;
}

.pwtes-drawer__footer {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 12px;
	padding: 20px 34px;
	border-top: 1px solid var(--pwtes-line);
	background: rgba(255, 253, 249, 0.92);
	backdrop-filter: blur(10px);
	box-shadow: 0 -16px 40px rgba(43, 26, 18, 0.06);
}

.pwtes-btn {
	border: 1px solid var(--pwtes-accent);
	border-radius: 999px;
	padding: 15px 18px;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.pwtes-btn:hover {
	transform: translateY(-1px);
}

.pwtes-btn--ghost {
	background: #fff;
	color: var(--pwtes-accent);
}

.pwtes-btn--solid {
	background: var(--pwtes-accent);
	color: #fff;
	box-shadow: 0 12px 26px rgba(64, 24, 18, 0.18);
}

.pwtes-btn--solid:hover {
	background: var(--pwtes-accent-hover);
}

body.pwtes-no-scroll {
	overflow: hidden;
}

/* Chargement AJAX discret sur les boucles produits ciblées */
.pwtes-grid-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.pwtes-is-loading .pwtes-open,
.pwtes-is-loading .pwtes-sort select,
.pwtes-is-loading .pwtes-btn {
	cursor: progress;
}

.pwtes-option__label {
	transition: color 160ms ease;
}

.pwtes-option input:checked ~ .pwtes-option__label {
	font-weight: 600;
	color: var(--pwtes-accent);
}

.pwtes-drawer__body::after {
	content: "";
	display: block;
	height: 12px;
}

@media (max-width: 640px) {
	.pwtes-toolbar {
		align-items: stretch;
	}

	.pwtes-open span:not(.pwtes-open__icon):not(.pwtes-open__count) {
		display: none;
	}

	.pwtes-sort select {
		max-width: 220px;
		font-size: 12px;
	}

	.pwtes-drawer__panel {
		width: 100%;
		max-width: 100%;
	}

	.pwtes-drawer__header,
	.pwtes-drawer__body,
	.pwtes-drawer__footer {
		padding-left: 22px;
		padding-right: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pwtes-drawer__overlay,
	.pwtes-drawer__panel,
	.pwtes-facet__head span:last-child {
		transition: none;
	}
}

/* v1.2.0 — Compteurs de produits par option */
.pwtes-option__count {
	margin-left: auto;
	min-width: 28px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(64, 24, 18, 0.07);
	color: var(--pwtes-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

.pwtes-option input:checked ~ .pwtes-option__count {
	background: var(--pwtes-accent);
	color: #fff;
}

/* v1.2.1 — Renfort anti-thème/Elementor
 * On verrouille les styles des boutons, selects, options et éléments interactifs
 * pour éviter que le thème ou Elementor ne les écrase.
 */
.pwtes-toolbar,
.pwtes-toolbar *,
.pwtes-drawer,
.pwtes-drawer *,
.pwtes-chips,
.pwtes-chips * {
	box-sizing: border-box !important;
}

.pwtes-open,
.pwtes-drawer__close,
.pwtes-facet__head,
.pwtes-btn,
.pwtes-chip,
.pwtes-sort select,
.pwtes-option {
	font-family: var(--pwtes-font) !important;
	text-decoration: none !important;
	box-shadow: none;
}

.pwtes-open,
.pwtes-drawer__close,
.pwtes-facet__head,
.pwtes-chip {
	background-color: transparent !important;
}

.pwtes-open {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	border: 0 !important;
	padding: 8px 0 !important;
	font: inherit !important;
	font-size: 13px !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--pwtes-text) !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
}

.pwtes-open:hover,
.pwtes-open:focus {
	background-color: transparent !important;
	color: var(--pwtes-text) !important;
}

.pwtes-open__count {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 20px !important;
	height: 20px !important;
	padding: 0 6px !important;
	border-radius: 999px !important;
	background: var(--pwtes-accent) !important;
	color: #fff !important;
	font-size: 11px !important;
	letter-spacing: 0 !important;
	line-height: 1 !important;
}

.pwtes-open__count[hidden] {
	display: none !important;
}

.pwtes-sort select {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 0 !important;
	background-color: transparent !important;
	background-repeat: no-repeat !important;
	background-position: right center !important;
	padding: 8px 22px 8px 0 !important;
	font: inherit !important;
	font-size: 13px !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: var(--pwtes-text) !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	outline: none;
}

.pwtes-chip {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	border: 1px solid var(--pwtes-line) !important;
	background: var(--pwtes-soft) !important;
	padding: 7px 10px !important;
	font: inherit !important;
	font-size: 12px !important;
	color: var(--pwtes-text) !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
}

.pwtes-chip:hover,
.pwtes-chip:focus {
	border-color: var(--pwtes-accent) !important;
	background: var(--pwtes-soft) !important;
	color: var(--pwtes-text) !important;
}

.pwtes-chip--clear,
.pwtes-chip--clear:hover,
.pwtes-chip--clear:focus {
	background: transparent !important;
	color: var(--pwtes-muted) !important;
}

.pwtes-drawer__close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 48px !important;
	height: 48px !important;
	border: 1px solid rgba(64, 24, 18, 0.22) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.72) !important;
	padding: 0 !important;
	color: var(--pwtes-text) !important;
	cursor: pointer !important;
	line-height: 1 !important;
}

.pwtes-drawer__close:hover,
.pwtes-drawer__close:focus {
	background: #fff !important;
	border-color: var(--pwtes-accent) !important;
	color: var(--pwtes-text) !important;
}

.pwtes-facet__head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	border: 0 !important;
	background: transparent !important;
	padding: 18px 20px !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: var(--pwtes-text) !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
}

.pwtes-facet__head:hover,
.pwtes-facet__head:focus {
	background: var(--pwtes-soft-2) !important;
	color: var(--pwtes-text) !important;
}

.pwtes-facet__head span:last-child {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 999px !important;
	background: var(--pwtes-soft) !important;
	font-size: 20px !important;
	line-height: 1 !important;
	color: var(--pwtes-text) !important;
}

.pwtes-option {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 9px 8px !important;
	border-radius: 12px !important;
	font-size: 15px !important;
	line-height: 1.35 !important;
	cursor: pointer !important;
	color: var(--pwtes-text) !important;
	background: transparent !important;
}

.pwtes-option:hover {
	background: var(--pwtes-soft-2) !important;
	color: var(--pwtes-text) !important;
}

.pwtes-option__box {
	position: relative !important;
	flex: 0 0 auto !important;
	width: 20px !important;
	height: 20px !important;
	border: 1.5px solid rgba(118, 102, 92, 0.75) !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: inset 0 0 0 2px #fff !important;
}

.pwtes-option input:checked + .pwtes-option__box {
	background: var(--pwtes-accent) !important;
	border-color: var(--pwtes-accent) !important;
}

.pwtes-option__label {
	color: var(--pwtes-text) !important;
}

.pwtes-option input:checked ~ .pwtes-option__label {
	font-weight: 600 !important;
	color: var(--pwtes-accent) !important;
}

.pwtes-option__count {
	margin-left: auto !important;
	min-width: 28px !important;
	height: 24px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 8px !important;
	border-radius: 999px !important;
	background: rgba(64, 24, 18, 0.07) !important;
	color: var(--pwtes-muted) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
}

.pwtes-option input:checked ~ .pwtes-option__count {
	background: var(--pwtes-accent) !important;
	color: #fff !important;
}

.pwtes-btn {
	border: 1px solid var(--pwtes-accent) !important;
	border-radius: 999px !important;
	padding: 15px 18px !important;
	font: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
	box-shadow: none;
}

.pwtes-btn:hover,
.pwtes-btn:focus {
	transform: translateY(-1px) !important;
}

.pwtes-btn--ghost,
.pwtes-btn--ghost:hover,
.pwtes-btn--ghost:focus {
	background: #fff !important;
	color: var(--pwtes-accent) !important;
	border-color: var(--pwtes-accent) !important;
}

.pwtes-btn--solid,
.pwtes-btn--solid:focus {
	background: var(--pwtes-accent) !important;
	color: #fff !important;
	border-color: var(--pwtes-accent) !important;
	box-shadow: 0 12px 26px rgba(64, 24, 18, 0.18) !important;
}

.pwtes-btn--solid:hover {
	background: var(--pwtes-accent-hover) !important;
	color: #fff !important;
	border-color: var(--pwtes-accent-hover) !important;
}

.pwtes-open:focus-visible,
.pwtes-sort select:focus-visible,
.pwtes-chip:focus-visible,
.pwtes-btn:focus-visible,
.pwtes-drawer__close:focus-visible,
.pwtes-facet__head:focus-visible,
.pwtes-option input:focus-visible + .pwtes-option__box {
	outline: 2px solid var(--pwtes-accent) !important;
	outline-offset: 3px !important;
}
