﻿/* Основные стили для кастомного каталога khvc_product */

/* Номер шага (01. / 02.) */
.back-page-delivery__item > span {
	flex-shrink: 0;
	align-self: flex-start;
	font-size: 36px;
	font-weight: 200;
	line-height: 1;
	color: #bbb;
	letter-spacing: -0.5px;
	margin-right: 24px;
	padding-top: 3px;
}
@media (max-width: 991.98px) {
	.back-page-delivery__item > span {
		font-size: 26px;
		margin-right: 14px;
	}
}

/* Типографика WYSIWYG-контента внутри блока */
.back-page-delivery__text {
	flex: 1 1 0;
	min-width: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #444;
}
.back-page-delivery__text p {
	margin: 0 0 10px;
}
.back-page-delivery__text p:last-child {
	margin-bottom: 0;
}
.back-page-delivery__text strong,
.back-page-delivery__text b {
	font-weight: 600;
	color: #222;
}
.back-page-delivery__text ul,
.back-page-delivery__text ol {
	margin: 8px 0 10px;
	padding-left: 20px;
}
.back-page-delivery__text ul {
	list-style: none;
	padding-left: 0;
}
.back-page-delivery__text ul li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 6px;
}
.back-page-delivery__text ul li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: #aaa;
	font-weight: 300;
}
.back-page-delivery__text ol li {
	margin-bottom: 6px;
}
.back-page-delivery__text a {
	color: #444;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.back-page-delivery__text a:hover {
	color: #111;
}

.header__btn {
	position: relative;
}
.header__btn .header__cart-count {
	display: block;
	background-color: #e94b35;
	color: #fff;
	font-size: 10px;
	font-weight: 400;
	width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	border-radius: 8px;
	position: absolute;
	top: -3px;
	right: 5px;
}
.header__btn .header__cart-count[hidden] {
	display: none;
}

img {
	max-width: 100%;
	height: auto;
}

.khvc-hidden {
	display: none !important;
}

.khvc-company-email-note {
	margin-top: 8px;
	font-size: 13px;
	color: #666;
}

.woocommerce-billing-fields__btns {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
}

.woocommerce-billing-fields__btn {
	min-width: 130px;
}

.khvc-mini-cart__item {
	display: flex;
	gap: 14px;
}

.khvc-mini-cart__thumb {
	flex: 0 0 74px;
	max-width: 74px;
}

.khvc-mini-cart__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.khvc-mini-cart__content {
	flex: 1 1 auto;
	min-width: 0;
}

.khvc-mini-cart__title {
	display: block;
	margin-bottom: 8px;
	color: #111;
	text-decoration: none;
}

.khvc-mini-cart__meta dl.variation {
	margin: 0 0 8px;
}

.khvc-mini-cart__meta dt,
.khvc-mini-cart__meta dd {
	font-size: 13px;
	line-height: 1.45;
}

.khvc-mini-cart__summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	color: #222;
}

.khvc-mini-cart__actions {
	margin: 16px 0;
}

.khvc-mini-cart__clear.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.khvc-side-cart {
	position: fixed;
	inset: 0;
	/* Above the sticky price bar (z-index: 400) so the open mini-cart
	visually overlays the sticky CTA at the bottom of the page. */
	z-index: 500;
	pointer-events: none;
}

.khvc-side-cart__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.38);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.khvc-side-cart__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(420px, 100%);
	height: 100%;
	background: #fff;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.khvc-side-cart.is-open {
	pointer-events: auto;
}

.khvc-side-cart.is-open .khvc-side-cart__overlay {
	opacity: 1;
}

.khvc-side-cart.is-open .khvc-side-cart__panel {
	transform: translateX(0);
}

.khvc-side-cart__close {
	position: absolute;
	top: 18px;
	right: 18px;
	font-size: 30px;
	line-height: 1;
	color: #999;
}

.khvc-side-cart__header {
	padding: 24px 24px 18px;
	border-bottom: 1px solid #ececec;
	display: flex;
	align-items: center;
	gap: 10px;
}

.khvc-side-cart__header h3 {
	font-size: 24px;
	font-weight: 500;
}

.khvc-side-cart__count {
	min-width: 24px;
	height: 24px;
	border-radius: 12px;
	background: #e94b35;
	color: #fff;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
}

.khvc-side-cart__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 20px 24px;
}

.khvc-side-cart__empty {
	color: #777;
}

.khvc-side-cart__items {
	display: grid;
	gap: 18px;
}

.khvc-side-cart__item {
	position: relative;
	display: flex;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid #efefef;
}

.khvc-side-cart__remove {
	position: absolute;
	top: -2px;
	right: 0;
	font-size: 24px;
	line-height: 1;
	color: #999;
}

.khvc-side-cart__thumb {
	flex: 0 0 92px;
	max-width: 92px;
}

.khvc-side-cart__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.khvc-side-cart__content {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 18px;
}

.khvc-side-cart__title {
	display: block;
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 10px;
}

.khvc-side-cart__meta {
	display: grid;
	gap: 4px;
	margin-bottom: 12px;
}

.khvc-side-cart__meta-row {
	font-size: 13px;
	color: #4a4a4a;
}

.khvc-side-cart__meta-row span {
	color: #111;
}

.khvc-side-cart__unit {
	font-size: 13px;
	color: #4a4a4a;
	margin-bottom: 8px;
}

.khvc-side-cart__unit span {
	font-weight: 600;
	color: #111;
}

.khvc-side-cart__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.khvc-side-cart__quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d8d8d8;
	border-radius: 24px;
	overflow: hidden;
}

.khvc-side-cart__quantity button {
	width: 34px;
	height: 34px;
}

.khvc-side-cart__quantity input {
	width: 44px;
	text-align: center;
	border: 0;
	background: transparent;
}

.khvc-side-cart__price {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.khvc-side-cart__bottom {
	border-top: 1px solid #ececec;
	padding: 20px 24px 24px;
}

.khvc-side-cart__total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.khvc-side-cart__actions ._btn-b {
	width: 100%;
}

@media (max-width: 767.98px) {
	.khvc-side-cart__header,
	.khvc-side-cart__body,
	.khvc-side-cart__bottom {
		padding-left: 18px;
		padding-right: 18px;
	}

	.khvc-side-cart__thumb {
		flex-basis: 78px;
		max-width: 78px;
	}
}

.spollers-filter-page-shop__body h4 {
	font-size: 16px;
	font-weight: 500;
}

.icheckbox_square-blue.checked {
	background-position: -53px -5px;
}

.slick-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.page-product-body__tocart {
	position: relative;
}

.page-product-body__tocart.is-added {
	background-color: #2e7d32;
}

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}

.custom-field-prod {
	margin: 0px 0px 30px 0px;
}
.custom-ral-color-field__colors {
	margin: 0px 0px 10px 0px;
}

@media (max-width: 767.98px) {
	.tippy-box {
		display: none;
	}
}

.archive .footer {
	margin: 60px 0px 0px 0px;
}

.page-product-body__not {
	font-size: 15px;
	padding: 0px 0px 20px 0px;
}

.page-product-body {
	align-items: flex-start;
	gap: 32px;
}

.page-product-body__images,
.page-product-body__wrapper {
	min-width: 0;
}

@media (min-width: 992px) {
	.page-product-body__images {
		flex: 0 0 42%;
		max-width: 39%;
		/* Базовая тема ставит margin-right:50px (style.css:2360) — это
		дубль интервала: у родителя .page-product-body уже задан gap.
		На viewport ≥1536px эти 50px выпихивают .page-product-body__wrapper
		за правый край контейнера. Сбрасываем. */
		margin-right: 0;
	}
	.page-product-body__wrapper {
		flex: 0 0 calc(61% - 32px);
		max-width: calc(61% - 32px);
	}
}

/* Ноутбучный диапазон 992–1440: правой колонке не хватает ширины для
лейблов 180px + значений + кнопки «Добавить в корзину» с паддингом 50px.
Поджимаем фиксированные размеры — макет в 2 колонки сохраняется,
ничего не уезжает за экран. Выше 1440px всё остаётся «как было».
Правила display: для иконки/текста кнопки лежат ниже, после базовых
определений — иначе из-за равной специфичности поздние базовые правила
перебивают этот @media-блок. */
@media (min-width: 992px) and (max-width: 1440px) {
	.page-product-body {
		gap: 20px;
	}
	.page-product-body__wrapper {
		flex: 0 0 calc(54% - 20px);
        max-width: calc(54% - 20px);
	}
	.page-product-body__char {
		gap: 16px;
	}
	.khvc-palette-row .label,
	.page-product-body__char > span {
		flex: 0 0 140px;
	}
	.page-product-body__chars {
		max-width: none;
	}
	/* Кнопка «В корзину» — не растягиваем на всё свободное место (базовый
	flex: 1 1 auto делает её под 60% колонки, что и широко, и при узких
	значениях колонки роняет в overflow). Оставляем по контенту. */
	.page-product-body__bottom ._btn-b {
		flex: 0 0 auto;
		padding-left: 20px;
		padding-right: 20px;
	}
	/* «Скачать 3D модель» — ровно мобильный вид (стили 1:1 с @media max-width: 768px):
	стэк под заголовком, pill-аутлайн на всю ширину правой колонки, иконка 24px. */
	.page-product-body__top {
		flex-wrap: wrap;
	}
	.page-product-body__heading {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.page-product-body__actions {
		flex-direction: column;
		align-items: stretch;
		align-self: stretch;
		gap: 12px;
	}

	.page-product-body__download-icon {
		flex: 0 0 24px;
	}
	.page-product-body__download-icon img {
		width: 24px;
		height: 24px;
	}
}

/* ── Кастомные хлебные крошки ── */
.khvc-breadcrumb {
	font-size: 13px;
	color: #888;
}
.khvc-breadcrumb a {
	color: #888;
	text-decoration: none;
}
.khvc-breadcrumb a:hover {
	color: #111;
	text-decoration: underline;
}
.khvc-breadcrumb__sep {
	margin: 0 4px;
	color: #bbb;
}

/* Описание продукта: воздух между параграфами в правой колонке. */
.page-product-tabs__col p {
	margin: 0 0 25px 0;
}
.page-product-tabs__col p:last-child {
	margin-bottom: 0;
}

/* ── Галерея товара (замена woothumbs) ── */
.product-gallery__thumbs-wrap {
	position: relative;
	margin-top: 14px;
}
.product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 10px;
	width: 100%;
}
.product-gallery__thumbs-btn {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 1px solid #d4d4d4;
	border-radius: 50%;
	background: #fff;
	color: #2a2a2a;
	cursor: pointer;
	z-index: 5;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: border-color 0.15s ease, color 0.15s ease;
}
.product-gallery__thumbs-btn:hover {
	border-color: #111;
	color: #111;
}
.product-gallery__thumbs-btn--prev { left: -6px; }
.product-gallery__thumbs-btn--next { right: -6px; }
/* На мобиле кнопки видны, если JS убрал атрибут [hidden] (есть оверфлоу). */
@media (max-width: 768px) {
	.product-gallery__thumbs-btn {
		display: flex;
	}
	.product-gallery__thumbs-btn[hidden] {
		display: none !important;
	}
}
.product-gallery__thumb {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f7f7f7;
	transition: border-color 0.2s;
}
.product-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.product-gallery__thumb._active,
.product-gallery__thumb:hover {
	border-color: #111;
}
.custom-ral-color-field__colors img {
	max-width: 100%;
	height: auto;
}

/* ── Product top: title + 3D link ── */
.page-product-body__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.page-product-body__download {
	/* Перебиваем style.css: убираем фиксированные 200px (давили layout)
	и навязанное центрирование на мобиле, но сохраняем border-bottom как
	подчёркивание ссылки. */
	flex: 0 0 auto;
	display: inline-flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 8px;
	padding: 4px 0;
	border-bottom: 1px solid #000;
	text-decoration: none;
	color: #222;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: opacity 0.2s;
}
.page-product-body__download:hover {
	opacity: 0.7;
}
.page-product-body__download-icon {
	flex: 0 0 40px;
}
.page-product-body__download-icon img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	display: block;
}
@media (max-width: 991.98px) {
	.page-product-body__download {
		justify-content: flex-start;
		margin: 0;
	}
}

/* Контейнер обеих кнопок (скачать 3D + примерить в интерьере). */
.page-product-body__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	flex-shrink: 0;
}

/* Кнопка «Примерить в интерьере» — pill, тёмный аутлайн. */
.page-product-body__ar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 11px 22px;
	border: 1px solid #111;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font: 600 14px/1.2 Montserrat, sans-serif;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
}

