/**
 * NOMA — виджет «NOMA: коллекции» (noma_collections).
 *
 * Все размеры — px артборда: виджет стоит внутри .noma-scale / .noma-zoom, которые масштабируют
 * всё через zoom: var(--noma-zoom). Никаких rem / vw / vh — иначе двойной зум.
 *
 * Значения ниже — запасные (как у плиток меню); настройки виджета перекрывают их правилами
 * Elementor с селектором {{WRAPPER}}. Раскладку «слайдер / сетка» по устройствам пишет в
 * .noma-coll__track сам Elementor (элемент «Раскладка», selectors_dictionary).
 *
 * Тема (форк Hello Elementor) красит ссылки и кнопки в #c36 и рисует им рамку и фон при
 * наведении — поэтому внутри виджета цвета, рамки и фон кнопок и ссылок заданы явно, с
 * селекторами сильнее reset.css и правил кита Elementor.
 */

.elementor-widget-noma_collections {
	min-width: 0;
}

.noma-coll {
	--noma-coll-cols: 4;
	--noma-coll-gap: 12px;
	--noma-coll-zoom: 1.08;
	--noma-coll-arrow: 36px;
	--noma-coll-arrow-color: #151515;
	--noma-coll-arrow-fill: #ffffff;
	--noma-coll-nav-gap: 12px;
	position: relative;
	width: 100%;
	min-width: 0;
}

/* ------------------------------------------------------------------ трек */

/* Запасная раскладка — слайдер (так стоит виджет в десктопном попапе). */
.noma-coll__track {
	position: relative;
	display: grid;
	gap: var(--noma-coll-gap);
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: calc((100% - var(--noma-coll-gap) * (var(--noma-coll-cols) - 1)) / var(--noma-coll-cols));
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}

.noma-coll__track::-webkit-scrollbar {
	display: none;
}

.noma-coll__item {
	display: flex;
	min-width: 0;
	scroll-snap-align: start;
}

/* ------------------------------------------------------------------ карточка */

.noma-coll .noma-coll__card {
	position: relative;
	z-index: 0;
	isolation: isolate;
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	min-height: 206px;
	margin: 0;
	padding: 12px;
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	background-color: #ffffff;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.noma-coll a.noma-coll__card,
.noma-coll a.noma-coll__card:hover,
.noma-coll a.noma-coll__card:focus,
.noma-coll a.noma-coll__card:active,
.noma-coll a.noma-coll__card:visited {
	color: inherit;
	text-decoration: none;
}

.noma-coll a.noma-coll__card:focus {
	outline: none;
}

/* Рамка фокуса внутри карточки: трек со скроллом обрезает всё, что выходит за карточку. */
.noma-coll a.noma-coll__card:focus-visible {
	outline: 1px solid var(--noma-coll-arrow-color);
	outline-offset: -3px;
}

.noma-coll .noma-coll__card.is-upcoming {
	cursor: default;
}

.noma-coll .noma-coll__title {
	position: relative;
	z-index: 1;
	display: block;
	max-width: 75%;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: #000000;
	overflow-wrap: break-word;
}

/* плашкой: у будущей коллекции вместо белой карточки часто фото (главная картинка страницы), серый текст на нём не читается */
.noma-coll .noma-coll__badge {
	position: relative;
	z-index: 1;
	display: inline-block;
	align-self: flex-start;
	margin-top: 6px;
	padding: 3px 8px;
	border-radius: 12px;
	background: #ffffff;
	font-size: 12px;
	line-height: 1.2;
	color: #000000;
}

.noma-coll .noma-coll__card .noma-coll__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center bottom;
	transform: scale(1);
	transform-origin: center bottom;
	transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

@media (hover: hover) {
	.noma-coll a.noma-coll__card:hover .noma-coll__img {
		transform: scale(var(--noma-coll-zoom, 1.08));
	}
}

.noma-coll a.noma-coll__card:focus-visible .noma-coll__img {
	transform: scale(var(--noma-coll-zoom, 1.08));
}

/* ------------------------------------------------------------------ стрелки */

.noma-coll__nav {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--noma-coll-nav-gap);
}

.noma-coll .noma-coll__nav[hidden] {
	display: none !important;
}

.noma-coll .noma-coll__arrow,
.noma-coll .noma-coll__arrow:hover,
.noma-coll .noma-coll__arrow:focus,
.noma-coll .noma-coll__arrow:active {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--noma-coll-arrow);
	height: var(--noma-coll-arrow);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--noma-coll-arrow-color);
	border-radius: 50%;
	background-color: transparent;
	box-shadow: none;
	color: var(--noma-coll-arrow-color);
	font: inherit;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.noma-coll .noma-coll__arrow:focus {
	outline: none;
}

.noma-coll .noma-coll__arrow:focus-visible {
	outline: 1px solid var(--noma-coll-arrow-color);
	outline-offset: 2px;
}

