.noma-pc {
	--noma-pc-img-scale: 1.06;
	--noma-pc-img-duration: 0.45s;
	--noma-pc-img-focus: center center;
	box-sizing: border-box;
}

.noma-pc *,
.noma-pc *::before,
.noma-pc *::after {
	box-sizing: inherit;
}

.noma-pc__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin-bottom: 1.5rem;
}

.noma-pc__filters--scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.noma-pc__filter {
	margin: 0;
	padding: 0.35rem 0;
	border: 0;
	border-bottom: 1px solid transparent;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-transform: lowercase;
	letter-spacing: 0.02em;
	line-height: 1.2;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.noma-pc__filter:hover,
.noma-pc__filter:focus-visible {
	opacity: 1;
	outline: none;
}

.noma-pc__filter.is-active {
	opacity: 1;
	border-bottom-color: currentColor;
}

/* Мобилка: фильтры как «пилюли» с полной рамкой (на десктопе остаётся линия снизу). */
@media (max-width: 767px) {
	.noma-pc__filter {
		border: 1px solid #ccc;
		border-radius: 999px;
		padding: 0.45em 1.15em;
		background: #fff;
		transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	}

	.noma-pc__filter:hover,
	.noma-pc__filter:focus-visible {
		border-color: #b3b3b3;
	}

	.noma-pc__filter.is-active {
		border-color: currentColor;
		border-bottom-color: currentColor;
	}

	.noma-pc__filters--scroll .noma-pc__filter {
		flex-shrink: 0;
	}
}

.noma-pc__grid {
	display: grid;
	list-style: none;
	margin: 0;
	padding: 0;
}

.noma-pc__item {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.noma-pc__item.is-filtered-out {
	display: none;
}

.noma-pc__card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.noma-pc__card:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.noma-pc__media {
	display: block;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.noma-pc__img {
	display: block;
	width: 100%;
	/* Elementor/WooCommerce may force `img{height:auto}`; we need full-height for object-position. */
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: var(--noma-pc-img-focus, center center);
	vertical-align: middle;
	transform: scale(1);
	transform-origin: var(--noma-pc-img-focus, center center);
	transition: transform var(--noma-pc-img-duration, 0.45s) ease;
	will-change: transform;
}

.noma-pc__card:hover .noma-pc__img,
.noma-pc__card:focus-visible .noma-pc__img {
	transform: scale(var(--noma-pc-img-scale, 1.06));
}

.noma-pc__title {
	display: block;
	margin: 0;
	padding: 0;
}

.noma-pc__img--placeholder {
	display: block;
	width: 100%;
	min-height: 12rem;
	background: rgba(0, 0, 0, 0.06);
}

.noma-pc__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.65rem;
	margin: 1.25rem 0 0;
	padding: 0;
}

.noma-pc__pagination-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: inherit;
	gap: inherit;
}

.noma-pc__page-slot .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.2em 0.5em;
	text-decoration: none;
	color: inherit;
	border-radius: 4px;
	line-height: 1.2;
}

.noma-pc__page-slot .page-numbers.current {
	font-weight: 600;
}

.noma-pc__page-slot .page-numbers.dots {
	min-width: auto;
	pointer-events: none;
}

.noma-pc__load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 1.25rem;
}

.noma-pc__load-more {
	display: inline-block;
	padding: 0.65rem 1.35rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	font: inherit;
	cursor: pointer;
	color: inherit;
	line-height: 1.2;
}

.noma-pc__load-more:disabled {
	opacity: 0.55;
	cursor: wait;
}

.noma-pc__sentinel {
	height: 1px;
	margin-top: 0.5rem;
	pointer-events: none;
}
