/*
 * Subcategory archive hero + shared PLP tokens.
 */

:root {
	--ngs-green: #78b82a;
	--ngs-green-dark: #559313;
	--ngs-ink: #111;
	--ngs-muted: #626a64;
	--ngs-line: #e8ebe7;
	--ngs-soft: #f5f7f4;
}

/* -------------------------------------------------------------------------
   Subcategory hero
   ------------------------------------------------------------------------- */

.ngs-cat-hero {
	position: relative;
	isolation: isolate;
	width: 100%;
	margin: 0 0 24px;
	overflow: hidden;
	border: 1px solid var(--ngs-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ngs-ink);
}

.ngs-cat-hero--has-media {
	min-height: 260px;
}

.ngs-cat-hero__media {
	position: absolute;
	z-index: 0;
	inset: 0;
	overflow: hidden;
}

.ngs-cat-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.ngs-cat-hero--has-media::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(
			90deg,
			#fff 0%,
			rgba(255, 255, 255, 0.97) 38%,
			rgba(255, 255, 255, 0.70) 52%,
			rgba(255, 255, 255, 0) 68%
		);
}

.ngs-cat-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 24px 34px 20px;
}

.ngs-cat-hero--has-media .ngs-cat-hero__content {
	min-height: 260px;
}

.ngs-cat-hero__copy {
	width: 43%;
	max-width: 570px;
}

.ngs-cat-hero:not(.ngs-cat-hero--has-media) .ngs-cat-hero__copy {
	width: 100%;
	max-width: none;
}

.ngs-cat-hero__breadcrumbs {
	margin: 0 0 14px;
}

.ngs-cat-hero .woocommerce-breadcrumb {
	padding: 0;
	margin: 0;
	color: #707770;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.ngs-cat-hero .woocommerce-breadcrumb a,
.ngs-cat-hero .woocommerce-breadcrumb a:hover {
	color: #171717;
}

.ngs-cat-hero .woocommerce-breadcrumb .breadcrumb-separator {
	padding: 0 0.55em;
	opacity: 0.45;
}

.ngs-cat-hero__title {
	margin: 0 0 12px;
	color: #0c0c0c;
	font-size: clamp(36px, 3.2vw, 48px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1;
}

.ngs-cat-hero__description {
	max-width: 520px;
	margin: 0;
	color: #4f5651;
	font-size: 15px;
	line-height: 1.65;
}

.ngs-cat-hero--has-media::after {
	content: "";
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: 0;
	left: 0;
	height: 120px;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.55) 48%,
		rgba(255, 255, 255, 0.88) 100%
	);
}

.ngs-cat-hero__usps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
	max-width: 1040px;
	gap: 0;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
	filter:
		drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
		drop-shadow(0 2px 16px rgba(255, 255, 255, 0.8));
}

.ngs-cat-hero__usp {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 10px;
	padding: 8px 18px;
}

.ngs-cat-hero__usp:first-child {
	padding-left: 0;
}

.ngs-cat-hero__usp + .ngs-cat-hero__usp {
	border-left: 1px solid rgba(0, 0, 0, 0.09);
}

.ngs-cat-hero__usp-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	color: var(--ngs-green);
}

.ngs-cat-hero__usp-icon svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ngs-cat-hero__usp-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.ngs-cat-hero__usp-text strong {
	color: #171717;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	text-shadow:
		0 0 8px #fff,
		0 0 14px #fff,
		0 1px 2px #fff;
}

.ngs-cat-hero__usp-text > span {
	color: #555c58;
	font-size: 10.5px;
	line-height: 1.3;
	text-shadow:
		0 0 8px #fff,
		0 0 14px #fff,
		0 1px 2px #fff;
}

@media (max-width: 1100px) {
	.ngs-cat-hero--has-media,
	.ngs-cat-hero--has-media .ngs-cat-hero__content {
		min-height: 270px;
	}

	.ngs-cat-hero__copy {
		width: 48%;
	}

	.ngs-cat-hero--has-media::before {
		background:
			linear-gradient(
				90deg,
				#fff 0%,
				rgba(255, 255, 255, 0.97) 38%,
				rgba(255, 255, 255, 0.70) 52%,
				rgba(255, 255, 255, 0) 72%
			);
	}

	.ngs-cat-hero__usps {
		max-width: 900px;
	}

	.ngs-cat-hero__usp {
		padding-inline: 12px;
	}
}

