.kj-product-catalog {
	color: #183d2b;
}

.kj-product-catalog__category-nav {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 48px;
}

.kj-product-catalog__category-link {
	background: #174b32;
	border: 1px solid #2d7750;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(20, 71, 47, .14);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: space-between;
	min-height: 132px;
	padding: 24px;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease;
}

.kj-product-catalog__category-link:hover,
.kj-product-catalog__category-link:focus-visible {
	background: #236443;
	color: #fff;
	transform: translateY(-2px);
}

.kj-product-catalog__category-link-label {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.kj-product-catalog__category-link-action {
	color: #cfe7b9;
	font-size: 14px;
	font-weight: 600;
}

.kj-product-catalog__category {
	margin: 0 0 56px;
	scroll-margin-top: 110px;
}

.kj-product-catalog__category-title {
	color: #174b32;
	font-size: clamp(28px, 3vw, 38px);
	margin: 0 0 18px;
}

.kj-product-catalog__subcategory-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
}

.kj-product-catalog__subcategory-nav a {
	border: 1px solid #b9d7ac;
	border-radius: 999px;
	color: #174b32;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 13px;
	text-decoration: none;
}

.kj-product-catalog__subcategory-nav a:hover,
.kj-product-catalog__subcategory-nav a:focus-visible {
	background: #eef6e8;
	color: #174b32;
}

.kj-product-catalog__subcategory {
	margin: 0 0 38px;
	scroll-margin-top: 110px;
}

.kj-product-catalog__subcategory-title {
	color: #174b32;
	font-size: 22px;
	margin: 0 0 18px;
}

