@font-face {
  font-family: 'Overpass';
  src: url("font/Overpass-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

/*! nouislider - 14.6.3 - 11/19/2020 */
.noUi-target,.noUi-target * {
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	-ms-touch-action: none;
	touch-action: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-moz-box-sizing: border-box;
	box-sizing: border-box
}

.noUi-target {
	position: relative
}

.noUi-base,.noUi-connects {
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1
}

.noUi-connects {
	overflow: hidden;
	z-index: 0
}

.noUi-connect,.noUi-origin {
	will-change: transform;
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	-ms-transform-origin: 0 0;
	-webkit-transform-origin: 0 0;
	-webkit-transform-style: preserve-3d;
	transform-origin: 0 0;
	transform-style: flat
}

.noUi-connect {
	height: 100%;
	width: 100%
}

.noUi-origin {
	height: 10%;
	width: 10%
}

.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
	left: 0;
	right: auto
}

.noUi-vertical .noUi-origin {
	width: 0
}

.noUi-horizontal .noUi-origin {
	height: 0
}

.noUi-handle {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	position: absolute
}

.noUi-touch-area {
	height: 100%;
	width: 100%
}

.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin {
	-webkit-transition: transform .3s;
	transition: transform .3s
}

.noUi-state-drag * {
	cursor: inherit!important
}

.noUi-horizontal {
	height: 18px
}

.noUi-horizontal .noUi-handle {
	width: 34px;
	height: 28px;
	right: -17px;
	top: -6px
}

.noUi-vertical {
	width: 18px
}

.noUi-vertical .noUi-handle {
	width: 28px;
	height: 34px;
	right: -6px;
	top: -17px
}

.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
	left: -17px;
	right: auto
}

.noUi-target {
	background: #FAFAFA;
	border-radius: 4px;
	border: 1px solid #D3D3D3;
	box-shadow: inset 0 1px 1px #F0F0F0,0 3px 6px -5px #BBB
}

.noUi-connects {
	border-radius: 3px
}

.noUi-connect {
	background: #3FB8AF
}

.noUi-draggable {
	cursor: ew-resize
}

.noUi-vertical .noUi-draggable {
	cursor: ns-resize
}

.noUi-handle {
	border: 1px solid #D9D9D9;
	border-radius: 3px;
	background: #FFF;
	cursor: default;
	box-shadow: inset 0 0 1px #FFF,inset 0 1px 7px #EBEBEB,0 3px 6px -3px #BBB
}

.noUi-active {
	box-shadow: inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB
}

.noUi-handle:after,.noUi-handle:before {
	content: "";
	display: block;
	position: absolute;
	height: 14px;
	width: 1px;
	background: #E8E7E6;
	left: 14px;
	top: 6px
}

.noUi-handle:after {
	left: 17px
}

.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before {
	width: 14px;
	height: 1px;
	left: 6px;
	top: 14px
}

.noUi-vertical .noUi-handle:after {
	top: 17px
}

[disabled] .noUi-connect {
	background: #B8B8B8
}