@media (max-width: 800px) {
	.ngs-cat-hero--has-media {
		min-height: 0;
	}

	.ngs-cat-hero__media {
		position: relative;
		height: 230px;
	}

	.ngs-cat-hero__media img {
		object-position: 67% center;
	}

	.ngs-cat-hero--has-media::before,
	.ngs-cat-hero--has-media::after {
		display: none;
	}

	.ngs-cat-hero__usps {
		filter: none;
	}

	.ngs-cat-hero__usp-text strong,
	.ngs-cat-hero__usp-text > span {
		text-shadow: none;
	}

	.ngs-cat-hero__content {
		min-height: 0;
		padding: 24px 20px 20px;
		background: #fff;
	}

	.ngs-cat-hero--has-media .ngs-cat-hero__content {
		min-height: 0;
	}

	.ngs-cat-hero__copy {
		width: 100%;
		max-width: none;
	}

	.ngs-cat-hero__breadcrumbs {
		margin-bottom: 12px;
	}

	.ngs-cat-hero__title {
		font-size: 36px;
	}

	.ngs-cat-hero__description {
		max-width: none;
		font-size: 14px;
	}

	.ngs-cat-hero__usps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 24px;
	}

	.ngs-cat-hero__usp {
		padding: 12px 10px;
	}

	.ngs-cat-hero__usp:first-child {
		padding-left: 10px;
	}

	.ngs-cat-hero__usp + .ngs-cat-hero__usp {
		border-left: none;
	}

	.ngs-cat-hero__usp:nth-child(even) {
		border-left: 1px solid var(--ngs-line);
	}

	.ngs-cat-hero__usp:nth-child(n + 3) {
		border-top: 1px solid var(--ngs-line);
	}
}

@media (max-width: 520px) {
	.ngs-cat-hero {
		border-radius: 8px;
	}

	.ngs-cat-hero__media {
		height: 190px;
	}

	.ngs-cat-hero__media img {
		object-position: 72% center;
	}

	.ngs-cat-hero__content {
		padding: 20px 16px 16px;
	}

	.ngs-cat-hero__title {
		margin-bottom: 9px;
		font-size: 32px;
	}

	.ngs-cat-hero__description {
		font-size: 13.5px;
		line-height: 1.55;
	}

	.ngs-cat-hero__usps {
		margin-top: 18px;
	}

	.ngs-cat-hero__usp {
		align-items: flex-start;
		gap: 7px;
		padding: 10px 7px;
	}

	.ngs-cat-hero__usp:first-child {
		padding-left: 7px;
	}

	.ngs-cat-hero__usp-icon {
		flex-basis: 27px;
		width: 27px;
		height: 27px;
	}

	.ngs-cat-hero__usp-icon svg {
		width: 23px;
		height: 23px;
	}

	.ngs-cat-hero__usp-text strong {
		font-size: 11px;
	}

	.ngs-cat-hero__usp-text > span {
		font-size: 9.5px;
	}
}

/* -------------------------------------------------------------------------
   Shop sidebar heading
   ------------------------------------------------------------------------- */

.ngs-shop-filters-heading {
	margin: 0 0 1.1rem;
	color: #111;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

/* Empty Shoptimizer products header when our subcategory hero is present */
body:has(.ngs-cat-hero) header.woocommerce-products-header:empty,
body:has(.ngs-cat-hero) header.woocommerce-products-header:not(:has(*:not(:empty))) {
	display: none;
}

body:has(.ngs-cat-hero) header.woocommerce-products-header {
	display: none;
}

/* Hide the default archive breadcrumb bar; crumbs live in the hero overlay. */
body.ngs-cat-hero-archive .archive-header:not(:has(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice)) {
	display: none;
}

body.ngs-cat-hero-archive .col-full > .ngs-cat-hero:first-child {
	margin-top: 16px;
}

/* -------------------------------------------------------------------------
   PLP pagination: go-to-page + page-2 autoload
   ------------------------------------------------------------------------- */

.shoptimizer-sorting.sorting-end {
	flex-wrap: wrap;
}

.ngs-goto-page {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	order: 10;
	width: 100%;
	gap: 6px;
	margin: 8px 0 0;
	color: var(--ngs-muted);
	font-size: 12px;
	line-height: 1.2;
}

.ngs-goto-page label {
	margin: 0;
	color: #626a64;
	font-size: 12px;
	font-weight: 500;
}

.ngs-goto-page input[type="number"] {
	width: 3.4em;
	height: 28px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid var(--ngs-line);
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-size: 12px;
	line-height: 26px;
	text-align: center;
	box-shadow: none;
	appearance: textfield;
	-moz-appearance: textfield;
}

.ngs-goto-page input[type="number"]::-webkit-outer-spin-button,
.ngs-goto-page input[type="number"]::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ngs-goto-page input[type="number"]:focus {
	border-color: var(--ngs-green);
	outline: none;
}

.ngs-goto-page button {
	height: 28px;
	margin: 0;
	padding: 0 9px;
	border: 1px solid var(--ngs-line);
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-size: 12px;
	font-weight: 600;
	line-height: 26px;
	cursor: pointer;
}

.ngs-goto-page button:hover {
	border-color: var(--ngs-green);
	color: var(--ngs-green-dark);
}

.ngs-plp-autoload-sentinel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 1px;
	width: 100%;
}

