/**
 * Otakara — Boutique filtrée : barre d'outils, grille, pagination.
 * Reprend les valeurs de la maquette (artboard 1A).
 */

.otk-shop {
	--otk-red: #e30613;
	--otk-ink: #101216;
	--otk-ink-2: #4b5160;
	--otk-ink-3: #6b7280;
	--otk-ink-4: #9aa0ae;
	--otk-line: #e6e8ee;
	--otk-surface-2: #f4f5f7;
	--otk-cols: 3;

	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--otk-ink);
}

.otk-dark .otk-shop {
	--otk-ink: #f3f4f8;
	--otk-ink-2: #b6bcc9;
	--otk-ink-3: #969db0;
	--otk-ink-4: #7e8595;
	--otk-line: #2a2f3a;
	--otk-surface-2: #1c2029;
}

/* ---------- Barre d'outils ---------- */

.otk-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--otk-line);
}

.otk-shop__count {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--otk-ink-2);
}

.otk-shop__count strong {
	font-weight: 700;
	color: var(--otk-ink);
}

.otk-shop__count-sep {
	margin: 0 4px;
	color: var(--otk-ink-4);
}

.otk-shop__sort {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--otk-line);
	border-radius: 5px;
	padding: 0 12px;
	background: transparent;
}

.otk-shop__sort-label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--otk-ink-3);
	pointer-events: none;
}

.otk-shop__sort-select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	padding: 10px 22px 10px 0;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--otk-ink);
	cursor: pointer;
}

.otk-shop__sort-select:focus-visible {
	outline: 2px solid var(--otk-red);
	outline-offset: 3px;
}

.otk-shop__sort::after {
	content: "";
	position: absolute;
	right: 13px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -5px;
	border-right: 2px solid var(--otk-ink);
	border-bottom: 2px solid var(--otk-ink);
	transform: rotate(45deg);
	pointer-events: none;
}

/* ---------- Filtres actifs ---------- */

.otk-shop__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 16px 0 22px;
}

.otk-shop__chips.is-empty {
	padding: 0;
	height: 22px;
}

.otk-shop__chips-label {
	margin-right: 4px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--otk-ink-3);
}

.otk-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 11px;
	border-radius: 4px;
	background: var(--otk-ink);
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .15s ease;
}

.otk-chip:hover,
.otk-chip:focus-visible {
	background: var(--otk-red);
	color: #fff;
}

.otk-chip__x {
	font-size: 13px;
	font-weight: 700;
	color: var(--otk-ink-4);
	line-height: 1;
}

.otk-chip:hover .otk-chip__x,
.otk-chip:focus-visible .otk-chip__x {
	color: #fff;
}

.otk-shop__clear {
	margin-left: 6px;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--otk-red);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--otk-red);
	text-decoration: none;
}

.otk-shop__clear:hover {
	border-bottom-color: var(--otk-ink);
	color: var(--otk-ink);
}

/* ---------- Grille ---------- */

.otk-shop__results {
	position: relative;
	min-height: 200px;
}

.otk-shop__grid {
	display: grid;
	grid-template-columns: repeat(var(--otk-cols), minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 40px;
	align-items: stretch;
}

/* Chargement : la grille s'estompe sans disparaître, pour éviter le saut. */
.otk-shop.is-loading .otk-shop__results {
	opacity: .35;
	pointer-events: none;
	transition: opacity .18s ease;
}

.otk-shop.is-loading .otk-shop__results::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	width: 26px;
	height: 26px;
	margin-left: -13px;
	border: 2px solid var(--otk-line);
	border-top-color: var(--otk-red);
	border-radius: 50%;
	animation: otk-spin .7s linear infinite;
}

@keyframes otk-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Aucun résultat ---------- */

.otk-shop__empty {
	padding: 56px 24px 64px;
	text-align: center;
	background: var(--otk-surface-2);
	border-radius: 8px;
}

.otk-shop__empty-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--otk-ink);
}

.otk-shop__empty-text {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--otk-ink-2);
}

.otk-shop__empty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 22px;
}

.otk-shop__empty-actions .otk-btn {
	width: auto;
	min-width: 200px;
}

/* ---------- Pagination ---------- */

