/*
Theme Name:     MebelOptTorg
Description:    Дочерняя тема для темы Kadence
Author:         Роман Финк
Template:       kadence
Version:        1.0.0
*/

/* === Шапка: строка поиска растягивается на всё свободное место до корзины (десктоп) ===
   Структура Kadence: .site-header-main-section-left (логотип, кнопка, поиск) | свободное место | -right (корзина, избранное, аккаунт).
   Заставляем левую секцию занять всю ширину, а внутри неё — растягиваться именно поиск. */
/* === Верхняя строка: город (шорткод [mot_city]) === */
.mot-city { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mot-city__pin { flex: 0 0 auto; }
.header-html .mot-city { vertical-align: middle; }
.mot-city { font-size: 14px; }   /* макет: Montserrat 14 bold */
.mot-city__name { font-weight: 700; }

/* Верхнее меню (Доставка и оплата / О компании / Контакты) — 12px, чёрный (макет) */
#main-header .secondary-navigation .secondary-menu-container > ul > li.menu-item > a {
	font-size: 12px;
	color: #020a0a;
}
#main-header .secondary-navigation .secondary-menu-container > ul > li.menu-item > a:hover { color: #e21b1b; }

/* === Шапка по макету: иконки в красных кнопках, поиск, бейдж корзины, «Войти» ===
   Селекторы с #main-header — не прихоть: у Kadence свои правила вида
   `#main-header .header-button` / `.site-header-item .header-account-wrap ...`,
   и без ID наши перекрываются. */

/* Иконки внутри кнопок «Каталог» и «Распродажа».
   Label у Kadence прогоняется через esc_html (SVG в текст не вставить),
   поэтому иконка добавляется CSS-маской и красится в currentColor. */
#main-header .header-button,
#main-header .header-button2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* «Каталог»: 116×40 по макету, скругление 10, отступ от лого 24px */
#main-header .header-button {
	height: 40px; padding: 0 16px;
	font-size: 14px; font-weight: 700; border-radius: 10px;
}
.site-header-main-section-left > .site-header-item[data-section="title_tagline"] { margin-right: 24px; }

/* «Распродажа»: выше и заметнее, как на макете */
#main-header .header-button2.button-size-custom {
	padding: 12px 32px;
	font-size: 15px; border-radius: 10px;
}
#main-header .header-button::before,
#main-header .header-button2::before {
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center;  mask-position: center;
	-webkit-mask-size: contain;     mask-size: contain;
}
#main-header .header-button::before {
	width: 14px; height: 10px;
	-webkit-mask-image: url("assets/icons/lines.svg"); mask-image: url("assets/icons/lines.svg");
}
#main-header .header-button2::before {
	width: 14px; height: 12px;
	-webkit-mask-image: url("assets/icons/percent.svg"); mask-image: url("assets/icons/percent.svg");
}

/* === Поиск (Ajax Search Lite) — серая «пилюля» как у дефолтной формы ===
   ASL подменяет форму Kadence своей разметкой (.asl_w/.probox) и красит её
   темой simple-red (стили с id-селектором #ajaxsearchlite1 и !important),
   поэтому здесь префикс html + !important — иначе не перебить. */
html div[id*="ajaxsearchlite"].asl_w.asl_m {
	background: transparent !important;
	background-image: none !important;
	border: none !important;
	border-radius: 10px !important;
	box-shadow: none !important;
}
html #ajaxsearchlite1 .probox,
html div[id*="ajaxsearchlite"].asl_m .probox {
	height: 40px !important;
	background: #f2f3f5 !important;
	border: none !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	align-items: center;
}
/* Лупа — слева (в разметке ASL она после поля: переставляем flex-order),
   серая иконка на прозрачном фоне вместо красной кнопки */
html div[id*="ajaxsearchlite"].asl_m .probox .promagnifier {
	order: 1 !important; -webkit-order: 1 !important;
	width: 44px !important; height: 40px !important;
	background: transparent !important;
	border: none !important; border-radius: 0 !important; box-shadow: none !important;
	flex: 0 0 auto;
}
/* Иконка лупы: у ASL svg — inline-block с baseline внутри 40px-кнопки,
   из-за чего висит у верхнего края. Центрируем флексом по обеим осям. */