.kj-product-catalog__cards {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kj-product-card {
	background: #fff;
	border: 1px solid #d7e7d1;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.kj-product-card__image,
.kj-product-card__image > picture,
.kj-product-card__picture {
	display: block;
}

.kj-product-card__image {
	aspect-ratio: 4 / 3;
	background: #f5f8f3;
	overflow: hidden;
}

.kj-product-card__image-element {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.kj-product-card__image--placeholder {
	align-items: center;
	border: 0;
	color: #1e4d34;
	display: flex;
	justify-content: center;
}

.kj-product-card__image-placeholder {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	padding: 16px;
	text-align: center;
}

.kj-product-card__image-placeholder svg {
	color: #6fae4a;
	height: 38px;
	width: 46px;
}

.kj-product-card__image-placeholder span {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.kj-product-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px;
}

.kj-product-card__title {
	color: #174b32;
	font-size: 18px;
	line-height: 1.25;
	margin: 0 0 8px;
}

.kj-product-card__excerpt,
.kj-product-card__packaging {
	color: #466554;
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 10px;
}

.kj-product-card__packaging strong {
	color: #174b32;
}

.kj-product-card__link {
	color: #1d7046;
	font-size: 14px;
	font-weight: 700;
	margin-top: auto;
	text-decoration: none;
}

.kj-product-card__link:hover,
.kj-product-card__link:focus-visible {
	color: #0d4328;
	text-decoration: underline;
}

.kj-product-catalog__empty {
	color: #466554;
}

.kj-product-catalog__empty--category {
	background: #f5f8f3;
	border-left: 3px solid #6fae4a;
	margin: 0;
	padding: 14px 16px;
}

@media (max-width: 1100px) {
	.kj-product-catalog__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.kj-product-catalog__category-nav {
		gap: 12px;
		grid-template-columns: 1fr;
		margin-bottom: 36px;
	}

	.kj-product-catalog__category-link {
		min-height: 104px;
		padding: 20px;
	}

	.kj-product-catalog__cards {
		gap: 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kj-product-card__content {
		padding: 13px;
	}

	.kj-product-card__title {
		font-size: 16px;
	}

	.kj-product-card__excerpt,
	.kj-product-card__packaging {
		font-size: 13px;
	}
}

/* Category media cards: scoped to the Products catalogue only. */
.kj-product-catalog__category-link {
	align-items: stretch;
	background: #174b32;
	isolation: isolate;
	min-height: 304px;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.kj-product-catalog__category-link::before,
.kj-product-catalog__category-link::after {
	border-radius: inherit;
	content: "";
	inset: 0;
	position: absolute;
}

.kj-product-catalog__category-link::before {
	background: center center / cover no-repeat;
	transform: scale(1.001);
	transition: transform .32s ease;
	z-index: -2;
}

.kj-product-catalog__category-link::after {
	background: linear-gradient(90deg, rgba(10, 54, 35, .96) 0%, rgba(15, 73, 47, .87) 43%, rgba(19, 78, 50, .34) 100%);
	z-index: -1;
}

.kj-product-catalog__category-link--prepared-vegetables::before {
	background-image: url("../images/category-prepared-vegetables.webp");
}

.kj-product-catalog__category-link--fresh-vegetables::before {
	background-image: url("../images/category-fresh-vegetables.webp");
}

.kj-product-catalog__category-link--fresh-fruit::before {
	background-image: url("../images/category-fresh-fruit.webp");
}

.kj-product-catalog__category-link-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	justify-content: space-between;
	padding: 24px;
	position: relative;
	z-index: 1;
}

.kj-product-catalog__category-link-label {
	color: #fff;
	font-size: clamp(20px, 1.7vw, 25px);
	letter-spacing: -.01em;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}

.kj-product-catalog__category-link-list {
	display: grid;
	gap: 5px 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: auto;
}

.kj-product-catalog__category-link-list-item {
	color: #f1f8ef;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.kj-product-catalog__category-link-list-item::before {
	color: #cfe7b9;
	content: "";
	margin-right: 5px;
}

.kj-product-catalog__category-link-list-item--more {
	color: #d9edcf;
	font-style: italic;
}

.kj-product-catalog__category-link-action {
	align-items: center;
	color: #e2f2d8;
	display: inline-flex;
	font-size: 13px;
	gap: 6px;
	margin-top: 3px;
}

.kj-product-catalog__category-link-action::after {
	content: "";
	font-size: 17px;
	line-height: 1;
	transition: transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
	.kj-product-catalog__category-link:hover,
	.kj-product-catalog__category-link:focus-visible {
		box-shadow: 0 14px 30px rgba(20, 71, 47, .28);
		transform: translateY(-3px);
	}

	.kj-product-catalog__category-link:hover::before,
	.kj-product-catalog__category-link:focus-visible::before {
		transform: scale(1.045);
	}

	.kj-product-catalog__category-link:hover .kj-product-catalog__category-link-action::after,
	.kj-product-catalog__category-link:focus-visible .kj-product-catalog__category-link-action::after {
		transform: translateX(3px);
	}
}

@media (max-width: 1100px) {
	.kj-product-catalog__category-link {
		min-height: 286px;
	}

	.kj-product-catalog__category-link-content {
		padding: 20px;
	}

	.kj-product-catalog__category-link-list {
		gap: 5px 9px;
	}

	.kj-product-catalog__category-link-list-item {
		font-size: 11px;
	}
}

@media (max-width: 767px) {
	.kj-product-catalog__category-link {
		min-height: 250px;
	}

	.kj-product-catalog__category-link-content {
		gap: 11px;
		padding: 18px;
	}

	.kj-product-catalog__category-link-list {
		gap: 5px 12px;
	}

	.kj-product-catalog__category-link-list-item {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kj-product-catalog__category-link,
	.kj-product-catalog__category-link::before,
	.kj-product-catalog__category-link-action::after {
		transition: none;
	}
}


/* Category card encoding and responsive layout fix: ASCII-only decorations. */
.kj-product-catalog__category-link {
	height: 320px;
	min-height: 0;
}

.kj-product-catalog__category-link::after {
	background: linear-gradient(90deg, rgba(9, 49, 32, .79) 0%, rgba(14, 71, 46, .74) 47%, rgba(18, 77, 50, .36) 100%);
}

.kj-product-catalog__category-link-content {
	gap: 12px;
	justify-content: flex-start;
	padding: 26px;
}

.kj-product-catalog__category-link-list {
	margin-top: 0;
}

.kj-product-catalog__category-link-list-item {
	align-items: center;
	display: flex;
	min-width: 0;
}

.kj-product-catalog__category-link-list-item::before {
	background-color: #b9dba5;
	border-radius: 50%;
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	height: 5px;
	margin: 0 7px 0 0;
	width: 5px;
}

.kj-product-catalog__category-link-action {
	margin-top: auto;
	min-height: 26px;
}

.kj-product-catalog__category-link-action::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	height: 6px;
	margin-left: 3px;
	transform: rotate(-45deg);
	width: 6px;
}

@media (hover: hover) and (pointer: fine) {
	.kj-product-catalog__category-link:hover .kj-product-catalog__category-link-action::after,
	.kj-product-catalog__category-link:focus-visible .kj-product-catalog__category-link-action::after {
		transform: translateX(3px) rotate(-45deg);
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.kj-product-catalog__category-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kj-product-catalog__category-link {
		height: 304px;
	}

	.kj-product-catalog__category-link-content {
		padding: 22px;
	}
}

@media (max-width: 767px) {
	.kj-product-catalog__category-nav {
		margin-bottom: 28px;
	}

	.kj-product-catalog__category-link {
		height: auto;
		min-height: 270px;
	}

	.kj-product-catalog__category-link-content {
		gap: 10px;
		padding: 18px;
	}

	.kj-product-catalog__category-link-label {
		font-size: 21px;
	}

	.kj-product-catalog__category-link-action {
		min-height: 34px;
		padding-top: 4px;
	}
}

@media (max-width: 480px) {
	.kj-product-catalog__category-link-list {
		grid-template-columns: 1fr;
	}

	.kj-product-catalog__category-link-list-item {
		font-size: 12px;
	}
}

/* Products category cards: desktop typography only. */
@media (min-width: 1025px) {
	.kj-product-catalog__category-link-label {
		font-size: 27px;
		font-weight: 700;
		line-height: 1.2;
	}

	.kj-product-catalog__category-link-list {
		gap: 7px 14px;
	}

	.kj-product-catalog__category-link-list-item {
		font-size: 15px;
		font-weight: 600;
		line-height: 1.4;
	}

	.kj-product-catalog__category-link-action {
		font-size: 15px;
		font-weight: 600;
	}
}


/*
 * Responsive catalogue visibility guard.
 * Keeps rendered product sections visible if a device-specific cascade applies
 * height, visibility, opacity or overflow constraints.
 */
@media (max-width: 1024px) {
	.kj-product-catalog__category,
	.kj-product-catalog__subcategory {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
		opacity: 1 !important;
		overflow: visible !important;
		visibility: visible !important;
	}

	.kj-product-catalog__cards {
		display: grid !important;
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
		opacity: 1 !important;
		overflow: visible !important;
		visibility: visible !important;
	}

	.kj-product-catalog__cards > .kj-product-card {
		display: flex !important;
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.kj-product-catalog__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.kj-product-catalog__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 359px) {
	.kj-product-catalog__cards {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}


/* Accessible category-card navigation: no nested links. */
.kj-product-catalog__category-link {
	cursor: pointer;
}

.kj-product-catalog__category-link-overlay {
	border-radius: inherit;
	inset: 0;
	position: absolute;
	z-index: 0;
}

.kj-product-catalog__category-link-content {
	pointer-events: none;
}

.kj-product-catalog__category-link-label,
.kj-product-catalog__category-link-action,
.kj-product-catalog__category-link-list-item a {
	pointer-events: auto;
}

.kj-product-catalog__category-link-label {
	display: inline-block;
	text-decoration: none;
}

.kj-product-catalog__category-link-label:hover,
.kj-product-catalog__category-link-label:focus-visible,
.kj-product-catalog__category-link-action:hover,
.kj-product-catalog__category-link-action:focus-visible,
.kj-product-catalog__category-link-list-item a:hover,
.kj-product-catalog__category-link-list-item a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.kj-product-catalog__category-link-list {
	list-style: none;
	padding: 0;
}

.kj-product-catalog__category-link-list-item {
	margin: 0;
}

.kj-product-catalog__category-link-list-item a {
	color: inherit;
	display: inline;
	text-decoration: none;
}

.kj-product-catalog__category-link-action {
	text-decoration: none;
}

.kj-product-catalog__category-link:focus-within {
	box-shadow: 0 14px 30px rgba(20, 71, 47, .28);
}

.kj-product-catalog__empty--subcategory {
	background: #f5f8f3;
	border-left: 3px solid #6fae4a;
	margin: 0;
	padding: 14px 16px;
}


/* Keep mobile product cards compact without affecting tablet or desktop. */
@media (max-width: 767px) {
	.kj-product-catalog .kj-product-card__excerpt {
		display: none;
	}
}


/* Align card actions without fixed heights or absolute positioning. */
.kj-product-catalog .kj-product-card__packaging {
	margin-top: auto;
}

.kj-product-catalog .kj-product-card__link {
	margin-top: 0;
}

/* Desktop-only product card hover: restrained B2B interaction. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .kj-product-catalog .kj-product-card {
        transition: transform 220ms ease, box-shadow 220ms ease;
    }

    .kj-product-catalog .kj-product-card:hover,
    .kj-product-catalog .kj-product-card:focus-within {
        box-shadow: 0 12px 28px rgba(23, 75, 50, .14);
        transform: translateY(-3px);
    }

    .kj-product-catalog .kj-product-card__image-element {
        transition: transform 220ms ease;
    }

    .kj-product-catalog .kj-product-card:hover .kj-product-card__image-element,
    .kj-product-catalog .kj-product-card:focus-within .kj-product-card__image-element {
        transform: scale(1.035);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kj-product-catalog .kj-product-card,
    .kj-product-catalog .kj-product-card__image-element {
        transition: none;
    }

    .kj-product-catalog .kj-product-card:hover,
    .kj-product-catalog .kj-product-card:focus-within,
    .kj-product-catalog .kj-product-card:hover .kj-product-card__image-element,
    .kj-product-catalog .kj-product-card:focus-within .kj-product-card__image-element {
        transform: none;
    }
}

/* Category-card visual refresh: preserve layout and hover while revealing more imagery. */
.kj-product-catalog__category-link {
    box-shadow: 0 9px 20px rgba(20, 71, 47, .12);
}

.kj-product-catalog__category-link::after {
    background: linear-gradient(90deg, rgba(9, 49, 32, .79) 0%, rgba(14, 71, 46, .74) 47%, rgba(18, 77, 50, .36) 100%);
}