/* На десктопе AR-кнопка живёт под галереей, в верхней правой плашке —
скрыта; на мобиле наоборот. Брейкпоинт 992px совпадает с переключением
.page-product-body на одноколоночный layout. */
.page-product-body__images-cta {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}
.page-product-body__ar-btn--gallery {
	min-width: 260px;
	padding: 14px 28px;
	font-size: 15px;
}
@media (max-width: 991.98px) {
	.page-product-body__images-cta {
		display: none;
	}
}
@media (min-width: 992px) {
	.page-product-body__ar-btn--actions {
		display: none;
	}
}
.page-product-body__ar-btn:hover,
.page-product-body__ar-btn:focus-visible {
	background: #111;
	color: #fff;
	outline: none;
}
.page-product-body__ar-btn:active {
	transform: scale(0.97);
}
.page-product-body__ar-btn-icon {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.page-product-body__top {
		flex-wrap: wrap;
	}
	.page-product-body__actions {
		flex-direction: column;
		align-items: stretch;
		align-self: stretch;
		gap: 12px;
	}
	/* На мобиле обе кнопки — одинаковые pill-аутлайны на всю ширину. */
	.page-product-body__download,
	.page-product-body__ar-btn {
		display: inline-flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		padding: 12px 20px;
		gap: 10px;
		border: 1px solid #111;
		border-radius: 999px;
		background: #fff;
		color: #111;
		font: 600 14px/1.2 Montserrat, sans-serif;
		text-decoration: none;
		white-space: nowrap;
		transition: background 0.2s ease, color 0.2s ease;
	}
	.page-product-body__download:hover,
	.page-product-body__download:focus-visible,
	.page-product-body__ar-btn:hover,
	.page-product-body__ar-btn:focus-visible {
		background: #111;
		color: #fff;
		opacity: 1;
		outline: none;
	}
	/* Иконка 3D-гифки выравнивается по размеру SVG у AR-кнопки. */
	.page-product-body__download-icon {
		flex: 0 0 24px;
	}
	.page-product-body__download-icon img {
		width: 24px;
		height: 24px;
	}
}

/* ── Sticky-виджет «Примерить в интерьере» (десктоп) ──────────────────── */
/* Вертикальная узкая «вкладка» у правого края экрана: иконка сверху,
подпись с writing-mode: vertical-rl (читается сверху вниз). */
.khvc-ar-fab {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 450;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 44px;
	padding: 18px 0 22px;
	border: none;
	border-radius: 14px 0 0 14px;
	background: #111;
	color: #fff;
	cursor: pointer;
	box-shadow: -6px 8px 22px rgba(0, 0, 0, 0.18);
	transition: transform 0.25s ease, padding 0.25s ease, background 0.2s ease;
}
.khvc-ar-fab:hover,
.khvc-ar-fab:focus-visible {
	background: #2a2a2a;
	transform: translate(-4px, -50%);
	outline: none;
}
.khvc-ar-fab:active {
	transform: translate(-4px, -50%) scale(0.97);
}
.khvc-ar-fab__icon {
	flex-shrink: 0;
}
.khvc-ar-fab__text {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	font: 600 13px/1 Montserrat, sans-serif;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* На мобиле виджет компактнее, чтобы не перекрывал контент.
Поднят выше, чтобы не мешал нижней липкой панели «купить». */
@media (max-width: 767.98px) {
	.khvc-ar-fab {
		top: 40%;
		width: 38px;
		gap: 10px;
		padding: 14px 0 18px;
	}
	.khvc-ar-fab__icon {
		width: 20px;
		height: 20px;
	}
	.khvc-ar-fab__text {
		font-size: 12px;
	}
}

/* ── Модалка с QR-кодом (десктоп) ─────────────────────────────────────── */
body.khvc-ar-locked {
	overflow: hidden;
}
.khvc-ar-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 20, 20, 0.55);
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.khvc-ar-overlay[hidden] {
	display: none;
}
.khvc-ar-overlay.is-open {
	opacity: 1;
}
.khvc-ar-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 32px 28px 26px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
	text-align: center;
	transform: translateY(8px) scale(0.98);
	transition: transform 0.2s ease;
}
.khvc-ar-overlay.is-open .khvc-ar-modal {
	transform: translateY(0) scale(1);
}
.khvc-ar-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	padding: 6px 12px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	transition: color 0.15s ease;
}
.khvc-ar-modal__close:hover {
	color: #111;
}
.khvc-ar-modal__title {
	margin: 0 0 18px;
	font: 600 18px/1.3 Montserrat, sans-serif;
	color: rgb(33, 33, 33);
}
.khvc-ar-modal__qr-wrap {
	display: inline-block;
	padding: 14px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	margin: 0 0 16px;
}
.khvc-ar-modal__qr {
	min-width: 256px;
	min-height: 256px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.khvc-ar-modal__qr img,
.khvc-ar-modal__qr canvas {
	display: block;
}
.khvc-ar-modal__qr-loading,
.khvc-ar-modal__qr-error {
	font: 500 13px/1.5 Montserrat, sans-serif;
	color: #888;
	margin: 0;
}
.khvc-ar-modal__qr-error {
	color: #a14040;
}
.khvc-ar-modal__hint {
	margin: 0 0 14px;
	font: 500 13px/1.55 Montserrat, sans-serif;
	color: #555;
}
.khvc-ar-modal__url {
	font: 500 11px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
	color: #888;
	background: #f5f5f6;
	padding: 8px 12px;
	border-radius: 8px;
	word-break: break-all;
}

.page-product-body__heading {
	margin: 0;
}

.page-product-body__char {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 24px;
	margin: 0 0 22px 0;
}
.page-product-body__char > span {
	flex: 0 0 180px;
}

/* ── Attribute rows redesign ── */
.page-product-body__chars {
	margin: 0;
	padding: 0;
	border: none;
	max-width: 720px;
}
.khvc-palette-row {
	padding: 0;
	border: none;
}
.khvc-palette-row .label {
	flex: 0 0 180px;
	display: block;
	padding: 13px 0 0;
	margin: 0;
	font: 500 15px/22px Montserrat, sans-serif;
	color: rgb(33, 33, 33);
	letter-spacing: 0;
}
.khvc-palette-row .value,
.khvc-palette-row .khvc-color-select-value,
.khvc-palette-row .khvc-variants-value {
	flex: 1 1 auto;
	min-width: 0;
}
.custom-field-prod {
	padding: 14px 0;
	border-bottom: 1px solid #f2f2f2;
	margin: 0 !important;
}

.custom-ral-color-field__colors {
	margin: 0 0 14px;
}

.custom-ral-color-field__colors a,
.custom-ral-color-field__colors img {
	display: block;
}

.khvc-ral-field__controls {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.khvc-ral-field__label span {
	font-weight: 700;
	color: #6c5ce7;
}

.khvc-ral-field__input {
	flex: 1 1 240px;
	position: relative;
}

.khvc-ral-field__input input {
	width: 100%;
	padding: 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
}

.khvc-ral-hint {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	font-size: 12px;
	color: #888;
	letter-spacing: 0.02em;
	pointer-events: none;
}

/* ── Color palette (obivka) ── */
.khvc-palette-label {
	font-size: 13px;
	font-weight: 500;
	color: #222;
	letter-spacing: 0.03em;
	margin-bottom: 15px;
}
.khvc-palette-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 15px;
}
.khvc-color-swatch {
	position: relative;
	z-index: 1;
	cursor: pointer;
	padding: 0;
	border: 1px solid #d4d4d4;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	text-align: center;
	/* Flex-column, чтобы при растяжении плитки по высоте грид-строки лишнюю
	высоту забирала подпись (.khvc-color-swatch__name), а картинка оставалась
	квадратной. Без этого iOS Safari растягивает .khvc-color-swatch__img-wrap
	с aspect-ratio вниз (в Chrome остаётся квадрат). */
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Должно перебивать любые display: flex, которые мы добавляем под
конкретные таксономии (например faktura-karkasa). Без !important [hidden]
на элементе с display:flex остаётся видимым. */
.khvc-color-swatch[hidden] {
	display: none !important;
}
.khvc-color-swatch__img-wrap {
	position: relative;
	width: 100%;
	/* aspect-ratio в flex-direction:column ломается в Safari — квадрат
	   уезжает в высоту. Используем надёжный padding-bottom-трюк. */
	height: 0;
	padding-bottom: 100%;
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 0;
	margin: 0;
}
.khvc-color-swatch__img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.khvc-color-swatch__name {
	display: flex;
	align-items: center;
	justify-content: center;
	/* Подпись забирает лишнюю высоту растянутой по грид-строке плитки. */
	flex: 1 1 auto;
	padding: 9px 10px 11px;
	font: 600 13px/18px Montserrat, sans-serif;
	color: rgb(33, 33, 33);
	background: #fff;
	word-break: break-word;
}
.khvc-color-swatch:hover,
.khvc-color-swatch:focus-visible {
	z-index: 5;
	border-color: #888;
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(20, 20, 20, 0.10);
}
/* Selected: тонкая чёрная рамка + outline-эффект, чтобы не было layout-shift
при переходе 1px→2px. */
.khvc-color-swatch.selected {
	border-color: #adabab;
	box-shadow: 0 0 0 1px #111;
}
.khvc-color-swatch.selected:hover,
.khvc-color-swatch.selected:focus-visible {
	box-shadow:
		0 0 0 1px #111,
		0 12px 28px rgba(20, 20, 20, 0.10);
}
.khvc-color-swatch.selected .khvc-color-swatch__name {
	color: #111;
}
.khvc-color-swatch.is-disabled,
.khvc-text-swatch.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
	box-shadow: none;
}
.khvc-swatches {
	display: grid;
	/* auto-fill (not auto-fit) keeps empty tracks so 2 swatches don't stretch
	to fill the row when there's space for 3+. Swatches stay square-ish. */
	grid-template-columns: repeat(auto-fill, minmax(120px, 144px));
	gap: 14px;
	flex: 1 1 auto;
}

/* Фактура каркаса и Основание — сам блок квадратный (aspect-ratio: 1).
Внутри: картинка занимает всё свободное место сверху, подпись — снизу
натуральной высоты. На десктопе плитки фиксированной ширины ~110px
(не растягиваются на всю колонку); на мобиле 3-в-ряд по 1fr. */
.khvc-swatches[data-taxonomy="faktura-karkasa"],
.khvc-swatches[data-taxonomy="osnovanie"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
@media (min-width: 992px) {
	.khvc-swatches[data-taxonomy="faktura-karkasa"],
	.khvc-swatches[data-taxonomy="osnovanie"] {
		grid-template-columns: repeat(auto-fill, 110px);
	}
}
.khvc-swatches[data-taxonomy="faktura-karkasa"] .khvc-color-swatch,
.khvc-swatches[data-taxonomy="osnovanie"] .khvc-color-swatch {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
}
.khvc-swatches[data-taxonomy="faktura-karkasa"] .khvc-color-swatch__img-wrap,
.khvc-swatches[data-taxonomy="osnovanie"] .khvc-color-swatch__img-wrap {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	padding-bottom: 0;
	aspect-ratio: auto;
}
.khvc-swatches[data-taxonomy="faktura-karkasa"] .khvc-color-swatch__img,
.khvc-swatches[data-taxonomy="osnovanie"] .khvc-color-swatch__img {
	position: static;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.khvc-swatches[data-taxonomy="faktura-karkasa"] .khvc-color-swatch__name,
.khvc-swatches[data-taxonomy="osnovanie"] .khvc-color-swatch__name {
	flex: 0 0 auto;
	font-size: 12px;
	padding: 5px 6px 7px;
}

.khvc-upholstery-row .value {
	flex: 1 1 auto;
	min-width: 0;
}

/* ── Upholstery 3-row slider ── */
.khvc-upholstery-slider {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.khvc-upholstery-swatches {
	display: grid;
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;
	grid-auto-columns: 116px;
	gap: 14px 12px;
	/* Запас сверху/снизу, чтобы hover translateY(-3px) и тень не клипались
	контейнером с overflow-y:hidden (нужен для горизонтального скролла). */
	padding: 6px 4px 18px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	flex: 1;
	min-width: 0;
}
.khvc-upholstery-swatches::-webkit-scrollbar {
	display: none;
}
.khvc-upholstery-slider .khvc-color-swatch {
	padding: 0;
	width: 116px;
	border-color: #c8c8c8;
}
.khvc-upholstery-slider .khvc-color-swatch__img-wrap {
	height: 64px;
	padding-bottom: 0;
}
.khvc-upholstery-slider .khvc-color-swatch__name {
	padding: 7px 8px 9px;
	font-size: 12px;
	margin-top: 0;
}
.khvc-upholstery-slider__btn {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border: 1px solid #ececec;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #2a2a2a;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.khvc-upholstery-slider__btn:hover {
	border-color: #111;
	color: #111;
	box-shadow: 0 6px 16px rgba(20, 20, 20, 0.06);
}
.khvc-upholstery-slider__btn[hidden] {
	display: none !important;
}

.khvc-upholstery-swatch {
	background: #fff;
}

/* Кнопка-лупа внутри изображения свотча обивки */
.khvc-swatch-zoom {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 2;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.88);
	border-radius: 4px;
	cursor: pointer;
	color: #333;
	opacity: 0;
	transition: opacity 0.15s;
	line-height: 1;
}
.khvc-upholstery-swatch:hover .khvc-swatch-zoom {
	opacity: 1;
}
@media (hover: none) {
	.khvc-swatch-zoom {
		opacity: 1;
	}
	/* Расширяем зону касания до ~44px (рекомендация Apple) через псевдоэлемент */
	.khvc-swatch-zoom::before {
		content: '';
		position: absolute;
		inset: -10px;
	}
}

/* Модальное окно для увеличенного просмотра ткани */
.khvc-swatch-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9990;
	background: rgba(0, 0, 0, 0.72);
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.khvc-swatch-modal.is-open {
	display: flex;
}
.khvc-swatch-modal__inner {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 16px;
	/* Окно подстраивается под реальный размер картинки, не растягивается */
	width: fit-content;
	max-width: min(90vw, 90vh);
	text-align: center;
}
.khvc-swatch-modal__img {
	display: block;
	/* Не растягиваем — показываем в натуральном размере, ограничивая вьюпортом */
	width: auto;
	height: auto;
	max-width: calc(90vw - 32px);
	max-height: calc(80vh - 32px);
	border-radius: 4px;
}
.khvc-swatch-modal__name {
	margin-top: 10px;
	font-size: 14px;
	color: #333;
	line-height: 1.4;
}
.khvc-swatch-modal__close {
	position: absolute;
	top: -13px;
	right: -13px;
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 50%;
	cursor: pointer;
	color: #333;
	line-height: 1;
}
.khvc-swatch-modal__close:hover {
	background: #f2f2f2;
}

.khvc-upholstery-row[hidden] {
	display: none !important;
}
.khvc-text-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 48px;
	padding: 8px 18px;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
	background: #fff;
	color: rgb(33, 33, 33);
	font: 600 14px/1.25 Montserrat, sans-serif;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}
.khvc-text-swatch:hover {
	border-color: #adabab;
	color: #111;
}
.khvc-text-swatch.selected {
	border-color: #adabab;
}
.product-gallery__main {
	min-height: 500px;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
}
.product-gallery__slide {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 500px;
	padding: 8px;
}
.product-gallery__slide._active {
	display: flex;
}
.product-gallery__slide img {
	width: 100%;
	height: 100%;
	max-height: 484px;
	object-fit: contain;
}
.product-gallery {
	width: 100%;
}
.product-gallery__thumb {
	padding: 0;
	background: transparent;
}
.page-product-body__bottom {
	margin-top: 24px;
	display: flex;
	align-items: stretch;
	gap: 14px;
}
.page-product-body__bottom ._btn-b {
	flex: 1 1 auto;
}

/* Текст / иконка в кнопке «Добавить в корзину».
Десктоп: иконка скрыта, виден полный текст. Мобиль: иконка + короткий текст. */
.page-product-body__tocart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.page-product-body__tocart-icon {
	display: none;
	flex-shrink: 0;
}
.page-product-body__tocart-text--short {
	display: none;
}

/* Ноутбучный диапазон: показываем иконку + короткий текст «В корзину» вместо
длинного «Добавить в корзину» (как на мобиле). Блок специально лежит после
базовых display:none — чтобы не проиграть им по порядку каскада. */
@media (min-width: 992px) and (max-width: 1440px) {
	.page-product-body__tocart-icon {
		display: inline-flex;
	}
	.page-product-body__tocart-text {
		display: none;
	}
	.page-product-body__tocart-text--short {
		display: inline;
	}
}

.page-product-body__quantity {
	flex: 0 0 150px;
}

.khvc-quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ececec;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.khvc-quantity__btn {
	width: 44px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	border: none;
	background: transparent;
}

.khvc-quantity__input {
	width: 60px;
	height: 52px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 16px;
	-moz-appearance: textfield;
}

.khvc-quantity__input::-webkit-outer-spin-button,
.khvc-quantity__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.page-product-recommends {
	margin: 50px 0 10px;
}

.page-product-recommends__top {
	margin-bottom: 24px;
}

@media (max-width: 768px) {
	.page-favorites__top {
		flex-direction: column;
		align-items: stretch;
	}
	.page-product-body__images,
	.page-product-body__wrapper {
		flex: 0 0 100%;
		max-width: 100%;
		width: 100%;
	}
	.page-product-body__char {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-bottom: 22px;
	}
	.page-product-body__char > span,
	.khvc-palette-row .label {
		flex: 0 0 auto;
	}
	.khvc-palette-row .label {
		padding: 0;
		font-size: 15px;
		line-height: 22px;
	}
	.khvc-palette-items {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
		gap: 10px;
	}
	.khvc-color-swatch__name {
		font-size: 12px;
		padding: 8px 8px 10px;
	}
	.khvc-swatches {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.khvc-upholstery-slider .khvc-color-swatch {
		width: 96px;
	}
	.khvc-upholstery-swatches {
		grid-auto-columns: 96px;
	}
	.product-gallery__main,
	.product-gallery__slide {
		min-height: 360px;
		border-radius: 12px;
	}
	.product-gallery__slide {
		padding: 0;
	}
	.product-gallery__slide img {
		max-height: 360px;
		object-fit: cover;
	}
	/* Горизонтальный скролл миниатюр: ровно 4 в видимой области, остальные
	уезжают вбок свайпом. Слайдер-скрипт уже подключён к странице. */
	.product-gallery__thumbs {
		display: flex;
		grid-template-columns: none;
		flex-wrap: nowrap;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-ms-overflow-style: none;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
	}
	.product-gallery__thumbs::-webkit-scrollbar {
		display: none;
	}
	.product-gallery__thumb {
		flex: 0 0 calc((100% - 24px) / 4);
		width: auto;
	}
	.page-product-body {
		gap: 24px;
	}
	.page-product-body__bottom {
		flex-direction: row;
		align-items: stretch;
		gap: 10px;
	}
	.page-product-body__quantity {
		flex: 0 0 auto;
		align-self: stretch;
	}
	.page-product-body__bottom ._btn-b {
		flex: 1 1 auto;
		min-width: 0;
		padding: 0 16px;
	}
	.page-product-body__tocart-icon {
		display: inline-flex;
	}
	.page-product-body__tocart-text {
		display: none;
	}
	.page-product-body__tocart-text--short {
		display: inline;
	}
}

/* ── lightGallery: убираем застрявший спиннер после загрузки изображения ── */
/* Базовое правило `.lg-item.lg-complete { background-image: none }` в style.css
иногда не срабатывает (специфичность одинаковая, при динамическом cache —
браузер может не перерисовывать). Принудительно гасим фон-спиннер на
слайдах с уже загруженным изображением. */
.lg-outer .lg-item.lg-complete,
.lg-outer .lg-item.lg-loaded {
	background: none !important;
}

/* ── Sticky bar: на десктопе — цена справа, рядом с количеством ── */
@media (min-width: 768px) {
	.khvc-sticky-bar__price {
		flex: 0 0 auto;
		margin-left: auto;
		text-align: right;
	}
}

/* ── AJAX-фильтр каталога (стили для элементов внутри оригинального спойлера) ── */

.spollers-filter-page-shop__body .khvc-filter-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #bebebe;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

.spollers-filter-page-shop__body .khvc-filter-btn {
	display: inline-block;
	width: 100%;
	padding: 12px 20px;
	background: #202020;
	color: #fff;
	border: none;
	border-radius: 25px;
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s;
	margin-bottom: 10px;
}

.spollers-filter-page-shop__body .khvc-filter-btn:hover {
	background: #414141;
}

.spollers-filter-page-shop__body .khvc-filter-btn-reset {
	display: inline-block;
	width: 100%;
	padding: 12px 20px;
	background: transparent;
	color: #555;
	border: 1px solid #bebebe;
	border-radius: 25px;
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s;
}

.spollers-filter-page-shop__body .khvc-filter-btn-reset:hover {
	border-color: #202020;
	color: #202020;
}

/* Состояние загрузки */
.khvc-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s;
}

/* Пагинация */
#khvc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin: 0 3px;
	padding: 0 10px;
	border-radius: 6px;
	background: #f6f5f5;
	color: #333;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s;
}

#khvc-pagination .page-numbers.current {
	background: #202020;
	color: #fff;
}