html div[id*="ajaxsearchlite"].asl_m .probox .promagnifier .innericon {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%; height: 100%;
}
html div[id*="ajaxsearchlite"].asl_m .probox .promagnifier .innericon svg {
	fill: #7a7f88 !important;
	width: 18px !important; height: 18px !important;
	display: block;
}
html div[id*="ajaxsearchlite"].asl_m .probox .promagnifier:hover .innericon svg { fill: #1a1a1a !important; }
html #ajaxsearchlite1 .probox .proinput,
html div[id*="ajaxsearchlite"].asl_m .probox .proinput {
	margin: 0 !important;
	padding: 0 12px 0 0 !important;
	color: #1a1a1a !important;
	font-family: inherit !important;
}
html #ajaxsearchlite1 .probox .proinput input,
html div[id*="ajaxsearchlite"].asl_m .probox .proinput input {
	height: 40px !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	color: #1a1a1a !important;
}
html div[id*="ajaxsearchlite"].asl_m .probox .proinput input.autocomplete {
	margin-top: -40px !important;
	color: #9aa1ab !important;
}
html div[id*="ajaxsearchlite"].asl_m .probox .proinput input::placeholder {
	color: #8d939e !important;
	font-family: inherit !important;
	opacity: 1;
}
/* Крестик очистки и лоадер — нейтральные */
html div[id*="ajaxsearchlite"].asl_m .probox .proclose,
html div[id*="ajaxsearchlite"].asl_m .probox .proloading {
	width: 36px !important; height: 40px !important;
	background: transparent !important;
}
html div[id*="ajaxsearchlite"].asl_m .probox .proclose svg { fill: #8d939e !important; }
html div[id*="ajaxsearchlite"].asl_m .probox .proclose:hover svg { fill: #1a1a1a !important; }
html div[id*="ajaxsearchlite"].asl_m .probox div.asl_simple-circle { border-color: rgba(226, 27, 27, .35) !important; border-top-color: #e21b1b !important; }

/* === Выпадашка результатов ASL — белая карточка в стиле сайта === */
html div.asl_r.asl_w.vertical {
	margin-top: 8px;
	padding: 8px !important;
	background: #fff !important;
	border: 1px solid #ececef !important;
	border-radius: 12px !important;
	box-shadow: 0 12px 32px rgba(2, 10, 10, .12) !important;
	overflow: hidden;
}
html div.asl_r.asl_w.vertical .results .item {
	background: #fff !important;
	border-radius: 8px;
	padding: 4px !important;
}
html div.asl_r.asl_w.vertical .results .item.hovered,
html div.asl_r.asl_w.vertical .results .item:hover {
	background: #f2f3f5 !important;
	background-image: none !important;
}
/* Разделитель между пунктами — тоньше и светлее, у подсвеченного не «просвечивает» */
html div.asl_r.asl_w.vertical .results .item::after { background: #ececef !important; }
html div.asl_r.asl_w.vertical .results .item.hovered::after,
html div.asl_r.asl_w.vertical .results .item:hover::after { background: transparent !important; }
html div.asl_r.asl_w.vertical .results .item .asl_image {
	border-radius: 8px;
	margin: 2px 12px 2px 2px;
}
html div.asl_r.asl_w.vertical .results .item .asl_content { font-family: inherit !important; }
html div.asl_r.asl_w.vertical .results .item .asl_content h3,
html div.asl_r.asl_w.vertical .results .item .asl_content h3 a {
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #1a1a1a !important;
	text-shadow: none !important;
}
html div.asl_r.asl_w.vertical .results .item .asl_content h3 a:hover { color: #e21b1b !important; }
html div.asl_r.asl_w.vertical .results .item .asl_content .asl_desc {
	margin-top: 2px;
	font-family: inherit !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	color: #6f757e !important;
}
html div.asl_r.asl_w.vertical span.highlighted {
	font-weight: 600 !important;
	color: #e21b1b !important;
	background: transparent !important;
}
/* «Ничего не найдено» */
html div.asl_r.asl_w.vertical .results .nores .keyword { font-family: inherit !important; color: #6f757e !important; }

/* Правая группа: воздух между избранным, корзиной и «Войти» */
.site-header-main-section-right .site-header-item { margin-right: 24px; }
.site-header-main-section-right .site-header-item:last-child { margin-right: 0; }

/* Избранное и корзина: иконки 28px (макет), бейджи — красные кружки 18px */
/* line-height:0 убирает текстовую базовую линию <p>, из-за которой сердце
   висело на 4px выше центра (корзина-кнопка центрируется флексом). */
#main-header .header-html2 .header-html-inner p { margin: 0; line-height: 0; }
#main-header .mot-fav-icon,
#main-header .mot-fav-icon svg { width: 28px; height: 28px; }
#main-header .mot-fav-count {
	top: -8px; right: -10px;
	min-width: 18px; height: 18px;
	font-size: 12px; line-height: 18px; border-radius: 10px;
}
#main-header .header-cart-button { position: relative; }
#main-header .header-cart-button .kadence-svg-iconset { font-size: 28px; }
#main-header .header-cart-button .header-cart-total {
	position: absolute; top: -8px; right: -10px; margin: 0;
	width: 18px; height: 18px; min-width: 18px;
	border-radius: 10px; background: #e21b1b; color: #fff;
	font-size: 12px; font-weight: 600;
}

/* «Войти»/«Аккаунт» — светло-серая плашка с иконкой пользователя.
   .header-account-control-wrap общий для гостя (.header-account-wrap)
   и залогиненного (.header-account-in-wrap). */
#main-header .site-header-item .header-account-control-wrap .header-account-button {
	background: #f2f3f5; border-radius: 10px; height: 40px; padding: 0 20px;
	font-weight: 600; font-size: 15px; color: #1a1a1a;
}
#main-header .site-header-item .header-account-control-wrap .header-account-button:hover { background: #e8e9ec; color: #1a1a1a; }

/* Телефон в верхней панели — чёрный жирный (ссылка tel: не должна краснеть).
   !important: цвет ссылки приходит из настроек Kadence с более сильным селектором. */
#main-header .header-contact-wrap a.header-contact-item { color: #020a0a !important; }
#main-header .header-contact-wrap a.header-contact-item:hover { color: #e21b1b !important; }
#main-header .header-contact-item .contact-label { font-weight: 700; font-size: 14px; margin-left: 8px; } /* макет: H12 — 14 болд */
#main-header .header-contact-item .kadence-svg-iconset { font-size: 16px; }

/* === Хлебные крошки — чуть мельче === */
.kadence-breadcrumbs,
#kadence-breadcrumbs,
.kadence-breadcrumbs .kadence-breadcrumb-container { font-size: 12px; }
.kadence-breadcrumbs .bc-delimiter { margin: 0 4px; }

/* Каталожные страницы (посадочные): убираем «карточку» одиночной записи —
   контент должен лежать на странице как в архиве каталога, без бокса и 2rem. */
.single-mot_catalog_page .single-entry.content-bg { background: transparent; box-shadow: none; border: 0; }
.single-mot_catalog_page .single-entry .entry-content-wrap { padding: 0; }
.single-mot_catalog_page .entry-header { margin-bottom: 12px; }

@media (min-width: 1025px) {
	/* Строка шапки у Kadence — это CSS-grid (grid-template-columns: auto auto).
	   Делаем левую колонку резиновой (1fr), правую — по содержимому (auto). */
	.site-main-header-inner-wrap.site-header-row { grid-template-columns: 1fr auto !important; }
	.site-header-main-section-left { min-width: 0; }
	/* логотип и кнопка — по содержимому, поиск — растягивается на остаток */
	.site-header-main-section-left > .site-header-item[data-section="title_tagline"],
	.site-header-main-section-left > .site-header-item[data-section="kadence_customizer_header_button"] { flex: 0 0 auto; }
	.site-header-main-section-left > .site-header-item[data-section="kadence_customizer_header_search_bar"] {
		flex: 1 1 auto;
		min-width: 0;
	}
	/* Воздух между поиском и избранным. #main-header нужен, чтобы перебить
	   правило Kadence `.site-header-section > .site-header-item:last-child { margin-right:0 }`. */
	#main-header .site-header-main-section-left > .site-header-item[data-section="kadence_customizer_header_search_bar"] {
		margin-right: 32px;
	}
	.header-search-bar { width: 100%; }
	.header-search-bar form { width: 100% !important; max-width: none !important; }

	/* Нижний ряд: меню категорий растягивается на всё место до «Распродажи» */
	.site-bottom-header-inner-wrap.site-header-row { grid-template-columns: 1fr auto !important; }
	.site-header-bottom-section-left { min-width: 0; padding-right: 32px; }
	.site-header-bottom-section-left .site-header-item-main-navigation { flex: 1 1 auto; width: 100%; }
	.site-header-bottom-section-left .main-navigation,
	.site-header-bottom-section-left .primary-menu-container { width: 100%; }
	.main-navigation .primary-menu-container > ul.menu {
		display: flex; width: 100%;
		justify-content: space-between;
	}
}

/* === Моб./планшетная шапка (≤1024px) ===
   У Kadence это ОТДЕЛЬНАЯ разметка #mobile-header (десктопный #main-header скрыт),
   классы обёрток другие (.mobile-html, .header-mobile-cart-wrap, .header-mobile-account-wrap),
   поэтому десктопные правила с #main-header сюда не достают — дублируем вид десктопа.
   Ширина плавает от телефона до планшета — только резиновые размеры. */
@media (max-width: 1024px) {
	/* Воздух между иконками в правой группе верхнего ряда */
	#mobile-header .site-header-main-section-right .site-header-item { margin-right: 22px; }
	#mobile-header .site-header-main-section-right .site-header-item:last-child { margin-right: 0; }

	/* Избранное: 28px + красный бейдж 18px, как на десктопе */
	#mobile-header .mobile-html-inner { line-height: 0; }
	#mobile-header .mot-fav-icon,
	#mobile-header .mot-fav-icon svg { width: 28px; height: 28px; }
	#mobile-header .mot-fav-count {
		top: -8px; right: -10px;
		min-width: 18px; height: 18px;
		font-size: 12px; line-height: 18px; border-radius: 10px;
	}

	/* Корзина: иконка 28px, бейдж — красный кружок поверх правого верхнего угла
	   (у Kadence бейдж по умолчанию серый и стоит СБОКУ от иконки) */
	#mobile-header .header-cart-button { position: relative; }
	#mobile-header .header-cart-button .kadence-svg-iconset { font-size: 28px; }
	#mobile-header .header-cart-button .header-cart-total {
		position: absolute; top: -8px; right: -10px; margin: 0;
		width: 18px; height: 18px; min-width: 18px;
		border-radius: 10px; background: #e21b1b; color: #fff;
		font-size: 12px; font-weight: 600;
	}

	/* Аккаунт: серая плашка как «Войти» на десктопе, но квадратная — без текста */
	#mobile-header .header-mobile-account-wrap .header-account-button {
		background: #f2f3f5; border-radius: 10px;
		width: 40px; height: 40px; padding: 0;
		display: inline-flex; align-items: center; justify-content: center; color: #1a1a1a;
	}
	#mobile-header .header-mobile-account-wrap .header-account-button:hover { background: #e8e9ec; color: #1a1a1a; }
	#mobile-header .header-mobile-account-wrap .header-account-button .kadence-svg-iconset { font-size: 20px; }

	/* Нижний ряд: поиск на всю ширину до кнопки-гамбургера.
	   Ряд у Kadence — grid `auto auto`; ширину полю режет инлайн-правило Kadence
	   `.header-mobile-search-bar form { width:240px }` — перебиваем. */
	#mobile-header .site-bottom-header-inner-wrap.site-header-row { grid-template-columns: 1fr auto !important; }
	#mobile-header .site-header-bottom-section-left { min-width: 0; }
	#mobile-header .site-header-item[data-section="kadence_customizer_header_mobile_search_bar"] {
		flex: 1 1 auto; min-width: 0; width: 100%; margin-right: 12px;
	}
	#mobile-header .header-mobile-search-bar { width: 100%; }
	#mobile-header .header-mobile-search-bar form { width: 100% !important; max-width: none !important; }
}

/* ======================================================================
   ФУТЕР (Kadence Element «Футер сайта», hook replace_footer)
   Разметка генерится tools/setup-footer.php → .mot-footer
   ====================================================================== */