[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target {
	cursor: not-allowed
}

.noUi-pips,.noUi-pips * {
	-moz-box-sizing: border-box;
	box-sizing: border-box
}

.noUi-pips {
	position: absolute;
	color: #999
}

.noUi-value {
	position: absolute;
	white-space: nowrap;
	text-align: center
}

.noUi-value-sub {
	color: #ccc;
	font-size: 10px
}

.noUi-marker {
	position: absolute;
	background: #CCC
}

.noUi-marker-sub {
	background: #AAA
}

.noUi-marker-large {
	background: #AAA
}

.noUi-pips-horizontal {
	padding: 10px 0;
	height: 80px;
	top: 100%;
	left: 0;
	width: 100%
}

.noUi-value-horizontal {
	-webkit-transform: translate(-50%,50%);
	transform: translate(-50%,50%)
}

.noUi-rtl .noUi-value-horizontal {
	-webkit-transform: translate(50%,50%);
	transform: translate(50%,50%)
}

.noUi-marker-horizontal.noUi-marker {
	margin-left: -1px;
	width: 2px;
	height: 5px
}

.noUi-marker-horizontal.noUi-marker-sub {
	height: 10px
}

.noUi-marker-horizontal.noUi-marker-large {
	height: 15px
}

.noUi-pips-vertical {
	padding: 0 10px;
	height: 100%;
	top: 0;
	left: 100%
}

.noUi-value-vertical {
	-webkit-transform: translate(0,-50%);
	transform: translate(0,-50%);
	padding-left: 25px
}

.noUi-rtl .noUi-value-vertical {
	-webkit-transform: translate(0,50%);
	transform: translate(0,50%)
}

.noUi-marker-vertical.noUi-marker {
	width: 5px;
	height: 2px;
	margin-top: -1px
}

.noUi-marker-vertical.noUi-marker-sub {
	width: 10px
}

.noUi-marker-vertical.noUi-marker-large {
	width: 15px
}

.noUi-tooltip {
	display: block;
	position: absolute;
	border: 1px solid #D9D9D9;
	border-radius: 3px;
	background: #fff;
	color: #000;
	padding: 5px;
	text-align: center;
	white-space: nowrap
}

.noUi-horizontal .noUi-tooltip {
	-webkit-transform: translate(-50%,0);
	transform: translate(-50%,0);
	left: 50%;
	bottom: 120%
}

.noUi-vertical .noUi-tooltip {
	-webkit-transform: translate(0,-50%);
	transform: translate(0,-50%);
	top: 50%;
	right: 120%
}

.noUi-horizontal .noUi-origin>.noUi-tooltip {
	-webkit-transform: translate(50%,0);
	transform: translate(50%,0);
	left: auto;
	bottom: 10px
}

.noUi-vertical .noUi-origin>.noUi-tooltip {
	-webkit-transform: translate(0,-18px);
	transform: translate(0,-18px);
	top: auto;
	right: 28px
}


.km-catalog {
	margin-top: 24px;
}

.km-catalog__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.km-product {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	line-height: 1;
}

.km-product__row {
	display: grid;
	grid-template-columns: 110px 1fr 240px;
	gap: 16px;
	align-items: center;
	padding: 14px 16px;
}

/* Параметры вынесены в отдельный блок (см. item-card.xsl), чтобы на мобиле цена/кнопка были выше */
.km-product__params {
	grid-column: 2 / 3;
}

.km-product__offersMobile {
	display: none;
	/* показываем только на мобиле */
}

.km-btn--wide {
	width: 100%;
	justify-content: center;
}

.km-product__photo {
	display: block;
	width: 110px;
	height: 86px;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.03);
}

.km-product__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.km-product__title {
	display: inline-block;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.km-product__title:hover {
	text-decoration: underline;
}

.km-product__kv {
	margin-top: 10px;
	display: flex;
	gap: 6px;
}

/* key-value rows */
.km-kv {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.4);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.04);
	align-items: baseline;
	font-size: 12px;
}

.km-kv__k {
	font-weight: 700;
}

.km-kv__v {
	opacity: 0.9;
}

.km-product__aside {
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1;
	align-items: flex-end;
}

.km-btn {
	appearance: none;
	border: 0;
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.km-btn--buy {
	background: #d85c5c;
	color: #fff;
}

.km-btn--pick {
	background: rgba(0, 0, 0, 0.08);
	color: #111;
}

.km-btn--inbasket {
	background: rgba(0, 0, 0, 0.06);
	color: #111;
}

.km-btn.is-loading {
	opacity: 0.65;
	cursor: default;
}

.km-offers {
	padding: 0 16px 16px;
}

.km-offers__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 6px;
	-webkit-overflow-scrolling: touch;
}

.km-offers__track::-webkit-scrollbar {
	height: 6px;
}

.km-offers__track::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.16);
	border-radius: 8px;
}

.km-offergrp {
	flex: 0 0 280px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.km-offergrp__media {
	width: 100%;
	height: auto;
	aspect-ratio: 1.3;
	background: rgba(0, 0, 0, 0.01);
}

.km-offergrp__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.km-offergrp__body {
	padding: 10px 12px 0;
}

.km-offergrp__title {
	font-size: 14px;
	line-height: 1.25;
	font-weight: 700;
}

.km-offergrp__sub {
	margin-top: 6px;
	font-size: 12px;
	opacity: 0.75;
}

.km-offergrp__kv {
	margin-top: 10px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
	font-size: 12px;
}

.km-offergrp__kv .km-kv {
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 4px;
	line-height: 1;
}

.km-offergrp__footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px 12px 12px;
	margin-top: auto;
}

.km-offergrp__prices {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px;
}