#khvc-pagination .page-numbers:hover:not(.current) {
	background: #e0e0e0;
}

/* Меньше «воздуха» на страницах каталога/категорий */
.page-shop .page-shop__title {
	margin-bottom: 24px;
}
@media (max-width: 767.98px) {
	.page-shop .page-shop__title {
		margin-bottom: 14px;
	}
}

/* Карточка товара с кнопкой избранного */
.item-product {
	border: 1px solid transparent;
	transition: border-color 0.2s ease;
}
.item-product:hover {
	border-color: #e0e0e0;
}
.item-product__img-wrap {
	position: relative;
	display: block;
	margin-bottom: 25px;
}

.item-product__favorite {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: transparent;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: all 0.2s;
	padding: 0;
}

.item-product__favorite:hover {
	background: transparent;
}

.item-product__favorite svg {
	width: 20px;
	height: 20px;
	color: #ccc;
}

.item-product__favorite.active svg {
	color: #e94b35;
	fill: #e94b35;
}

.page-favorites__top {
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.page-favorites__clear {
	border-radius: 33px;
	padding: 12px 24px;
}

.khvc-favorites-empty {
	width: 100%;
	padding: 32px 20px;
	text-align: center;
	border: 1px solid #e7e7e7;
	border-radius: 20px;
	background: #fafafa;
}

.item-product__choose-btn {
	background-color: #000;
	text-align: center;
	-webkit-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
	border-radius: 33px;
	color: #fff;
	font-weight: 200;
	padding: 11px 32px;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 100%;
	margin-top: 12px;
	font-size: 14px;
	border: none;
	cursor: pointer;
}

.item-product__btn {
	width: auto;
	align-self: center;
	justify-content: center;
	text-align: center;
}

/* Слайдер цены в фильтре (оставлено на случай, если решим вернуть слайдер) */
.filters-prod__inputs--slider {
	display: flex;
	align-items: center;
	gap: 10px;
}

.filters-prod__inputs--slider .filters-prod__input {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
}

.filters-prod__inputs--slider input[type="range"] {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: #ddd;
	outline: none;
	-webkit-appearance: none;
}

.filters-prod__inputs--slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #202020;
	cursor: pointer;
}

.filters-prod__slider-value {
	min-width: 60px;
	font-weight: 500;
}

/* Блок категорий под заголовком */
.page-shop__categories {
	margin: 20px 0 30px;
}

.page-shop__categories-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.page-shop__categories-item {
	flex: 0 0 auto;
}

.page-shop__categories-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #333;
	transition: color 0.2s;
}

.page-shop__categories-link:hover {
	color: #202020;
}

.page-shop__categories-img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 0;
	margin-bottom: 8px;
	border: 1px solid #eee;
}

.page-shop__categories-name {
	font-size: 14px;
	text-align: center;
	max-width: 100px;
	word-break: break-word;
}

/* Кнопка "Показать ещё" */
.page-shop__load-more {
	text-align: center;
	margin: 40px 0;
}

#khvc-load-more {
	padding: 15px 40px;
	font-size: 16px;
	background: #202020;
	color: #fff;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	transition: background 0.2s;
}

#khvc-load-more:hover {
	background: #414141;
}

#khvc-load-more:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Colour accordion (czvet-karkasa) ── */
.khvc-color-accordion-wrap {
	display: block !important;
	padding: 0;
	margin-bottom: 0 !important;
}
.khvc-color-accordion__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 14px 0;
	background: none;
	border: none;
	border-bottom: 1px solid #ebebeb;
	cursor: pointer;
	font-size: 16px;
	color: #222;
	text-align: left;
}
.khvc-color-accordion__label {
	flex: 0 0 170px;
	font-weight: 600;
	letter-spacing: 0.03em;
}
.khvc-color-accordion__current {
	flex: 1;
	font-size: 14px;
	font-weight: 400;
	color: #555;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.khvc-color-accordion__arrow {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.khvc-color-accordion__arrow::after {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #777;
	border-bottom: 2px solid #777;
	transform: rotate(45deg);
	margin-top: -4px;
	transition: transform 0.2s;
}
.khvc-color-accordion__toggle[aria-expanded="true"] .khvc-color-accordion__arrow::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}
.khvc-color-accordion__body {
	padding: 14px 0;
	border-bottom: 1px solid #ebebeb;
}

/* ── Custom select ── */
.khvc-custom-select {
	position: relative;
	display: inline-block;
	max-width: 320px;
	min-width: 180px;
}
.khvc-custom-select__trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px;
	border: 1px solid #ececec;
	border-radius: 14px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	user-select: none;
	font: 500 15px/1.2 Montserrat, sans-serif;
	color: #2a2a2a;
}
.khvc-custom-select__trigger:hover {
	border-color: #c8c8c8;
	box-shadow: 0 4px 14px rgba(20, 20, 20, 0.07);
}
.khvc-custom-select__trigger[aria-expanded="true"] {
	border-color: #111;
	box-shadow: 0 0 0 1px #111;
}
.khvc-custom-select__selected-img {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
}
.khvc-custom-select__selected-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
}
.khvc-custom-select__selected-name {
	flex: 1;
	font-size: 15px;
	font-weight: 500;
	color: #222;
}
.khvc-custom-select__arrow {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.khvc-custom-select__arrow::after {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	border-right: 2px solid #777;
	border-bottom: 2px solid #777;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform 0.2s;
}
.khvc-custom-select__trigger[aria-expanded="true"] .khvc-custom-select__arrow::after {
	transform: rotate(-135deg);
	margin-top: 3px;
}
.khvc-custom-select__list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	min-width: 100%;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	overflow-y: auto;
	max-height: 280px;
	z-index: 200;
	box-shadow: 0 8px 24px rgba(20, 20, 20, 0.10);
}
.khvc-custom-select__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	cursor: pointer;
	transition: background 0.12s;
}
.khvc-custom-select__item + .khvc-custom-select__item {
	border-top: 1px solid #f0f0f0;
}
.khvc-custom-select__item:hover {
	background: #f7f7f7;
}
.khvc-custom-select__item.is-selected {
	background: #f2f2f2;
}
.khvc-custom-select__item.is-selected .khvc-custom-select__item-name {
	font-weight: 600;
}
.khvc-custom-select__item.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}
.khvc-custom-select__item-img {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	overflow: hidden;
}
.khvc-custom-select__item-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.khvc-custom-select__item-name {
	font-size: 14px;
	color: #222;
}