.mot-footer { background: #fff; color: #1a1a1a; font-size: 15px; }
.mot-footer__inner {
	max-width: 1440px; margin: 0 auto; padding: 48px 24px 40px;
	display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1.4fr; gap: 32px;
}
.mot-footer__title,
.mot-footer__news-title { font-weight: 700; font-size: 18px; margin-bottom: 22px; }

/* --- колонка бренда --- */
.mot-footer__logo img { max-width: 150px; height: auto; }
.mot-footer__phone { display: inline-block; margin: 18px 0 6px; font-size: 22px; font-weight: 700; color: #1a1a1a; text-decoration: none; }
.mot-footer__schedule { font-size: 12px; color: #8a8a8a; margin-bottom: 20px; }
.mot-footer__callback {
	display: inline-block; background: #e21b1b; color: #fff; text-decoration: none;
	font-weight: 600; padding: 13px 40px; border-radius: 6px; transition: background .15s ease;
}
.mot-footer__callback:hover { background: #c01616; color: #fff; }
.mot-footer__socials { display: flex; gap: 14px; margin-top: 26px; }
.mot-socials { display: flex; gap: 14px; } /* та же линейка иконок вне футера (напр. «Контакты») */
.mot-soc { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; }
.mot-soc img { display: block; width: 100%; height: 100%; }

/* --- меню-колонки --- */
.mot-foot-menu { list-style: none; margin: 0; padding: 0; }
.mot-foot-menu li { margin: 0 0 12px; }
.mot-foot-menu a { color: #1a1a1a; text-decoration: none; }
.mot-foot-menu a:hover { color: #e21b1b; }
.mot-foot-menu .is-accent a { color: #e21b1b; font-weight: 600; }
.mot-foot-menu--2col { columns: 2; column-gap: 32px; }

/* --- рассылка --- */
.mot-footer__news { background: #f2f3f5; border-radius: 16px; padding: 28px 32px; }
.mot-footer__news-title { line-height: 1.35; }
.mot-news-row { display: flex; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.08); max-width: 460px; }
.mot-news-input { flex: 1 1 auto; min-width: 0; border: 0; padding: 16px 18px; font-size: 14px; color: #1a1a1a; background: #fff; }
.mot-news-btn { flex: 0 0 auto; width: 64px; border: 0; background: #e21b1b; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.mot-news-btn:hover { background: #c01616; }
.mot-news-consent { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: #6a6a6a; }
@media (max-width: 600px) {
	.mot-footer__news { padding: 24px 20px; }
	.mot-footer__news-title br { display: none; } /* без принудительного разрыва заголовок переносится ровнее */
	.mot-news-btn { width: 56px; }
}

/* --- нижняя плашка --- */
.mot-footer__bottom { border-top: 1px solid #ececec; }
.mot-footer__bottom-inner {
	max-width: 1440px; margin: 0 auto; padding: 28px 24px;
	display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px;
}
.mot-footer__legal p { margin: 0 0 8px; font-size: 12px; color: #9a9a9a; line-height: 1.5; }
.mot-footer__copy, .mot-footer__req { color: #5a5a5a !important; font-size: 13px !important; }
.mot-footer__bottom-right { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.mot-footer__policy { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.mot-footer__policy a { color: #5a5a5a; text-decoration: none; font-size: 13px; }
.mot-footer__policy a:hover { color: #e21b1b; }
.mot-footer__pay { display: flex; gap: 14px; align-items: center; }
.mot-footer__pay img { display: block; height: 13px; width: auto; }

/* --- адаптив --- */
@media (max-width: 1024px) {
	.mot-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.mot-footer__inner { grid-template-columns: 1fr; }
	.mot-footer__bottom-inner { grid-template-columns: 1fr; }
	.mot-footer__bottom-right { align-items: flex-start; }
	.mot-footer__policy { text-align: left; }
}

/* ======================================================================
   ГАЛЕРЕЯ товара (mot-core SingleProductModule → .mot-gallery)
   Слайдер: главное фото со стрелками + лента миниатюр (активная — красное
   подчёркивание). Ниже — «Схемы» из метабокса товара (_mot_scheme_ids).
   ====================================================================== */
/* Главное фото и миниатюры — в лёгких серых рамках; фото не обрезается (contain).
   Селекторы с .single-product и явные :hover/:focus — иначе Kadence красит
   <button> в тёмный фон при наведении. */
.mot-gallery__main {
	position: relative; border-radius: 12px; overflow: hidden;
	background: #fff; border: 1px solid #e6e8ec;
}
.mot-gallery__slide { display: none; }
.mot-gallery__slide.is-active { display: block; }
.mot-gallery__slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; }
.single-product .mot-gallery .mot-gallery__nav,
.single-product .mot-gallery .mot-gallery__nav:focus {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .92); color: #1a1a1a; font-size: 14px;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15); outline: none; transition: background .15s ease;
}
.single-product .mot-gallery .mot-gallery__nav:hover { background: #fff; color: #1a1a1a; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.mot-gallery__nav--prev { left: 14px; }
.mot-gallery__nav--next { right: 14px; }

.mot-gallery__thumbs { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.mot-gallery__track {
	display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
	scrollbar-width: none; flex: 1 1 auto; min-width: 0;
}
.mot-gallery__track::-webkit-scrollbar { display: none; }
.single-product .mot-gallery .mot-gallery__thumb,
.single-product .mot-gallery .mot-gallery__thumb:hover,
.single-product .mot-gallery .mot-gallery__thumb:focus,
.single-product .mot-gallery .mot-gallery__thumb:active {
	border: 0; padding: 0 0 9px; background: transparent;
	box-shadow: none; outline: none; cursor: pointer; position: relative; flex: 0 0 auto;
}
.mot-gallery__thumb img {
	display: block; width: 96px; height: 64px; object-fit: cover;
	border-radius: 8px; border: 1px solid #e6e8ec; background: #fff;
	transition: border-color .15s ease;
}
.mot-gallery__thumb:hover img { border-color: #c9ccd2; }
.mot-gallery__thumb::after {
	content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 3px;
	border-radius: 2px; background: transparent; transition: background .15s ease;
}
.mot-gallery__thumb.is-active::after { background: #e21b1b; }
.single-product .mot-gallery .mot-gallery__tnav,
.single-product .mot-gallery .mot-gallery__tnav:focus {
	width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; flex: 0 0 auto;
	background: #f1f2f4; color: #1a1a1a; font-size: 11px;
	display: inline-flex; align-items: center; justify-content: center;
	outline: none; box-shadow: none; transition: background .15s ease;
}
.single-product .mot-gallery .mot-gallery__tnav:hover { background: #e4e6ea; color: #1a1a1a; }

.mot-scheme { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.mot-scheme__img { flex: 1 1 300px; max-width: calc(50% - 12px); height: auto; object-fit: contain; }

/* Вариации: «Ткань» картинками-свотчами (mot-core assets/js/variations.js) */
/* form.cart сделан flex-строкой для простых товаров (кнопка + сердце);
   вариативной форме — колонка с порядком по макету:
   цена вариации + наличие + кнопка, ниже — «Материал» со свотчами. */
.single-product form.cart.variations_form { display: flex; flex-direction: column; align-items: stretch; }
.single-product form.cart.variations_form .single_variation_wrap { order: 1; }
.single-product form.cart.variations_form .mot-variations { order: 2; margin: 18px 0 0; }
.single-product .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 14px; }
/* кол-во = 1, как у простых; !important — у Kadence селектор с div.quantity сильнее */
.single-product .woocommerce-variation-add-to-cart .quantity { display: none !important; }
.single-product .woocommerce-variation.single_variation { margin: 0 0 16px; }
.mot-variations { margin: 0 0 18px; }
.mot-variations__label { font-size: 14px; margin: 0 0 10px; }
.mot-variations__val { font-weight: 700; }
.mot-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.single-product .mot-swatches .mot-swatch,
.single-product .mot-swatches .mot-swatch:hover,
.single-product .mot-swatches .mot-swatch:focus {
	border: 0; padding: 0 0 9px; background: transparent;
	box-shadow: none; outline: none; cursor: pointer; position: relative;
}
.mot-swatch img {
	display: block; width: 64px; height: 48px; object-fit: cover;
	border-radius: 8px; border: 1px solid #e6e8ec; background: #fff;
	transition: border-color .15s ease;
}
.mot-swatch:hover img { border-color: #c9ccd2; }
.mot-swatch::after {
	content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 3px;
	border-radius: 2px; background: transparent; transition: background .15s ease;
}
.mot-swatch.is-active::after { background: #e21b1b; }
.mot-swatch--text { font-size: 14px; padding: 8px 14px 17px; }
/* стандартный сброс «Очистить» не нужен при свотчах */
.single-product .reset_variations { display: none !important; }

/* ======================================================================
   ОТЗЫВЫ на карточке товара (mot-core ReviewsModule → .mot-reviews)
   Дизайн по макету: заголовок с индексом, рейтинг, лента фото с «+N»,
   сортировка-пилюля, тумблер «Только с фото», серые карточки отзывов.
   ====================================================================== */
.mot-reviews { margin: 48px 0; }
.mot-reviews__title { font-size: 26px; font-weight: 800; margin: 0 0 14px; }
.mot-reviews__title sup { font-size: 14px; font-weight: 700; color: #9a9a9a; margin-left: 2px; }

.mot-reviews__rating { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.mot-reviews__rating .star-rating { font-size: 16px; }
.mot-reviews__rating b { font-size: 15px; }
/* Звёзды — оранжевые, как на макете. Woo/Kadence красят ::before палитрой
   с высокой специфичностью, поэтому селектор с .single-product. */
.single-product .mot-reviews .star-rating,
.single-product .mot-reviews .star-rating span::before { color: #ffa000; }

.mot-reviews__strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.mot-reviews__strip-item { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.mot-reviews__strip-item img { width: 96px; height: 64px; object-fit: cover; display: block; }
.mot-reviews__more {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(2, 10, 10, .55); color: #fff; font-weight: 700; font-size: 15px;
}

.mot-reviews__controls { display: flex; align-items: center; gap: 28px; margin: 0 0 24px; }
.single-product .mot-reviews select.mot-reviews__sort {
	appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; box-shadow: none;
	background: #f1f2f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23222' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
	border-radius: 10px; padding: 10px 36px 10px 16px; font: inherit; font-size: 14px; color: #1a1a1a;
}
.mot-reviews__photofilter { display: inline-flex; align-items: center; gap: 10px; color: #1a1a1a; text-decoration: none; font-size: 14px; }
.mot-reviews__photofilter:hover { color: #1a1a1a; }
.mot-reviews__switch { width: 44px; height: 24px; border-radius: 12px; background: #d7d9dd; position: relative; transition: background .15s ease; }
.mot-reviews__switch::after {
	content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
	border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .15s ease;
}
.mot-reviews__photofilter.is-on .mot-reviews__switch { background: #e21b1b; }
.mot-reviews__photofilter.is-on .mot-reviews__switch::after { left: 22px; }

.mot-reviews__list { display: flex; flex-direction: column; gap: 16px; margin: 0 0 40px; }
.mot-review { background: #f1f2f4; border-radius: 14px; padding: 26px 28px; }
.mot-review__head { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 14px; }
.mot-review__avatar {
	width: 52px; height: 52px; border-radius: 50%; background: #d9dbdf; color: #fff;
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.mot-review__meta { display: flex; flex-direction: column; gap: 2px; }
.mot-review__author { font-size: 15px; }
.mot-review__date { font-size: 13px; color: #8a8a8a; }
.mot-review__meta .star-rating { color: #ffa000; font-size: 13px; margin-top: 4px; }
.mot-review__text { font-size: 15px; line-height: 1.55; }
.mot-review__text p { margin: 0 0 10px; }
.mot-review__text p:last-child { margin-bottom: 0; }
.mot-review__photos { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.mot-review__photo img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.mot-reviews__empty { color: #6a6a6a; }

/* форма «Оставить отзыв» — серая карточка, как отзывы */
.mot-reviews__form {
	max-width: 720px; background: #f1f2f4; border-radius: 14px; padding: 28px;
}
.mot-reviews__form-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.mot-reviews__form .comment-notes { font-size: 13px; color: #8a8a8a; font-style: normal; }
.mot-reviews__form .comment-form > p { margin-bottom: 16px; }
.mot-reviews__form input[type="text"],
.mot-reviews__form input[type="email"],
.mot-reviews__form select,
.mot-reviews__form textarea {
	width: 100%; border: 1px solid #e2e4e8; border-radius: 10px;
	padding: 10px 14px; font: inherit; font-size: 14px; background: #fff;
	box-shadow: none;
}
.mot-reviews__form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.mot-reviews__form .form-submit input[type="submit"] {
	width: auto; background: #e21b1b; color: #fff; border: 0; border-radius: 10px;
	font-weight: 600; padding: 12px 32px; cursor: pointer; transition: background .15s ease;
}
.mot-reviews__form .form-submit input[type="submit"]:hover { background: #c01616; }
.mot-review-upload__hint { display: block; font-size: 12px; color: #8a8a8a; margin-top: 4px; }

/* лайтбокс фото отзывов (mot-core assets/js/reviews.js) */
.mot-lightbox-overlay {
	position: fixed; inset: 0; z-index: 100000;
	display: none; align-items: center; justify-content: center;
	background: rgba(2, 10, 10, .82); padding: 40px;
}
.mot-lightbox-overlay.is-open { display: flex; }
.mot-lightbox__img {
	max-width: min(1100px, 90vw); max-height: 85vh;
	border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.mot-lightbox__close,
.mot-lightbox__nav {
	border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12);
	width: 44px; height: 44px; border-radius: 50%; font-size: 20px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s ease; flex: 0 0 auto;
}
.mot-lightbox__close:hover,
.mot-lightbox__nav:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.mot-lightbox__close { position: absolute; top: 20px; right: 20px; font-size: 26px; }
.mot-lightbox__prev { margin-right: 20px; }
.mot-lightbox__next { margin-left: 20px; }

/* ----------------------------------------------------------------------
   ФУТЕР v2 — то же самое, но собрано блоками Kadence
   (Element «Футер (блоки Kadence)», ID 132, hook replace_footer @20).
   Компоненты переиспользуют классы .mot-footer__* выше; здесь — только
   сетка рядов (в оригинале её давали .mot-footer__inner / __bottom-inner)
   и нейтрализация обёрток блоков. Специфичность (0,3,0) — чтобы перебить
   kt-has-N-columns из CSS Kadence Blocks, который грузится после темы.
   ---------------------------------------------------------------------- */
.mot-footer.mot-bfooter { margin: 0; } /* у rowlayout Kadence бывает свой нижний отступ */
.mot-footer.mot-bfooter--main > .kt-row-column-wrap {
	max-width: 1440px; margin: 0 auto;
	display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1.4fr; gap: 32px;
	padding: 48px 24px 40px;
}
.mot-footer.mot-bfooter--bottom { border-top: 1px solid #ececec; }
.mot-footer.mot-bfooter--bottom > .kt-row-column-wrap {
	max-width: 1440px; margin: 0 auto;
	display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px;
	padding: 28px 24px;
}
.mot-bfooter .wp-block-image,
.mot-bfooter p.mot-bf-phone,
.mot-bfooter p.mot-bf-callback { margin: 0; }
/* flex-раскладка правой нижней колонки: в блочной версии её содержимое
   лежит внутри .kt-inside-inner-col, а не сразу в колонке */
.mot-bfooter .mot-footer__bottom-right .kt-inside-inner-col {
	display: flex; flex-direction: column; align-items: flex-end; gap: 22px;
}
@media (max-width: 1024px) {
	.mot-footer.mot-bfooter--main > .kt-row-column-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.mot-footer.mot-bfooter--main > .kt-row-column-wrap,
	.mot-footer.mot-bfooter--bottom > .kt-row-column-wrap { grid-template-columns: 1fr; }
	.mot-bfooter .mot-footer__bottom-right .kt-inside-inner-col { align-items: flex-start; }
}

/* ======================================================================
   КАРТОЧКА ТОВАРА — блок «Вместе покупают» ([mot_together], mot-core)
   ====================================================================== */
.mot-together { margin: 32px 0; }
.mot-together__title { font-size: 22px; font-weight: 700; margin: 0 0 18px; }
.mot-together__list { display: flex; flex-direction: column; gap: 10px; }
.mot-together__item {
	display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
	background: #f6f7f9; border-radius: 12px; padding: 8px 12px;
}
.mot-together__thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; display: block; }
.mot-together__name { color: #1a1a1a; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.25; }
.mot-together__name:hover { color: #e21b1b; }
.mot-together__price { margin-top: 2px; font-weight: 700; font-size: 14px; }
.mot-together__price del { color: #b3b3b3; font-weight: 400; margin-left: 8px; }
.mot-together__price ins { text-decoration: none; }
/* круглая тёмная кнопка с белой иконкой корзины (спецификация выше Kadence .button) */
.mot-together a.mot-together__cart,
.woocommerce .mot-together a.mot-together__cart {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
	background: #1f2a24; color: #fff; padding: 0; border: 0; box-shadow: none;
}
.mot-together a.mot-together__cart:hover,
.woocommerce .mot-together a.mot-together__cart:hover { background: #e21b1b; color: #fff; }
.mot-together__cart-icon { width: 20px; height: 20px; display: block; }
.mot-together__cart.added::after { content: ""; } /* suppress Woo default tick glyph */

/* цена вариации показывается наверху (variations.js) — скрываем дубль в блоке вариации */
.single-product .single_variation .woocommerce-variation-price { display: none; }
@media (max-width: 600px) {
	.mot-together__item { grid-template-columns: 52px 1fr auto; gap: 12px; }
	.mot-together__thumb img { width: 52px; height: 52px; }
}

/* ======================================================================
   КАРТОЧКА ТОВАРА — сводка (рестайл под макет)
   DOM: .summary.entry-summary > h1.product_title + p.price + form.cart + .product_meta
   ====================================================================== */
.single-product .entry-summary .product_title { font-size: 30px; font-weight: 700; line-height: 1.25; margin: 0 0 18px; }

/* Цена: новая крупная + старая зачёркнутая серая + бейдж скидки */
.single-product .entry-summary .price {
	display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
	font-size: 30px; font-weight: 700; color: #1a1a1a; margin: 0 0 20px;
}
.single-product .entry-summary .price del { color: #b3b3b3; font-weight: 400; font-size: 20px; opacity: 1; }
.single-product .entry-summary .price ins { text-decoration: none; order: -1; } /* новая цена слева от старой */

/* Бейдж скидки «-25 %» как красная плашка */
.single-product .onsale {
	display: inline-block; background: #e21b1b; color: #fff; border-radius: 6px;
	padding: 4px 12px; font-size: 14px; font-weight: 700; line-height: 1.4; min-height: 0;
	position: static; margin: 0;
}

/* Наличие */
.single-product .entry-summary .stock { color: #2e7d32; font-weight: 600; margin: 0 0 18px; }

/* Строка покупки: «В корзину» (тёмная, во всю ширину) + сердечко */
.single-product form.cart { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.single-product form.cart .quantity { display: none; } /* кол-во = 1, как на макете */
.single-product .single_add_to_cart_button {
	flex: 1 1 auto; background: #3a4045; color: #fff; border: 0; border-radius: 10px;
	padding: 16px 28px; font-weight: 700; font-size: 16px; transition: background .15s ease;
}
.single-product .single_add_to_cart_button:hover { background: #e21b1b; color: #fff; }

/* Кнопки «В корзину» — тёмно-серые по макету, ВЕЗДЕ (каталог, карточки, PDP).
   !important — Kadence красит их палитрой (белая обводка в каталоге, красный на PDP)
   селекторами выше нашей специфичности. Ховер — фирменный красный. */
.woocommerce a.add_to_cart_button.button,
.woocommerce ul.products li.product .button:not(.mot-together__cart),
.single-product button.single_add_to_cart_button {
	background: #3a4045 !important; color: #fff !important;
	border: 0 !important; border-radius: 10px; font-weight: 700; text-transform: none;
}
.woocommerce a.add_to_cart_button.button:hover,
.woocommerce ul.products li.product .button:not(.mot-together__cart):hover,
.single-product button.single_add_to_cart_button:hover {
	background: #e21b1b !important; color: #fff !important;
}
.single-product form.cart .mot-fav-toggle {
	flex: 0 0 auto; width: 54px; height: 54px; padding: 0;
	border: 1px solid #e3e3e3; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; color: #9a9a9a;
}
.single-product form.cart .mot-fav-toggle:hover,
.single-product form.cart .mot-fav-toggle.is-active { color: #e21b1b; border-color: #f3c4c4; }

/* Доставка + Яндекс Сплит + Рассрочка (Kadence Element «Карточка — Доставка и оплата») */
.mot-pdp-extra { margin: 4px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.mot-pdp-delivery { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 14px; }
.mot-pdp-row { display: flex; align-items: center; gap: 12px; }
.mot-pdp-ico { flex: 0 0 auto; }
.mot-pdp-label { color: #6a6a6a; }
.mot-pdp-val { margin-left: auto; font-weight: 700; color: #1a1a1a; }
.mot-pdp-pay {
	display: flex; align-items: center; gap: 8px; text-decoration: none;
	background: #f6f7f9; border-radius: 12px; padding: 14px 18px; color: #1a1a1a;
}
.mot-pdp-pay:hover { background: #eef0f3; color: #1a1a1a; }
.mot-pdp-pay-logo { font-weight: 700; }
.mot-pdp-pay-logo--ya::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; background: url('assets/icons/split.svg') center / contain no-repeat; }
.mot-pdp-pay-logo--credit::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; background: url('assets/icons/installment.png') center / contain no-repeat; }
.mot-pdp-pay-desc { color: #6a6a6a; }
.mot-pdp-pay-arrow { margin-left: auto; font-size: 22px; color: #b3b3b3; }

/* --- Характеристики (атрибуты товара, точки-лидеры) --- */
.mot-specs { margin: 36px 0; }
.mot-specs__title { font-size: 22px; font-weight: 700; margin: 0 0 18px; }
.mot-specs__list { display: flex; flex-direction: column; gap: 12px; }
.mot-specs__row { display: flex; align-items: baseline; gap: 8px; }
.mot-specs__name { color: #8a8a8a; white-space: nowrap; }
.mot-specs__dots { flex: 1 1 auto; border-bottom: 1px dotted #cfcfcf; transform: translateY(-4px); min-width: 12px; }
.mot-specs__val { color: #1a1a1a; font-weight: 600; text-align: right; white-space: nowrap; }
.mot-specs__note { margin: 18px 0 0; font-size: 13px; color: #9a9a9a; line-height: 1.5; }
@media (max-width: 600px) {
	.mot-specs__row { flex-wrap: wrap; }
	.mot-specs__dots { order: 3; flex-basis: 100%; display: none; }
	.mot-specs__val { margin-left: auto; }
}

/* --- Полезные материалы (Carbon Fields, повторяющиеся файлы) --- */
.mot-useful { margin: 36px 0; }
.mot-useful__title { font-size: 22px; font-weight: 700; margin: 0 0 18px; }
.mot-useful__list { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.mot-useful__item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1a1a1a; }
.mot-useful__icon {
	flex: 0 0 auto; width: 34px; height: 42px; border-radius: 4px; background: #e21b1b; color: #fff;
	display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 5px;
	font-size: 10px; font-weight: 800; letter-spacing: .3px;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.mot-useful__meta { display: flex; flex-direction: column; line-height: 1.3; }
.mot-useful__name { font-weight: 600; }
.mot-useful__item:hover .mot-useful__name { color: #e21b1b; }
.mot-useful__size { font-size: 12px; color: #9a9a9a; }

/* --- Чертёж с размерами (Carbon Fields, ProductDimensions) --- */
.mot-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 32px; }
.mot-dimensions__fig { margin: 0; }
/* одна картинка — во всю ширину */
.mot-dimensions__fig:only-child { grid-column: 1 / -1; }
.mot-dimensions__img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .mot-dimensions { grid-template-columns: 1fr; } }

/* ======================================================================
   КАРТОЧКА ТОВАРА — 2 колонки (галерея+контент слева, сводка липкая справа)
   ====================================================================== */
@media (min-width: 1025px) {
	.single-product div.product {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 400px;
		column-gap: 72px;
		align-items: start;
	}
	/* default: everything in the left column */
	.single-product div.product > * { grid-column: 1; min-width: 0; }
	/* gallery fills the left column */
	.single-product div.product > .woocommerce-product-gallery {
		width: 100% !important;
		max-width: 100% !important;
		justify-self: stretch;
		float: none;
		margin: 0 0 24px;
	}
	.single-product div.product > .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
	.single-product div.product > .woocommerce-product-gallery .flex-viewport { width: 100%; }
	/* summary (+ «Вместе покупают» inside it) — right column, sticky */
	.single-product div.product > .summary.entry-summary {
		grid-column: 2;
		width: auto !important;
		float: none;
		position: sticky;
		top: 24px;
		margin: 0;
	}
	/* notices stay full-width inside the grid; carousels & reviews now render
	   OUTSIDE .product (see SingleProductModule / ReviewsModule), so the sticky
	   summary's containing block ends with the 2-column area. */
	.single-product div.product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}

/* ======================================================================
   КАРТОЧКА ТОВАРА — мобильная/планшетная раскладка (≤1024px)
   Блоки лежат в ДВУХ контейнерах (.mot-gallery: слайдер+чертежи+описание+
   характеристики; .summary: заголовок+цена+покупка+доставка) — в потоке
   сводка целиком уезжала под описание. display:contents распахивает оба
   контейнера, div.product становится grid'ом, порядок задаёт order:
   слайдер → заголовок → бейдж+цена → наличие → покупка → доставка/оплата →
   чертежи → описание → характеристики → «вместе покупают» (как на макете).
   ====================================================================== */
@media (max-width: 1024px) {
	.single-product div.product {
		display: grid;
		grid-template-columns: auto 1fr; /* 2 колонки только ради строки «бейдж скидки + цена» */
		align-items: start;
	}
	.single-product div.product > .mot-gallery,
	.single-product div.product > .summary.entry-summary { display: contents; }
	/* все блоки — во всю ширину, неупомянутые (product_meta, файлы) — в конец */
	.single-product div.product > *,
	.single-product div.product > .mot-gallery > *,
	.single-product div.product > .summary.entry-summary > * {
		grid-column: 1 / -1; min-width: 0; order: 20;
	}
	/* Точечные правила ниже — с тем же префиксом `.single-product div.product >`,
	   что и дефолт выше: иначе проигрывают ему по специфичности. */
	.single-product div.product > .woocommerce-notices-wrapper { order: 0; }
	.single-product div.product > .mot-gallery > .mot-gallery__main { order: 1; }
	.single-product div.product > .mot-gallery > .mot-gallery__thumbs { order: 2; margin-bottom: 24px; }
	.single-product div.product > .summary.entry-summary > .product_title { order: 3; }
	/* бейдж «-25 %» и цена — одной строкой. position:static !important —
	   Kadence абсолютит бейдж в угол галереи селектором
	   `.woocommerce.single-product.content-style-boxed ... > span.onsale`. */
	.single-product div.product > .onsale {
		position: static !important;
		order: 4; grid-column: 1;
		align-self: center; justify-self: start;
		margin: 0 12px 20px 0;
	}
	.single-product div.product > .summary.entry-summary > .price { order: 5; grid-column: 2; }
	.single-product div.product > .summary.entry-summary > .stock { order: 6; }
	.single-product div.product > .summary.entry-summary > form.cart { order: 7; }
	.single-product div.product > .summary.entry-summary > .mot-pdp-extra { order: 8; }
	.single-product div.product > .mot-gallery > .mot-scheme { order: 9; }
	.single-product div.product > .mot-gallery > .mot-dimensions { order: 10; }
	.single-product div.product > .mot-gallery > .mot-desc { order: 11; }
	.single-product div.product > .mot-gallery > .mot-specs { order: 12; }
	.single-product div.product > .summary.entry-summary > .mot-together { order: 13; }

	/* Внутри формы вариаций: сначала «Ткань» со свотчами, потом цена
	   вариации/наличие/«В корзину» (на десктопе — наоборот). */
	.single-product form.cart.variations_form .mot-variations { order: 1; margin: 0 0 18px; }
	.single-product form.cart.variations_form .single_variation_wrap { order: 2; }
}

/* «Вместе покупают» внутри сводки — компактный, со своей прокруткой */
.entry-summary .mot-together { margin-top: 26px; }
.entry-summary .mot-together__title { font-size: 18px; }
.entry-summary .mot-together__list { max-height: 320px; overflow-y: auto; padding-right: 8px; }
.entry-summary .mot-together__list::-webkit-scrollbar { width: 6px; }
.entry-summary .mot-together__list::-webkit-scrollbar-thumb { background: #cfd3d8; border-radius: 6px; }

/* ======================================================================
   КАРУСЕЛИ ТОВАРОВ (Диваны со скидкой / Может заинтересовать)
   Рендерятся ПОД 2-колоночной зоной (hook woocommerce_after_single_product),
   во всю ширину контента. «Диваны со скидкой» — на сером фоне.
   ====================================================================== */
.mot-carousel { margin: 44px 0 8px; }
/* «Хиты продаж» на главной (шорткод) — без верхнего отступа от заголовка */
.mot-carousel--bestsellers { margin-top: 0; }

/* Заголовок + стрелки навигации */
.mot-carousel__head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px;
}
.mot-carousel__title { font-size: 24px; font-weight: 700; margin: 0; }
.mot-carousel__nav { display: flex; gap: 10px; flex: 0 0 auto; }
.mot-carousel__arrow {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid #d8dade;
	background: #fff; color: #1a1a1a; cursor: pointer; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.mot-carousel__arrow:hover { background: #e21b1b; border-color: #e21b1b; color: #fff; }
.mot-carousel__arrow:disabled { opacity: .35; cursor: default; background: #fff; color: #1a1a1a; border-color: #d8dade; }

/* «Диваны со скидкой» — серая плашка во всю ширину контента */
.single-product .mot-carousel--sale {
	background: #f4f5f6;
	border-radius: 18px;
	padding: 32px 32px 36px;
	margin: 24px 0 40px;
}
.single-product .mot-carousel--interest { margin: 24px 0 40px; }

/* Дорожка-слайдер: 4 карточки в зоне видимости, прокрутка стрелками,
   нативный скроллбар скрыт (управление — кнопками). Работает везде, где есть
   .mot-carousel (карточка товара И главная — «Хиты продаж»). */
.mot-carousel ul.products.mot-carousel__track {
	display: flex; gap: 22px; margin: 0; padding: 6px 2px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.mot-carousel ul.products.mot-carousel__track::-webkit-scrollbar { width: 0; height: 0; display: none; }
.mot-carousel ul.products.mot-carousel__track li.product {
	flex: 0 0 calc((100% - 66px) / 4); width: calc((100% - 66px) / 4) !important;
	margin: 0 !important; padding: 0; float: none; min-width: 0;
	scroll-snap-align: start; background: #fff;
}
.mot-carousel ul.products.mot-carousel__track li.product::before { display: none; }

/* Адаптив: 3 → 2 → 1 карточка в зоне видимости */
@media (max-width: 1024px) {
	.mot-carousel ul.products.mot-carousel__track li.product {
		flex-basis: calc((100% - 44px) / 3); width: calc((100% - 44px) / 3) !important;
	}
}
@media (max-width: 767px) {
	.single-product .mot-carousel--sale { padding: 22px 16px 26px; }
	.mot-carousel ul.products.mot-carousel__track li.product {
		flex-basis: calc((100% - 22px) / 2); width: calc((100% - 22px) / 2) !important;
	}
}
@media (max-width: 479px) {
	.mot-carousel ul.products.mot-carousel__track li.product {
		flex-basis: 82%; width: 82% !important;
	}
}

/* ======================================================================
   КАРТОЧКА ТОВАРА (loop) — woocommerce/content-product.php
   ====================================================================== */
ul.products li.product.mot-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid #ececec; border-radius: 16px; overflow: hidden; padding: 0;
}
ul.products li.product.mot-card::before,
ul.products li.product.mot-card::after { display: none; content: none; }
.mot-card__media { position: relative; }
/* Бейдж скидки — слева вверху. Селектор специфичнее каденсовского
   `.woocommerce ul.products li.product .onsale{right:6px;left:auto}` (0,4,2),
   иначе скидка уезжает вправо и наезжает на «избранное». */
ul.products li.product.mot-card .mot-card__media .onsale {
	position: absolute; top: 12px; left: 12px; right: auto; z-index: 3; margin: 0;
	background: #e21b1b; color: #fff; border-radius: 6px; padding: 3px 10px; font-size: 13px; font-weight: 700;
}
/* Метки-бейджи (хит/новинка/акция) — слева внизу фото, чтобы не спорить со скидкой. */
.mot-card__media .mot-card__badges {
	position: absolute; left: 12px; bottom: 12px; z-index: 3;
	display: flex; gap: 6px; flex-wrap: wrap;
}
.mot-card__badge {
	background: #1a1a1a; color: #fff; border-radius: 6px; padding: 3px 10px;
	font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.mot-card__badge--novinka { background: #2e7d32; }
.mot-card__badge--hit-prodazh, .mot-card__badge--hity { background: #e08a00; }
.mot-card__badge--akciya, .mot-card__badge--rasprodazha { background: #e21b1b; }
.mot-card__media .mot-fav-toggle {
	position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12);
	display: flex; align-items: center; justify-content: center; color: #1a1a1a;
}
.mot-card__media .mot-fav-toggle.is-active { color: #e21b1b; }
.mot-card__img { display: block; }
.mot-card__img img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.mot-card__body { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.mot-card__attr { font-size: 12px; color: #9a9a9a; }
.mot-card__price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mot-card__price { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.mot-card__price del { color: #b3b3b3; font-weight: 400; font-size: 14px; margin-left: 6px; opacity: 1; }
.mot-card__price ins { text-decoration: none; }
.mot-card__stock { background: #eef0f3; color: #6a6a6a; border-radius: 6px; padding: 3px 10px; font-size: 12px; white-space: nowrap; }
.mot-card__title { color: #1a1a1a; font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.3; }
.mot-card__title:hover { color: #e21b1b; }
.mot-card__size { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #9a9a9a; }
.mot-card__size b { color: #1a1a1a; font-weight: 600; }
.mot-card__cart {
	display: block; margin: 14px 16px 16px; text-align: center; background: #3a4045; color: #fff;
	border-radius: 10px; padding: 13px; font-weight: 700; min-width: 0;
}
.mot-card__cart:hover { background: #e21b1b; color: #fff; }

/* swatches (gallery thumbs as fabric variants) */
.mot-card__swatches { display: flex; gap: 6px; }
/* миниатюры — кнопки мини-слайдера (assets/js/card-slider.js); явные
   :hover/:focus — иначе Kadence красит button в тёмный фон */
.mot-card .mot-card__swatch,
.mot-card .mot-card__swatch:hover,
.mot-card .mot-card__swatch:focus {
	width: 34px; height: 34px; border-radius: 6px; overflow: hidden;
	border: 1px solid #ececec; padding: 0; background: transparent;
	cursor: pointer; box-shadow: none; outline: none;
	transition: border-color .15s ease; flex: 0 0 auto;
}
.mot-card .mot-card__swatch:hover { border-color: #b9bdc4; }
.mot-card .mot-card__swatch.is-active { border-color: #e21b1b; }
.mot-card__swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* installment line */
.mot-card__installment { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #6a6a6a; }
.mot-card__inst-icon { width: 14px; height: 14px; flex: 0 0 auto; display: block; }
.mot-card__inst-dot { width: 12px; height: 12px; border-radius: 50%; background: #2db84d; flex: 0 0 auto; }

/* Мобильные (2 колонки): карточка узкая, ужимаем шрифты и отступы,
   иначе цена и название переносятся на 3-4 строки. */
@media (max-width: 575.98px) {
	.mot-card__body { padding: 10px 10px 0; gap: 6px; }
	.mot-card__media .mot-fav-toggle { width: 30px; height: 30px; top: 8px; right: 8px; }
	.mot-card__media .mot-fav-toggle svg { width: 16px; height: 16px; }
	.mot-card__price { font-size: 15px; }
	.mot-card__price ins { white-space: nowrap; }
	.mot-card__price del { font-size: 12px; margin-left: 4px; }
	.mot-card__title { font-size: 13px; }
	.mot-card__attr,
	.mot-card__size,
	.mot-card__installment { font-size: 11px; }
	.mot-card__stock { font-size: 11px; padding: 2px 8px; }
	.mot-card__price-row { gap: 6px; }
	.mot-card__cart { margin: 10px 10px 12px; padding: 10px; font-size: 13px; }
	.mot-card .mot-card__swatch,
	.mot-card .mot-card__swatch:hover,
	.mot-card .mot-card__swatch:focus { width: 28px; height: 28px; }
}

/* ======================================================================
   ПАНЕЛЬ КАТАЛОГА (тоггл «В наличии» + сортировка) — CatalogToolbar
   ====================================================================== */
.mot-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 24px; }
.mot-toolbar__stock { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #1a1a1a; font-weight: 600; font-size: 12px; }
.mot-toolbar__switch { width: 40px; height: 20px; border-radius: 20px; background: #d4d7dc; position: relative; flex: 0 0 auto; transition: background .15s ease; }
.mot-toolbar__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.mot-toolbar__stock.is-on .mot-toolbar__switch { background: #e21b1b; }
.mot-toolbar__stock.is-on .mot-toolbar__switch::after { transform: translateX(20px); }
.mot-toolbar__sort { display: flex; gap: 22px; flex-wrap: wrap; }
.mot-toolbar__sort-link { text-decoration: none; color: #8a8a8a; font-size: 12px; }
.mot-toolbar__sort-link:hover { color: #1a1a1a; }
.mot-toolbar__sort-link.is-active { color: #1a1a1a; font-weight: 700; }

/* ======================================================================
   БЛОКИ ПОДКАТЕГОРИЙ (каталог) — CategoryBlocks
   ====================================================================== */
.mot-subcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 28px; }
.mot-subcat {
	display: flex; flex-direction: column; justify-content: space-between; min-height: 124px;
	background: #f3f4f6; border: 2px solid transparent; border-radius: 14px; padding: 18px 20px;
	text-decoration: none; color: #1a1a1a; transition: background .15s ease, border-color .15s ease;
}
.mot-subcat:hover { background: #eef0f3; }
.mot-subcat.is-active { border-color: #1f2a24; background: #fff; }
.mot-subcat__media { display: flex; align-items: center; justify-content: center; height: 56px; overflow: hidden; }
.mot-subcat__img { max-height: 56px; width: auto; border-radius: 6px; }
.mot-subcat__icon { height: 40px; width: auto; max-width: 100%; color: #1a1a1a; }
.mot-subcat__name { font-weight: 700; font-size: 15px; }
@media (max-width: 900px) { .mot-subcats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
	.mot-subcats { gap: 12px; }
	.mot-subcat { padding: 14px 14px; min-height: 104px; }
}

/* Хаб «Каталог»: крупные плитки корневых категорий вместо ленты всех товаров.
   Вид — как плитки на главной: фото на всю плитку, скругление, белая подпись
   снизу слева поверх лёгкого затемнения. Без фото — иконка по центру на
   нейтральном фоне. */
.mot-subcats--root { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mot-subcats--root .mot-subcat {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	border: 0;
	border-radius: 8px;
	padding: 16px 24px;
	justify-content: flex-end;
	background: #8c7b6b; /* виден только у категорий без фото */
	color: #fff;
	transition: transform .18s ease, box-shadow .18s ease;
}
.mot-subcats--root .mot-subcat:hover {
	background: #8c7b6b;
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
/* фото растянуто на всю плитку; без фото — иконка по центру */
.mot-subcats--root .mot-subcat__media {
	position: absolute;
	inset: 0;
	height: auto;
}
.mot-subcats--root .mot-subcat__img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	border-radius: 0;
}
.mot-subcats--root .mot-subcat__icon { height: 64px; color: #fff; opacity: .85; }
/* затемнение снизу — как на главной */
.mot-subcats--root .mot-subcat::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .38) 100%);
	pointer-events: none;
	z-index: 1;
}
.mot-subcats--root .mot-subcat__name {
	position: relative;
	z-index: 2;
	font-size: 16px;
	color: #fff;
}
.mot-subcats--root .mot-subcat__count { display: none; }
.mot-subcat__count { color: #9a9a9a; font-size: 13px; margin-top: 2px; }
@media (max-width: 900px) { .mot-subcats--root { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 600px) { .mot-subcats--root .mot-subcat { min-height: 160px; } }

/* Баннер «Распродажа» под плитками хаба — как красная плитка на главной,
   растянутая на всю ширину. Выводится из CategoryBlocks::render_sale_banner(). */
.mot-sale-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 220px;
	margin: -4px 0 28px; /* верхний зазор = 24px, как gap сетки (у сетки margin-bottom 28px) */
	padding: 16px 24px;
	background: #e21b1b;
	border-radius: 8px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.mot-sale-banner:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.mot-sale-banner__title { font-size: 16px; font-weight: 700; }
.mot-sale-banner__note { font-size: 15px; margin-top: 6px; }
.mot-sale-banner .mot-sale-banner__pct {
	position: absolute;
	right: 48px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}
/* селектор с img — чтобы перебить `.woocommerce img { height: auto }`
   из kadence/woocommerce.min.css (грузится после стилей дочерней темы) */
.mot-sale-banner img.mot-sale-banner__pct {
	height: 82%;
	width: auto;
	max-width: none;
}
/* запасной вариант, если картинки «%» нет в медиабиблиотеке */
.mot-sale-banner .mot-sale-banner__pct--text {
	font-size: 140px;
	font-weight: 800;
	line-height: 1;
	color: rgba(255, 255, 255, .18);
}
@media (max-width: 600px) {
	.mot-sale-banner { min-height: 160px; }
	.mot-sale-banner .mot-sale-banner__pct { right: 12px; }
	.mot-sale-banner img.mot-sale-banner__pct { height: 64%; }
}

/* ======================================================================
   КАТАЛОГ: отступ товаров от сайдбара 24px + между колонками товаров 24px
   ====================================================================== */
.content-container.site-container { grid-column-gap: 24px; column-gap: 24px; }
.woocommerce ul.products.grid-cols,
.woocommerce ul.products.product-archive { grid-gap: 24px; gap: 24px; }

/* Мобильные: товары каталога всегда в 2 колонки. Kadence ниже 576px
   рисует 1 колонку (база .grid-cols, класс grid-xs-col-* не выводится). */
@media (max-width: 575.98px) {
	.woocommerce ul.products.grid-cols,
	.woocommerce ul.products.product-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}

/* Сетка [mot_products]/[mot_favorites] — своя, по числу колонок (без лишних
   отступов от дефолтной раскладки WooCommerce). */
.mot-products ul.products { display: grid; gap: 24px; margin: 0; padding: 0; }
.mot-products ul.products::before,
.mot-products ul.products::after { content: none; display: none; }
.mot-products ul.products li.product { width: auto !important; margin: 0 !important; float: none; }
.mot-products--cols4 ul.products { grid-template-columns: repeat(4, 1fr); }
.mot-products--cols3 ul.products { grid-template-columns: repeat(3, 1fr); }
.mot-products--cols2 ul.products { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .mot-products--cols4 ul.products, .mot-products--cols3 ul.products { grid-template-columns: repeat(3, 1fr); } }
/* Модификаторы --colsN специфичнее (.mot-products--colsN ul.products = 0-2-1),
   поэтому перечисляем их явно — иначе мобильное правило проигрывает. */
@media (max-width: 767px) {
	.mot-products ul.products,
	.mot-products--cols4 ul.products,
	.mot-products--cols3 ul.products,
	.mot-products--cols2 ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
}

/* WooCommerce уведомления — скруглённые углы */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce ul.woocommerce-error, .wc-block-components-notice-banner { border-radius: 10px; }

/* ======================================================================
   КОРЗИНА — заголовок, степпер количества −/+, кнопки под стиль сайта
   ====================================================================== */
.woocommerce .cart-summary h2 { font-size: 22px; font-weight: 700; margin: 0 0 18px; }

/* поле количества со степпером −/+ (JS: qty-stepper.js добавляет .mot-qty) */
.woocommerce .mot-qty { display: inline-flex; align-items: center; border: 1px solid #e3e3e3; border-radius: 10px; overflow: hidden; background: #fff; width: auto; }
.woocommerce .mot-qty__btn {
	width: 36px; height: 40px; border: 0; background: #f4f5f6; color: #1a1a1a;
	font-size: 20px; line-height: 1; cursor: pointer; padding: 0;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s ease, color .15s ease;
}
.woocommerce .mot-qty__btn:hover { background: #1f2a24; color: #fff; }
.woocommerce .mot-qty input.qty {
	width: 46px; height: 40px; border: 0; border-left: 1px solid #e3e3e3; border-right: 1px solid #e3e3e3;
	border-radius: 0; text-align: center; background: #fff; font-size: 15px; padding: 0;
	-moz-appearance: textfield; box-shadow: none;
}
.woocommerce .mot-qty input.qty::-webkit-outer-spin-button,
.woocommerce .mot-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* «Обновить корзину» — тёмная кнопка сайта (в актив. состоянии) */
.woocommerce .woocommerce-cart-form button[name="update_cart"] {
	background: #1f2a24; color: #fff; border: 0; border-radius: 10px; padding: 12px 26px; font-weight: 700;
}
.woocommerce .woocommerce-cart-form button[name="update_cart"]:hover:not([disabled]) { background: #e21b1b; }
.woocommerce .woocommerce-cart-form button[name="update_cart"][disabled] { opacity: .45; }

/* блок «Сумма корзины» — карточка */
.woocommerce .cart-collaterals .cart_totals { background: #f6f7f9; border-radius: 14px; padding: 22px 24px; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }

/* «Выбранные фильтры» — чипсы под заголовком (ActiveFilters) */
.mot-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.mot-active-filters__label { font-size: 13px; color: #8a8a8a; margin-right: 2px; }
.mot-chip { display: inline-flex; align-items: center; gap: 8px; background: #f3f4f6; border-radius: 20px; padding: 6px 12px; font-size: 13px; line-height: 1; color: #1a1a1a; text-decoration: none; transition: background .15s ease; }
.mot-chip:hover { background: #e6e8eb; }
.mot-chip__x { color: #9a9a9a; font-size: 16px; }
.mot-chip:hover .mot-chip__x { color: #e21b1b; }
.mot-active-filters__clear { font-size: 13px; color: #e21b1b; text-decoration: none; margin-left: 4px; }
.mot-active-filters__clear:hover { text-decoration: underline; }

/* --- Описание --- */
.mot-desc { margin: 36px 0; }
.mot-desc__title { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.mot-desc__body { color: #3a3a3a; line-height: 1.65; }

/* ======================================================================
   ОТЗЫВЫ
   ====================================================================== */
.mot-reviews { margin: 40px 0; }
.mot-reviews__title { font-size: 24px; font-weight: 700; margin: 0 0 16px; }
.mot-reviews__title sup { font-size: 14px; color: #9a9a9a; font-weight: 600; }
.mot-reviews__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mot-reviews__rating .star-rating { color: #f5a623; }
.mot-reviews__rating b { font-size: 16px; }

/* strip of review photos */
.mot-reviews__strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.mot-reviews__strip-item { position: relative; width: 88px; height: 64px; border-radius: 10px; overflow: hidden; display: block; }
.mot-reviews__strip-item img { width: 100%; height: 100%; object-fit: cover; }
.mot-reviews__strip-item.is-more img { filter: brightness(.5); }
.mot-reviews__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }

/* controls */
.mot-reviews__controls { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.mot-reviews__sort { border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px 16px; background: #fff; font-size: 14px; cursor: pointer; }
.mot-reviews__photofilter { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #1a1a1a; font-size: 14px; }
.mot-reviews__switch { width: 40px; height: 22px; border-radius: 22px; background: #d4d7dc; position: relative; transition: background .15s ease; }
.mot-reviews__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.mot-reviews__photofilter.is-on .mot-reviews__switch { background: #1f2a24; }
.mot-reviews__photofilter.is-on .mot-reviews__switch::after { transform: translateX(18px); }

/* review cards */
.mot-reviews__list { display: flex; flex-direction: column; gap: 16px; }
.mot-review { background: #f3f4f6; border-radius: 14px; padding: 22px 24px; }
.mot-review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mot-review__avatar-img { border-radius: 50%; width: 48px; height: 48px; }
.mot-review__meta { display: flex; flex-direction: column; gap: 2px; }
.mot-review__author { font-size: 15px; }
.mot-review__date { font-size: 12px; color: #9a9a9a; }
.mot-review__meta .star-rating { color: #f5a623; margin-top: 2px; font-size: 13px; }
.mot-review__text { color: #3a3a3a; line-height: 1.6; }
.mot-review__photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.mot-review__photo { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; display: block; }
.mot-review__photo img { width: 100%; height: 100%; object-fit: cover; }
.mot-reviews__empty { color: #6a6a6a; }

/* review form */
.mot-reviews__form { margin-top: 28px; }
.mot-reviews__form .comment-form-photos input[type="file"] { display: block; margin-top: 6px; }
.mot-review-upload__hint { display: block; font-size: 12px; color: #9a9a9a; margin-top: 4px; }

/* ======================================================================
   ГЛАВНАЯ: плитки категорий (Kadence Row + Column, страница «Главная»)
   Каждая плитка = kadence/column с классом .mot-cat-tile + модификатор цвета.
   Внутри — kadence/advancedheading со ссылкой на категорию. Цвет/фон/ховер —
   здесь (фото можно добавить позже, заменив фон на background-image).
   ====================================================================== */
.mot-cat-tiles { margin: 40px auto; }

/* Ряд плиток (kadence/rowlayout с классом .mot-cat-row): раскладку держим сами
   через flex — не зависим от динамического CSS Kadence по ширинам колонок. */
.mot-cat-row { max-width: 1290px; margin: 0 auto 16px; }
.mot-cat-row .kt-row-column-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}
.mot-cat-row .wp-block-kadence-column { flex: 1 1 200px; }
.mot-cat-row .mot-cat-tile--sale.wp-block-kadence-column { flex: 2 1 420px; }

@media (max-width: 767px) {
	.mot-cat-row .wp-block-kadence-column { flex: 1 1 calc(50% - 8px); }
	.mot-cat-row .mot-cat-tile--sale.wp-block-kadence-column { flex: 1 1 100%; }
}

/* Текущие плитки главной (Kadence-колонки с фото и ссылкой, без .mot-cat-tile):
   лёгкое затемнение снизу для читаемости подписи. Фото Kadence вешает на
   .kt-inside-inner-col, поэтому градиент — на его ::after (::before занят
   собственным оверлеем Kadence). «Распродажу» (красная,
   .kadence-column41_dd3322-2e) не трогаем — у неё свой фон без фото. */
.home .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay:not(.kadence-column41_dd3322-2e) > .kt-inside-inner-col {
	position: relative;
}
.home .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay:not(.kadence-column41_dd3322-2e) > .kt-inside-inner-col::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .38) 100%);
	pointer-events: none;
	z-index: 0;
}
/* подпись — над градиентом */
.home .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay:not(.kadence-column41_dd3322-2e) > .kt-inside-inner-col > * {
	position: relative;
	z-index: 1;
}

/* Плитка */
.mot-cat-tile.wp-block-kadence-column {
	position: relative;
	min-height: 230px;
	border-radius: 14px;
	overflow: hidden;
	background: #8c7b6b; /* запасной цвет, переопределяется модификатором */
	background-size: cover;
	background-position: center;
	display: flex;
	transition: transform .18s ease, box-shadow .18s ease;
}
.mot-cat-tile.wp-block-kadence-column:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
/* затемнение снизу для читаемости подписи (когда появятся фото) */
.mot-cat-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .35) 100%);
	z-index: 1;
	pointer-events: none;
}
.mot-cat-tile .kt-inside-inner-col {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px !important;
	position: relative;
	z-index: 2;
	height: 100%;
	width: 100%;
}
/* подпись + ссылка, растянутая на всю плитку */
.mot-cat-tile .wp-block-kadence-advancedheading,
.mot-cat-tile .kt-adv-heading-wrap { margin: 0; }
.mot-cat-tile .wp-block-kadence-advancedheading a,
.mot-cat-tile h2 a, .mot-cat-tile h3 a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
}
.mot-cat-tile a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

/* Цвета категорий (мебельная палитра) */
.mot-cat-tile--kuhni             { background-color: #b08968; }
.mot-cat-tile--spalni            { background-color: #8a9a8b; }
.mot-cat-tile--krovati-i-matrasy { background-color: #6b7a8f; }
.mot-cat-tile--gostinye          { background-color: #a98467; }
.mot-cat-tile--prihozhie         { background-color: #7d8471; }
.mot-cat-tile--stoly-i-stulya    { background-color: #9c8b7a; }
.mot-cat-tile--detskaya-mebel    { background-color: #c08497; }
.mot-cat-tile--shkafy            { background-color: #6f6357; }
.mot-cat-tile--komody-i-tumby    { background-color: #8c7b6b; }
.mot-cat-tile--divany-i-kresla   { background-color: #5f7161; }

/* Плитка «Распродажа» — фирменный красный */
.mot-cat-tile--sale.wp-block-kadence-column { background-color: #e21b1b; }
.mot-cat-tile--sale::before { display: none; }
.mot-cat-tile--sale .kt-inside-inner-col { justify-content: flex-start; }
.mot-cat-tile--sale .wp-block-kadence-advancedheading a,
.mot-cat-tile--sale h2 a, .mot-cat-tile--sale h3 a { font-size: 26px; }
.mot-cat-tile--sale .mot-cat-tile__note { color: #fff; opacity: .92; font-size: 15px; margin-top: 6px; position: relative; z-index: 2; }
.mot-cat-tile--sale .mot-cat-tile__pct {
	position: absolute; right: -10px; bottom: -20px; z-index: 1;
	font-size: 140px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .18);
	pointer-events: none;
}

/* Мобильные: уменьшаем высоту плиток */
@media (max-width: 767px) {
	.mot-cat-tile.wp-block-kadence-column { min-height: 150px; }
	.mot-cat-tile .wp-block-kadence-advancedheading a,
	.mot-cat-tile h2 a, .mot-cat-tile h3 a { font-size: 17px; }
}

/* ======================================================================
   ГЛАВНАЯ: лента «Отзывы» — шорткод [mot_reviews] (mot-core/ReviewsCarousel).
   Интро слева, справа 2-up слайдер карточек-цитат; поведение — общий
   carousel.js (классы .mot-carousel__track / __arrow переиспользуются).
   ====================================================================== */
/* Секция full-bleed: вырывается из контейнера на всю ширину экрана,
   контент внутри (__inner) — по ширине контента темы (как alignfull +
   kb-theme-content-width у Kadence-рядов). */
.mot-reviews-band {
	width: 100vw;
	max-width: 100vw;
	margin: 44px calc(50% - 50vw);
	background: #f3f4f6;
	padding: 44px 0;
}
.mot-reviews-band__inner {
	display: flex;
	gap: 40px;
	align-items: center;
	max-width: var(--global-content-width, 1290px);
	margin: 0 auto;
	padding: 0 var(--global-content-edge-padding, 1.5rem);
}
.mot-reviews-band__intro { flex: 0 0 280px; }
.mot-reviews-band__title { font-size: 28px; font-weight: 700; margin: 0 0 14px; }
.mot-reviews-band__text { color: #3a3a3a; line-height: 1.55; margin: 0 0 26px; }
.mot-reviews-band__btn {
	display: inline-block;
	background: #e21b1b;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 26px;
	border-radius: 8px;
	text-decoration: none;
	transition: background .15s ease;
}
.mot-reviews-band__btn:hover { background: #c01414; color: #fff; }

.mot-reviews-band__body { flex: 1 1 auto; min-width: 0; }
.mot-reviews-band__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.mot-reviews-band__track::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Карточка-цитата */
.mot-reviews-band__card {
	flex: 0 0 calc(50% - 8px);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 22px;
	background: #fff;
	border-radius: 14px;
	padding: 26px;
}
.mot-reviews-band__quote { color: #1a1a1a; line-height: 1.6; }
.mot-reviews-band__foot {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f6f7f8;
	border-radius: 12px;
	padding: 14px 16px;
}
.mot-reviews-band__avatar {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #d4d7dc;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mot-reviews-band__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mot-reviews-band__author { font-size: 15px; }
.mot-reviews-band__date { font-size: 12px; color: #9a9a9a; }
.mot-reviews-band__stars { display: inline-flex; gap: 2px; margin-top: 2px; font-size: 14px; line-height: 1; }
.mot-reviews-band__star { color: #d4d7dc; }
.mot-reviews-band__star.is-on { color: #f5a623; }

/* Круглые стрелки по центру под карточками */
.mot-reviews-band__nav { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.mot-reviews-band__nav .mot-carousel__arrow { border-radius: 50%; background: #fff; }

@media (max-width: 1023px) {
	.mot-reviews-band { padding: 30px 0; }
	.mot-reviews-band__inner { flex-direction: column; align-items: stretch; gap: 26px; }
	.mot-reviews-band__intro { flex: 0 0 auto; }
}
@media (max-width: 767px) {
	.mot-reviews-band__card { flex-basis: 100%; }
}