.otk-shop__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid var(--otk-line);
}

.otk-shop__pagination.is-empty {
	margin: 0;
	padding: 0;
	border: 0;
}

.otk-shop__range {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--otk-ink-3);
}

.otk-shop__pages {
	display: flex;
	align-items: center;
	gap: 6px;
}

.otk-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	border: 1px solid var(--otk-line);
	border-radius: 5px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--otk-ink);
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.otk-page--prev,
.otk-page--next {
	padding: 0 13px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.otk-page:hover,
.otk-page:focus-visible {
	border-color: var(--otk-ink);
}

.otk-page.is-current {
	background: var(--otk-ink);
	border-color: var(--otk-ink);
	color: #fff;
	font-weight: 700;
}

.otk-page.is-disabled {
	color: var(--otk-ink-4);
	cursor: default;
}

.otk-page--gap {
	border-color: transparent;
	color: var(--otk-ink-4);
}

/* =====================================================================
 * Colonne de filtres
 * ================================================================== */

.otk-facets {
	--otk-red: #e30613;
	--otk-ink: #101216;
	--otk-ink-2: #4b5160;
	--otk-ink-3: #6b7280;
	--otk-ink-4: #9aa0ae;
	--otk-line: #e6e8ee;
	--otk-line-2: #c9cdd8;
	--otk-surface-2: #f4f5f7;

	display: flex;
	flex-direction: column;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--otk-ink);
}

.otk-dark .otk-facets {
	--otk-ink: #f3f4f8;
	--otk-ink-2: #b6bcc9;
	--otk-ink-3: #969db0;
	--otk-ink-4: #7e8595;
	--otk-line: #2a2f3a;
	--otk-line-2: #3a4150;
	--otk-surface-2: #1c2029;
}

.otk-facets-widget.is-sticky .otk-facets {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.otk-facets-widget.is-loading {
	opacity: .55;
	pointer-events: none;
	transition: opacity .18s ease;
}

/* ---------- En-tête ---------- */

.otk-facets__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
}

.otk-facets__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--otk-ink);
}

.otk-facets__clear {
	padding-bottom: 2px;
	border-bottom: 1px solid var(--otk-red);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--otk-red);
	text-decoration: none;
	white-space: nowrap;
}

.otk-facets__clear:hover {
	border-bottom-color: var(--otk-ink);
	color: var(--otk-ink);
}

/* ---------- Groupe ---------- */

.otk-facet {
	border-top: 1px solid var(--otk-line);
}

.otk-facet:last-child {
	border-bottom: 1px solid var(--otk-line);
}

/*
 * Ces éléments sont des <button> : le thème et Elementor leur appliquent
 * sinon leur style de bouton global (fond, couleur, ombre, arrondi), y compris
 * au survol. On neutralise sur tous les états, sinon le fond de marque
 * réapparaît au hover.
 */
.otk-facets button,
.otk-facets button:hover,
.otk-facets button:focus,
.otk-facets button:active {
	background: none;
	background-color: transparent;
	box-shadow: none;
	text-shadow: none;
	border-radius: 0;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.otk-facet__head,
.otk-facet__head:hover,
.otk-facet__head:focus,
.otk-facet__head:active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 17px 0;
	border: 0;
	color: var(--otk-ink);
	text-align: left;
	cursor: pointer;
}

/* Survol discret : c'est le signe et le libellé qui réagissent, pas un aplat. */
.otk-facet__head:hover .otk-facet__label {
	color: var(--otk-red);
}

.otk-facet__head:hover .otk-facet__sign::before,
.otk-facet__head:hover .otk-facet__sign::after {
	background: var(--otk-red);
}

.otk-facet__head:focus-visible {
	outline: 2px solid var(--otk-red);
	outline-offset: -2px;
}

.otk-facet__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--otk-ink);
}