/* ── RAL open button ── */
.khvc-ral-open-btn {
	display: inline-flex;
	align-items: center;
	margin-top: 12px;
	padding: 9px 18px;
	background: #fff;
	border: 2px solid #6c5ce7;
	border-radius: 6px;
	color: #6c5ce7;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.khvc-ral-open-btn:hover {
	background: #6c5ce7;
	color: #fff;
}

/* Mobile: collapse accordion label column */
@media (max-width: 767px) {
	.khvc-color-accordion__label {
		flex: 0 0 auto;
	}
}

/* ── RAL field inside color-select-value: horizontal layout ── */
.khvc-color-select-value .khvc-ral-field[hidden] {
	display: none !important;
}
.khvc-ral-open-btn[hidden] {
	display: none !important;
}
.khvc-color-select-value {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.khvc-color-select-value .khvc-ral-field {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0 0;
	border: none;
	flex-wrap: wrap;
}
.khvc-color-select-value .khvc-ral-open-btn {
	margin-top: 0;
	flex-shrink: 0;
}
.khvc-color-select-value .khvc-ral-field__controls {
	flex: 1 1 180px;
	gap: 0;
}
.khvc-color-select-value .khvc-ral-field__label {
	display: none;
}
.khvc-color-select-value .khvc-ral-field__input {
	flex: 1;
}
.khvc-color-select-value .khvc-ral-field__input input {
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 15px;
}

/* ── Sticky bottom bar ── */
.khvc-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid #e5e5e5;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	z-index: 400;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}
.khvc-sticky-bar.is-visible {
	transform: translateY(0);
	pointer-events: auto;
}
.khvc-sticky-bar__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.khvc-sticky-bar__price {
	flex: 1 1 auto;
	min-width: 120px;
}
.khvc-sticky-bar__price-label {
	display: block;
	font-size: 12px;
	color: #888;
	margin-bottom: 2px;
}
.khvc-sticky-bar__price-value {
	font-size: 26px;
	font-weight: 700;
	color: #e53935;
}
.khvc-sticky-bar__quantity {
	flex-shrink: 0;
}
.khvc-sticky-bar__btn {
	flex-shrink: 0;
	padding: 12px 28px;
	font-size: 15px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.khvc-sticky-bar__btn-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
@media (max-width: 575px) {
	.khvc-sticky-bar__inner {
		padding: 10px 12px;
		gap: 10px;
		flex-wrap: nowrap;
	}
	.khvc-sticky-bar__price {
		flex: 1 1 auto;
		min-width: 0;
	}
	.khvc-sticky-bar__price-label {
		display: none;
	}
	.khvc-sticky-bar__price-value {
		font-size: 20px;
	}
	.khvc-sticky-bar__quantity .khvc-quantity__btn {
		width: 52px;
		height: 56px;
		font-size: 22px;
	}
	.khvc-sticky-bar__quantity .khvc-quantity__input {
		width: 44px;
		height: 56px;
		font-size: 16px;
	}
	.khvc-sticky-bar__btn {
		flex-shrink: 0;
		width: 56px;
		height: 56px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
	.khvc-sticky-bar__btn-text {
		display: none;
	}
	.khvc-sticky-bar__btn-icon {
		width: 24px;
		height: 24px;
	}
}

/* ── RAL Colors Popup (fullscreen) ── */
.khvc-ral-popup * {
	pointer-events: inherit;
}
.khvc-ral-popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	pointer-events: none;
}

.khvc-ral-popup.is-open {
	pointer-events: auto;
}

.khvc-ral-popup__overlay {
	display: none;
}

.khvc-ral-popup__body {
	position: absolute;
	inset: 0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.khvc-ral-popup.is-open .khvc-ral-popup__body {
	opacity: 1;
}

.khvc-ral-popup__close {
	position: fixed;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	font-size: 18px;
	line-height: 1;
	color: #333;
	transition: background 0.2s, border-color 0.2s;
}

.khvc-ral-popup__close:hover {
	background: #f5f5f5;
	border-color: #999;
}

.khvc-ral-popup__img {
	display: block;
	max-width: 100%;
	max-height: 100vh;
	width: auto;
	height: auto;
}

/* ── Custom-value dropdown (text-only) ── */
.khvc-custom-select--text {
	max-width: 360px;
	min-width: 200px;
}
.khvc-custom-select--text .khvc-custom-select__selected-img {
	display: none;
}
.khvc-custom-select__item--cv {
	font-weight: 600;
	color: #111;
}
.khvc-custom-select__item--cv .khvc-custom-select__item-name {
	color: #111;
}
.khvc-custom-select__item--cv::before {
	content: "+";
	display: inline-flex;
	width: 18px;
	height: 18px;
	margin-right: 6px;
	align-items: center;
	justify-content: center;
	border: 1px solid #111;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	flex-shrink: 0;
}

/* Инлайн-инпут под селектом «Другая высота / Другой размер». Раскрывается
   когда в селекте выбран спец-пункт; значение тут же копится в корзину. */
.khvc-cv-input {
	margin-top: 10px;
	max-width: 360px;
}
.khvc-cv-input__row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.khvc-cv-input__field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 14px;
	border: 1px solid #d4d4d4;
	border-radius: 12px;
	font: 500 15px/1.2 Montserrat, sans-serif;
	color: #111;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.khvc-cv-input__field:focus {
	outline: 0;
	border-color: #111;
	box-shadow: 0 0 0 1px #111;
}
.khvc-cv-input__unit {
	flex-shrink: 0;
	font: 500 14px/1.2 Montserrat, sans-serif;
	color: #555;
}
.khvc-cv-input__hint {
	margin-top: 6px;
	font: 400 12px/1.4 Montserrat, sans-serif;
	color: #888;
}

/* ── Cart drawer: checkout button ── */

.khvc-checkout-field {
	width: 100%;
}

@media(min-width: 768px){
	.khvc-checkout-field-col-6 {
		width: 48%;
	}
	.khvc-checkout-field-flex {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}
}



.khvc-side-cart__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.khvc-side-cart__actions ._btn-b-outline {
	background: transparent;
	border: 1px solid #d0d0d0;
	color: #555;
}

.khvc-side-cart__actions ._btn-b-outline:hover {
	border-color: #202020;
	color: #202020;
}

/* ── Catalog checkout page ── */
.page-checkout-catalog .page__container {
	max-width: 1100px;
}

.page-checkout-catalog {
	margin-bottom: 120px;
}

.page-checkout-catalog__layout {
	display: flex;
	gap: 48px;
	align-items: flex-start;
	margin-top: 32px;
}

.page-checkout-catalog__form-col {
	flex: 1 1 0;
	min-width: 0;
}

.page-checkout-catalog__summary {
	flex: 0 0 320px;
	width: 320px;
	position: sticky;
	top: 100px;
}

/* Tabs */
.khvc-checkout-tabs {
	display: flex;
	gap: 0;
	border: 1px solid #d8d8d8;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 28px;
}

.khvc-checkout-tab {
	flex: 1 1 50%;
	padding: 12px 20px;
	background: #fff;
	border: none;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	color: #555;
}

.khvc-checkout-tab.is-active {
	background: #202020;
	color: #fff;
}

/* Fields */
/* .khvc-checkout-field {
margin-bottom: 18px;
} */

.khvc-checkout-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #222;
}

.khvc-req {
	color: #e94b35;
}

.khvc-checkout-input {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	font-size: 15px;
	color: #111;
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.khvc-checkout-input:focus {
	outline: none;
	border-color: #202020;
}

.khvc-checkout-textarea {
	resize: vertical;
	min-height: 90px;
}

.khvc-checkout-error {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #e94b35;
	min-height: 16px;
}

.khvc-checkout-hint {
	margin: 4px 0 0;
	font-size: 12px;
	color: #888;
}

.khvc-checkout-note {
	margin: 0 0 18px;
	font-size: 13px;
	color: #555;
	padding: 10px 14px;
	background: #f5f5f5;
	border-radius: 8px;
}

/* Delivery section */
.khvc-checkout-delivery-block {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #ececec;
}

.khvc-checkout-section-label {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: #222;
}

.khvc-checkout-radios {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 18px;
}

.khvc-checkout-radio-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	cursor: pointer;
	line-height: 1.45;
}

.khvc-checkout-radio-row input[type="radio"] {
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #202020;
}

.khvc-checkout-address-fields {
	margin-top: 4px;
}

/* Privacy + submit */
.khvc-checkout-privacy {
	margin: 24px 0 16px;
	font-size: 13px;
	color: #888;
}

.khvc-checkout-privacy a {
	color: #555;
	text-decoration: underline;
}

.khvc-checkout-global-error {
	margin-bottom: 12px;
	font-size: 14px;
	color: #e94b35;
}

.khvc-checkout-submit-btn {
	width: 100%;
}

.khvc-checkout-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

/* Success state */
.khvc-checkout-success {
	padding: 48px 24px;
	text-align: center;
}

.khvc-checkout-success__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.khvc-checkout-success__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 2px solid #202020;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #202020;
}

/* Summary panel */
.khvc-checkout-summary {
	background: #f9f9f9;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 24px;
}

.khvc-checkout-summary__title {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 600;
}

.khvc-checkout-summary__items {
	margin-bottom: 16px;
}

.khvc-checkout-summary__item {
	padding: 8px 0;
	border-bottom: 1px solid #ececec;
	font-size: 14px;
}

.khvc-checkout-summary__item-top {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 8px;
	align-items: baseline;
}

.khvc-checkout-summary__item-attrs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: 4px;
}

.khvc-checkout-summary__item-attr {
	font-size: 12px;
	color: #666;
}

.khvc-checkout-summary__item-name {
	color: #222;
}

.khvc-checkout-summary__item-qty {
	color: #888;
	white-space: nowrap;
}

.khvc-checkout-summary__item-price {
	font-weight: 500;
	white-space: nowrap;
}

.khvc-checkout-summary__item-unit {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

.khvc-checkout-summary__item-unit strong {
	color: #222;
}

.khvc-checkout-summary__empty {
	font-size: 14px;
	color: #888;
	margin: 0;
}

.khvc-checkout-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 12px;
	font-size: 15px;
	font-weight: 600;
}

@media (max-width: 900px) {
	.page-checkout-catalog__layout {
		flex-direction: column-reverse;
		gap: 24px;
	}

	.page-checkout-catalog__summary {
		position: static;
		width: 100%;
		flex: none;
	}
}

@media (max-width: 480px) {
	.khvc-checkout-tabs {
		border-radius: 10px;
	}

	.khvc-checkout-tab {
		font-size: 14px;
		padding: 10px 12px;
	}
}

/* ── Cookie bar ── */
.khvc-cookie-bar {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(16px);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px 10px 18px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 40px;
	font-size: 13px;
	white-space: nowrap;
	box-shadow: 0 4px 20px rgba(0,0,0,0.18);
	z-index: 9999;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s, transform 0.3s;
}

.khvc-cookie-bar--show {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.khvc-cookie-bar--hide {
	opacity: 0;
	transform: translateX(-50%) translateY(16px);
}

.khvc-cookie-bar__text {
	color: rgba(255,255,255,0.85);
}

.khvc-cookie-bar__ok {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #1a1a1a;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.15s;
	line-height: 1;
}

.khvc-cookie-bar__ok:hover {
	background: #e0e0e0;
}

.khvc-cookie-bar__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 2px;
	width: 0;
	background: rgba(255,255,255,0.4);
	border-radius: 0 2px 2px 0;
}

/* ищу баг
 * @media (min-width: 992px) {
	.page-product-body__images {
		flex: 0 0 42%;
		max-width: 42%;
	}
	.page-product-body__wrapper {
		flex: 0 0 calc(58% - 32px);
		max-width: calc(58% - 32px);
	}
	/* faktura-karkasa: правила собраны в одном месте у базового селектора. */
} */

.khvc-custom-size {
	margin: 8px 0 0;
}
.khvc-variants-value > .khvc-custom-size {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid #ececec;
}
.page-product-body__images .khvc-custom-size {
	display: none !important;
}
.page-product-body__images .khvc-custom-size__text,
.page-product-body__images #khvc-custom-size-note {
	display: none !important;
}
.khvc-custom-size__label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
.khvc-custom-size__text {
	font: 500 15px/22px Montserrat, sans-serif;
	color: rgb(33, 33, 33);
}
.khvc-custom-size__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.khvc-custom-size__box {
	width: 18px;
	height: 18px;
	border: 1px solid #222;
	border-radius: 3px;
	position: relative;
}
.khvc-custom-size__input:checked + .khvc-custom-size__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #111;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.khvc-custom-size__note {
	margin-top: 8px;
	font-size: 14px;
	color: #555;
}

.khvc-sticky-bar__sum {
	display: block;
	font-size: 13px;
	color: #555;
	margin-top: 2px;
}

@media (max-width: 767.98px) {
	.khvc-sticky-bar__price {
		display: flex;
		flex-direction: column;
	}
	.khvc-sticky-bar__sum {
		font-size: 12px;
	}
}

@media (max-width: 767.98px) {
	.khvc-cookie-bar {
		bottom: 16px;
		font-size: 12px;
		padding: 8px 10px 8px 14px;
		max-width: calc(100vw - 32px);
		white-space: normal;
	}
}

