:root {
	--nq-accent: #d64024;
	--nq-secondary: #1f6b55;
	--nq-ink: #171a1f;
	--nq-muted: #626870;
	--nq-line: #dfe2e1;
	--nq-surface: #f4f6f5;
	--nq-white: #ffffff;
	--nq-radius: 6px;
}

.nq-template-main,
.nq-product-view,
.nq-catalog {
	background: var(--nq-white);
	color: var(--nq-ink);
}

.nq-product-wrap {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.nq-catalog-wrap {
	width: min(1280px, calc(100% - 48px));
	margin-inline: auto;
}

.nq-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	padding-block: 22px;
	color: var(--nq-muted);
	font-size: 13px;
	line-height: 1.5;
}

.nq-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.nq-breadcrumbs a:hover,
.nq-breadcrumbs a:focus-visible {
	color: var(--nq-accent);
}

.nq-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
	gap: 48px;
	align-items: start;
	padding: 18px 0 72px;
}

.nq-product-media,
.nq-gallery,
.nq-gallery-main,
.nq-gallery-main a {
	min-width: 0;
}

.nq-gallery-main {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	margin: 0;
	aspect-ratio: 1;
	background: #f7f8f8;
	border: 1px solid var(--nq-line);
	border-radius: var(--nq-radius);
	overflow: hidden;
}

.nq-gallery-main a {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.nq-gallery-main img {
	display: block;
	width: auto;
	height: auto;
	max-width: calc(100% - 56px);
	max-height: calc(100% - 56px);
	object-fit: contain;
	filter: drop-shadow(0 14px 22px rgb(23 26 31 / 7%));
}

.nq-gallery-zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	background: rgb(255 255 255 / 92%);
	border: 1px solid var(--nq-line);
	border-radius: 50%;
	color: var(--nq-ink);
	font-size: 15px;
	box-shadow: 0 8px 20px rgb(23 26 31 / 10%);
}