@media (hover: hover) {
	.noma-coll .noma-coll__arrow:not([aria-disabled="true"]):hover {
		background-color: var(--noma-coll-arrow-color);
		color: var(--noma-coll-arrow-fill);
	}
}

.noma-coll .noma-coll__arrow[aria-disabled="true"] {
	opacity: 0.3;
	cursor: default;
}

.noma-coll .noma-coll__chevron {
	display: block;
	width: 55%;
	height: 55%;
	pointer-events: none;
}

/* По бокам: кнопки поверх крайних карточек, по центру высоты трека. */
.noma-coll--arrows-sides .noma-coll__nav {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	z-index: 2;
	justify-content: space-between;
	margin: 0;
	padding: 0 var(--noma-coll-nav-gap);
	transform: translateY(-50%);
	pointer-events: none;
}

.noma-coll--arrows-sides .noma-coll__arrow,
.noma-coll--arrows-sides .noma-coll__arrow:hover,
.noma-coll--arrows-sides .noma-coll__arrow:focus {
	background-color: rgba(255, 255, 255, 0.9);
	pointer-events: auto;
}

/* Крайняя стрелка по бокам исчезает совсем: visibility убирает её и из порядка Tab (невидимая кнопка
   без рамки фокуса). Прячется после угасания; фокус скрипт заранее переводит на вторую стрелку. */