@media(min-width: 980px){
	.khvc-ral-field__input input {
		max-width: 200px;
	}
}

/* ─── Каталог: SKU и блок «Варианты исполнения» на странице товара ───────── */
.page-product-body__sku {
	margin: 6px 0 18px 0;
	font-size: 13px;
	color: #888;
	letter-spacing: 0.02em;
}

.page-product-body__variants {
	margin: 0;
}
/* Сольный товар (без серии): внутри только чекбокс «Индивидуальный размер»,
   без обёртки «Варианты исполнения» — добавляем отступ снизу, чтобы он
   не прилипал к следующему блоку (характеристикам / цене). */
.page-product-body__variants--solo {
	margin-bottom: 20px;
}

.khvc-variants-row .value {
	display: block;
}

/* Переключатель групп (табы) */
.khvc-variants-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.khvc-variants-tab {
	position: relative;
	z-index: 1;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 120px;
	flex-shrink: 0;
	padding: 8px 6px 6px;
	border: 1px solid #ececec;
	background: #fff;
	color: #2a2a2a;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	border-radius: 14px;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	text-align: center;
}

a.khvc-variants-tab:hover,
a.khvc-variants-tab:focus-visible {
	z-index: 5;
	border-color: #c8c8c8;
	color: #111;
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
}

span.khvc-variants-tab.is-active {
	border-color: #adabab;
	color: #111;
	cursor: default;
}

.khvc-variants-tab-img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 8px;
}

.khvc-variants-tab-label {
	font: 600 15px/22px Montserrat, sans-serif;
	color: inherit;
	padding: 0 4px 2px;
	display: block;
	width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
	text-align: center;
}

/* Список товаров активной группы */
.khvc-variants-rows {
	width: 100%;
}

.khvc-variants-row-list {
	display: grid;
	/* Force at least 3 columns; cards shrink to fit narrow containers. */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 768px) {
	.khvc-variants-row-list {
		/* On wider layouts allow 4–5 cards before wrapping. */
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	}
}

.khvc-variants-row-list[hidden] {
	display: none !important;
}

.khvc-variants-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	width: 100%;
	min-width: 0;
	padding: 8px 6px 10px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.khvc-variants-item:hover {
	border-color: #ececec;
	background: #fafafa;
}

.khvc-variants-item.is-current {
	border-color: #111;
	background: #fff;
	cursor: default;
}

.khvc-variants-item-img,
.khvc-variants-item-img-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	border: 1px solid #ececec;
}

.khvc-variants-item-img {
	object-fit: cover;
}

.khvc-variants-item-img-placeholder {
	display: block;
	background: #f0f0f0;
}

.khvc-variants-item-title {
	font: 600 13px/18px Montserrat, sans-serif;
	color: rgb(33, 33, 33);
	text-align: center;
	width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.khvc-variants-row-list:has(.khvc-variants-item--text) {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.khvc-variants-item--text {
	width: 120px;
	flex-shrink: 0;
	padding: 8px 12px;
	border: 1px solid #ececec;
	border-radius: 14px;
	min-height: 0;
	justify-content: center;
	background: #fff;
	color: #2a2a2a;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.khvc-variants-item--text:hover {
	background: #fff;
	color: #111;
	border-color: #c8c8c8;
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
}

.khvc-variants-item--text.is-current {
	background: #fff;
	color: #111;
	border-color: #adabab;
	box-shadow: none;
	transform: none;
	cursor: default;
}

.khvc-variants-item--text .khvc-variants-item-title {
	font: 600 15px/22px Montserrat, sans-serif;
	color: inherit;
	white-space: normal;
	text-align: center;
}

.khvc-variants-sublabel {
	font: 500 15px/22px Montserrat, sans-serif;
	color: rgb(33, 33, 33);
	letter-spacing: 0;
	margin: 0 0 9px;
}

.page-product-body__price-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	line-height: 1.2;
}
.page-product-body__price-row + .page-product-body__price-row {
	margin-top: 6px;
}
.page-product-body__price-label {
	font-size: 14px;
	color: #888;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.page-product-body__price-value {
	font-size: 30px;
	font-weight: 300;
	color: #111;
	letter-spacing: -0.01em;
}
.page-product-body__price-row:last-child .page-product-body__price-value {
	font-weight: 500;
}

@media (max-width: 767.98px) {
	.khvc-variants-row-list:has(.khvc-variants-item--text) {
		gap: 10px;
	}
	.khvc-variants-row-list:has(.khvc-variants-item--text) .khvc-variants-item--text {
		
		padding: 10px 12px;
		border-radius: 14px;
	}
	.khvc-variants-row-list:has(.khvc-variants-item--text) .khvc-variants-item--text .khvc-variants-item-title {
		font: 600 15px/22px Montserrat, sans-serif;
	}
}

/* --- Кнопка карточки товара: outline → fill при наведении --- */
.item-product__btn._btn-b {
	background-color: transparent;
	color: #202020;
	border: 1px solid #202020;
	padding-top: 8px;
	padding-bottom: 8px;
	font-size: 14px;
}
.item-product__btn._btn-b:hover {
	background-color: #202020;
	color: #fff;
}

.item-product__title {
	font-size: 14px;
}

/* --- Иконки шапки: размер и позиция счётчиков --- */
.btn-header__icon {
	flex: 0 0 28px;
	height: 28px;
	margin: 0 0 6px;
}
@media (max-width: 1200px) {
	.btn-header__icon {
		flex: 0 0 24px;
		height: 24px;
		margin: 0;
	}
}

/* Счётчик позиционируется relative к иконке, а не ко всей кнопке с подписью */
.header__btn .btn-header__icon {
	position: relative;
}

.header__btn .header__cart-count {
	top: -5px;
	right: -4px;
}

/* --- Плавная смена фото при наведении на карточку --- */
.item-product__img {
	position: relative;
	display: block;
	overflow: hidden;
}
.item-product__img-main {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.item-product__img-hover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	opacity: 0;
	-webkit-transition: opacity 0.4s ease;
	transition: opacity 0.4s ease;
	pointer-events: none;
}
.item-product:hover .item-product__img-hover,
.item-product__img:hover .item-product__img-hover {
	opacity: 1;
}

/* --- Галерея портфолио на странице товара --- */
.khvc-portfolio-gallery {
	margin: 20px 0 0;
	overflow: hidden;
}

.khvc-portfolio-gallery__title {
	font: 600 18px/1.3 Montserrat, sans-serif;
	color: rgb(33, 33, 33);
	margin: 0 0 16px;
	letter-spacing: 0.01em;
}

.khvc-portfolio-gallery__slider {
	width: 100%;
	overflow: visible !important;
	height: 420px;
	position: relative;
}

.khvc-portfolio-gallery__wrapper {
	height: 100%;
}

.khvc-portfolio-gallery__slide {
	height: 100%;
}

.khvc-portfolio-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 991.98px) {
	.khvc-portfolio-gallery__slider {
		height: 300px;
	}
}

@media (max-width: 575.98px) {
	.khvc-portfolio-gallery__slider {
		height: 220px;
	}
}

.khvc-portfolio-gallery__prev,
.khvc-portfolio-gallery__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.28);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.95);
	box-shadow: none;
	transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.khvc-portfolio-gallery__prev:hover,
.khvc-portfolio-gallery__next:hover {
	background: rgba(0, 0, 0, 0.44);
	box-shadow: none;
	transform: translateY(-50%) scale(1.1);
}

.khvc-portfolio-gallery__prev:active,
.khvc-portfolio-gallery__next:active {
	transform: translateY(-50%) scale(0.94);
}

.khvc-portfolio-gallery__prev svg,
.khvc-portfolio-gallery__next svg {
	width: 9px;
	height: 16px;
	flex-shrink: 0;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}

.khvc-portfolio-gallery__prev {
	left: 16px;
}

.khvc-portfolio-gallery__next {
	right: 16px;
}

.khvc-portfolio-gallery__prev.swiper-button-disabled,
.khvc-portfolio-gallery__next.swiper-button-disabled {
	opacity: 0.30;
	cursor: default;
	pointer-events: none;
}

.khvc-portfolio-gallery__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0;
}

.khvc-portfolio-gallery__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d0d0d0;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s;
	flex-shrink: 0;
}

.khvc-portfolio-gallery__dot._active {
	background: #202020;
}

/* ── Мобильная шапка: лого слева ≥135px, иконки справа, бургер крупнее ── */
@media (max-width: 767.98px) {
	/* Лого и иконки по центру вертикали */
	.header__top {
		align-items: center;
	}

	/* Логотип: не менее 135px, не сжимается */
	.header__logo {
		flex: 0 0 135px !important;
		min-width: 135px !important;
	}

	/* Центральная колонка: схлопываем в 0 (display:none убивает menu__body) */
	.header__center {
		flex: 0 0 0 !important;
		min-width: 0 !important;
		margin: 0 !important;
		overflow: visible;
	}

	/* Группа иконок справа */
	.header__btns {
		align-items: center;
		gap: 14px;
		flex-shrink: 0;
	}

	/* Обёртки корзины WooCommerce — убираем лишние отступы, выравниваем */
	.xoo-wsc-sc-cont,
	.xoo-wsc-cart-trigger,
	.xoo-wsc-sc-bkcont {
		display: flex;
		align-items: center;
		padding: 0;
		margin: 0;
	}

	/* Каждый btn-header — 22×22 */
	.btn-header {
		width: 22px;
		height: 22px;
		overflow: visible;
	}

	/* Иконки внутри — 22×22 */
	.btn-header__icon {
		flex: 0 0 22px !important;
		width: 22px !important;
		height: 22px !important;
		margin: 0 !important;
	}

	/* Каунтеры: прилипают к правому верхнему углу иконки (22×22) */
	.header__btn .header__cart-count {
		top: -5px;
		right: -6px;
		width: 14px;
		height: 14px;
		line-height: 14px;
		font-size: 9px;
	}

	/* Бургер */
	.icon-menu {
		width: 26px !important;
		height: 18px !important;
	}

	.icon-menu span,
	.icon-menu::before,
	.icon-menu::after {
		height: 0.125rem !important;
	}
}

.footer__nav {
	margin-top: 35px;
}

.footer__nav a {
	font-size: 18px;
}

.header__menu .menu__list {
	    justify-content: space-around;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Header: full-width white bar (Miumiu-style)
   ─────────────────────────────────────────────────────────────────────────── */
.header__wrapper,
.home .header__wrapper {
	background: #fff;
	min-height: 72px;
	padding: 0;
	border-bottom: 1px solid #ececec;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.header._header-scroll .header__wrapper {
	min-height: 60px;
}
.header__container {
	width: 100%;
}
.header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0;
	min-height: 72px;
}
.header._header-scroll .header__top {
	min-height: 60px;
}
.header__logo {
	flex: 0 0 auto;
	width: 205px;
	overflow: hidden;
}
.header__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
	display: block;
}
.header__menu {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	align-self: stretch;
}
/* ВАЖНО: эти правила — ТОЛЬКО для десктопа. Иначе `width: auto` переигрывает
оригинальное мобильное `.menu__body { width: 100% }` из style.css по
специфичности (0,2,0 vs 0,1,0), и шторка на мобиле сжимается в узкую полоску. */
@media (min-width: 992px) {
	.header__menu .menu__body {
		width: auto;
		display: flex;
		align-items: stretch;
	}
}
.header__btns {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 22px;
}
.header__btns .btn-header {
	flex-direction: row;
	align-items: center;
	gap: 8px;
}
.header__btns .btn-header__icon {
	margin: 0;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	/* Anchor for the count badge — без этого бейдж липнет к правому краю
	всей кнопки (icon + text) и висит над текстом, а не над иконкой. */
	position: relative;
}
/* Иконки-кнопки в шапке — без текстовых подписей (по дизайну Miumiu).
Сами <div class="btn-header__text"> оставляем в DOM — могут пригодиться для
SEO/доступности если понадобится вернуть. */
.header__btns .btn-header__text {
	display: none;
}
/* Бейдж позиционируется относительно ИКОНКИ, не всей .header__btn. */
.header__btns .btn-header__icon .header__cart-count {
	top: -6px;
	right: -6px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mega-menu (desktop hover, full-width white panel)
   ─────────────────────────────────────────────────────────────────────────── */
.menu__list.mega-menu-list {
	display: flex;
	align-items: stretch;
	/* gap даёт визуальное расстояние между пунктами меню и НЕ входит в
	   hit-зону ни одного из них — соответственно hover/мегаменю не
	   срабатывают, пока курсор в промежутке. */
	gap: 36px;
	/* Высота навбара переехала сюда, чтобы пункты по высоте растягивались
	   через align-items: stretch, а сам пункт не имел собственной
	   увеличенной hit-зоны над/под текстом. */
	height: 72px;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: flex-start;
}
.header._header-scroll .menu__list.mega-menu-list {
	height: 60px;
}
.menu__list.mega-menu-list > .menu__item {
	position: static;
	display: flex;
	align-items: center;
	/* Никакого padding и фиксированной высоты — item сжат по ширине ссылки
	   (по вертикали растягивается через align-items: stretch родителя,
	   что нужно для бесшовного перехода курсора в открытую мегаменю). */
	padding: 0;
}
.menu__list.mega-menu-list .menu__link {
	display: inline-flex;
	align-items: center;
	color: #111;
	font: 400 13px/1 Montserrat, sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	position: relative;
	/* Хит-зона ссылки = ровно по тексту: padding/высота — на .menu__item,
	   чтобы hover-эффект не активировался на пустом промежутке между текстом
	   и краем родительского пункта. */
	padding: 0;
}
.menu__list.mega-menu-list .menu__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 1px;
	background: #111;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
	width: auto;
}
/* Перебиваем легаси `.menu__list li a:hover::after { width: 100% }` из
   style.css — иначе подчёркивание расширяется на всю ширину li, а не по
   тексту ссылки. Hover работает по .menu__link, чтобы не реагировал
   на padding родительского .menu__item. */
