/*
 * Napelle redesign preview: category / shop archive (templates/product-cat.php).
 * Scoped under .np-preview .np-cat. Breakpoints follow base.css: desktop >= 1024px, phone < 768px.
 *
 *  1. Hero band (light, Yılbaşı bordo, plain for search)
 *  2. Toolbar: series chips + sort
 *  3. Layout: filters sidebar (desktop) / slide-up sheet (< 1024px)
 *  4. Results: count, grid, empty state, scroll paging (sentinel + progress line, no button)
 *  5. "Seriyi tamamla" band
 *  6. SEO text, no-products state
 */

/* 1. Hero ------------------------------------------------------------------------------------- */
.np-preview .np-cat-hero {
	--np-hero-bg: var(--np-olive-tint);
	--np-hero-ink: var(--np-ink);
	--np-hero-soft: var(--np-body);
	--np-hero-crumb: var(--np-muted);
	--np-hero-meta: var(--np-olive);
	--np-hero-rule: var(--np-line-2);
	display: grid;
	grid-template-columns: minmax(var(--np-gutter), 1fr) minmax(0, 660px) minmax(0, 660px) minmax(var(--np-gutter), 1fr);
	min-height: 420px;
	background: var(--np-hero-bg);
	color: var(--np-hero-ink);
}

.np-preview .np-cat-hero--xmas {
	--np-hero-bg: var(--np-xmas);
	--np-hero-ink: var(--np-ivory);
	--np-hero-soft: var(--np-ivory-muted);
	--np-hero-crumb: #D9C7B8;
	--np-hero-meta: var(--np-gold);
	--np-hero-rule: #6E2A2E;
}

.np-preview .np-cat-hero__text {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 56px 64px 56px 0;
}

.np-preview .np-cat-hero__media {
	position: relative;
	grid-column: 3 / 5;
	grid-row: 1;
	min-height: 420px;
	overflow: hidden;
	background: var(--np-photo);
}

.np-preview .np-cat-hero--xmas .np-cat-hero__media {
	background: #3A0B0E;
}

.np-preview .np-cat .np-cat-hero__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 55%;
}

.np-preview .np-cat-hero--plain {
	min-height: 0;
}

.np-preview .np-cat-hero--plain .np-cat-hero__text {
	grid-column: 2 / 4;
	padding: 56px 0 52px;
}

.np-preview .np-cat-crumbs {
	margin-bottom: 28px;
	color: var(--np-hero-crumb);
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.np-preview .np-cat .np-cat-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
}

.np-preview .np-cat-crumbs__item {
	display: inline-flex;
	align-items: center;
}

.np-preview .np-cat-crumbs__sep {
	margin: 0 12px;
	opacity: .6;
}

.np-preview .np-cat .np-cat-crumbs a {
	color: var(--np-hero-crumb);
	transition: color .2s;
}

.np-preview .np-cat .np-cat-crumbs a:hover {
	color: var(--np-hero-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.np-preview .np-cat-crumbs [aria-current] {
	color: var(--np-hero-ink);
}

.np-preview .np-cat .np-cat-hero__title {
	margin: 0;
	color: var(--np-hero-ink);
	font-family: var(--np-serif);
	font-size: 60px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -.005em;
	overflow-wrap: anywhere;
}

.np-preview .np-cat-hero__title em {
	font-style: italic;
}

.np-preview .np-cat-hero__desc {
	max-width: 500px;
	margin: 22px 0 0;
	color: var(--np-hero-soft);
	font-size: 17px;
	line-height: 1.7;
	text-wrap: pretty;
}

.np-preview .np-cat-hero__meta {
	max-width: 500px;
	margin: 28px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--np-hero-rule);
	color: var(--np-hero-meta);
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: .06em;
}

/* 2. Toolbar ---------------------------------------------------------------------------------- */
.np-preview .np-cat__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-top: 36px;
}

.np-preview .np-cat__chips {
	display: flex;
	flex: 1 1 560px;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 0;
}

.np-preview .np-cat__chips--empty {
	flex-basis: 0;
}

