/*
 * Redesigned catalog pages (inc/catalog-look.php): header, toolbar, chips, grid, tiles and filters. The card itself and
 * its sheets are in product-card.css, which every list with the card shares. Every rule starts with .nn-catalog-look,
 * which the Used CSS safelist keeps whole: the filter drawer opens by a class the parent's script puts on <body>.
 */

/* Header */
.nn-catalog-look .woocommerce-products-header {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}
.nn-catalog-look .nn-cat-head {
	display: flex;
	flex: 1 1 auto; /* the parent makes the header a flex row when the category has an image */
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	padding: 4px 0 16px;
}
.nn-catalog-look .nn-cat-head__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.nn-catalog-look .nn-cat-head__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
}
.nn-catalog-look .nn-cat-head h1.page-title {
	margin: 0;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.nn-catalog-look .nn-cat-intro p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
/* Up to tablets the header shows the first paragraph; the whole text is below the grid */
@media (max-width: 992px) {
	.nn-catalog-look .nn-cat-intro > :not(p:first-of-type) {
		display: none;
	}
}
.nn-catalog-look .nn-cat-more {
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
/* The category image, whole at its own shape: full width above the title up to tablets, beside the text on desktop */
.nn-catalog-look .nn-cat-head__img {
	display: block;
	order: -1;
	width: 100%;
	height: auto;
	max-height: 420px;
	border-radius: 14px;
	object-fit: cover;
}

/* Count, Filter and sort; the subcategories as chips */
.nn-catalog-look .nn-cat-bar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eeebe5;
}
.nn-catalog-look .nn-cat-chips {
	display: flex;
	gap: 8px;
	margin: 0 -1em;
	padding: 2px 1em;
	overflow-x: auto;
	scrollbar-width: none;
}
.nn-catalog-look .nn-cat-chips::-webkit-scrollbar {
	display: none;
}
.nn-catalog-look a.nn-cat-chip,
.nn-catalog-look label.nn-cat-chip {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid #d9d5cd;
	border-radius: 999px;
	background: #fff;
	color: #1f1d1a;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.nn-catalog-look a.nn-cat-chip.is-active {
	border-color: #1f1d1a;
	background: #1f1d1a;
	color: #fff;
	font-weight: 600;
}
.nn-catalog-look .nn-cat-chip__count {
	color: #5f5b55;
	font-weight: 400;
}
/* "More categories" is for desktop; phones scroll through every chip */
.nn-catalog-look .nn-cat-chips__toggle,
.nn-catalog-look label.nn-cat-chip--more {
	display: none;
}
.nn-catalog-look .is-active .nn-cat-chip__count {
	color: rgba(255, 255, 255, 0.75);
}
.nn-catalog-look .nn-cat-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nn-catalog-look .nn-cat-count {
	margin: 0;
	color: #5f5b55;
	font-size: 14px;
	white-space: nowrap;
}
/* Phones: the count sits by the title, Filter and sort share the row */
.nn-catalog-look .nn-cat-tools .nn-cat-count {
	display: none;
}
.nn-catalog-look .nn-cat-tools > .nn-cat-filter,
.nn-catalog-look .nn-cat-tools > .woocommerce-ordering {
	flex: 1 1 0;
	min-width: 0;
}
.nn-catalog-look .nn-cat-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid #d9d5cd;
	border-radius: 10px;
	background: #fff;
	color: #1f1d1a;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.nn-catalog-look .nn-cat-filter svg {
	pointer-events: none;
}
.nn-catalog-look .nn-cat-tools .woocommerce-ordering {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
.nn-catalog-look .nn-cat-tools select.orderby {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 34px 0 14px;
	border: 1px solid #d9d5cd;
	border-radius: 10px;
	background-color: #fff;
	color: #1f1d1a;
	font-size: 14px;
	font-weight: 600;
}
/* Sorting sits at the top now; the bottom keeps the result count and products per page */
.nn-catalog-look .shoptimizer-sorting.sorting-end .woocommerce-ordering {
	display: none !important;
}

/* Grid: 2 columns on phones, 3 on tablets, 4 on wide screens */
.nn-catalog-look .site-main ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 12px;
	width: auto; /* the parent's calc(100% + 30px) ran the last column past the content edge */
	margin: 0;
}