.noma-coll--arrows-sides .noma-coll__arrow[aria-disabled="true"] {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

/* ------------------------------------------------------------------ прочее */

.noma-coll--empty {
	padding: 12px;
	border: 1px dashed #c8c8c8;
	border-radius: 12px;
	font-size: 13px;
	color: #666666;
}

@media (max-width: 767px) {
	.noma-coll .noma-coll__title {
		max-width: 100%;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.noma-coll .noma-coll__card .noma-coll__img,
	.noma-coll .noma-coll__arrow {
		transition: none;
	}

	.noma-coll__track {
		scroll-behavior: auto;
	}
}

/* ---------------------------------------------------------------- посадочная «Коллекции»
 * Виджет noma_collections_landing: заголовок и вступление, затем строки «фото (≈2/3) + текст», сторона фото
 * чередуется (.is-flip). px артборда noma-scale. Значения по умолчанию — переменные на .noma-cl, виджет их
 * переопределяет; селекторы с .noma-cl — сильнее стилей темы и набора Elementor для h1/h2/p. */
.noma-cl {
	--noma-cl-media: 64%;
	--noma-cl-ratio: 3 / 2;
	--noma-cl-radius: 10px;
	--noma-cl-col-gap: 60px;
	--noma-cl-row-gap: 140px;
	--noma-cl-list-top: 100px;
	color: #151515;
}

.noma-cl .noma-cl__title {
	margin: 0;
	font-family: inherit;
	font-size: 60px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #000;
}

.noma-cl .noma-cl__intro {
	max-width: 560px;
	margin: 30px 0 0;
	font-size: 15px;
	line-height: 1.45;
	text-transform: lowercase;
}

.noma-cl__list {
	display: flex;
	flex-direction: column;
	gap: var(--noma-cl-row-gap);
	margin-top: var(--noma-cl-list-top);
}

.noma-cl__row {
	display: grid;
	grid-template-columns: var(--noma-cl-media) minmax(0, 1fr);
	column-gap: var(--noma-cl-col-gap);
	align-items: center;
}

.noma-cl__row.is-flip {
	grid-template-columns: minmax(0, 1fr) var(--noma-cl-media);
}

.noma-cl__side {
	min-width: 0;
}

.noma-cl__row.is-flip .noma-cl__side {
	order: 2;
}

.noma-cl__media {
	display: block;
	overflow: hidden;
	aspect-ratio: var(--noma-cl-ratio);
	border-radius: var(--noma-cl-radius);
	background: #f2f2f0;
}

.noma-cl .noma-cl__img {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.6s ease;
}

.noma-cl__row:hover .noma-cl__img {
	transform: scale(1.03);
}

/* Наведение на изделие в ленте — увеличивается само изделие, а не главное фото (без :has — как раньше). */
.noma-cl__row:has(.noma-cl__strip:hover) .noma-cl__img {
	transform: scale(1);
}

/* Мини-лента изделий под фото (1.3.0): слайдер виджета «NOMA: коллекции», 6 обложек в ряд, стрелки по бокам —
   только если изделий больше, чем помещается. */
.noma-cl .noma-cl__strip {
	--noma-coll-cols: 6;
	--noma-coll-gap: 10px;
	--noma-coll-arrow: 32px;
	--noma-coll-nav-gap: 8px;
	margin-top: 12px;
}

/* Стрелки — по центру обложек, а не всей карточки с подписью. */
.noma-cl .noma-cl__strip.noma-coll--arrows-sides .noma-coll__nav {
	top: calc(50% - 18px);
}

.noma-cl a.noma-cl__prod,
.noma-cl a.noma-cl__prod:hover,
.noma-cl a.noma-cl__prod:focus,
.noma-cl a.noma-cl__prod:active,
.noma-cl a.noma-cl__prod:visited {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	color: #151515;
	text-decoration: none;
}

.noma-cl a.noma-cl__prod:focus {
	outline: none;
}

.noma-cl a.noma-cl__prod:focus-visible .noma-cl__pmedia {
	outline: 1px solid #151515;
	outline-offset: -3px;
}

.noma-cl .noma-cl__pmedia {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	border-radius: 6px;
	background: #f2f2f0;
}

.noma-cl .noma-cl__pimg {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.6s ease;
}

@media (hover: hover) {
	.noma-cl a.noma-cl__prod:hover .noma-cl__pimg {
		transform: scale(1.04);
	}
}

.noma-cl .noma-cl__pname {
	font-size: 12px;
	line-height: 1.25;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.noma-cl .noma-cl__index {
	margin: 0 0 14px;
	font-size: 15px;
	color: #7a7a7a;
}

.noma-cl .noma-cl__count {
	text-transform: lowercase;
}

.noma-cl .noma-cl__num + .noma-cl__count {
	margin-left: 20px;
}

.noma-cl .noma-cl__name {
	margin: 0;
	font-family: inherit;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
	color: inherit;
}

.noma-cl .noma-cl__name a,
.noma-cl .noma-cl__more {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.noma-cl .noma-cl__name a:hover,
.noma-cl .noma-cl__more:hover,
.noma-cl .noma-cl__more:focus-visible {
	opacity: 0.6;
}

.noma-cl .noma-cl__text {
	margin-top: 24px;
	font-size: 15px;
	line-height: 1.45;
	text-transform: lowercase;
}

.noma-cl .noma-cl__text p {
	margin: 0 0 0.8em;
}

.noma-cl .noma-cl__text p:last-child {
	margin-bottom: 0;
}

.noma-cl .noma-cl__facts {
	margin: 28px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.45;
}

.noma-cl__fact {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid rgba(21, 21, 21, 0.12);
}

.noma-cl__fact dt {
	color: #7a7a7a;
	text-transform: lowercase;
}

.noma-cl__fact dd {
	margin: 0;
}

/* Цвета вариаций (1.4.0): кружки, как на странице товара (Woo Variation Swatches, wvs-style-rounded). Тонкая рамка
   у всех — иначе белый и кремовый сливаются с фоном. Тема стилизует ul/li — сброс явно. На телефоне тот же ряд:
   колонка значения minmax(0, 1fr), не помещается — переносится (flex-wrap). */
.noma-cl .noma-cl__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.noma-cl .noma-cl__swatch {
	position: relative;
	display: block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.noma-cl .noma-cl__swatch::before,
.noma-cl .noma-cl__swatch::after {
	content: none;
}

.noma-cl .noma-cl__chip {
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #f2f2f0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(21, 21, 21, 0.18);
}

/* У значения нет образца (ни hex, ни фото) — пунктирное кольцо, а не заливка, похожая на настоящий цвет. */
.noma-cl .noma-cl__chip.is-empty {
	box-sizing: border-box;
	background: none;
	border: 1px dashed rgba(21, 21, 21, 0.4);
	box-shadow: none;
}

/* Название цвета — для экранных дикторов (видна только подсказка title). */
.noma-cl .noma-cl__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Высокий контраст Windows (forced-colors): цвет кружка и есть содержимое — система его не перекрашивает. */
@media (forced-colors: active) {
	.noma-cl .noma-cl__chip {
		forced-color-adjust: none;
	}
}

/* Печать: фоны кружков не печатаются — вместо них названия через запятую («белый, винный, …»). Разделитель
   (::before у второго и дальше) специфичнее сброса content: none выше. */
@media print {
	.noma-cl .noma-cl__swatches {
		gap: 0;
	}

	.noma-cl .noma-cl__chip {
		display: none;
	}

	.noma-cl .noma-cl__sr {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}

	.noma-cl .noma-cl__swatch + .noma-cl__swatch::before {
		content: ", ";
	}
}

.noma-cl .noma-cl__more {
	display: inline-block;
	margin-top: 28px;
	padding-bottom: 2px;
	font-size: 15px;
	border-bottom: 1px solid currentColor;
}

@media (max-width: 767px) {
	.noma-cl {
		--noma-cl-row-gap: 70px;
		--noma-cl-list-top: 50px;
	}

	.noma-cl .noma-cl__title {
		font-size: 40px;
	}

	.noma-cl__row,
	.noma-cl__row.is-flip {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 20px;
	}

	.noma-cl__row.is-flip .noma-cl__side {
		order: 0;
	}

	.noma-cl .noma-cl__strip {
		--noma-coll-cols: 2.4;
		margin-top: 10px;
	}

	.noma-cl .noma-cl__name {
		font-size: 28px;
	}

	.noma-cl__fact {
		grid-template-columns: 90px minmax(0, 1fr);
	}
}