.np-preview .np-cat .np-cat__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid var(--np-line-2);
	background: var(--np-paper);
	color: var(--np-ink);
	font-family: var(--np-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.np-preview .np-cat .np-cat__chip:hover {
	border-color: var(--np-ink);
}

.np-preview .np-cat__chip-count {
	color: var(--np-muted);
	font-variant-numeric: tabular-nums;
}

.np-preview .np-cat .np-cat__chip.is-current {
	background: var(--np-ink);
	border-color: var(--np-ink);
	color: var(--np-paper);
}

.np-preview .np-cat__chip.is-current .np-cat__chip-count {
	color: inherit;
	opacity: .7;
}

.np-preview .np-cat .np-cat__chip--xmas {
	color: var(--np-bordo);
}

.np-preview .np-cat .np-cat__chip--more {
	border-style: dashed;
	color: var(--np-olive);
	letter-spacing: .02em;
}

.np-preview .np-cat__controls {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.np-preview .np-cat__sort {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}

.np-preview .np-cat__sort-label {
	margin: 0;
	color: var(--np-muted);
	font-size: 14px;
	font-weight: 400;
}

.np-preview .np-cat .np-cat__select {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	min-width: 186px;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0 42px 0 14px;
	border: 1px solid #948D80;
	border-radius: 0;
	background: var(--np-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2323231D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 12px;
	box-shadow: none;
	color: var(--np-ink);
	font-family: var(--np-sans);
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
}

.np-preview .np-cat .np-cat__select:hover {
	border-color: var(--np-ink);
}

.np-preview .np-cat .np-cat__select:focus-visible {
	outline: 2px solid var(--np-olive);
	outline-offset: 2px;
}

/* Desktop: long series lists fold behind "+N seri". */
@media (min-width: 1024px) {
	.np-preview .np-cat__chips:not(.is-expanded) .np-cat__chip.is-extra:not(.is-current) {
		display: none;
	}
}

@media (max-width: 1023px) {
	.np-preview .np-cat .np-cat__chip--more {
		display: none;
	}
}

/* 3. Layout + filters ------------------------------------------------------------------------- */
.np-preview .np-cat__body {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-top: 36px;
	padding-bottom: 96px;
}

.np-preview .np-cat__filters {
	position: sticky;
	top: 24px;
	min-width: 0;
}

.np-preview .np-cat__sheet-body {
	display: flex;
	flex-direction: column;
	gap: 34px;
}

.np-preview .np-cat .np-cat__group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.np-preview .np-cat .np-cat__legend {
	float: left;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	color: var(--np-ink);
	font-family: var(--np-sans);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.np-preview .np-cat__legend + * {
	clear: both;
}

.np-preview .np-cat__options {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.np-preview .np-cat .np-cat__option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	margin: 0;
	color: var(--np-ink);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
}

.np-preview .np-cat .np-cat__check {
	-webkit-appearance: auto;
	appearance: auto;
	position: static;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border-radius: 0;
	opacity: 1;
	/* inherit, not visible: the closed mobile sheet (visibility: hidden) must take its checkboxes out of
	   the tab order and the accessibility tree too. */
	visibility: inherit;
	accent-color: var(--np-olive);
	cursor: pointer;
}

.np-preview .np-cat .np-cat__check::before,
.np-preview .np-cat .np-cat__check::after {
	content: none;
	display: none;
}

.np-preview .np-cat__option-label {
	flex: 1 1 auto;
	min-width: 0;
}

.np-preview .np-cat__option-count {
	margin-left: auto;
	color: var(--np-muted);
	font-variant-numeric: tabular-nums;
}

.np-preview .np-cat__option.is-empty {
	color: var(--np-muted);
}

.np-preview .np-cat__price {
	display: flex;
	gap: 10px;
}

.np-preview .np-cat .np-cat__price-field {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	color: var(--np-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.np-preview .np-cat .np-cat__input {
	display: block;
	width: 100%;
	height: 44px;
	min-height: 0;
	margin: 6px 0 0;
	padding: 0 10px;
	border: 1px solid #948D80;
	border-radius: 0;
	background: var(--np-paper);
	box-shadow: none;
	color: var(--np-ink);
	font-family: var(--np-sans);
	font-size: 14px;
	line-height: 1.2;
}

.np-preview .np-cat .np-cat__input::placeholder {
	color: #8A857A;
	opacity: 1;
}

.np-preview .np-cat .np-cat__input:focus {
	border-color: var(--np-olive);
	outline: 2px solid var(--np-olive);
	outline-offset: 0;
}

.np-preview .np-cat__hint {
	margin: 10px 0 0;
	color: var(--np-muted);
	font-size: 12px;
	line-height: 1.5;
}

.np-preview .np-cat__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.np-preview .np-cat .np-cat__swatch {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 2px solid var(--np-paper);
	border-radius: 50%;
	background: var(--np-swatch, #D9D1C3);
	box-shadow: 0 0 0 1px #948D80;
	cursor: pointer;
	transition: box-shadow .2s, opacity .2s;
}

.np-preview .np-cat .np-cat__swatch:hover {
	box-shadow: 0 0 0 1px var(--np-ink);
}

.np-preview .np-cat .np-cat__swatch[aria-pressed="true"] {
	box-shadow: 0 0 0 2px var(--np-ink);
}

.np-preview .np-cat .np-cat__swatch[aria-pressed="true"]::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 6px;
	border-bottom: 2px solid var(--np-check, #FFFDF9);
	border-left: 2px solid var(--np-check, #FFFDF9);
	transform: translate(-50%, -65%) rotate(-45deg);
}

.np-preview .np-cat .np-cat__swatch.is-light {
	--np-check: var(--np-ink);
}

/* No match with the other filters: faded and struck through, so a faded red does not read as pink. */
.np-preview .np-cat .np-cat__swatch.is-empty {
	background: linear-gradient(to top right, transparent calc(50% - 1px), #5E5C55 calc(50% - 1px), #5E5C55 calc(50% + 1px), transparent calc(50% + 1px)), var(--np-swatch, #D9D1C3);
	opacity: .45;
}

.np-preview .np-cat__color-names:empty {
	display: none;
}

.np-preview .np-cat .np-cat__clear {
	align-self: flex-start;
	margin-top: -14px;
	padding: 4px 0;
	border-bottom: 1px solid currentColor;
	color: var(--np-olive);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.np-preview .np-cat .np-cat__clear:hover {
	color: var(--np-olive-deep);
}

.np-preview .np-cat__help {
	padding: 22px;
	border: 1px solid var(--np-line-header);
	background: var(--np-paper);
}

.np-preview .np-cat__help-title {
	margin: 0;
	color: var(--np-ink);
	font-family: var(--np-serif);
	font-size: 20px;
	line-height: 1.3;
}

.np-preview .np-cat__help-text {
	margin: 10px 0 14px;
	color: var(--np-body);
	font-size: 14px;
	line-height: 1.6;
	text-wrap: balance;
}

.np-preview .np-cat .np-cat__help-link {
	display: inline-block;
	padding: 4px 0;
	color: var(--np-olive);
	font-size: 13px;
	letter-spacing: .1em;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-transform: uppercase;
}

.np-preview .np-cat .np-cat__help-link:hover {
	color: var(--np-olive-deep);
}

/* Sheet parts are mobile only (np-only-mobile hides them on desktop). */
.np-preview .np-cat__backdrop {
	display: none;
}

.np-preview .np-cat__filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--np-ink);
	background: var(--np-paper);
	color: var(--np-ink);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.np-preview .np-cat__filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--np-olive);
	color: var(--np-paper);
	font-size: 11px;
	letter-spacing: 0;
}

/* 4. Results ---------------------------------------------------------------------------------- */
.np-preview .np-cat__results {
	min-width: 0;
}

.np-preview .np-cat__status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
}

.np-preview .np-cat__count {
	margin: 0;
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.5;
}

.np-preview .np-cat .np-cat__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 20px;
}

.np-preview .np-cat__item {
	display: flex;
	min-width: 0;
}

.np-preview .np-cat__item > .np-card {
	flex: 1 1 auto;
	gap: 12px;
}

.np-preview .np-cat .np-card__name {
	font-size: 15px;
}

.np-preview .np-cat .np-card__meta {
	margin-top: 3px;
}

.np-preview .np-cat .np-card__price {
	font-size: 15px;
}

.np-preview .np-cat .np-card__add {
	margin-top: auto;
}

.np-preview .np-cat .np-card__body {
	flex: 0 0 auto;
}

.np-preview .np-cat--xmas .np-card {
	--np-card-label: var(--np-bordo);
}

.np-preview .np-cat__item.is-entering {
	animation: np-cat-in .45s var(--np-ease) both;
}

@keyframes np-cat-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.np-preview .np-cat__empty {
	padding: 56px 32px;
	border: 1px solid var(--np-line);
	background: var(--np-paper);
	text-align: center;
}

.np-preview .np-cat__empty-title {
	margin: 0;
	color: var(--np-ink);
	font-family: var(--np-serif);
	font-size: 26px;
	line-height: 1.25;
}

.np-preview .np-cat__empty-text {
	margin: 10px auto 24px;
	max-width: 440px;
	color: var(--np-body);
	font-size: 15px;
	line-height: 1.6;
}

/* Scroll paging: the sentinel sits at the top of this block; the next cards usually appear long before
   the visitor gets here, so the progress line is only seen on a fast scroll. */
.np-preview .np-cat__more {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 56px;
	padding-bottom: 8px;
}

.np-preview .np-cat__sentinel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	pointer-events: none;
}

.np-preview .np-cat__more[hidden] {
	display: none;
}

.np-preview .np-cat__progress {
	margin: 0;
	color: var(--np-muted);
	font-size: 13px;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
}

.np-preview .np-cat__bar {
	position: relative;
	width: 200px;
	height: 2px;
	background: var(--np-line);
}

.np-preview .np-cat__bar span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	background: var(--np-ink);
	transition: width .3s var(--np-ease);
}

/* 5. Seriyi tamamla band ------------------------------------------------------------------------ */
.np-preview .np-cat-band {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	margin-top: 32px;
	border: 1px solid var(--np-line);
	background: var(--np-paper);
}

.np-preview .np-cat-band.is-beside {
	margin-top: 0;
}

.np-preview .np-cat-band__media {
	position: relative;
	min-height: 340px;
	overflow: hidden;
	background: var(--np-photo);
}

.np-preview .np-cat .np-cat-band__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 60%;
}

.np-preview .np-cat-band__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 40px;
}

.np-preview .np-cat-band__eyebrow {
	margin: 0 0 14px;
	color: var(--np-olive);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.np-preview .np-cat--xmas .np-cat-band__eyebrow {
	color: var(--np-bordo);
}

.np-preview .np-cat .np-cat-band__title {
	margin: 0;
	color: var(--np-ink);
	font-family: var(--np-serif);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}

.np-preview .np-cat-band__title em {
	font-style: italic;
}

.np-preview .np-cat-band__text {
	margin: 16px 0 26px;
	padding-top: 16px;
	border-top: 1px solid var(--np-line);
	color: var(--np-body);
	font-size: 15px;
	line-height: 1.6;
	text-wrap: pretty;
}

.np-preview .np-cat-band__sum {
	white-space: nowrap;
}

.np-preview .np-cat-band__total {
	color: var(--np-ink);
	font-weight: 500;
	white-space: nowrap;
}

.np-preview .np-cat .np-cat-band__btn {
	min-height: 56px;
}

/* Narrow band beside the last cards (tablet, or two free columns). */
@media (min-width: 768px) {
	.np-preview .np-cat-band.is-compact {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.np-preview .np-cat-band.is-compact .np-cat-band__body {
		padding: 28px 28px 30px;
	}

	.np-preview .np-cat .np-cat-band.is-compact .np-cat-band__title {
		font-size: 23px;
		line-height: 1.22;
	}

	.np-preview .np-cat-band.is-compact .np-cat-band__text {
		margin: 14px 0 20px;
		padding-top: 14px;
		font-size: 14px;
	}

	.np-preview .np-cat .np-cat-band.is-compact .np-cat-band__btn {
		min-height: 50px;
	}

	/* One free cell: the band becomes a card-sized tile (photo on top). */
	.np-preview .np-cat-band.is-tile {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		margin-top: 0;
	}

	.np-preview .np-cat-band.is-tile .np-cat-band__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.np-preview .np-cat-band.is-tile .np-cat-band__body {
		justify-content: flex-start;
		padding: 18px 18px 18px;
	}

	.np-preview .np-cat-band.is-tile .np-cat-band__eyebrow {
		margin-bottom: 10px;
		font-size: 11px;
	}

	.np-preview .np-cat .np-cat-band.is-tile .np-cat-band__title {
		font-size: 20px;
		line-height: 1.25;
	}

	.np-preview .np-cat-band.is-tile .np-cat-band__text {
		margin: 12px 0 16px;
		padding-top: 12px;
		font-size: 13px;
		line-height: 1.55;
	}

	.np-preview .np-cat-band.is-tile .np-cat-band__body > div {
		margin-top: auto;
	}

	.np-preview .np-cat .np-cat-band.is-tile .np-cat-band__btn {
		width: 100%;
		min-height: 48px;
		padding-right: 12px;
		padding-left: 12px;
	}
}

/* 6. SEO + no products -------------------------------------------------------------------------- */
.np-preview .np-cat-seo {
	border-top: 1px solid var(--np-line);
	background: var(--np-paper);
}

.np-preview .np-cat-seo__inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 64px 40px;
	text-align: center;
}

.np-preview .np-cat .np-cat-seo__title {
	margin: 0;
	color: var(--np-ink);
	font-family: var(--np-serif);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.3;
}

.np-preview .np-cat-seo__text {
	margin: 16px 0 0;
	color: var(--np-body);
	font-size: 16px;
	line-height: 1.8;
	text-wrap: pretty;
}

.np-preview .np-cat-none {
	padding-top: 72px;
	padding-bottom: 96px;
	text-align: center;
}

.np-preview .np-cat .np-cat-none__title {
	margin: 0;
	font-family: var(--np-serif);
	font-size: 32px;
	line-height: 1.25;
}

.np-preview .np-cat-none__text {
	max-width: 520px;
	margin: 14px auto 28px;
	color: var(--np-body);
	font-size: 16px;
	line-height: 1.7;
}

.np-preview .np-cat-none__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Responsive ---------------------------------------------------------------------------------- */
@media (min-width: 1024px) and (max-width: 1279px) {
	.np-preview .np-cat .np-cat-hero__title {
		font-size: 52px;
	}

	.np-preview .np-cat__body {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 36px;
	}

	.np-preview .np-cat .np-cat__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Desktop: the sticky sidebar scrolls on its own only when it is taller than the window. No
   overscroll-behavior: contain here, so the mouse wheel over the sidebar always reaches the page once the
   sidebar has nothing (left) to scroll. contain stays on the mobile sheet body only. */
@media (min-width: 1024px) {
	.np-preview .np-cat__filters {
		max-height: calc(100vh - 48px);
		overflow-y: auto;
		overscroll-behavior: auto;
		scrollbar-width: thin;
		/* room for focus rings inside the scroll box */
		margin: -4px;
		padding: 4px;
	}
}

@media (max-width: 1023px) {
	.np-preview .np-cat-hero {
		min-height: 340px;
	}

	.np-preview .np-cat-hero__text {
		padding: 44px 36px 44px 0;
	}

	.np-preview .np-cat-hero__media {
		min-height: 340px;
	}

	.np-preview .np-cat .np-cat-hero__title {
		font-size: 44px;
	}

	.np-preview .np-cat-hero__desc {
		margin-top: 16px;
		font-size: 16px;
	}

	.np-preview .np-cat-hero__meta {
		margin-top: 20px;
		padding-top: 14px;
	}

	.np-preview .np-cat__toolbar {
		display: block;
		padding-top: 24px;
	}

	/* One scrolling row of chips, full-bleed. */
	.np-preview .np-cat__chips {
		flex-wrap: nowrap;
		gap: 8px;
		margin: 0 calc(-1 * var(--np-gutter));
		padding: 0 var(--np-gutter) 2px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: var(--np-gutter);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.np-preview .np-cat__chips::-webkit-scrollbar {
		display: none;
	}

	.np-preview .np-cat__chips--empty {
		display: none;
	}

	.np-preview .np-cat .np-cat__chip {
		flex: none;
		min-height: 42px;
		padding: 0 16px;
		font-size: 14px;
	}

	.np-preview .np-cat__controls {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 10px;
		margin: 16px 0 0;
	}

	.np-preview .np-cat__controls > :only-child {
		grid-column: 1 / -1;
	}

	.np-preview .np-cat__sort {
		display: block;
		min-width: 0;
	}

	.np-preview .np-cat__sort-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.np-preview .np-cat .np-cat__select {
		width: 100%;
		min-width: 0;
		font-size: 16px;
	}

	.np-preview .np-cat__body {
		display: block;
		padding-top: 20px;
		padding-bottom: 72px;
	}

	.np-preview .np-cat .np-cat__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px 16px;
	}

	/* Filters become a slide-up sheet. */
	.np-preview .np-cat__backdrop {
		position: fixed;
		inset: 0;
		z-index: 1000;
		display: block;
		background: rgba(35, 35, 29, .42);
		opacity: 0;
		transition: opacity .25s;
	}

	.np-preview .np-cat__backdrop[hidden] {
		display: none;
	}

	.np-preview .np-cat.is-filters-open .np-cat__backdrop {
		opacity: 1;
	}

	.np-preview .np-cat__filters {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		top: auto;
		z-index: 1001;
		display: flex;
		flex-direction: column;
		max-height: min(86vh, 720px);
		max-height: min(86dvh, 720px);
		background: var(--np-paper);
		box-shadow: 0 -12px 40px rgba(35, 35, 29, .16);
		transform: translateY(100%);
		visibility: hidden;
		transition: transform .32s var(--np-ease), visibility 0s linear .32s;
	}

	.np-preview .np-cat.is-filters-open .np-cat__filters {
		transform: none;
		visibility: visible;
		transition: transform .32s var(--np-ease), visibility 0s;
	}

	.np-preview .np-cat__sheet-head {
		display: flex;
		flex: none;
		align-items: center;
		justify-content: space-between;
		height: 60px;
		padding: 0 8px 0 var(--np-gutter);
		border-bottom: 1px solid var(--np-line);
	}

	.np-preview .np-cat .np-cat__sheet-title {
		margin: 0;
		font-family: var(--np-serif);
		font-size: 22px;
		line-height: 1.2;
	}

	.np-preview .np-cat .np-cat__sheet-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		color: var(--np-ink);
	}

	.np-preview .np-cat__sheet-body {
		flex: 1 1 auto;
		gap: 28px;
		min-height: 0;
		padding: 24px var(--np-gutter) 28px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.np-preview .np-cat__sheet-foot {
		display: grid;
		flex: none;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 10px;
		padding: 12px var(--np-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--np-line);
		background: var(--np-paper);
	}

	.np-preview .np-cat .np-cat__sheet-foot .np-btn {
		min-height: 50px;
		padding: 0 12px;
	}

	.np-preview .np-cat .np-cat__input {
		font-size: 16px;
	}

	.np-preview .np-cat .np-cat__option {
		min-height: 40px;
		font-size: 16px;
	}

	.np-preview .np-cat .np-cat__swatch {
		width: 36px;
		height: 36px;
	}

	.np-preview .np-cat-band__media {
		min-height: 300px;
	}

	.np-preview .np-cat-band__body {
		padding: 32px;
	}

	.np-preview .np-cat .np-cat-band__title {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.np-preview .np-cat-hero {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.np-preview .np-cat-hero__media {
		flex: none;
		min-height: 0;
		aspect-ratio: 3 / 2;
	}

	.np-preview .np-cat-hero__text {
		padding: 24px var(--np-gutter) 28px;
	}

	.np-preview .np-cat-hero--plain .np-cat-hero__text {
		padding: 32px var(--np-gutter) 28px;
	}

	.np-preview .np-cat-crumbs {
		margin-bottom: 14px;
		font-size: 11px;
		letter-spacing: .14em;
	}

	.np-preview .np-cat-crumbs__sep {
		margin: 0 8px;
	}

	.np-preview .np-cat .np-cat-hero__title {
		font-size: 38px;
		line-height: 1.08;
	}

	.np-preview .np-cat-hero__desc {
		margin-top: 12px;
		font-size: 15px;
		line-height: 1.6;
	}

	.np-preview .np-cat-hero__meta {
		margin-top: 16px;
		padding-top: 12px;
		font-size: 12px;
	}

	.np-preview .np-cat .np-cat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 12px;
	}

	.np-preview .np-cat .np-card__name {
		font-size: 14px;
	}

	.np-preview .np-cat .np-card__price {
		font-size: 15px;
	}

	.np-preview .np-cat__count {
		font-size: 13px;
	}

	.np-preview .np-cat__status {
		margin-bottom: 16px;
	}

	.np-preview .np-cat-band {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 28px;
	}

	.np-preview .np-cat-band__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.np-preview .np-cat-band__body {
		padding: 24px 20px 28px;
	}

	.np-preview .np-cat .np-cat-band__title {
		font-size: 24px;
	}

	.np-preview .np-cat .np-cat-band__btn {
		width: 100%;
		white-space: normal;
	}

	.np-preview .np-cat__empty {
		padding: 40px 20px;
	}

	.np-preview .np-cat__more {
		margin-top: 40px;
	}

	.np-preview .np-cat-seo__inner {
		padding: 48px var(--np-gutter);
		text-align: left;
	}

	.np-preview .np-cat .np-cat-seo__title {
		font-size: 24px;
	}

	.np-preview .np-cat-seo__text {
		font-size: 15px;
		line-height: 1.75;
	}

	.np-preview .np-cat-none {
		padding-top: 48px;
		padding-bottom: 64px;
	}

	.np-preview .np-cat .np-cat-none__title {
		font-size: 26px;
	}

	.np-preview .np-cat-none__actions {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.np-preview .np-cat__filters,
	.np-preview .np-cat__backdrop,
	.np-preview .np-cat__bar span {
		transition: none !important;
	}

	.np-preview .np-cat__item.is-entering {
		animation: none;
	}
}