.otk-facet__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.otk-facet__badge {
	min-width: 16px;
	height: 16px;
	padding: 0 5px;
	border-radius: 8px;
	background: var(--otk-red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

/* Le signe + / – de la maquette, dessiné en CSS. */
.otk-facet__sign {
	position: relative;
	display: block;
	width: 11px;
	height: 11px;
	flex: none;
}

.otk-facet__sign::before,
.otk-facet__sign::after {
	content: "";
	position: absolute;
	background: var(--otk-ink-3);
	transition: transform .2s ease, opacity .2s ease;
}

.otk-facet__sign::before {
	top: 5px;
	left: 0;
	width: 11px;
	height: 1.5px;
}

.otk-facet__sign::after {
	top: 0;
	left: 4.75px;
	width: 1.5px;
	height: 11px;
}

.otk-facet.is-open .otk-facet__sign::after {
	transform: scaleY(0);
	opacity: 0;
}

/* ---------- Corps ---------- */

.otk-facet__body {
	display: none;
	padding-bottom: 18px;
}

.otk-facet.is-open .otk-facet__body {
	display: block;
}

/* Sans JavaScript, tout est ouvert : le repli est un confort, pas une
   condition d'accès au filtrage. */
html:not(.otk-js) .otk-facet__body {
	display: block;
}

html:not(.otk-js) .otk-facet__head,
html:not(.otk-js) .otk-facet__more,
html:not(.otk-js) .otk-facet__search {
	pointer-events: none;
}

html:not(.otk-js) .otk-facet__sign,
html:not(.otk-js) .otk-facet__more,
html:not(.otk-js) .otk-facet__search {
	display: none;
}

/* ---------- Recherche interne ---------- */

.otk-facet__search {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	margin-bottom: 12px;
	border: 1px solid var(--otk-line);
	border-radius: 5px;
	background: transparent;
	transition: border-color .15s ease;
}

.otk-facet__search:focus-within {
	border-color: var(--otk-ink);
}

/*
 * Le thème et Elementor stylent input[type="search"] : bordure, fond, arrondi,
 * hauteur minimale, marge basse. Sans remise à zéro on obtient une boîte dans
 * la boîte. La bordure appartient au conteneur, jamais au champ.
 */
.otk-facets .otk-facet__search-input,
.otk-facets .otk-facet__search-input:focus,
.otk-facets .otk-facet__search-input:hover {
	appearance: none;
	-webkit-appearance: none;
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 9px 11px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: var(--otk-ink);
}

.otk-facets .otk-facet__search-input::placeholder {
	color: var(--otk-ink-4);
	font-weight: 500;
	opacity: 1;
}

/* Croix native de Chrome/Safari : on a la nôtre, alignée sur la maquette. */
.otk-facets .otk-facet__search-input::-webkit-search-cancel-button,
.otk-facets .otk-facet__search-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.otk-facets .otk-facet__search-clear,
.otk-facets .otk-facet__search-clear:hover,
.otk-facets .otk-facet__search-clear:focus,
.otk-facets .otk-facet__search-clear:active {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: none;
	margin: 0 5px 0 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--otk-ink-3);
	cursor: pointer;
}

.otk-facets .otk-facet__search-clear:hover {
	color: var(--otk-red);
}

.otk-facets .otk-facet__search-clear:focus-visible {
	outline: 2px solid var(--otk-red);
	outline-offset: 1px;
}

/* ---------- Valeurs ---------- */

.otk-facet__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.otk-facet__item.is-filtered-out {
	display: none;
}

/* Troncature : masquée seulement si JS est là pour la rouvrir. */
html.otk-js .otk-facet.is-collapsed:not(.is-searching) .otk-facet__item--extra {
	display: none;
}

.otk-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--otk-ink);
	text-decoration: none;
	cursor: pointer;
}

.otk-check__box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex: none;
	border: 1px solid var(--otk-line-2);
	border-radius: 3px;
	color: #fff;
	transition: background-color .12s ease, border-color .12s ease;
}

.otk-check:hover .otk-check__box {
	border-color: var(--otk-ink);
}

.otk-check.is-checked .otk-check__box {
	background: var(--otk-ink);
	border-color: var(--otk-ink);
}

.otk-check__label {
	font-weight: 500;
	color: var(--otk-ink);
}

.otk-check.is-checked .otk-check__label {
	font-weight: 600;
}

.otk-check__label mark {
	background: #fde7e9;
	color: inherit;
	padding: 0 1px;
	border-radius: 2px;
}

.otk-dark .otk-check__label mark {
	background: rgba(227, 6, 19, .28);
}