.km-price {
	font-size: 12px;
	line-height: 1.3;
	display: flex;
	flex-direction: column;
	font-weight: 500;
}

.km-price .price-eur{
	font-size: 10px;
	margin: 0;
}

.km-price__k {
	font-weight: 700;
}

.km-offergrp__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.km-inbag {
	font-size: 12px;
	opacity: 0.85;
}

.km-inbag__num {
	font-weight: 800;
}

/* Modal */
.km-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

body.km-modal-open {
	overflow: hidden;
}

.km-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.km-modal__panel {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(980px, calc(100vw - 24px));
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
}

.km-modal__close {
	position: absolute;
	right: 12px;
	top: 10px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 0;
	background: rgba(0, 0, 0, 0.06);
	cursor: pointer;
	font-size: 18px;
}

.km-modal__header {
	padding: 14px 16px 0;
}

.km-modal__title {
	font-size: 18px;
	font-weight: 800;
}

.km-modal__meta {
	margin-top: 6px;
	font-size: 12px;
	opacity: 0.75;
}

.km-modal__tabs {
	padding: 12px 16px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.km-tab {
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	padding: 8px 10px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
}

.km-tab.is-active {
	background: rgba(0, 0, 0, 0.06);
}

.km-modal__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding: 14px 16px;
	overflow: auto;
}

.km-modal__left {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.km-modal__img {
	width: 100%;
	height: 360px;
	object-fit: cover;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.03);
}