.ngs-plp-autoload-status {
	display: none;
	margin: 12px 0 4px;
	color: var(--ngs-muted);
	font-size: 13px;
}

.ngs-plp-autoload-sentinel.is-loading .ngs-plp-autoload-status {
	display: block;
}

@media (max-width: 992px) {
	.ngs-goto-page {
		grid-column: 1 / -1;
		justify-content: center;
		margin-top: 2px;
	}
}

/* -------------------------------------------------------------------------
   Related category strip
   ------------------------------------------------------------------------- */

.ngs-related-cats {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.ngs-related-cats__tile {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 160px;
	max-width: 240px;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--ngs-line);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ngs-related-cats__tile:hover,
.ngs-related-cats__tile:focus-visible {
	border-color: var(--ngs-green);
	box-shadow: 0 2px 10px rgba(20, 36, 18, 0.06);
	color: inherit;
	outline: none;
}

.ngs-related-cats__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--ngs-soft);
}

.ngs-related-cats__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ngs-related-cats__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: center;
}

.ngs-related-cats__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	color: #111;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.25;
	text-align: center;
}

.ngs-related-cats__count {
	color: var(--ngs-muted);
	font-weight: 500;
	font-size: 12px;
}

.ngs-related-cats__blurb {
	color: #6a716a;
	font-size: 11px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ngs-related-cats__all {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	align-self: center;
	padding: 0 8px;
	color: var(--ngs-green-dark);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ngs-related-cats__all:hover,
.ngs-related-cats__all:focus-visible {
	color: var(--ngs-green);
	outline: none;
}

@media (max-width: 600px) {
	.ngs-related-cats {
		margin-bottom: 14px;
	}

	.ngs-related-cats__tile {
		flex: 0 0 auto;
		max-width: 200px;
	}
}

/* Parent category: full child icon grid */
.ngs-related-cats--parent {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	overflow: visible;
}

.ngs-related-cats--parent .ngs-related-cats__tile {
	flex: none;
	min-width: 0;
	max-width: none;
}

@media (max-width: 900px) {
	.ngs-related-cats--parent {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.ngs-related-cats--parent {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   Parent landing sections
   ------------------------------------------------------------------------- */

.ngs-parent-landing-sections {
	display: flex;
	flex-direction: column;
	gap: 36px;
	margin: 0 0 28px;
}

.ngs-parent-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.ngs-parent-section__title {
	margin: 0;
	color: var(--ngs-ink);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
}

.ngs-parent-section__more {
	flex: 0 0 auto;
	color: var(--ngs-green-dark);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ngs-parent-section__more:hover,
.ngs-parent-section__more:focus-visible {
	color: var(--ngs-green);
	outline: none;
}

body.ngs-parent-landing .site-content .col-full .woocommerce-products-header {
	display: none !important;
}

body.ngs-parent-filtered .ngs-parent-landing-sections {
	display: none !important;
}

.ngs-parent-all-products {
	scroll-margin-top: 112px;
}

body.ngs-parent-landing .ngs-parent-landing-sections {
	margin-bottom: 0;
}

body.ngs-parent-landing .ngs-parent-all-products .ngs-parent-section__head {
	margin-bottom: 8px;
}

.ngs-parent-bestsellers__grid ul.products,
.ngs-parent-child-section__grid ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ngs-parent-bestsellers__grid ul.products li.product,
.ngs-parent-child-section__grid ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

/* Larger cards in the parent bestsellers row */
.ngs-parent-bestsellers__grid ul.products li.product:not(.product-category) {
	padding: 14px 14px 16px;
}

.ngs-parent-bestsellers__grid .woocommerce-image__wrapper {
	aspect-ratio: 1 / 1;
}

.ngs-parent-bestsellers__grid ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
}

.ngs-parent-bestsellers__grid ul.products li.product .price {
	font-size: 16px;
}

.ngs-parent-bestsellers__grid.static-cta-buttons ul.products li.product .button,
.ngs-parent-bestsellers__grid ul.products li.product .button {
	min-height: 44px;
	font-size: 14px;
}

@media (max-width: 900px) {
	.ngs-parent-bestsellers__grid ul.products,
	.ngs-parent-child-section__grid ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.ngs-parent-section__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ngs-parent-bestsellers__grid ul.products,
	.ngs-parent-child-section__grid ul.products {
		grid-template-columns: 1fr;
	}
}

body.ngs-plp-cards ul.products li.product p.product__subcategory {
	margin: 0 0 2px;
	color: var(--ngs-muted);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}

body.ngs-plp-cards ul.products li.product p.product__subcategory a {
	color: inherit;
	text-decoration: none;
}

body.ngs-plp-cards ul.products li.product p.product__subcategory a:hover,
body.ngs-plp-cards ul.products li.product p.product__subcategory a:focus-visible {
	color: var(--ngs-green-dark);
	outline: none;
}

/* -------------------------------------------------------------------------
   Toolbar: count left · sort + layout right
   ------------------------------------------------------------------------- */

body.ngs-plp-cards .shoptimizer-sorting:not(.sorting-end) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--ngs-line);
}

body.ngs-plp-cards .shoptimizer-sorting:not(.sorting-end) .woocommerce-notices-wrapper:empty {
	display: none;
}

body.ngs-plp-cards .shoptimizer-sorting:not(.sorting-end) .woocommerce-result-count {
	order: 1;
	margin: 0;
	margin-right: auto;
	padding: 0;
	color: #444;
	font-size: 13.5px;
}

body.ngs-plp-cards .shoptimizer-sorting:not(.sorting-end) .woocommerce-ordering,
body.ngs-plp-cards .shoptimizer-sorting:not(.sorting-end) form.woocommerce-ordering {
	order: 2;
	display: inline-flex;
	width: auto;
	margin: 0;
}

body.ngs-plp-cards .shoptimizer-sorting:not(.sorting-end) .woocommerce-pagination {
	display: none;
}

body.ngs-plp-cards .ngs-plp-layout {
	display: inline-flex;
	order: 3;
	margin: 0;
	gap: 4px;
}

body.ngs-plp-cards .ngs-plp-layout__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--ngs-line);
	border-radius: 4px;
	background: #fff;
	color: #555;
	cursor: pointer;
}

body.ngs-plp-cards .ngs-plp-layout__btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.ngs-plp-cards .ngs-plp-layout__btn:hover,
body.ngs-plp-cards .ngs-plp-layout__btn:focus-visible {
	border-color: var(--ngs-green);
	color: var(--ngs-green-dark);
	outline: none;
}

body.ngs-plp-cards .ngs-plp-layout__btn.is-active {
	border-color: var(--ngs-green);
	background: #f4f9ec;
	color: var(--ngs-green-dark);
}

body.ngs-plp-cards .shoptimizer-sorting:not(.sorting-end) select.orderby {
	padding-right: 1.4em;
	font-size: 13.5px;
}

@media (max-width: 992px) {
	body.ngs-plp-cards .shoptimizer-sorting:not(.sorting-end) {
		display: flex;
		grid-template-columns: none;
		align-items: center;
		margin-top: 0;
	}
}

/* -------------------------------------------------------------------------
   Product cards (PLP only)
   ------------------------------------------------------------------------- */

@media (min-width: 993px) {
	body.ngs-plp-cards ul.products {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
		gap: 16px;
		width: 100%;
		margin-left: 0;
	}

	body.ngs-plp-cards ul.products.columns-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.ngs-plp-cards ul.products.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	body.ngs-plp-cards ul.products li.product {
		float: none;
		width: auto;
		max-width: none;
		margin: 0;
		padding: 0;
	}
}

body.ngs-plp-cards ul.products li.product:not(.product-category) {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	height: 100%;
	padding: 14px;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
	box-sizing: border-box;
	transition: box-shadow 0.18s ease;
}

body.ngs-plp-cards ul.products li.product:not(.product-category):hover {
	box-shadow: 0 6px 18px rgba(20, 36, 18, 0.07);
}

body.ngs-plp-cards ul.products li.product:hover .woocommerce-image__wrapper {
	transform: none;
}

body.ngs-plp-cards .woocommerce-image__wrapper {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 210px;
	overflow: hidden;
}

body.ngs-plp-cards .woocommerce-image__wrapper .shoptimizer-plp-carousel-container,
body.ngs-plp-cards .woocommerce-image__wrapper .shoptimizer-plp-image-wrapper,
body.ngs-plp-cards .woocommerce-image__wrapper > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

body.ngs-plp-cards .woocommerce-image__wrapper img {
	width: 100%;
	height: 100%;
	max-height: 190px;
	object-fit: contain;
	object-position: center;
}

body.ngs-plp-cards .woocommerce-card__header {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding-top: 0.65rem;
	min-height: 0;
}

body.ngs-plp-cards ul.products li.product p.product__brand,
body.ngs-plp-cards ul.products li.product p.product__categories.product__brand {
	margin: 0 0 0.2rem;
	color: #6b736e;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

body.ngs-plp-cards ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	margin: 0 0 0.35rem;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.35;
	color: #1a1a1a;
}

body.ngs-plp-cards:not(.ngs-plp-list) ul.products li.product .woocommerce-loop-product__title {
	flex: 0 0 auto;
	min-height: calc(1.35em * 2);
}

body.ngs-plp-cards ul.products li.product .woocommerce-loop-product__title a {
	color: inherit;
}

body.ngs-plp-cards:not(.ngs-plp-list) ul.products li.product .woocommerce-loop-product__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

body.ngs-plp-cards ul.products li.product .price {
	margin: 0 0 0.55rem;
	color: #111;
	font-size: 15.5px;
	font-weight: 650;
	line-height: 1.3;
}

body.ngs-plp-cards ul.products li.product .price .amount,
body.ngs-plp-cards ul.products li.product .price .woocommerce-Price-amount {
	font-weight: 650;
}

/* Always-visible full-width ATC */
body.ngs-plp-cards.static-cta-buttons ul.products li.product .button,
body.ngs-plp-cards ul.products li.product .button {
	position: static;
	display: block;
	flex: 0 0 auto;
	width: 100%;
	height: auto;
	min-height: 40px;
	margin-top: auto;
	padding: 0 12px;
	border: 0;
	border-radius: 4px;
	opacity: 1;
	background: #84b928;
	color: #17300d;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 40px;
	text-align: center;
	box-shadow: none;
}

body.ngs-plp-cards ul.products li.product .button:hover,
body.ngs-plp-cards ul.products li.product .button:focus-visible {
	background: #9dce43;
	color: #17300d;
	opacity: 1;
}

/* Hide Woo “View cart” link after AJAX add-to-cart on PLP cards. */
body.ngs-plp-cards ul.products li.product .added_to_cart {
	display: none !important;
}

body.ngs-plp-cards ul.products li.product:not(.product-category) {
	padding-bottom: 14px;
	margin-bottom: 0;
}

/* Volume chips */
body.ngs-plp-cards .ngs-volume-chips {
	display: flex;
	flex-wrap: wrap;
	flex: 0 0 auto;
	gap: 6px;
	margin: 0 0 0.65rem;
	margin-top: 0;
}

body.ngs-plp-cards .ngs-volume-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid #e0e3df;
	border-radius: 4px;
	background: #f4f5f3;
	color: #222;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

body.ngs-plp-cards .ngs-volume-chip:hover:not(:disabled),
body.ngs-plp-cards .ngs-volume-chip:focus-visible:not(:disabled) {
	border-color: var(--ngs-green);
	outline: none;
}

body.ngs-plp-cards .ngs-volume-chip.is-selected {
	border: 1px solid #cfe4b0;
	background: #f3fae8;
	color: #222;
	font-weight: 600;
}

body.ngs-plp-cards .ngs-volume-chip:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Badges */
body.ngs-plp-cards .ngs-plp-badge {
	position: absolute;
	z-index: 3;
	top: 8px;
	left: 8px;
	padding: 3px 7px;
	border-radius: 3px;
	background: #111;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.3;
	text-transform: uppercase;
}

body.ngs-plp-cards .ngs-plp-badge--sale {
	background: #c45b3a;
}

body.ngs-plp-cards .ngs-plp-badge--new {
	background: #2f6fed;
}

body.ngs-plp-cards .ngs-plp-badge--top {
	background: #559313;
}

body.ngs-plp-cards li.product:has(.ngs-plp-badge) .onsale,
body.ngs-plp-cards li.product:has(.ngs-plp-badge) .sale-item.product-label {
	display: none !important;
}

body.ngs-plp-cards .commercekit-as-loop,
body.ngs-plp-cards .cgkit-as-swatches,
body.ngs-plp-cards .commercekit-loop-swatches {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Grid: info wrapper is transparent; buy column grows so ATC stays aligned
   ------------------------------------------------------------------------- */

body.ngs-plp-cards:not(.ngs-plp-list) .ngs-plp-info {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
}

body.ngs-plp-cards .ngs-plp-buy {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
}

/* CommerceKit wraps the loop ATC; pin that wrapper so wrapped chips don't shift the button. */
body.ngs-plp-cards:not(.ngs-plp-list) .ngs-plp-buy > .cgkit-as-empty-atc-wrap,
body.ngs-plp-cards:not(.ngs-plp-list) .ngs-plp-buy > .cgkit-as-single-atc-wrap,
body.ngs-plp-cards:not(.ngs-plp-list) .ngs-plp-buy > a.button {
	margin-top: auto;
	width: 100%;
}

body.ngs-plp-cards .ngs-plp-excerpt,
body.ngs-plp-cards .ngs-plp-stock {
	display: none;
}

/* -------------------------------------------------------------------------
   List layout — 3 columns: image | info | buy
   ------------------------------------------------------------------------- */

body.ngs-plp-cards.ngs-plp-list ul.products {
	display: flex;
	flex-direction: column;
	gap: 12px;
	grid-template-columns: none;
}

body.ngs-plp-cards.ngs-plp-list ul.products li.product:not(.product-category) {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr) 270px;
	align-items: center;
	gap: 24px;
	width: 100%;
	height: auto;
	min-height: 200px;
	padding: 18px 22px;
	border: 1px solid #e8e8e8;
	border-radius: 9px;
}

body.ngs-plp-cards.ngs-plp-list .woocommerce-card__header {
	display: contents;
	padding-top: 0;
}

body.ngs-plp-cards.ngs-plp-list .ngs-plp-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	gap: 0.35rem;
}