.otk-check__count {
	margin-left: auto;
	padding-left: 8px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--otk-ink-4);
}

.otk-check.is-checked .otk-check__count {
	color: var(--otk-ink-3);
}

.otk-check:hover .otk-check__label {
	color: var(--otk-red);
}

/* Valeur possible sur cette page, mais exclue par les filtres actifs :
   visible et grisée, jamais masquée — sinon le filtre paraît cassé. */
.otk-check.is-disabled {
	cursor: default;
}

.otk-check.is-disabled .otk-check__box {
	background: var(--otk-surface-2);
	border-color: var(--otk-line);
}

.otk-check.is-disabled .otk-check__label,
.otk-check.is-disabled .otk-check__count {
	color: var(--otk-ink-4);
}

.otk-check.is-disabled:hover .otk-check__label {
	color: var(--otk-ink-4);
}

/* ---------- Recherche : compteur de correspondances ---------- */

.otk-facet__no-match {
	margin: 8px 0 0;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--otk-ink-4);
}

/* ---------- Voir plus ---------- */

.otk-facet__more,
.otk-facet__more:hover,
.otk-facet__more:focus,
.otk-facet__more:active {
	display: inline-block;
	margin-top: 12px;
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid var(--otk-ink);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--otk-ink);
	cursor: pointer;
}

.otk-facet__more:hover {
	border-bottom-color: var(--otk-red);
	color: var(--otk-red);
}

.otk-facet__more:focus-visible {
	outline: 2px solid var(--otk-red);
	outline-offset: 3px;
}

/* =====================================================================
 * Filtre prix
 * ================================================================== */

.otk-price {
	margin: 0;
	padding: 0;
	border: 0;
}

/* ---------- Histogramme ---------- */

.otk-price__histogram {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 52px;
	margin-top: 4px;
}

.otk-price__bar {
	flex: 1;
	height: var(--otk-h, 10%);
	min-height: 3px;
	border-radius: 2px 2px 0 0;
	background: var(--otk-line-2);
	transition: background-color .15s ease;
}

.otk-price__bar.is-active {
	background: var(--otk-red);
}

/* ---------- Curseur double ---------- */

.otk-price__track {
	position: relative;
	height: 2px;
	margin-top: 10px;
	background: var(--otk-line);
}

.otk-price__fill {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--otk-ink);
}

/*
 * Deux <input type="range"> superposés. Seules les poignées reçoivent les
 * événements, sinon le curseur du dessus bloquerait celui du dessous.
 */
.otk-facets .otk-price__range {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: none;
	transform: translateY(-50%);
}

.otk-facets .otk-price__range:focus {
	outline: none;
}

.otk-price__range::-webkit-slider-thumb {
	pointer-events: auto;
	appearance: none;
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border: 2px solid var(--otk-ink);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
}

.otk-price__range::-moz-range-thumb {
	pointer-events: auto;
	width: 14px;
	height: 14px;
	border: 2px solid var(--otk-ink);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
}

.otk-price__range:active::-webkit-slider-thumb { cursor: grabbing; }
.otk-price__range:active::-moz-range-thumb     { cursor: grabbing; }

.otk-price__range:focus-visible::-webkit-slider-thumb { border-color: var(--otk-red); box-shadow: 0 0 0 3px rgba(227, 6, 19, .22); }
.otk-price__range:focus-visible::-moz-range-thumb     { border-color: var(--otk-red); box-shadow: 0 0 0 3px rgba(227, 6, 19, .22); }

.otk-price__range::-moz-range-track { background: transparent; border: 0; }

/* ---------- Axe ---------- */

.otk-price__scale {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--otk-ink-4);
}

/* ---------- Saisie ---------- */

.otk-price__fields {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
}

.otk-price__field {
	flex: 1;
	min-width: 0;
	margin: 0;
	border: 1px solid var(--otk-line);
	border-radius: 5px;
	transition: border-color .15s ease;
}

.otk-price__field:focus-within {
	border-color: var(--otk-ink);
}

.otk-facets .otk-price__field input,
.otk-facets .otk-price__field input:focus,
.otk-facets .otk-price__field input:hover {
	appearance: textfield;
	-moz-appearance: textfield;
	width: 100%;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 9px 11px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	color: var(--otk-ink);
}