.menu__list.mega-menu-list .menu__link:hover::after,
.menu__list.mega-menu-list .menu__link:focus-visible::after {
	transform: scaleX(1);
	width: auto;
}

/* Глушим легаси-подчёркивание `.menu__list li a::after` из style.css для
ссылок ВНУТРИ мега-меню (2-й столбец и любые вложенные <a>). Внешний
top-level link использует свою собственную ::after-полоску выше. */
.mega-menu a::after,
.mega-menu li a::after,
.mega-menu li a:hover::after {
	content: none;
	display: none;
}

.mega-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	background: #fff;
	border-top: 1px solid #ececec;
	box-shadow: 0 18px 28px -22px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
	pointer-events: none;
	z-index: 49;
}
/* Hover/focus открытие — ТОЛЬКО на десктопе. На мобиле iOS sticky-hover
после тапа держал бы это правило активным и переигрывал моё ._mobile-open
по специфичности — панель прыгала бы translateY вместо плавного translateX
и могла зависнуть видимой после нажатия «назад». */
@media (min-width: 992px) {
	.menu__list.mega-menu-list .menu__item--has-mega:hover .mega-menu,
	.menu__list.mega-menu-list .menu__item--has-mega:focus-within .mega-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear;
		pointer-events: auto;
	}
}
.mega-menu__container {
	display: grid;
	grid-template-columns: 240px 220px 1fr;
	gap: 48px;
	padding: 36px 15px 48px;
	width: 100%;
	max-width: 1430px;
	margin: 0 auto;
}
.mega-menu__col {
	min-width: 0;
}
.mega-menu__promo {
	display: block;
	text-decoration: none;
	color: #111;
}
/* Слайдшоу: контейнер сохраняет аспект и позиционирует слайды абсолютно
   друг над другом — плавное переключение через opacity без джиттера верстки. */
.mega-menu__promo-slides {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #f6f5f5;
}
.mega-menu__promo-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity 0.5s ease, transform 0.45s ease;
	pointer-events: none;
	will-change: opacity;
}
.mega-menu__promo-slide.is-active {
	opacity: 1;
}
.mega-menu__promo:hover .mega-menu__promo-slide.is-active {
	transform: scale(1.04);
}
.mega-menu__links {
	list-style: none;
	margin: 0;
	padding: 8px 0 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.mega-menu__links a {
	color: #111;
	text-decoration: none;
	font: 400 13px/1.4 Montserrat, sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	display: inline-block;
}
/* Плавное подчёркивание при наведении — повторяет поведение основного меню.
   `<span>` внутри ссылки нужен, чтобы подчёркивание шло по ширине ТЕКСТА,
   а не по ширине ячейки <a> (которая может быть шире). */
.mega-menu__links a > span {
	position: relative;
	display: inline-block;
	color: inherit;
	transition: color 0.2s ease;
}
.mega-menu__links a > span::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
	pointer-events: none;
}
.mega-menu__links a:hover > span::after,
.mega-menu__links a:focus-visible > span::after {
	transform: scaleX(1);
}
/* Перебиваем глобальное `.mega-menu a::after { content: none }` именно для
   span внутри ссылок второго столбца. */
.mega-menu__links a > span::after { content: ""; display: block; }
.mega-menu__cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
@media (max-width: 1280px) {
	.mega-menu__cards {
		grid-template-columns: repeat(3, 1fr);
	}
}
.mega-menu__card {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f6f5f5;
	color: #fff;
	text-decoration: none;
}
.mega-menu__card-image {
	position: absolute;
	inset: 0;
	display: block;
	padding: 22px;
}
.mega-menu__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}
.mega-menu__card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: rgba(0, 0, 0, 0.42);
	transition: opacity 0.25s ease;
	padding: 12px;
}
.mega-menu__card-title {
	font: 500 13px/1.3 Montserrat, sans-serif;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
}
.mega-menu__card:hover .mega-menu__card-overlay,
.mega-menu__card:focus-visible .mega-menu__card-overlay {
	opacity: 0;
}
.mega-menu__card:hover .mega-menu__card-image img {
	transform: scale(1.04);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile / tablet adapt — Miumiu-style
   - Logo LEFT, [favorites, cart, burger] RIGHT (одна flex-строка)
   - Шапка остаётся видимой при открытой шторке/drill-down (z-index 50 поверх)
   - Шторка БЕЛАЯ, с top-offset 64px (выезжает справа slide-анимацией)
   - В шторке кнопка × для закрытия
   - Drill-down заполняет drawer (top:0, height:100% относительно drawer'а —
     потому что drawer с transform создаёт containing block для fixed-потомков)
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
	.header__top {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 12px;
		min-height: 64px;
	}
	.header__logo {
		flex: 0 0 auto;
		width: 130px;
		height: 32px;
		margin-right: auto; /* отталкивает остальное вправо */
		min-width: 0;
	}
	/* .header__menu — обёртка для шторки. Сама не должна занимать место в строке.
	flex:0; width:0; overflow:visible — внутри `.menu__body` (position:fixed)
	всё равно рендерится поверх viewport-а. */
	.header__menu {
		flex: 0 0 0;
		width: 0;
		overflow: visible;
		display: block;
		position: static;
		margin: 0;
	}
	.header__menu .menu__body {
		display: block;
		align-items: initial;
	}
	.header__btns {
		flex: 0 0 auto;
		gap: 14px;
	}
	.icon-menu {
		flex: 0 0 auto;
		position: relative;
	}

	/* ──────────────────────────────────────────────────────────────────────
	   DRAWER (.menu__body) — Miumiu-style slide-in справа.
	   Полностью перепиываем поведение из style.css:
	   - там был fade (opacity 0→1 + visibility) → теперь SLIDE (transform)
	   - там был серый фон → теперь белый
	   - там был полный экран → теперь под шапкой (top:64px)
	   - там было transition: all → теперь только transform (плавнее)
	   `!important` нужны только потому что style.css использует те же селекторы
	   с теми же специфичностями + есть моё десктопное правило.
	   ────────────────────────────────────────────────────────────────────── */
	.menu__body {
		/* Position — full viewport ниже шапки, прижата справа. */
		position: fixed !important;
		top: 64px !important;
		right: 0 !important;
		left: auto !important;
		bottom: 0 !important;
		width: 100% !important;
		max-width: 100vw;
		height: calc(100vh - 64px) !important;
		padding: 0 !important;
		margin: 0 !important;

		/* Visual — белый, скроллится внутри если контент длиннее. */
		background-color: #fff !important;
		text-align: left !important;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		z-index: 40;

		/* Slide animation. Шторка ВСЕГДА в DOM с opacity:1 — анимируется только
		transform по оси X. Это даёт плавный slide как у Miumiu. */
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateX(100%);
		transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
		pointer-events: none;
	}
	/* Открытое состояние — выезжает на место. */
	.menu-open .menu__body {
		transform: translateX(0);
		pointer-events: auto;
	}
	/* ── Drill-down панель (.mega-menu) ───────────────────────────────────── */
	/* ВАЖНО: .menu__body с transform создаёт containing block для fixed-потомков.
	Поэтому здесь top/right/etc. относятся к drawer'у, не viewport. Заполняем
	drawer полностью (top:0, height:100%) — drawer уже сидит под шапкой. */
	.mega-menu {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		left: auto;
		bottom: 0;
		width: 100%;
		height: 100%;
		max-width: 100vw;
		background: #fff;
		opacity: 1;
		visibility: visible;
		pointer-events: none;
		transform: translateX(100%);
		transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 5; /* поверх drawer-контента, но ВНУТРИ stacking-context drawer'а */
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		box-shadow: none;
		border: none;
	}
	.mega-menu._mobile-open {
		transform: translateX(0);
		pointer-events: auto;
	}
	/* Глушим десктопный hover/focus-within на тач-устройствах. */
	.menu__list.mega-menu-list .menu__item--has-mega:hover .mega-menu:not(._mobile-open),
	.menu__list.mega-menu-list .menu__item--has-mega:focus-within .mega-menu:not(._mobile-open) {
		transform: translateX(100%);
		pointer-events: none;
		opacity: 1;
		visibility: visible;
	}

	/* Шапка drill-down: ← back + название категории (ссылка на архив). */
	.mega-menu__mobile-header {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 14px 16px;
		border-bottom: 1px solid #ececec;
		position: sticky;
		top: 0;
		background: #fff;
		z-index: 2;
	}
	.mega-menu__back {
		flex: 0 0 auto;
		width: 36px;
		height: 36px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: transparent;
		border: none;
		padding: 0;
		cursor: pointer;
		color: #111;
	}
	.mega-menu__mobile-title {
		flex: 1 1 auto;
		font: 500 15px/1.2 Montserrat, sans-serif;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: #111;
		text-decoration: none;
		padding: 8px 4px;
	}

	/* Контейнер 3 колонок → одноколоночный flex с переопределённым order. */
	.mega-menu__container {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		gap: 28px;
		padding: 20px 16px 40px;
		max-width: none;
		margin: 0;
	}
	.mega-menu__col--promo {
		display: none;
	}
	.mega-menu__col--cards {
		order: 1;
	}
	.mega-menu__col--links {
		order: 2;
	}
	.mega-menu__cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.mega-menu__card-title {
		font-size: 12px;
		letter-spacing: 0.04em;
	}
	.mega-menu__card-overlay {
		padding: 8px;
	}
	.mega-menu__card:active .mega-menu__card-overlay {
		opacity: 0;
	}
	.mega-menu__links {
		gap: 18px;
		padding: 0;
	}
	.mega-menu__links a {
		font-size: 14px;
	}
	/* Жирный заголовок над списком подкатегорий — название текущей категории.
	Виден только на мобиле; на десктопе скрыт через @media (min-width: 992px). */
	.mega-menu__links-title {
		margin: 0 0 14px;
		padding: 0;
		font: 700 16px/1.2 Montserrat, sans-serif;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: #111;
	}

	/* Список категорий внутри шторки — белый фон уже от .menu__body. */
	.menu__list.mega-menu-list {
		width: 100%;
		flex-direction: column;
		gap: 0;
		padding: 12px 0;
	}
	.menu__list.mega-menu-list > .menu__item {
		display: block;
		border-bottom: 1px solid #ececec;
	}
	.menu__list.mega-menu-list .menu__link {
		display: block;
		height: auto;
		padding: 18px 20px;
		font-size: 15px;
		letter-spacing: 0.04em;
		text-align: left;
		color: #111;
	}
	.menu__list.mega-menu-list .menu__link::after {
		display: none;
	}

	/* Когда drill-down открыта — глушим скролл основного body. */
	html.mega-mobile-open,
	html.mega-mobile-open body {
		overflow: hidden;
	}
}