body.ngs-plp-cards.ngs-plp-list .ngs-plp-buy {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	justify-content: center;
	align-items: stretch;
	width: 100%;
	max-width: 260px;
	margin-left: auto;
	gap: 8px;
}

body.ngs-plp-cards.ngs-plp-list .woocommerce-image__wrapper {
	position: relative;
	width: 180px;
	height: 180px;
	flex: 0 0 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

body.ngs-plp-cards.ngs-plp-list .woocommerce-image__wrapper img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
	object-position: center;
}

body.ngs-plp-cards.ngs-plp-list .woocommerce-image__wrapper .gallery-image,
body.ngs-plp-cards.ngs-plp-list .shoptimizer-plp-carousel-dots,
body.ngs-plp-cards.ngs-plp-list .product-out-of-stock {
	display: none !important;
}

body.ngs-plp-cards.ngs-plp-list .ngs-plp-badge {
	top: 8px;
	left: 8px;
}

body.ngs-plp-cards.ngs-plp-list ul.products li.product p.product__brand,
body.ngs-plp-cards.ngs-plp-list ul.products li.product p.product__categories.product__brand {
	margin: 0;
	font-size: 11px;
	letter-spacing: 0.04em;
}

body.ngs-plp-cards.ngs-plp-list ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

body.ngs-plp-cards.ngs-plp-list .ngs-plp-excerpt {
	display: -webkit-box;
	max-width: 520px;
	margin: 0;
	color: #666;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.ngs-plp-cards.ngs-plp-list .ngs-plp-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: #5a7a3a;
}