.nq-gallery-counter {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 8px;
	background: rgb(255 255 255 / 92%);
	border: 1px solid var(--nq-line);
	border-radius: 4px;
	color: var(--nq-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.nq-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	padding: 2px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

.nq-gallery-thumb {
	display: grid;
	place-items: center;
	flex: 0 0 76px;
	width: 76px;
	height: 76px;
	padding: 5px;
	background: var(--nq-white);
	border: 1px solid var(--nq-line);
	border-radius: 4px;
	cursor: pointer;
}

.nq-gallery-thumb:hover,
.nq-gallery-thumb:focus-visible,
.nq-gallery-thumb.is-active {
	border-color: var(--nq-accent);
	box-shadow: inset 0 0 0 1px var(--nq-accent);
}

.nq-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nq-product-placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	background: var(--nq-surface);
	border: 1px solid var(--nq-line);
	border-radius: var(--nq-radius);
	color: var(--nq-muted);
	font-size: 42px;
	font-weight: 700;
}

.nq-product-summary {
	min-width: 0;
	padding-top: 24px;
}

.nq-product-kicker,
.nq-eyebrow,
.nq-product-card-category {
	margin: 0 0 14px;
	color: var(--nq-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nq-product-kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nq-product-name {
	margin: 0 0 12px;
	color: var(--nq-secondary);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.35;
	letter-spacing: 0;
}

.nq-product-kicker a {
	color: inherit;
	text-decoration: none;
}

.nq-product-title {
	max-width: 26ch;
	margin: 0;
	color: var(--nq-ink);
	font-size: 40px;
	font-weight: 650;
	line-height: 1.12;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.nq-product-lead {
	max-width: 56ch;
	margin: 22px 0 0;
	color: var(--nq-muted);
	font-size: 17px;
	line-height: 1.65;
}

.nq-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.nq-button,
.nq-filter-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.nq-button-primary,
.nq-filter-submit {
	background: var(--nq-accent);
	color: var(--nq-white);
}

.nq-button-primary:hover,
.nq-button-primary:focus-visible,
.nq-filter-submit:hover,
.nq-filter-submit:focus-visible {
	background: var(--nq-ink);
	color: var(--nq-white);
}

.nq-button-secondary {
	background: transparent;
	border-color: var(--nq-secondary);
	color: var(--nq-secondary);
}

.nq-button-secondary:hover,
.nq-button-secondary:focus-visible {
	background: var(--nq-secondary);
	color: var(--nq-white);
}

.nq-product-description {
	padding: 72px 0;
	border-top: 1px solid var(--nq-line);
}

.nq-product-description-inner {
	display: grid;
	grid-template-columns: 190px minmax(0, 760px);
	gap: 64px;
	justify-content: center;
}

.nq-section-label {
	align-self: start;
	margin: 4px 0 0;
	color: var(--nq-secondary);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nq-product-copy {
	min-width: 0;
	color: #30343a;
	font-size: 17px;
	line-height: 1.72;
}

.nq-product-copy > :first-child {
	margin-top: 0;
}

.nq-product-copy > :last-child {
	margin-bottom: 0;
}

.nq-product-copy h2,
.nq-product-copy h3,
.nq-product-copy h4 {
	margin: 1.8em 0 0.55em;
	color: var(--nq-ink);
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0;
}

.nq-product-copy h2 {
	font-size: 30px;
}

.nq-product-copy h3 {
	font-size: 22px;
}

.nq-product-copy ul,
.nq-product-copy ol {
	padding-left: 1.25em;
}

.nq-product-terms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	padding: 34px 0 72px;
	border-top: 1px solid var(--nq-line);
}

.nq-term-group h2 {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nq-term-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nq-term-links a {
	display: inline-flex;
	padding: 7px 10px;
	background: var(--nq-surface);
	border-radius: 4px;
	color: var(--nq-ink);
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
}

.nq-term-links a:hover,
.nq-term-links a:focus-visible {
	background: var(--nq-ink);
	color: var(--nq-white);
}

.nq-related-products {
	padding: 68px 0 78px;
	background: var(--nq-surface);
	border-top: 1px solid var(--nq-line);
}

.nq-related-products h2 {
	margin: 0 0 28px;
	font-size: 34px;
	font-weight: 650;
	line-height: 1.15;
	letter-spacing: 0;
}

.nq-catalog-header {
	max-width: 850px;
	padding: 60px 0 34px;
}

.nq-catalog-header h1 {
	margin: 0;
	font-size: 58px;
	font-weight: 650;
	line-height: 1.03;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.nq-catalog-intro {
	max-width: 760px;
	margin-top: 18px;
	color: var(--nq-muted);
	font-size: 17px;
	line-height: 1.6;
}

.nq-catalog-filters {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.65fr) auto auto;
	gap: 10px;
	align-items: center;
	padding: 18px 0;
	border-block: 1px solid var(--nq-line);
}

.nq-filter-search input,
.nq-filter-select {
	width: 100%;
	height: 46px;
	padding: 0 13px;
	background: var(--nq-white);
	border: 1px solid #bfc4c2;
	border-radius: 4px;
	color: var(--nq-ink);
	font-size: 14px;
}

.nq-filter-search input:focus,
.nq-filter-select:focus {
	border-color: var(--nq-accent);
	box-shadow: 0 0 0 2px rgb(214 64 36 / 16%);
	outline: 0;
}

.nq-filter-reset {
	color: var(--nq-muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nq-catalog-status {
	padding: 20px 0;
	color: var(--nq-muted);
	font-size: 13px;
}

.nq-product-grid {
	display: grid;
	grid-template-columns: repeat(var(--nq-catalog-columns, 3), minmax(0, 1fr));
	gap: 24px;
}

.nq-product-grid-related {
	--nq-catalog-columns: 4;
}

.nq-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--nq-white);
	border: 1px solid var(--nq-line);
	border-radius: var(--nq-radius);
	overflow: hidden;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nq-product-card:hover,
.nq-product-card:focus-within {
	border-color: #b8bcbb;
	box-shadow: 0 12px 30px rgb(23 26 31 / 8%);
	transform: translateY(-2px);
}

.nq-product-card-media {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	background: var(--nq-surface);
	overflow: hidden;
}

.nq-product-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 20px;
	transition: transform 220ms ease;
}

.nq-product-card:hover .nq-product-card-media img {
	transform: scale(1.025);
}

.nq-card-placeholder {
	color: var(--nq-muted);
	font-size: 30px;
	font-weight: 700;
}

.nq-product-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.nq-product-card-category {
	margin-bottom: 8px;
	font-size: 10px;
}

.nq-product-card-title {
	margin: 0;
	font-size: 20px;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.nq-product-card-title a {
	color: var(--nq-ink);
	text-decoration: none;
}

.nq-product-card-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	margin-top: 22px;
	color: var(--nq-secondary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.nq-product-card-link:hover,
.nq-product-card-link:focus-visible {
	color: var(--nq-accent);
}

.nq-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	padding: 48px 0 72px;
}

.nq-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	min-height: 42px;
	padding: 7px 11px;
	border: 1px solid var(--nq-line);
	border-radius: 4px;
	color: var(--nq-ink);
	font-size: 13px;
	text-decoration: none;
}

.nq-pagination .page-numbers.current,
.nq-pagination a.page-numbers:hover,
.nq-pagination a.page-numbers:focus-visible {
	background: var(--nq-ink);
	border-color: var(--nq-ink);
	color: var(--nq-white);
}

.nq-empty-state,
.nq-editor-notice {
	margin: 20px 0 72px;
	padding: 28px;
	background: var(--nq-surface);
	border-left: 3px solid var(--nq-accent);
	color: var(--nq-muted);
}

@media (max-width: 1024px) {
	.nq-product-hero {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
		gap: 38px;
	}

	.nq-product-title {
		font-size: 36px;
	}

	.nq-product-description-inner {
		grid-template-columns: 150px minmax(0, 700px);
		gap: 36px;
	}

	.nq-product-grid {
		--nq-catalog-columns: 2 !important;
	}

	.nq-catalog-filters {
		grid-template-columns: 1fr 1fr auto;
	}

	.nq-filter-reset {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.nq-product-wrap,
	.nq-catalog-wrap {
		width: min(100% - 28px, 1280px);
	}

	.nq-breadcrumbs {
		overflow: hidden;
		white-space: nowrap;
	}

	.nq-breadcrumbs span:last-child {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.nq-product-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
		padding: 10px 0 52px;
	}

	.nq-gallery-main img {
		max-width: calc(100% - 32px);
		max-height: calc(100% - 32px);
	}

	.nq-product-summary {
		padding-top: 0;
	}

	.nq-product-title {
		max-width: none;
		font-size: 30px;
		line-height: 1.12;
	}

	.nq-product-lead {
		margin-top: 16px;
		font-size: 16px;
	}

	.nq-product-actions,
	.nq-button {
		width: 100%;
	}

	.nq-product-description {
		padding: 48px 0;
	}

	.nq-product-description-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.nq-product-copy {
		font-size: 16px;
	}

	.nq-product-terms {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-bottom: 52px;
	}

	.nq-related-products {
		padding: 48px 0 56px;
	}

	.nq-catalog-header {
		padding-top: 42px;
	}

	.nq-catalog-header h1 {
		font-size: 40px;
	}

	.nq-catalog-filters {
		grid-template-columns: 1fr;
	}

	.nq-filter-submit,
	.nq-filter-reset {
		width: 100%;
	}

	.nq-filter-reset {
		grid-column: auto;
		padding: 8px 0;
		text-align: center;
	}

	.nq-product-grid {
		--nq-catalog-columns: 1 !important;
	}
}