.km-modal__props {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.km-modal__prices {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.js-km-modal-price-m2, .js-km-modal-price-total {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.km-modal__actions {
	margin: 8px 0;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.km-modal__footer {
	padding: 14px 16px 16px;
}

.km-modal__footTitle {
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 16px;
	margin-top: 10px;
	opacity: 0.85;
}

.km-modal__selects {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px;
	align-items: center;
}

.km-selectLabel {
	font-size: 12px;
	font-weight: 700;
	opacity: 0.8;
}

.km-select {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	padding: 10px 12px;
	background: #fff;
	font-size: 14px;
}

/* Группировка по slab_group нужна только в мобильном попапе */
@media (min-width: 981px) {

	.km-selectLabel[for="kmModalGroup"],
	#kmModalGroup {
		display: none;
	}
}

/* Цена над кнопкой в карточке товара */
.km-product__priceTop {
	text-align: right;
}

.km-product__priceVal {
	display: block;
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 4px;
	line-height: 1.2;
	color: #111;
}

.km-product__priceReq {
	display: block;
	font-size: 13px;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.55);
}

/* Справа от кнопки: "Вариантов" над "В корзине" */
.km-offergrp__badges {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.km-variantscount {
	font-size: 12px;
	line-height: 1.2;
	opacity: .85;
}

.km-variantscount__v {
	font-weight: 800;
}

@media (max-width: 980px) {
	.km-product__row {
		grid-template-columns: 1fr;
		align-items: center;
		gap: 8px;
	}

	.km-modal__header {
		padding: 0 16px;
	}
	

	.km-product__aside {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 10px;
	}

	.km-product__photo {
		margin: 0 auto;
	}

	.km-product__kv {
		flex-direction: column;
	}

	.km-product__params {
		grid-column: auto;
	}

	.km-product__offersMobile {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 10px 0 0;
	}

	.km-product__offersCount {
		font-size: 14px;
		font-weight: 800;
		text-align: center;
	}

	.km-offers {
		display: none;
	}

	.km-modal__body {
		grid-template-columns: 1fr;
	}

	.km-product__priceTop {
		text-align: left;
	}

	.km-offergrp__badges {
		align-items: flex-start;
	}

	.km-offergrp {
		flex: 0 0 220px;
	}

	.km-offergrp__title {
		font-size: 12px;
	}

	.km-product__title {
		font-size: 18px;
		text-align: center;
		margin: 0 auto;
		display: block;
	}

	.km-offergrp__kv {
		font-size: 10px;
	}

	.km-offergrp__prices {
		grid-template-columns: 1fr;
	}

	.km-modal__props {
		display: grid;
		grid-template-columns: 1fr 1fr;
		order: 2;
	}

	.km-modal__props .km-kv {
		display: grid;
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.km-modal__img {
		height: auto;
	}

	.km-modal__title {
		font-size: 14px;
		padding-right: 38px;
	}

	.km-modal__footer {
		order: -1;
	}

	.km-modal__panel {
		display: flex;
		flex-direction: column;
		overflow: auto;
		max-height: 90vh;
	}

	.km-modal__right {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.km-modal__actions {
		margin-top: 0;
		margin-bottom: 10px;
	}

	.km-modal__body {
		gap: 8px;
		order: 2;
	}

	.km-modal__tabs {
		display: none;
	}


}




.field.field-comment {
	width: 100%;
	min-height: 48px;
	height: 100px;
	text-align: left;
	padding: 10px 12px;
	line-height: 1.4;
	font-size: 14px;
	resize: vertical;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.field.field-comment:focus {
	border-color: #999;
	outline: none;
}

.field-success-text {
	margin-top: 6px;
	font-size: 12px;
	color: #4caf50;
	display: none;
}

.field-success-text.visible {
	display: block;
}

.field-comment.success {
	border-color: #4caf50;
	background: #f3fff6;
}



/* Немного воздуха под легендой */
.cart-item .legend {
	margin-bottom: 6px;
	font-size: 13px;
	color: #666;
}

/* ===== Currency switcher ===== */
.currency-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 999px;
	background: #fff;
}

.currency-switch__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 30px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	user-select: none;
	line-height: 1;
	transition: background .15s ease, box-shadow .15s ease, opacity .15s ease;
	opacity: .75;
}

.currency-switch__btn:hover { opacity: 1; }

.currency-switch__btn.is-active {
	background: rgba(0,0,0,.08);
	opacity: 1;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}

.currency-switch__sign {
	font-size: 14px;
	font-weight: 600;
}

/* ===== Price visibility by currency =====
   Ожидаем разметку цен:
   <span class="price">
     <span class="price__val" data-currency="eur">...</span>
     <span class="price__val" data-currency="usd">...</span>
     <span class="price__val" data-currency="rub">...</span>
   </span>
*/
.price__val { display: none; }

/* Активная валюта хранится на <html data-currency="eur|usd|rub"> */
html[data-currency="eur"] .price__val[data-currency="eur"],
html[data-currency="usd"] .price__val[data-currency="usd"],
html[data-currency="rub"] .price__val[data-currency="rub"] {
	display: inline;
}

/* Если нужно блочно (например, в карточках) — вешай .price--block */
.price--block .price__val { display: none; }
html[data-currency="eur"] .price--block .price__val[data-currency="eur"],
html[data-currency="usd"] .price--block .price__val[data-currency="usd"],
html[data-currency="rub"] .price--block .price__val[data-currency="rub"] {
	display: block;
}
/* === Дополнительные стили для каталога/лупы === */
.katalog_info .min-price {
  margin: 12px 0;
}

.km-offergrp__media {
  position: relative;
  cursor: crosshair; /* Курсор-крестик */
}

/* Стили для всплывающего окна лупы */
.km-zoom-preview {
  position: fixed !important; 
  z-index: 999999 !important; 
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  background-repeat: no-repeat;
  pointer-events: none; /* Мышь кликает сквозь */
  border-radius: 8px;
  /* Размеры задаются JS, но скрываем по умолчанию */
  display: none; 
}

/* === KF Filter Styles (Modern) === */
:root {
  --kf-text: #60697c;
  --kf-red: #d85c5c;
  --kf-red-hover: #c04545;
  --kf-bg-hover: rgba(0, 0, 0, 0.04);
  --kf-border: #e0e0e0;
  --kf-white: #ffffff;
  --kf-radius: 6px;
  --kf-input-height: 42px;
}


.kf-wrapper, .kf-wrapper * {
	box-sizing: border-box;
}

/* Обертка всей формы */
.kf-wrapper {
  background: var(--kf-white);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 24px;
  margin-bottom: 30px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--kf-text);
  box-sizing: border-box;
}

/* --- Верхняя сетка (Поиск + Селекты) --- */
.kf-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

/* Блок селекта */
.kf-select {
  position: relative;
  min-width: 240px;
	background: transparent;
	border: none;
	height: auto;
	padding: 0;
	appearance: none; /* Убирает нативные стили селектов в некоторых браузерах */
	-webkit-appearance: none;
}

/* Триггер (Заголовок селекта) */
.kf-select__trigger {
  height: var(--kf-input-height);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 0 35px 0 15px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}

.kf-select__trigger:hover {
  background-color: #fafafa;
  border-color: #ccc;
}

/* Стрелочка */
.kf-select__trigger::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2360697c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.2s;
}

/* Активное состояние селекта */
.kf-select.is-active .kf-select__trigger {
  border-color: var(--kf-red);
  z-index: 101; /* Чтобы был поверх выпадашки */
}

.kf-select.is-active .kf-select__trigger::after {
  transform: translateY(-50%) rotate(180deg);
  /* Меняем цвет стрелки на красный (SVG закодирован) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23d85c5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E");
}

/* Стиль, если выбраны значения */
.kf-select.has-value .kf-select__trigger {
  background-color: #fffbfb;
  color: var(--kf-text); 
  font-weight: 600;
}

/* Выпадающий список */
.kf-select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  min-width: 260px; /* Чуть шире, чтобы текст влезал */
  background: #fff;
  border: 1px solid var(--kf-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: var(--kf-radius);
  z-index: 100;
  padding: 10px 0;
}

.kf-select.is-active .kf-select__dropdown {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

/* Список скроллируемый */
.kf-select__list {
  max-height: 250px;
  overflow-y: auto;
  padding: 0 8px;
  /* Стилизация скроллбара (Webkit) */
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
}
.kf-select__list::-webkit-scrollbar { width: 6px; }
.kf-select__list::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 3px; }

/* Опция (Чекбокс) */
.kf-option {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
  margin-bottom: 2px;
	width: 100%;
}

.kf-option:hover {
  background-color: var(--kf-bg-hover);
}

/* Прячем нативный чекбокс */
.checkbox-native {
  display: none;
}

/* Визуальный чекбокс */
.kf-checkbox-visual {
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
  background: #fff;
  transition: 0.2s;
}

/* Состояние checked */
.checkbox-native:checked + .kf-checkbox-visual {
  background: var(--kf-red);
  border-color: var(--kf-red);
}

.checkbox-native:checked + .kf-checkbox-visual::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.kf-label {
  font-size: 14px;
  line-height: 1.3;
  color: #333;
}

/* Действия внутри выпадашки (Сброс / Готово) */
.kf-dropdown-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px 5px;
  margin-top: 5px;
  border-top: 1px solid #eee;
}

.kf-btn-link {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.kf-btn-link.reset {
  color: #999;
  text-decoration: none;
}
.kf-btn-link.reset:hover { color: #666; }

.kf-btn-link.apply {
  color: var(--kf-red);
  font-weight: 600;
  text-decoration: none;
}
.kf-btn-link.apply:hover { color: var(--kf-red-hover); }

/* Кнопки внизу формы (Применить / Сбросить все) */
.kf-bottom-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.kf-btn {
  height: 44px;
  padding: 0 25px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.kf-btn--submit {
  background: var(--kf-red);
  color: #fff;
}
.kf-btn--submit:hover {
  background: var(--kf-red-hover);
  box-shadow: 0 4px 10px rgba(216, 92, 92, 0.3);
}

.kf-btn--reset {
  background: #f5f5f5;
  color: var(--kf-text);
  border: 1px solid transparent;
}
.kf-btn--reset:hover {
  background: #e9e9e9;
  border-color: #ddd;
}

/* Ссылка на расширенный фильтр */
.kf-advanced-toggle {
  margin-left: auto; /* Прижимает вправо во флексе */
  color: var(--kf-red);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px dashed var(--kf-red);
  cursor: pointer;
  transition: 0.2s;
}
.kf-advanced-toggle:hover {
  border-bottom-style: solid;
}

/* Блок расширенного фильтра */
.kf-advanced {
  display: none; /* Скрыт по умолчанию */
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--kf-border);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Адаптив */
@media (max-width: 768px) {
  .kf-top {
    flex-direction: column;
    align-items: stretch;
  }
  
  .kf-select {
    width: 100%;
    min-width: 0;
  }
  
  .kf-advanced-toggle {
    margin-left: 0;
    margin-top: 10px;
    display: inline-block;
  }

  .kf-bottom-actions {
    flex-direction: column;
  }
  
  .kf-btn {
    width: 100%;
  }
}

/* Search */
.kf-search__input {
  width: 100%;
  height: var(--kf-input-height);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.kf-search__input:focus {
  border-color: var(--kf-red);
}

/* Grid top */
.kf-top--grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.kf-search { min-width: 220px; flex: 1; }

/* Checkbox rename (kf-) */
.kf-checkbox-native { display:none; }
.kf-checkbox-visual {
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
  background: #fff;
  transition: 0.2s;
}
.kf-checkbox-native:checked + .kf-checkbox-visual {
  background: var(--kf-red);
  border-color: var(--kf-red);
}
.kf-checkbox-native:checked + .kf-checkbox-visual::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Advanced range blocks */
.kf-advanced {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--kf-border);
}

.kf-range {
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.kf-range__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.kf-range__title {
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.kf-range__vals {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.kf-range__inputsText {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.kf-range__text {
  height: 38px;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 0 10px;
  width: 120px;
  font-size: 13px;
}

.kf-range__sliders {
  display: grid;
  gap: 8px;
}

.kf-range__sliders input[type="range"] {
  width: 100%;
}

/* Buttons classes */
.kf-btn-link--reset { color:#999; text-decoration:none; }
.kf-btn-link--reset:hover { color:#666; }
.kf-btn-link--apply { color:var(--kf-red); font-weight:600; text-decoration:none; }
.kf-btn-link--apply:hover { color:var(--kf-red-hover); }

/* Mobile */
@media (max-width: 768px) {
  .kf-search { width: 100%; min-width: 0; flex: none; }
  .kf-range__inputsText { flex-direction: column; }
  .kf-range__text { width: 100%; }
}

/* ===== KF DEBUG ===== */
.kf-debug{
  border:2px dashed #4a76ff;
  padding:12px;
  margin:12px 0;
  font-family:monospace;
  font-size:12px;
}
.kf-debug__title{ font-weight:700; margin-bottom:8px; }
.kf-debug__row{ margin-bottom:8px; display:flex; flex-wrap:wrap; gap:10px; }
.kf-debug__details pre{ white-space:pre-wrap; font-size:11px; margin:10px 0 0; }

/* ===== Advanced ===== */
.kf-adv-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap:18px;
  margin-top:18px;
}
@media (max-width: 768px){
  .kf-adv-grid{ grid-template-columns: 1fr; }
}

.kf-adv-actions{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

/* ===== Range block ===== */
.kf-range{
  border:1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding:14px;
  background:#fff;
}
.kf-range__head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.kf-range__title{ font-size:14px; font-weight:600; color:#333; }

.kf-range__inputs{
  display:flex;
  align-items:center;
	justify-content: space-between;
  gap:10px;
  margin-bottom:12px;
}
.kf-range__input{
  width: 100%;
  max-width: 140px;
  height: 36px;
  border:1px solid var(--kf-border);
  border-radius: 4px;
  padding:0 10px;
  font-size:13px;
}
.kf-range__input--to{
	text-align: right;
}
.kf-range__dash{ color:#999; }

.kf-range__slider{ margin-top:6px; }
.kf-range__minmax{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  font-size:12px;
  color:#777;
}

/* ===== noUiSlider basic look (без “кислотных” цветов) ===== */
.kf-wrapper .noUi-target{
  border: none;
  box-shadow:none;
  background:#f0f0f0;
  border-radius: 999px;
  height: 6px;
}
.kf-wrapper .noUi-connect{
  background:#d85c5c;
}
.kf-wrapper .noUi-handle{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d85c5c;
  background:#fff;
  box-shadow:none;
  right:-9px;
  top:-6px;
  cursor:pointer;
}
.kf-wrapper .noUi-handle:before,
.kf-wrapper .noUi-handle:after{
  display:none;
}

.kf-empty-note{
  padding:10px 12px;
  font-size:13px;
  color:#a33;
  line-height:1.3;
}

.kf-search__field.kf-search__field,
.kf-search__field.select-input__field {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  background: #fff;
  color: #1f2328;
  font-size: 14px;
  line-height: 44px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.kf-search__field::placeholder {
  color: #8a93a3;
}

.kf-search__field:focus {
  border-color: #6b7cff;
  box-shadow: 0 0 0 3px rgba(107,124,255,.18);
}

.kf-search__field:hover {
  border-color: #c6ccd8;
}

.kf-search__field:disabled {
  background: #f5f7fb;
  color: #8a93a3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .kf-search__field {
    height: 42px;
    line-height: 42px;
  }
}

.fancybox-image, .fancybox-spaceball{
	height: auto!important;
}

.compare-delete{
	display: flex;
	align-items: start;
	gap: 4px;
}

.wrapper-head {
	min-height: 100vh;
}