.otk-facets .otk-price__field input::-webkit-outer-spin-button,
.otk-facets .otk-price__field input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.otk-facets .otk-price__field input::placeholder {
	color: var(--otk-ink-4);
	font-weight: 500;
	opacity: 1;
}

.otk-price__sep {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	color: var(--otk-ink-4);
}

/* Bouton de validation : utile uniquement sans JavaScript. */
.otk-facets .otk-price__apply,
.otk-facets .otk-price__apply:hover,
.otk-facets .otk-price__apply:focus {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid var(--otk-ink);
	border-radius: 5px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--otk-ink);
	cursor: pointer;
}

html.otk-js .otk-price__apply {
	display: none;
}

/* ---------- Paliers ---------- */

.otk-price__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.otk-price__step {
	padding: 7px 10px;
	border: 1px solid var(--otk-line);
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	color: var(--otk-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.otk-price__step:hover {
	border-color: var(--otk-ink);
	color: var(--otk-ink);
}

.otk-price__step.is-selected {
	background: var(--otk-ink);
	border-color: var(--otk-ink);
	color: #fff;
}

.otk-price__step.is-selected:hover {
	background: var(--otk-red);
	border-color: var(--otk-red);
	color: #fff;
}

/* =====================================================================
 * Puces de filtrage rapide
 * ================================================================== */

.otk-quick {
	--otk-red: #e30613;
	--otk-ink: #101216;
	--otk-ink-4: #9aa0ae;
	--otk-line: #e6e8ee;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.otk-dark .otk-quick {
	--otk-ink: #f3f4f8;
	--otk-ink-4: #7e8595;
	--otk-line: #2a2f3a;
}

.otk-quick.is-empty {
	display: none;
}

.otk-quick__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	border: 1px solid var(--otk-line);
	border-radius: 5px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--otk-ink);
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.otk-quick__chip:hover,
.otk-quick__chip:focus-visible {
	border-color: var(--otk-ink);
	color: var(--otk-ink);
}

.otk-quick__chip.is-selected {
	background: var(--otk-ink);
	border-color: var(--otk-ink);
	color: #fff;
}

.otk-quick__chip.is-selected:hover {
	background: var(--otk-red);
	border-color: var(--otk-red);
}

.otk-quick__count {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--otk-ink-4);
}

.otk-quick__chip.is-selected .otk-quick__count {
	color: rgba(255, 255, 255, .7);
}

.otk-quick-widget.is-countless .otk-quick__count {
	display: none;
}

/* =====================================================================
 * Tiroir de filtres mobile
 *
 * Le tiroir n'est pas une seconde colonne : c'est la même, repositionnée.
 * Au-dessus de 1024 px, tout ce bloc est neutralisé et la colonne reprend
 * sa place dans le flux.
 * ================================================================== */

.otk-filters-trigger,
.otk-facets-panel__head,
.otk-facets-panel__foot,
.otk-facets-backdrop {
	display: none;
}