/* На десктопе мобильные элементы не нужны. */
@media (min-width: 992px) {
	.mega-menu__mobile-header,
	.mega-menu__links-title {
		display: none;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Семантические теги — блок внизу категории + шапка архива тега
   ─────────────────────────────────────────────────────────────────────────── */
.khvc-shop-cat__count {
	font-size: 11px;
	opacity: .55;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
.khvc-shop-cat:hover .khvc-shop-cat__count,
.khvc-shop-cat:focus-visible .khvc-shop-cat__count {
	opacity: .8;
}

.khvc-tag-in-cats {
	margin-bottom: 24px;
}
.khvc-tag-in-cats__label {
	font: 400 12px/1 Montserrat, sans-serif;
	color: #999;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 10px;
}
.khvc-tags-hub-header {
	margin-bottom: 28px;
}
.khvc-tags-hub-meta {
	font: 400 13px/1 Montserrat, sans-serif;
	color: #999;
	margin-top: 6px;
}
.khvc-tags-hub-list {
	row-gap: 10px;
}
.khvc-tags-hub-empty {
	color: #888;
	font-size: 14px;
}

/* Скрытые теги в категории */
.khvc-tag-hidden {
	display: none;
}
.khvc-tags-toggle {
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 6px 14px;
	font: 400 13px/1 Montserrat, sans-serif;
	color: #555;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.khvc-tags-toggle:hover {
	border-color: #888;
	color: #1d1d1d;
}
.khvc-tags-toggle__count {
	opacity: .6;
}
.khvc-tags-toggle.is-open .khvc-tags-toggle__arrow {
	transform: rotate(180deg);
}

/* Страница результатов поиска — ничего не найдено */
.page.page-shop:has(.khvc-search-empty):not(:has(.khvc-series-grid)) {
	display: flex;
	flex-direction: column;
	min-height: 60vh;
}
.page.page-shop:has(.khvc-search-empty):not(:has(.khvc-series-grid)) .page__container {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.khvc-search-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 0;
	text-align: center;
}
/* Когда есть блок серии — убираем вертикальное центрирование */
.khvc-search-empty:has(.khvc-series-grid) {
	flex: none;
	justify-content: flex-start;
	text-align: left;
}
.khvc-search-empty .khvc-shop-cats {
	justify-content: center;
}
/* Подсказка "серия" */
.khvc-series-hint {
	margin-top: 8px;
	margin-bottom: 16px;
	text-align: left;
}
/* Сетка товаров серии */
.khvc-series-grid {
	margin-top: 0;
}
.khvc-search-empty__msg {
	font-size: 16px;
	margin-bottom: 16px;
}
.khvc-search-empty__hint {
	font-size: 14px;
	color: #888;
	margin-bottom: 10px;
}

.khvc-tag-archive-header {
	margin-bottom: 28px;
}
.khvc-tag-archive-label {
	font: 400 12px/1 Montserrat, sans-serif;
	color: #999;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 8px;
}
.khvc-tag-archive-count {
	font: 400 14px/1 Montserrat, sans-serif;
	color: #888;
	margin-top: 6px;
}

.khvc-semantic-tags {
	margin-top: 48px;
}
.khvc-semantic-tags__title {
	font: 400 11px/1.3 Montserrat, sans-serif;
	color: #ccc;
	margin-bottom: 8px;
	letter-spacing: 0.03em;
}
/* Теги для SEO-роботов — еле заметны для людей */
.khvc-semantic-tags .khvc-shop-cat {
	border-color: #eee;
	background: transparent;
}
.khvc-semantic-tags .khvc-shop-cat__label {
	font-size: 11px;
	color: #ddd;
}
.khvc-semantic-tags .khvc-shop-cat__count {
	color: #e8e8e8;
}
.khvc-semantic-tags .khvc-shop-cat:hover {
	border-color: #ccc;
}
.khvc-semantic-tags .khvc-shop-cat:hover .khvc-shop-cat__label {
	color: #bbb;
}
@media (max-width: 991.98px) {
	.khvc-semantic-tags {
		margin-top: 32px;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Каталог: квадратные кнопки-ссылки на категории (над сеткой товаров).
   Без слайдера, без картинок — только обводка и подпись по центру.
   ─────────────────────────────────────────────────────────────────────────── */
.khvc-shop-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
}
@media (max-width: 991.98px) {
	.khvc-shop-cats {
		gap: 8px;
		margin-bottom: 16px;
	}
}

.khvc-shop-cat {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #adabab;
	background: transparent;
	color: #212121;
	text-decoration: none;
	text-align: center;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.khvc-shop-cat:hover,
.khvc-shop-cat:focus-visible {
	border-color: #adabab;
	background-color: #adabab;
	color: #fff;
}
.khvc-shop-cat__label {
	margin: 0;
	padding: 0;
	font: 400 14px/1.3 Montserrat, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}
@media (max-width: 991.98px) {
	.khvc-shop-cat {
		min-height: 40px;
		padding: 8px 14px;
	}
	.khvc-shop-cat__label {
		font-size: 13px;
	}
}
@media (max-width: 480px) {
	.khvc-shop-cat {
		min-height: 38px;
		padding: 8px 12px;
	}
	.khvc-shop-cat__label {
		font-size: 12px;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Catalog grid: CSS Grid для страниц категорий с вставкой editorial-картинки
   ─────────────────────────────────────────────────────────────────────────── */

/* Переопределяем flex-сетку на grid, когда нужна вставка строки-картинки */
.page-shop__items.khvc-catalog-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	/* Каждый ряд минимум 340px (≈ высота карточки: img 260px + body), чтобы
	   2×2-банер `khvc-project-row` гарантированно занимал 2 полноценных ряда
	   даже когда параллельных карточек товара меньше 4 и нечем «зафиксировать»
	   высоту строки. Иначе пустые ряды схлопываются и банер сжимается. */
	grid-auto-rows: minmax(340px, auto);
	grid-auto-flow: dense; /* backfill пустых ячеек, чтобы --right занял 2 строки */
	gap: 0;
	margin: 0;
}
@media (max-width: 991.98px) {
	.page-shop__items.khvc-catalog-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: auto;
		gap: 0;
	}
}
@media (max-width: 479.98px) {
	.page-shop__items.khvc-catalog-grid {
		grid-auto-rows: minmax(180px, auto);
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Убираем внешние отступы у карточек товара во всех сетках каталога
   (архив, категория, single-gallery). Базовая тема даёт `margin: 12px` и
   `flex: 0 1 calc(25% - 24px)` — переопределяем, чтобы карточки стыковались
   вплотную и сама обёртка сетки не торчала за пределами контейнера.
   ─────────────────────────────────────────────────────────────────────────── */
.page-shop__items {
	margin: 0 !important;
}
.page-shop__items .page-shop__item {
	margin: 0 !important;
	flex: 0 1 25%;
}
@media (max-width: 991.98px) {
	.page-shop__items .page-shop__item {
		flex: 0 1 50%;
	}
}

/* Убираем flex-отступы с отдельных карточек внутри grid */
.page-shop__items.khvc-catalog-grid .page-shop__item {
	flex: none;
	margin: 0;
	width: 100%;
}

/* Фиксированная высота картинки карточки — как в стандартной сетке */
.page-shop__items.khvc-catalog-grid .page-shop__item .item-product .item-product__img {
	height: 260px;
}
@media (max-width: 479.98px) {
	.page-shop__items.khvc-catalog-grid .page-shop__item .item-product .item-product__img {
		height: 135px;
	}
}

/* Editorial project-row: блок 2×2 (2 колонки × 2 строки) */
.khvc-project-row {
	grid-row: span 2;
	overflow: hidden;
}
.khvc-project-row--left  { grid-column: 1 / 3; }
.khvc-project-row--right { grid-column: 3 / 5; }
.khvc-project-row img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* На планшете и мобиле — полная ширина, одна строка, аспект-рейшн вместо height 100% */
@media (max-width: 991.98px) {
	.khvc-project-row,
	.khvc-project-row--left,
	.khvc-project-row--right {
		grid-column: 1 / -1;
		grid-row: span 1;
	}
	.khvc-project-row img {
		height: auto;
		aspect-ratio: 16 / 9;
	}
}
@media (max-width: 479.98px) {
	.khvc-project-row img {
		aspect-ratio: 4 / 3;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Category description block (title + mini text)
   ─────────────────────────────────────────────────────────────────────────── */
.khvc-cat-desc {
	padding: 16px 0 20px;
	max-width: 680px;
}
.khvc-cat-desc__title {
	margin: 0 0 14px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.khvc-cat-desc__text {
	font-size: 15px;
	line-height: 1.65;
	color: #555;
}
.khvc-cat-desc__text p {
	margin: 0 0 10px;
}
.khvc-cat-desc__text p:last-child {
	margin-bottom: 0;
}
@media (max-width: 768px) {
	.khvc-cat-desc {
		padding: 12px 0 16px;
	}
	.khvc-cat-desc__title {
		font-size: 20px;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Anti-spam honeypot — скрываем от пользователей всеми возможными способами,
   но оставляем в DOM (и в accessibility tree через aria-hidden — оно НЕ скрывает
   поле от ботов-парсеров, что нам и нужно). Боты, заполняющие все поля подряд,
   попадаются.
   ─────────────────────────────────────────────────────────────────────────── */
.khvc-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.khvc-hp-wrap input {
	pointer-events: none;
}

/* On phones: shrink logo a touch, slim down icons gap */
@media (max-width: 575.98px) {
	.header__logo {
		width: 130px;
		height: 32px;
	}
	.header__btns {
		gap: 12px;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Product page: prevent page-product-body__top overflow on mid breakpoints
   (Скачать 3D + Примерить в интерьере вылезали из контейнера на ≤1200px)
   ─────────────────────────────────────────────────────────────────────────── */
.page-product-body__top {
	flex-wrap: wrap;
	min-width: 0;
}
.page-product-body__heading {
	min-width: 0;
	flex: 1 1 auto;
}
.page-product-body__title {
	overflow-wrap: anywhere;
}
.page-product-body__actions {
	max-width: 100%;
	min-width: 0;
}
.page-product-body__download {
	max-width: 100%;
}
.page-product-body__download span {
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 1200px) and (min-width: 992px) {
	.page-product-body__actions {
		align-self: stretch;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-end;
	}
	.page-product-body__download {
		flex: 0 1 auto;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Bottom-row «В корзину»: на узком десктопе (≈992–1280px) `.page-product-body__wrapper`
   шириной ~410–440px, а ряд (quantity 150 + gap 14 + button с padding 50×2) просил
   минимум ≥440px и распирал контейнер. Разрешаем перенос ряда + сжатие кнопки.
   ─────────────────────────────────────────────────────────────────────────── */
.page-product-body__bottom {
	flex-wrap: wrap;
	min-width: 0;
}
.page-product-body__bottom ._btn-b {
	min-width: 0;
	/* Сбавляем горизонтальный padding базового ._btn-b (50px) — он рассчитан на
	широкие кнопки и съедает пространство там, где его и так мало. */
	padding-left: 24px;
	padding-right: 24px;
}
.page-product-body__tocart-text,
.page-product-body__tocart-text--short {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Архив галереи: Pinterest-подобная сетка из миниатюр без отступов.
   Используем CSS multi-column — карточки разной высоты плотно упаковываются,
   column-gap: 0 убирает промежутки. На hover слегка зумим картинку и показываем
   название поста поверх затемнения.

   ВАЖНО про эффект сдвига:
   В пинтерест-сетке эффект «лесенки» появляется, когда у карточек РАЗНАЯ высота —
   тогда низ соседних колонок не совпадает. Если все загруженные миниатюры одной
   пропорции, естественной разницы по высоте нет — сетка получается ровной.
   Поэтому каждой карточке задаём варьирующийся `aspect-ratio` через `:nth-child`,
   а картинка внутри `object-fit: cover` обрезает под эту высоту. Получаем
   гарантированный сдвиг независимо от исходных пропорций изображений.
   ─────────────────────────────────────────────────────────────────────────── */
.page-gallery__grid {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 0;
	width: 100%;
}
.page-gallery__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
/* Средняя колонка сдвинута вниз — даёт Pinterest-«лесенку». */
.page-gallery__col--mid {
	margin-top: 80px;
}
@media (max-width: 992px) {
	.page-gallery__grid { gap: 12px; }
	.page-gallery__col { gap: 12px; }
	.page-gallery__col--mid { margin-top: 48px; }
}
@media (max-width: 600px) {
	/* На узком моб. — все три колонки кладём друг под друга. Сдвиг убираем,
	   иначе создаст пустоту вверху средней колонки.
	   align-items: stretch обязателен: без него flex-start схлопывает колонки
	   в 0 ширины (дочерние width:100% зависят от ширины родителя — цикл). */
	.page-gallery__grid { flex-direction: column; gap: 12px; align-items: stretch; }
	.page-gallery__col { width: 100%; }
	.page-gallery__col--mid { margin-top: 0; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Пагинация на /gallery/ — отцентрована, кнопки в стиле .khvc-shop-cat.
   ─────────────────────────────────────────────────────────────────────────── */
.page-gallery .navigation.pagination {
	display: flex;
	justify-content: center;
	margin: 40px 0 0;
}
.page-gallery .navigation.pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
}
.page-gallery .navigation.pagination .page-numbers {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #adabab;
	background: transparent;
	color: #212121;
	text-decoration: none;
	text-align: center;
	font: 400 14px/1.3 Montserrat, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.page-gallery .navigation.pagination .page-numbers:hover,
.page-gallery .navigation.pagination .page-numbers:focus-visible {
	border-color: #adabab;
	background-color: #adabab;
	color: #fff;
}
.page-gallery .navigation.pagination .page-numbers.current {
	border-color: #212121;
	background-color: #212121;
	color: #fff;
}
.page-gallery .navigation.pagination .page-numbers.dots {
	border: 0;
	background: transparent;
	color: #888;
	padding: 10px 6px;
	min-width: 0;
}
.page-gallery .navigation.pagination .page-numbers.dots:hover {
	background: transparent;
	color: #888;
}
@media (max-width: 600px) {
	.page-gallery .navigation.pagination { margin-top: 28px; }
	.page-gallery .navigation.pagination .nav-links { gap: 6px; }
	.page-gallery .navigation.pagination .page-numbers {
		min-width: 38px;
		min-height: 38px;
		padding: 8px 12px;
		font-size: 12px;
	}
}

.page-gallery__item {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	line-height: 0;
}

/* Чередующиеся пропорции карточек — создают сдвиг колонок в стиле Pinterest. */
.page-gallery__item:nth-child(5n+1) { aspect-ratio: 3 / 4; }   /* высокая */
.page-gallery__item:nth-child(5n+2) { aspect-ratio: 1 / 1; }   /* квадрат */
.page-gallery__item:nth-child(5n+3) { aspect-ratio: 4 / 5; }   /* чуть высокая */
.page-gallery__item:nth-child(5n+4) { aspect-ratio: 4 / 3; }   /* широкая */
.page-gallery__item:nth-child(5n+5) { aspect-ratio: 3 / 5; }   /* очень высокая */

.page-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s ease;
	will-change: transform;
}

.page-gallery__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	text-align: center;
}

.page-gallery__title {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.page-gallery__item:hover .page-gallery__img,
.page-gallery__item:focus-visible .page-gallery__img {
	transform: scale(1.06);
}
.page-gallery__item:hover .page-gallery__overlay,
.page-gallery__item:focus-visible .page-gallery__overlay {
	opacity: 1;
}

/* Touch-устройства: ховера нет — показываем подпись постоянно лёгкой плашкой. */
@media (hover: none) {
	.page-gallery__overlay {
		opacity: 1;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%);
		align-items: flex-end;
		justify-content: flex-start;
		padding: 12px;
		text-align: left;
	}
	.page-gallery__title {
		font-size: 14px;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   Single-страница галереи: отступ от низа последнего блока (контент / сетка)
   до подвала. Без него содержимое стыкуется вплотную с футером.
   ─────────────────────────────────────────────────────────────────────────── */
.page-gallery-single {
	padding-bottom: 64px;
}
@media (max-width: 768px) {
	.page-gallery-single { padding-bottom: 40px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Описание поста галереи под повторителем (sing-gallery).
   Ширина — половина контейнера (как правый блок с карточками в секции), чтобы
   текст не растягивался на всю длину и читался комфортной колонкой.
   ─────────────────────────────────────────────────────────────────────────── */
.page-gallery-single__content {
	margin-top: 32px;
	width: 50%;
	max-width: 50%;
	font-size: 16px;
	line-height: 1.55;
}
@media (max-width: 992px) {
	.page-gallery-single__content {
		width: 100%;
		max-width: 100%;
	}
}
.page-gallery-single__content p {
	margin: 0 0 12px;
}
.page-gallery-single__content p:last-child {
	margin-bottom: 0;
}

/* Footer privacy policy link — lighter, smaller, no underline */
.footer__policy,
.footer__policy:link,
.footer__policy:visited,
.footer__policy:hover,
.footer__policy:focus,
.footer__policy:active {
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
}

/* Home hero — уменьшаем первый экран примерно на 10% по высоте (десктоп и моб) */
.hero-page-home__slide {
	padding: 200px calc((100vw - 1250px) / 2) 100px calc((100vw - 1250px) / 2);
}
@media (max-width: 1460px) {
	.hero-page-home__slide {
		padding: 200px 115px 100px 115px;
	}
}
@media (max-width: 767.98px) {
	.hero-page-home__slide {
		padding: 50px 0px 185px 0px;
	}
}

/* Footer right column: privacy policy stacked above social icons, right-aligned, bottom-anchored */
.footer__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	align-self: flex-end;
	margin-left: auto;
}
.footer__right .footer__policy {
	align-self: flex-end;
}

/* Footer social icons row */
.footer__socs {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.footer__soc {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #2c2c2c;
	color: #fff;
	border-radius: 4px;
	transition: background-color 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}
.footer__soc:hover,
.footer__soc:focus {
	background-color: #444;
	transform: translateY(-1px);
	color: #fff;
}
.footer__soc svg {
	display: block;
}

/* Gallery single — toolbar (back + share) */
.page-gallery-single__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.page-gallery-single__header .page-shop__title {
	margin: 0;
	flex: 1 1 auto;
}
.page-gallery-single__toolbar {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.page-gallery-single__toolbar--top {
	flex: 0 0 auto;
	justify-content: flex-end;
}
.page-gallery-single__toolbar--bottom {
	margin-top: 30px;
	justify-content: flex-end;
	width: 100%;
}
.page-gallery-single__back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	color: #2c2c2c;
	padding: 7px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.page-gallery-single__back:hover,
.page-gallery-single__back:focus {
	background-color: #2c2c2c;
	border-color: #2c2c2c;
	color: #fff;
}
.page-gallery-single__share {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.page-gallery-single__share-label {
	font-size: 13px;
	color: #777;
	margin-right: 2px;
}
.page-gallery-single__share-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	background-color: #2c2c2c;
	color: #fff;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}
.page-gallery-single__share-btn:hover {
	background-color: #444;
	transform: translateY(-1px);
	color: #fff;
}
.page-gallery-single__share-btn svg {
	display: block;
}
.page-gallery-single__copy-feedback {
	position: absolute;
	bottom: calc(100% + 6px);
	right: 0;
	background: #2c2c2c;
	color: #fff;
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 3px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	white-space: nowrap;
}
.page-gallery-single__share-btn._copied .page-gallery-single__copy-feedback {
	opacity: 1;
}
@media (max-width: 767.98px) {
	.page-gallery-single__header {
		flex-direction: column;
		align-items: flex-start;
	}
	.page-gallery-single__toolbar--top,
	.page-gallery-single__toolbar--bottom {
		justify-content: flex-start;
		width: 100%;
	}
	.page-gallery-single__share-label {
		display: none;
	}
}

/* Home gallery slider — autoplay, centered, half/full/half peek */
.page-home__gallery.home-gallery-page-home {
	padding: 60px 0;
}
.home-gallery-page-home__container {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}
.home-gallery-page-home__viewport {
	overflow: hidden;
	width: 100%;
	position: relative;
}
.home-gallery-page-home__track {
	display: flex;
	gap: 16px;
	width: max-content;
	will-change: transform;
	animation: hg-scroll linear infinite;
	align-items: center;
}
.home-gallery-page-home__track:hover {
	animation-play-state: paused;
}
@keyframes hg-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
/* Слайд = картинка в натуральной пропорции, фиксируем только высоту.
   Width: auto + max-width 80vw → фотки не кропаются, занимают свою
   естественную ширину при заданной высоте. */
.home-gallery-page-home__slide {
	flex: 0 0 auto;
	height: 420px;
	max-width: 80vw;
	display: block;
	overflow: hidden;
	background: #f0f0f0;
	cursor: zoom-in;
	border-radius: 4px;
}
.home-gallery-page-home__slide img {
	width: auto;
	height: 100%;
	max-width: 80vw;
	object-fit: contain;
	display: block;
}
.home-gallery-page-home__lightbox-source {
	display: none;
}

/* Стрелки prev / next — кружки, плавают по краям viewport, поверх трека. */
.home-gallery-page-home__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	color: #1a1a1a;
	padding: 0;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
.home-gallery-page-home__nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.06);
}
.home-gallery-page-home__nav:active {
	transform: translateY(-50%) scale(0.96);
}
.home-gallery-page-home__nav svg {
	width: 22px;
	height: 22px;
	display: block;
}
.home-gallery-page-home__nav--prev { left: 16px; }
.home-gallery-page-home__nav--next { right: 16px; }

@media (max-width: 991.98px) {
	.home-gallery-page-home__slide {
		height: 340px;
	}
	.home-gallery-page-home__nav {
		width: 42px;
		height: 42px;
	}
	.home-gallery-page-home__nav--prev { left: 10px; }
	.home-gallery-page-home__nav--next { right: 10px; }
}
@media (max-width: 767.98px) {
	.page-home__gallery.home-gallery-page-home {
		padding: 40px 0;
	}
	.home-gallery-page-home__track {
		gap: 12px;
	}
	.home-gallery-page-home__slide {
		height: 260px;
		max-width: 88vw;
	}
}

/* [TEMP] Maintenance toast — плавающий блок снизу с крестиком. Не
   фиксирован к шапке/меню, не мешает скроллу. Закрывается → состояние
   запоминается в localStorage (см. inline-JS в header.php). Убрать
   когда уйдём со страницы технических работ. Маркер: site-toast. */
.site-toast {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9000;
	max-width: 560px;
	margin: 0 auto;
	background: #fff3cd;
	color: #6b4f00;
	border: 1px solid #f0d77b;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	font: 500 14px/1.45 Montserrat, sans-serif;
}
.site-toast[hidden] { display: none !important; }
.site-toast__inner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px 12px 16px;
}
.site-toast__icon {
	font-size: 16px;
	line-height: 1.4;
	flex: 0 0 auto;
}
.site-toast__text {
	flex: 1 1 auto;
}
.site-toast__close {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 0;
	padding: 0;
	margin: -4px -4px 0 0;
	cursor: pointer;
	color: #6b4f00;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
}
.site-toast__close:hover {
	background: rgba(0, 0, 0, 0.08);
}
@media (max-width: 767.98px) {
	.site-toast {
		left: 10px;
		right: 10px;
		bottom: 10px;
		font-size: 13px;
	}
	.site-toast__inner {
		padding: 11px 10px 11px 14px;
	}
}

/* ── Поиск по каталогу в шапке ────────────────────────────────────────────── */
.header__search {
	position: relative;
	display: flex;
	align-items: center;
}
/* Десктоп: всегда видимая строка поиска */
.header__search-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	position: relative;
	background: #f4f4f4;
	border-radius: 8px;
	padding: 7px 10px;
	width: 220px;
}
.header__search-bar-icon {
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	color: #999;
	pointer-events: none;
}
@media (max-width: 991.98px) {
	.header__search-bar {
		display: none !important;
	}
}
@media (min-width: 992px) {
	.header__search-toggle {
		display: none !important;
	}
}
.header__search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
	color: #555;
	padding: 0;
	transition: color 0.2s;
}
.header__search-toggle:hover {
	color: #111;
}
@media (max-width: 1200px) {
	.header__search-toggle {
		flex: 0 0 24px;
		width: 24px;
		height: 24px;
	}
}

/* Десктоп: выпадающий блок */
.header__search-panel {
	position: absolute;
	left: 0;
	top: 100%;
	width: 340px;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.22s ease, opacity 0.22s ease;
	z-index: 1001;
}
.header__search-panel.is-open {
	opacity: 1;
	pointer-events: auto;
	clip-path: inset(0 0 -30px 0);
}
.header__search-input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: none;
	padding: 0;
	font: 500 13px/1.2 Montserrat, sans-serif;
	color: #222;
}
.header__search-input::placeholder {
	color: #bbb;
	font-weight: 400;
}
.header__search-results {
	max-height: 360px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #ddd transparent;
}
.header__search-results::-webkit-scrollbar {
	width: 4px;
}
.header__search-results::-webkit-scrollbar-track {
	background: transparent;
}
.header__search-results::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 0;
}
.header__search-results::-webkit-scrollbar-button {
	display: none;
}
.header__search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: #222;
	border-top: 1px solid #f0f0f0;
	transition: background 0.12s;
}
.header__search-result:first-child {
	border-top: none;
}
.header__search-result:hover {
	background: #f5f5f5;
}
.header__search-result__thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 0;
	background: #f0f0f0;
}
.header__search-result__no-thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 0;
	background: #f0f0f0;
}
.header__search-result__title {
	font: 500 13px/1.35 Montserrat, sans-serif;
	color: #222;
}
.header__search-msg {
	padding: 16px 14px;
	font: 400 13px/1 Montserrat, sans-serif;
	color: #999;
	text-align: left;
}
.header__search-all {
	display: block;
	padding: 11px 14px;
	text-align: left;
	font: 500 12px/1 Montserrat, sans-serif;
	color: #777;
	text-decoration: none;
	border-top: 1px solid #ebebeb;
	letter-spacing: 0.02em;
	transition: background 0.12s, color 0.12s;
}
.header__search-all:hover {
	background: #f5f5f5;
	color: #1d1d1d;
}

/* Скрываем десктопный блок на мобиле */
@media (max-width: 991.98px) {
	.header__search-panel {
		display: none !important;
	}
}

/* Мобильный оверлей */
.header__search-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10001;
	background: rgba(0, 0, 0, 0.45);
	align-items: flex-start;
}
.header__search-overlay.is-open {
	display: flex;
}
.header__search-overlay-box {
	position: relative;
	width: 100%;
	background: #fff;
	padding: 52px 16px 20px;
	border-radius: 0 0 16px 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.header__search-overlay-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	padding: 0;
	transition: color 0.15s;
}
.header__search-overlay-close:hover {
	color: #111;
}
.header__search-overlay-input {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	font: 500 15px/1.2 Montserrat, sans-serif;
	color: #222;
	outline: none;
	transition: border-color 0.2s;
}
.header__search-overlay-input:focus {
	border-color: #111;
}
.header__search-overlay-results {
	margin-top: 8px;
	max-height: 56vh;
	overflow-y: auto;
}
.header__search-overlay-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	text-decoration: none;
	color: #222;
	border-bottom: 1px solid #f2f2f2;
	transition: opacity 0.12s;
}
.header__search-overlay-result:last-child {
	border-bottom: none;
}
.header__search-overlay-result:hover {
	opacity: 0.75;
}
.header__search-overlay-result__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	background: #f0f0f0;
}
.header__search-overlay-result__no-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #f0f0f0;
}
.header__search-overlay-result__title {
	font: 500 14px/1.35 Montserrat, sans-serif;
	color: #222;
}
.header__search-overlay-all {
	display: block;
	margin-top: 8px;
	padding: 12px 0;
	text-align: center;
	font: 500 14px/1 Montserrat, sans-serif;
	color: #777;
	text-decoration: none;
	border-top: 1px solid #f2f2f2;
	transition: color 0.12s;
}
.header__search-overlay-all:hover {
	color: #222;
}

/* Скрываем оверлей на десктопе */
@media (min-width: 992px) {
	.header__search-overlay {
		display: none !important;
	}
}

/* ── Валидация атрибутов товара: подсветка невыбранных строк ── */
.khvc-palette-row.khvc-attr-error > .label {
	color: #c0392b;
}
.khvc-palette-row.khvc-attr-error .khvc-swatches:not([aria-hidden]),
.khvc-palette-row.khvc-attr-error .khvc-custom-select {
	outline: 2px solid #e53935;
	outline-offset: 3px;
	border-radius: 4px;
}
.khvc-attr-error-hint {
	flex: 1 0 100%;
	display: block;
	color: #c0392b;
	font-size: 12px;
	margin-top: 6px;
}