/* Grid tiles: the Catalog tile widget (inc/catalog-tile-widget.php) */
.nn-catalog-look .site-main ul.products li.nn-cat-tile {
	display: flex;
	flex-direction: column;
	grid-column: 1 / -1;
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	background: var(--nn-tile-bg, #2d4838);
	color: #fff;
	list-style: none;
}
.nn-catalog-look .nn-cat-tile__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 22px 20px;
}
.nn-catalog-look .nn-cat-tile p {
	margin: 0;
}
.nn-catalog-look .nn-cat-tile__kicker {
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nn-catalog-look .nn-cat-tile__title {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.nn-catalog-look .nn-cat-tile__text {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	line-height: 1.5;
}
.nn-catalog-look .nn-cat-tile__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}
.nn-catalog-look .nn-cat-tile__pill {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.nn-catalog-look .nn-cat-tile--light {
	color: #1f2a24;
}
.nn-catalog-look .nn-cat-tile--light .nn-cat-tile__kicker {
	color: rgba(31, 42, 36, 0.7);
}
.nn-catalog-look .nn-cat-tile--light .nn-cat-tile__title,
.nn-catalog-look .nn-cat-tile--light .nn-cat-tile__pill {
	color: #1f2a24;
}
.nn-catalog-look .nn-cat-tile--light .nn-cat-tile__text {
	color: rgba(31, 42, 36, 0.8);
}
.nn-catalog-look .nn-cat-tile--light .nn-cat-tile__pill {
	background: rgba(0, 0, 0, 0.06);
}
/* Image on top on phones, the right half from tablets up */
.nn-catalog-look .nn-cat-tile__media {
	position: relative;
	order: -1;
	aspect-ratio: 16 / 10;
}
.nn-catalog-look .nn-cat-tile__media img.nn-cat-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Article tile (inc/catalog-articles.php): a card in the grid's rhythm leading to a blog article */
.nn-catalog-look .site-main ul.products li.nn-cat-article {
	display: flex;
	align-self: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nn-catalog-look .nn-cat-article__link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	color: #1f1d1a;
	text-decoration: none;
}
.nn-catalog-look .nn-cat-article__img {
	position: relative;
	display: block;
	margin-bottom: 4px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 14px;
	background: #f3f2ed;
}
.nn-catalog-look .nn-cat-article__img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.nn-catalog-look .nn-cat-article__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #fff;
	color: #1f1d1a;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
}
.nn-catalog-look .nn-cat-article__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.nn-catalog-look .nn-cat-article__text {
	display: -webkit-box;
	overflow: hidden;
	color: #5f5b55;
	font-size: 13px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
/* Reading, not buying: an outline at the height of the buy buttons */
.nn-catalog-look .nn-cat-article__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: auto;
	padding: 0 12px;
	border: 1.5px solid var(--nn-color-primary, #2d4838);
	border-radius: 10px;
	color: var(--nn-color-primary, #2d4838);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}
.nn-catalog-look .nn-cat-article__link:hover .nn-cat-article__cta,
.nn-catalog-look .nn-cat-article__link:focus-visible .nn-cat-article__cta {
	background: #e7eee8;
}
@media (hover: hover) {
	.nn-catalog-look .nn-cat-article__link:hover .nn-cat-article__img img {
		transform: scale(1.04);
	}
	.nn-catalog-look .nn-cat-article__link:hover .nn-cat-article__title {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

/* The rest of the category text, below the grid */
.nn-catalog-look .nn-cat-about {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 32px 0 0;
	padding-top: 28px;
	border-top: 1px solid #eeebe5;
	scroll-margin-top: 120px;
}
.nn-catalog-look .nn-cat-about__text h2 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
}
.nn-catalog-look .nn-cat-about__text p {
	font-size: 15px;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.nn-catalog-look .site-main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 36px 20px;
	}
	.nn-catalog-look .site-main ul.products li.nn-cat-tile {
		grid-column: span 2;
	}
	.nn-catalog-look .site-main ul.products li.nn-cat-tile--image {
		flex-direction: row;
	}
	.nn-catalog-look .nn-cat-tile__body {
		padding: 32px;
	}
	.nn-catalog-look .nn-cat-tile--image .nn-cat-tile__body,
	.nn-catalog-look .nn-cat-tile--image .nn-cat-tile__media {
		flex: 1 1 50%;
		min-width: 0;
	}
	.nn-catalog-look .nn-cat-tile__media {
		order: 0;
		aspect-ratio: auto;
	}
	.nn-catalog-look .nn-cat-tile__title {
		font-size: 28px;
	}
}

@media (min-width: 993px) {
	.nn-catalog-look .nn-cat-head h1.page-title {
		font-size: 44px;
	}
	/* The whole category text, so no "Read more" and nothing below the grid */
	.nn-catalog-look .nn-cat-intro p {
		display: block;
		overflow: visible;
		font-size: 15px;
		-webkit-line-clamp: none;
	}
	.nn-catalog-look .nn-cat-intro p + p {
		margin-top: 12px;
	}
	.nn-catalog-look .nn-cat-head .nn-cat-more,
	.nn-catalog-look .nn-cat-about {
		display: none;
	}
	.nn-catalog-look .nn-cat-count--head {
		display: none;
	}
	.nn-catalog-look .nn-cat-tools .nn-cat-count {
		display: block;
		margin-right: auto;
	}
	.nn-catalog-look .nn-cat-tools > .nn-cat-filter,
	.nn-catalog-look .nn-cat-tools > .woocommerce-ordering {
		flex: none;
	}
	.nn-catalog-look .nn-cat-tools select.orderby {
		width: auto;
	}
	.nn-catalog-look .nn-cat-head {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 48px;
		padding-bottom: 64px;
	}
	.nn-catalog-look .nn-cat-head__text {
		gap: 16px;
		max-width: 720px;
	}
	.nn-catalog-look .nn-cat-head__img {
		flex: 0 0 39%;
		order: 0;
		width: 39%;
		max-height: 360px;
		border-radius: 18px;
	}
	/* The chips and the count with Filter and sort on one row; filters in use below */
	.nn-catalog-look .nn-cat-bar {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 14px 24px;
		margin-bottom: 44px;
		padding-bottom: 38px;
	}
	.nn-catalog-look .nn-cat-bar > .nn-cat-tools {
		flex: 1 1 auto;
	}
	.nn-catalog-look .nn-cat-bar--chips > .nn-cat-chips {
		flex: 1 1 0;
		min-width: 0;
	}
	.nn-catalog-look .nn-cat-bar--chips > .nn-cat-tools {
		flex: none;
	}
	.nn-catalog-look .nn-cat-bar--chips .nn-cat-tools .nn-cat-count {
		margin-right: 12px;
	}
	.nn-catalog-look .nn-cat-bar > .nn-cat-active {
		flex: 0 0 100%;
		order: 3;
	}
	.nn-catalog-look .nn-cat-chips {
		position: relative;
		flex-wrap: wrap;
		margin: 0;
		padding: 0;
		overflow: visible;
		container: nn-chips / inline-size;
		counter-reset: nn-cat-hidden;
	}
	/* Closed it stays one line: should "All", the category in view and the button not fit, that chip's name shortens */
	.nn-catalog-look .nn-cat-chips:has(> .nn-cat-chips__toggle:not(:checked)) {
		flex-wrap: nowrap;
	}
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.is-active {
		flex: 0 1 auto;
		min-width: 0;
	}
	.nn-catalog-look .nn-cat-chip__name {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.nn-catalog-look a.nn-cat-chip,
	.nn-catalog-look label.nn-cat-chip {
		min-height: 44px;
		font-size: 15px;
	}
	/* The chips that do not fit the row wait behind "More categories" (the @container rules below show them) */
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.is-extra {
		position: absolute;
		top: 0;
		left: 0;
		visibility: hidden;
		counter-increment: nn-cat-hidden;
	}
	.nn-catalog-look .nn-cat-chips__n::before {
		content: counter(nn-cat-hidden);
	}
	.nn-catalog-look .nn-cat-chips__toggle {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		width: 1px;
		height: 1px;
		margin: 0;
		opacity: 0;
		pointer-events: none;
	}
	.nn-catalog-look label.nn-cat-chip--more {
		display: inline-flex;
		color: #5f5b55;
		cursor: pointer;
		user-select: none;
	}
	.nn-catalog-look .nn-cat-chip--more svg {
		transition: transform 0.2s ease;
	}
	.nn-catalog-look .nn-cat-chips__close,
	.nn-catalog-look .nn-cat-chips__toggle:checked ~ .nn-cat-chip--more .nn-cat-chips__open {
		display: none;
	}
	.nn-catalog-look .nn-cat-chips__toggle:checked ~ .nn-cat-chip--more .nn-cat-chips__close {
		display: inline;
	}
	.nn-catalog-look .nn-cat-chips__toggle:checked ~ .nn-cat-chip--more svg {
		transform: rotate(180deg);
	}
	.nn-catalog-look .nn-cat-chips .nn-cat-chips__toggle:checked ~ a.nn-cat-chip.is-extra {
		position: static;
		visibility: visible;
	}
	.nn-catalog-look .nn-cat-chips__toggle:focus-visible ~ .nn-cat-chip--more {
		outline: 2px solid #1f1d1a;
		outline-offset: 2px;
	}

	/* No sidebar column: the filters open as the same drawer as on phones */
	.nn-catalog-look.woocommerce.archive #primary,
	.nn-catalog-look.search-results #primary {
		float: none;
		width: 100%;
		margin: 0;
	}
	.nn-catalog-look.woocommerce.archive #secondary,
	.nn-catalog-look.search-results #secondary {
		position: fixed;
		z-index: 102;
		top: 0;
		left: -340px;
		float: none;
		width: 340px !important;
		height: 100%;
		margin: 0;
		padding: 1.5rem;
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		background: #fff;
		transition: all 0.35s;
	}
	.nn-catalog-look.woocommerce.archive.filter-open #secondary,
	.nn-catalog-look.search-results.filter-open #secondary {
		left: 0;
		visibility: visible;
		opacity: 1;
	}
	.nn-catalog-look.filter-open {
		overflow: hidden;
	}
	.nn-catalog-look.filter-open .mobile-overlay {
		display: block;
		position: fixed;
		z-index: 101;
		inset: 0;
		visibility: visible;
		opacity: 1;
		background: rgba(20, 18, 15, 0.45);
		cursor: pointer;
	}
	.nn-catalog-look.filter-open .filters.close-drawer {
		display: block;
		position: fixed;
		z-index: 299;
		top: 10px;
		left: 350px;
		width: 40px;
		height: 40px;
		padding: 0;
		visibility: visible;
		background: transparent;
		cursor: pointer;
	}
}

/* Desktop chips: each that may fold away carries the row width it needs (nn-fit-N, inc/catalog-look.php); "More
   categories" carries the width at which they all fit */
@container nn-chips (min-width: 400px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-400 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-400 {
		display: none;
	}
}
@container nn-chips (min-width: 440px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-440 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-440 {
		display: none;
	}
}
@container nn-chips (min-width: 480px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-480 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-480 {
		display: none;
	}
}
@container nn-chips (min-width: 520px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-520 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-520 {
		display: none;
	}
}
@container nn-chips (min-width: 560px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-560 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-560 {
		display: none;
	}
}
@container nn-chips (min-width: 600px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-600 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-600 {
		display: none;
	}
}
@container nn-chips (min-width: 640px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-640 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-640 {
		display: none;
	}
}
@container nn-chips (min-width: 680px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-680 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-680 {
		display: none;
	}
}
@container nn-chips (min-width: 720px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-720 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-720 {
		display: none;
	}
}
@container nn-chips (min-width: 760px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-760 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-760 {
		display: none;
	}
}
@container nn-chips (min-width: 800px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-800 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-800 {
		display: none;
	}
}
@container nn-chips (min-width: 840px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-840 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-840 {
		display: none;
	}
}
@container nn-chips (min-width: 880px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-880 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-880 {
		display: none;
	}
}
@container nn-chips (min-width: 920px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-920 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-920 {
		display: none;
	}
}
@container nn-chips (min-width: 960px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-960 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-960 {
		display: none;
	}
}
@container nn-chips (min-width: 1000px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-1000 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-1000 {
		display: none;
	}
}
@container nn-chips (min-width: 1040px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-1040 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-1040 {
		display: none;
	}
}
@container nn-chips (min-width: 1080px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-1080 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-1080 {
		display: none;
	}
}
@container nn-chips (min-width: 1120px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-1120 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-1120 {
		display: none;
	}
}
@container nn-chips (min-width: 1160px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-1160 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-1160 {
		display: none;
	}
}
@container nn-chips (min-width: 1200px) {
	.nn-catalog-look .nn-cat-chips a.nn-cat-chip.nn-fit-1200 {
		position: static;
		visibility: visible;
		counter-increment: none;
	}
	.nn-catalog-look .nn-cat-chips label.nn-cat-chip.nn-fit-1200 {
		display: none;
	}
}

/* Pages with Shoptimizer grid features: wide features fit the 3 columns */
@media (min-width: 993px) and (max-width: 1199px) {
	.nn-catalog-look .site-main ul.products.nn-grid-m > li.cg-grid-feature {
		grid-column: span min(var(--span, 1), 3);
	}
}

@media (min-width: 1200px) {
	.nn-catalog-look .site-main ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 40px 24px;
	}
	/* Grid features are placed against the store's column count (inc/catalog-look.php) */
	.nn-catalog-look .site-main ul.products.nn-grid-m {
		grid-template-columns: repeat(var(--nn-grid-cols, 4), minmax(0, 1fr));
	}
}

/* Filter drawer: whole rows toggle, no search box (the header has one), clear and show at the bottom */
.nn-catalog-look #secondary .widget_search,
.nn-catalog-look #secondary .widget_block.widget_search {
	display: none;
}
.nn-catalog-look #secondary .woocommerce-widget-layered-nav-list__item {
	position: relative;
	cursor: pointer;
}
.nn-catalog-look #secondary .woocommerce-widget-layered-nav-list__item a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.nn-catalog-look .nn-filter-actions {
	display: grid;
	position: sticky;
	bottom: -1.5rem;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 10px;
	margin: 20px -1.5rem -1.5rem;
	padding: 14px 1.5rem 20px;
	border-top: 1px solid #eeebe5;
	background: #fff;
}
.nn-catalog-look .nn-filter-actions__clear,
.nn-catalog-look .nn-filter-actions__apply {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.nn-catalog-look .nn-filter-actions__clear {
	border: 1px solid #d9d5cd;
	color: #1f1d1a;
}
.nn-catalog-look .nn-filter-actions__apply {
	border: 0;
	background: var(--nn-color-primary, #2d4838);
	color: #fff;
}

/* Filters in use, each removable, and one link to clear them all */
.nn-catalog-look .nn-cat-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.nn-catalog-look a.nn-cat-active__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 10px 0 14px;
	border-radius: 999px;
	background: #e7eee8;
	color: #2d4838;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.nn-catalog-look a.nn-cat-active__chip span {
	font-size: 18px;
	line-height: 1;
}
.nn-catalog-look a.nn-cat-active__clear {
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