@media (max-width: 1024px) {

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

	.otk-facets-widget .otk-filters-trigger,
	.otk-facets-widget .otk-filters-trigger:hover,
	.otk-facets-widget .otk-filters-trigger:focus {
		position: fixed;
		left: 50%;
		bottom: 20px;
		z-index: 90;
		display: inline-flex;
		align-items: center;
		gap: 9px;
		padding: 14px 22px;
		border: 0;
		border-radius: 40px;
		background: var(--otk-ink, #101216);
		color: #fff;
		font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 11.5px;
		font-weight: 700;
		letter-spacing: .1em;
		text-transform: uppercase;
		box-shadow: 0 8px 24px -8px rgba(16, 18, 22, .55);
		transform: translateX(-50%);
		cursor: pointer;
	}

	.otk-filters-trigger__icon {
		position: relative;
		width: 13px;
		height: 10px;
		flex: none;
	}

	/* Trois traits d'égaliseur, dessinés en CSS. */
	.otk-filters-trigger__icon::before,
	.otk-filters-trigger__icon::after {
		content: "";
		position: absolute;
		left: 0;
		width: 13px;
		height: 1.6px;
		background: #fff;
	}

	.otk-filters-trigger__icon::before { top: 0; }
	.otk-filters-trigger__icon::after  { bottom: 0; width: 8px; }

	.otk-filters-trigger__badge {
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 9px;
		background: var(--otk-red, #e30613);
		font-size: 10px;
		font-weight: 700;
		line-height: 18px;
		text-align: center;
	}

	/* Le tiroir ouvert : le bouton n'a plus lieu d'être. */
	html.otk-drawer-open .otk-filters-trigger {
		display: none;
	}

	/* ---------- Voile ---------- */

	.otk-facets-backdrop {
		position: fixed;
		inset: 0;
		z-index: 98;
		background: rgba(16, 18, 22, .5);
		backdrop-filter: blur(2px);
	}

	/* ---------- Panneau ---------- */

	.otk-facets-panel {
		position: fixed;
		inset: 0;
		z-index: 99;
		display: flex;
		flex-direction: column;
		background: #fff;
		transform: translateY(100%);
		visibility: hidden;
		transition: transform .28s cubic-bezier(.22, .7, .25, 1), visibility .28s;
	}

	.otk-dark .otk-facets-panel {
		background: #171a21;
	}

	.otk-facets-panel.is-open {
		transform: translateY(0);
		visibility: visible;
	}

	.otk-facets-panel__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: none;
		padding: 16px 18px;
		border-bottom: 1px solid var(--otk-line, #e6e8ee);
	}

	.otk-facets-panel__title {
		font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .12em;
		text-transform: uppercase;
		color: var(--otk-ink, #101216);
	}

	.otk-facets-widget .otk-facets-panel__close,
	.otk-facets-widget .otk-facets-panel__close:hover,
	.otk-facets-widget .otk-facets-panel__close:focus {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		font-size: 26px;
		font-weight: 400;
		line-height: 1;
		color: var(--otk-ink, #101216);
		cursor: pointer;
	}

	.otk-facets-panel__body {
		flex: 1;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 4px 18px 18px;
	}

	/* En tiroir, l'en-tête « Filtrer / Tout effacer » de la colonne fait
	   doublon avec celui du panneau. */
	.otk-facets-panel .otk-facets__head {
		display: none;
	}

	.otk-facets-panel__foot {
		display: flex;
		gap: 10px;
		flex: none;
		padding: 14px 18px;
		padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--otk-line, #e6e8ee);
		background: inherit;
	}

	.otk-facets-panel__foot .otk-btn {
		width: auto;
		flex: 1;
	}

	.otk-facets-panel__foot .otk-btn--solid {
		flex: 2;
	}

	/* Verrou de défilement de la page pendant l'ouverture. */
	html.otk-drawer-open,
	html.otk-drawer-open body {
		overflow: hidden;
	}

	/* Le réglage « collant » ne s'applique qu'au desktop. */
	.otk-facets-widget.is-sticky .otk-facets {
		position: static;
		max-height: none;
	}
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
	.otk-facets-panel { transition: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.otk-price__histogram { height: 44px; }
	.otk-price__steps     { gap: 5px; }
	.otk-price__step      { padding: 8px 9px; font-size: 10.5px; }
	.otk-quick            { gap: 6px; }
	.otk-quick__chip      { padding: 8px 11px; font-size: 10px; letter-spacing: .07em; }
	.otk-facets-widget.is-sticky .otk-facets { position: static; max-height: none; }
	.otk-facet__head    { padding: 15px 0; }
	.otk-check          { padding: 7px 0; }
	.otk-shop__toolbar   { padding-bottom: 12px; }
	.otk-shop__sort      { flex: 1; justify-content: space-between; }
	.otk-shop__chips     { padding: 12px 0 16px; }
	.otk-shop__grid      { column-gap: 12px; row-gap: 28px; }
	.otk-shop__pagination { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 14px; }
	.otk-shop__pages     { justify-content: center; flex-wrap: wrap; }
	.otk-shop__range     { text-align: center; order: 2; }
	.otk-shop__empty     { padding: 40px 16px 44px; }
	.otk-shop__empty-actions .otk-btn { min-width: 0; width: 100%; }
}