body.ngs-plp-cards.ngs-plp-list .ngs-plp-stock__dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 6px;
}

body.ngs-plp-cards.ngs-plp-list .ngs-plp-stock--outofstock {
	color: #8a3b32;
}

body.ngs-plp-cards.ngs-plp-list .ngs-plp-stock--onbackorder {
	color: #8a6a2f;
}

body.ngs-plp-cards.ngs-plp-list ul.products li.product .price {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

body.ngs-plp-cards.ngs-plp-list ul.products li.product .price .amount,
body.ngs-plp-cards.ngs-plp-list ul.products li.product .price .woocommerce-Price-amount {
	font-weight: 700;
}

body.ngs-plp-cards.ngs-plp-list .ngs-volume-chips {
	margin: 0;
}

body.ngs-plp-cards.ngs-plp-list.static-cta-buttons ul.products li.product .button,
body.ngs-plp-cards.ngs-plp-list ul.products li.product .button {
	width: 100%;
	max-width: none;
	min-height: 42px;
	margin-top: 0;
	line-height: 42px;
}

@media (max-width: 992px) {
	body.ngs-plp-cards ul.products {
		gap: 12px;
		row-gap: 12px;
		column-gap: 12px;
	}

	body.ngs-plp-cards ul.products li.product:not(.product-category) {
		padding: 12px;
	}

	body.ngs-plp-cards .woocommerce-image__wrapper {
		height: 170px;
	}

	body.ngs-plp-cards .woocommerce-image__wrapper img {
		max-height: 155px;
	}

	body.ngs-plp-cards.ngs-plp-list ul.products li.product:not(.product-category) {
		grid-template-columns: 130px minmax(0, 1fr) 220px;
		gap: 16px;
		padding: 14px 16px;
		min-height: 0;
	}

	body.ngs-plp-cards.ngs-plp-list .woocommerce-image__wrapper {
		width: 130px;
		height: 130px;
		flex: 0 0 130px;
	}

	body.ngs-plp-cards.ngs-plp-list .ngs-plp-buy {
		max-width: 220px;
	}

	body.ngs-plp-cards.ngs-plp-list ul.products li.product .woocommerce-loop-product__title {
		font-size: 15.5px;
	}

	body.ngs-plp-cards.ngs-plp-list ul.products li.product .price {
		font-size: 18px;
	}
}

@media (max-width: 699px) {
	body.ngs-plp-cards.ngs-plp-list ul.products li.product:not(.product-category) {
		grid-template-columns: 100px minmax(0, 1fr);
		gap: 12px 14px;
		padding: 12px;
		align-items: start;
	}

	body.ngs-plp-cards.ngs-plp-list .woocommerce-image__wrapper {
		width: 100px;
		height: 100px;
		flex: 0 0 100px;
		grid-row: 1;
	}

	body.ngs-plp-cards.ngs-plp-list .ngs-plp-info {
		grid-column: 2;
		grid-row: 1;
	}

	body.ngs-plp-cards.ngs-plp-list .ngs-plp-buy {
		grid-column: 1 / -1;
		max-width: none;
		margin-left: 0;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 12px;
	}

	body.ngs-plp-cards.ngs-plp-list .ngs-plp-stock {
		flex: 1 1 auto;
	}

	body.ngs-plp-cards.ngs-plp-list ul.products li.product .price {
		margin-left: auto;
		font-size: 17px;
	}

	body.ngs-plp-cards.ngs-plp-list .ngs-volume-chips,
	body.ngs-plp-cards.ngs-plp-list.static-cta-buttons ul.products li.product .button,
	body.ngs-plp-cards.ngs-plp-list ul.products li.product .button {
		flex: 1 1 100%;
	}
}

/* -------------------------------------------------------------------------
   Load more (page 1 only) + numbered pagination
   ------------------------------------------------------------------------- */

.ngs-plp-load-more-wrap {
	display: none;
	justify-content: center;
	margin: 1.5rem 0 0.75rem;
}

body.ngs-plp-js.ngs-plp-load-more-mode .ngs-plp-load-more-wrap {
	display: flex;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-ordering,
body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-result-count {
	display: none;
}

/* Page 1 before expand: hide page numbers + go-to */
body.ngs-plp-js.ngs-plp-load-more-mode .shoptimizer-sorting.sorting-end .woocommerce-pagination,
body.ngs-plp-js.ngs-plp-load-more-mode .ngs-goto-page {
	display: none !important;
}

.ngs-plp-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-width: 220px;
	min-height: 46px;
	padding: 0 28px;
	border: 1px solid #c5d4b0;
	border-radius: 8px;
	background: linear-gradient(180deg, #f4f9ec 0%, #e8f2d8 100%);
	color: #17300d;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(20, 36, 18, 0.04);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.ngs-plp-load-more:hover,
.ngs-plp-load-more:focus-visible {
	border-color: var(--ngs-green);
	background: linear-gradient(180deg, #f7fbf2 0%, #eef7e0 100%);
	box-shadow: 0 4px 12px rgba(84, 147, 19, 0.12);
	outline: none;
}

.ngs-plp-load-more:active {
	transform: translateY(1px);
}

.ngs-plp-load-more:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
	box-shadow: none;
}

.ngs-plp-load-more[hidden],
.ngs-plp-load-more-wrap[hidden] {
	display: none !important;
}

/* Numbered pagination footer */
body.ngs-plp-cards .shoptimizer-sorting.sorting-end {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 1.5rem;
	padding: 1.1rem 0 0.25rem;
	border: 0;
	background: transparent;
	box-shadow: none;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination ul.page-numbers,
body.ngs-plp-cards .shoptimizer-sorting.sorting-end ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	list-style: none;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination ul.page-numbers li,
body.ngs-plp-cards .shoptimizer-sorting.sorting-end ul.page-numbers li {
	margin: 0;
	padding: 0;
	float: none;
	border: 0;
	background: transparent;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination .page-numbers,
body.ngs-plp-cards .shoptimizer-sorting.sorting-end ul.page-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e0e3df;
	border-radius: 8px;
	background: #fff;
	color: #2a332c;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination a.page-numbers:hover,
body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination a.page-numbers:focus-visible {
	border-color: var(--ngs-green);
	background: #f7fbf2;
	color: #17300d;
	outline: none;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination .page-numbers.current {
	border-color: #84b928;
	background: #eef7e0;
	color: #17300d;
	font-weight: 700;
	pointer-events: none;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination .page-numbers.dots,
body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination .page-numbers.dots:hover {
	border-color: transparent;
	background: transparent;
	color: #8a918b;
	min-width: 28px;
	padding: 0 4px;
}

body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination .page-numbers.prev,
body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination .page-numbers.next {
	min-width: 44px;
	font-weight: 700;
}

body.ngs-plp-cards .ngs-goto-page {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	order: 10;
	width: 100%;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: var(--ngs-muted);
	font-size: 13px;
	line-height: 1.2;
}

body.ngs-plp-cards .ngs-goto-page label {
	margin: 0;
	color: #5c645e;
	font-size: 13px;
	font-weight: 500;
}

body.ngs-plp-cards .ngs-goto-page input[type="number"] {
	width: 3.6em;
	height: 36px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid #e0e3df;
	border-radius: 8px;
	background: #fff;
	color: #111;
	font-size: 13.5px;
	line-height: 34px;
	text-align: center;
	box-shadow: none;
	appearance: textfield;
	-moz-appearance: textfield;
}

body.ngs-plp-cards .ngs-goto-page input[type="number"]::-webkit-outer-spin-button,
body.ngs-plp-cards .ngs-goto-page input[type="number"]::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

body.ngs-plp-cards .ngs-goto-page input[type="number"]:focus {
	border-color: var(--ngs-green);
	outline: none;
}

body.ngs-plp-cards .ngs-goto-page button {
	height: 36px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #c5d4b0;
	border-radius: 8px;
	background: #fff;
	color: #17300d;
	font-size: 13px;
	font-weight: 700;
	line-height: 34px;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
}

body.ngs-plp-cards .ngs-goto-page button:hover,
body.ngs-plp-cards .ngs-goto-page button:focus-visible {
	border-color: var(--ngs-green);
	background: #f7fbf2;
	color: #17300d;
	outline: none;
}

@media (max-width: 992px) {
	body.ngs-plp-cards .ngs-goto-page {
		justify-content: center;
	}

	body.ngs-plp-cards .shoptimizer-sorting.sorting-end .woocommerce-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 10px;
		font-size: 13px;
	}
}

/* -------------------------------------------------------------------------
   Trust bar
   ------------------------------------------------------------------------- */

.ngs-plp-trust {
	margin: 2.25rem 0 0;
	padding: 1.15rem 1.15rem;
	border: 1px solid var(--ngs-line);
	border-radius: 10px;
	background: #f6f8f5;
}

.ngs-plp-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	align-items: stretch;
}

.ngs-plp-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-width: 0;
	padding: 0.15rem 0.7rem;
	border-right: 1px solid #dce2dc;
	color: #5c645e;
	font-size: 0.72rem;
	line-height: 1.4;
}

.ngs-plp-trust__item:first-child {
	padding-left: 0.15rem;
}

.ngs-plp-trust__item:last-child {
	border-right: 0;
	padding-right: 0.15rem;
}

.ngs-plp-trust__item strong {
	display: block;
	margin-bottom: 0.18rem;
	color: #141914;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	white-space: nowrap;
}

.ngs-plp-trust__icon {
	display: grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin-top: 1px;
	border: 1px solid #c5ccc5;
	border-radius: 8px;
	background: #fff;
	color: #2f3a32;
	box-shadow: 0 1px 0 rgba(20, 36, 18, 0.04);
}

.ngs-plp-trust__icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 900px) {
	.ngs-plp-trust {
		padding: 1rem;
	}

	.ngs-plp-trust__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 14px;
	}

	.ngs-plp-trust__item {
		padding: 0.1rem 0.85rem;
	}

	.ngs-plp-trust__item:nth-child(2n) {
		border-right: 0;
		padding-right: 0;
	}

	.ngs-plp-trust__item:nth-child(2n + 1) {
		padding-left: 0;
	}
}

@media (max-width: 520px) {
	.ngs-plp-trust__grid {
		grid-template-columns: 1fr;
		row-gap: 12px;
	}

	.ngs-plp-trust__item {
		border-right: 0;
		padding: 0.35rem 0;
	}

	.ngs-plp-trust__item + .ngs-plp-trust__item {
		border-top: 1px solid #e2e6e1;
		padding-top: 0.75rem;
	}
}
