.eme-category-grid {
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

.eme-category-grid *,
.eme-category-grid *::before,
.eme-category-grid *::after {
	box-sizing: border-box;
}

.eme-category-grid__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

.eme-category-grid__header-copy {
	min-width: 0;
}

.eme-category-grid__eyebrow,
.eme-category-grid__heading,
.eme-category-grid__subtitle,
.eme-category-grid__label,
.eme-category-grid__title,
.eme-category-grid__description {
	margin-top: 0;
}

.eme-category-grid__heading {
	margin-bottom: 0;
	font-family: "Poppins", Arial, sans-serif;
}

.eme-category-grid__eyebrow,
.eme-category-grid__view-all,
.eme-category-grid__label,
.eme-category-grid__cta,
.eme-category-grid__subtitle,
.eme-category-grid__description {
	font-family: "DM Sans", Arial, sans-serif;
}

.eme-category-grid__view-all {
	flex: 0 0 auto;
	color: inherit;
	text-decoration: underline;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.eme-category-grid__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eme-category-grid__card {
	display: block;
	min-width: 0;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition-property: transform, box-shadow, border-color, background-color;
	transition-timing-function: ease;
}

.eme-category-grid__image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.eme-category-grid__image {
	display: block;
	width: var(--eme-category-image-scale, 100%);
	height: var(--eme-category-image-scale, 100%);
	object-fit: cover;
	object-position: center center;
	transition-property: transform, opacity, filter;
	transition-timing-function: ease;
}

.eme-category-grid__content {
	min-width: 0;
}

.eme-category-grid__text {
	min-width: 0;
}

.eme-category-grid__label {
	display: block;
}

.eme-category-grid__title {
	font-family: "Poppins", Arial, sans-serif;
	max-width: 100%;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
}

.eme-category-grid__cta {
	display: inline-block;
	text-decoration: underline;
}

.eme-category-grid__product-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.eme-category-grid__number,
.eme-category-grid__arrow {
	font-family: "Poppins", Arial, sans-serif;
}

.eme-category-grid--premium .eme-category-grid__card {
	background: #fff;
	border: 1px solid #dfe3df;
}

.eme-category-grid--premium .eme-category-grid__content {
	background: #fff;
}

.eme-category-grid--premium .eme-category-grid__label {
	color: #7b847e;
}

.eme-category-grid--premium .eme-category-grid__title {
	color: #111713;
}

.eme-category-grid--product {
	background: transparent;
}

.eme-category-grid--product .eme-category-grid__header {
	align-items: center;
}

.eme-category-grid--product .eme-category-grid__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7em;
	border: 1px solid #111713;
	text-decoration: none;
}

.eme-category-grid--product .eme-category-grid__view-all-arrow {
	font-size: 1.15em;
	line-height: 1;
}

.eme-category-grid--product .eme-category-grid__card {
	position: relative;
	isolation: isolate;
	min-height: 0;
	background: #f1f0ed;
	border: 1px solid rgba(17, 23, 19, .04);
}

.eme-category-grid--product .eme-category-grid__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, rgba(255,255,255,.42), rgba(255,255,255,0) 64%);
	pointer-events: none;
}

.eme-category-grid--product .eme-category-grid__image-wrap {
	position: relative;
	right: 8px;
	bottom: 0;
	z-index: 0;
	width: 46%;
	max-width: 48%;
	height: 220px;
	flex: 0 0 auto;
	align-self: center;
	aspect-ratio: auto;
	overflow: visible;
	background: transparent;
	pointer-events: none;
}

.eme-category-grid--product .eme-category-grid__image {
	width: var(--eme-category-image-scale, 100%);
	height: var(--eme-category-image-scale, 100%);
	object-fit: contain;
	object-position: right bottom;
	filter: drop-shadow(0 18px 30px rgba(17, 23, 19, .12));
}

.eme-category-grid--product .eme-category-grid__content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-width: 0;
	min-height: 0;
	height: auto;
	background: transparent;
}

.eme-category-grid--product .eme-category-grid__product-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 54%;
	min-width: 0;
}

.eme-category-grid--product .eme-category-grid__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-height: 0;
	text-align: left;
	overflow: visible;
}

.eme-category-grid--product .eme-category-grid__label {
	position: relative;
	z-index: 2;
	color: #696d6a;
}

.eme-category-grid--product .eme-category-grid__title {
	position: relative;
	z-index: 2;
	color: #111713;
}

.eme-category-grid--product .eme-category-grid__description {
	position: relative;
	z-index: 2;
	max-width: 32ch;
	color: #5f6461;
}

.eme-category-grid--product .eme-category-grid__cta--product {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 0;
	text-decoration: underline;
}

.eme-category-grid--product .eme-category-grid__product-arrow {
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #111713;
	color: #fff;
	font-size: 20px;
	transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.eme-category-grid--product .eme-category-grid__card:hover .eme-category-grid__product-arrow {
	transform: translateX(3px);
}

.eme-category-grid--yellow .eme-category-grid__card {
	background: #f0f2ef;
	border: 1px solid #e0e4e0;
}

.eme-category-grid--yellow .eme-category-grid__content {
	display: grid;
	grid-template-columns: 45px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	background: #ffd000;
}

.eme-category-grid--yellow .eme-category-grid__label {
	color: rgba(17, 23, 19, .62);
}

.eme-category-grid--yellow .eme-category-grid__title,
.eme-category-grid--yellow .eme-category-grid__number,
.eme-category-grid--yellow .eme-category-grid__arrow {
	color: #111713;
}

.eme-category-grid--yellow .eme-category-grid__title {
	margin-bottom: 0;
}

.eme-category-grid__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	line-height: 1;
}

@media (max-width: 767px) {
	.eme-category-grid__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.eme-category-grid--product .eme-category-grid__header {
		align-items: flex-start;
	}

	.eme-category-grid--product .eme-category-grid__view-all {
		align-self: flex-start;
	}

	.eme-category-grid--product .eme-category-grid__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eme-category-grid--product .eme-category-grid__card {
		min-height: 0;
	}

	.eme-category-grid--product .eme-category-grid__image-wrap {
		position: relative;
		right: 0;
		bottom: auto;
		align-self: flex-start;
		justify-content: flex-start;
		width: 100%;
		max-width: 100%;
		height: 112px;
		aspect-ratio: auto;
	}

	.eme-category-grid--product .eme-category-grid__content {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		width: 100%;
		min-width: 0;
		min-height: 0;
		height: auto;
	}

	.eme-category-grid--product .eme-category-grid__product-main {
		display: contents;
	}

	.eme-category-grid--product .eme-category-grid__product-copy {
		order: 1;
	}

	.eme-category-grid--product .eme-category-grid__image-wrap {
		order: 2;
	}

	.eme-category-grid--product .eme-category-grid__text {
		min-height: 0;
	}

	.eme-category-grid--product .eme-category-grid__image {
		object-position: left center;
	}

	.eme-category-grid--product .eme-category-grid__title {
		max-width: 100%;
	}

	.eme-category-grid--product .eme-category-grid__description {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.eme-category-grid--product .eme-category-grid__cta--product {
		order: 3;
		align-self: flex-start;
		gap: 8px;
		font-size: 12px;
	}
}

/* Optional five-card arrangement; other layouts remain unchanged. */
.eme-category-grid--five .eme-category-grid__items {
 grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.eme-category-grid--five .eme-category-grid__card { grid-column: span 2; }
.eme-category-grid--five .eme-category-grid__card:nth-child(4) { grid-column: 2 / span 2; }
.eme-category-grid--five .eme-category-grid__card:nth-child(5) { grid-column: 4 / span 2; }
@media (min-width: 768px) and (max-width: 1024px) {
 .eme-category-grid--five .eme-category-grid__items { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
 .eme-category-grid--five .eme-category-grid__card:nth-child(n) { grid-column: span 2; }
 .eme-category-grid--five .eme-category-grid__card:last-child { grid-column: 2 / span 2; }
}
@media (max-width: 767px) {
 .eme-category-grid--five .eme-category-grid__items { grid-template-columns: minmax(0, 1fr) !important; }
 .eme-category-grid--five .eme-category-grid__card:nth-child(n) { grid-column: 1 / -1; }
 .eme-category-grid--five.eme-category-grid--product .eme-category-grid__content {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 10px;
 }
 .eme-category-grid--five.eme-category-grid--product .eme-category-grid__product-main {
  display: flex; flex-direction: column; width: 56%; min-width: 0; align-self: stretch; justify-content: center;
 }
 .eme-category-grid--five.eme-category-grid--product .eme-category-grid__image-wrap {
  width: 40%; max-width: 40%; height: 160px; flex: 0 0 40%; align-self: center; order: initial; right: 0;
 }
 .eme-category-grid--five.eme-category-grid--product .eme-category-grid__image { object-position: center; }
 .eme-category-grid--five.eme-category-grid--product .eme-category-grid__title { overflow-wrap: normal; hyphens: none; }
 .eme-category-grid--five.eme-category-grid--product .eme-category-grid__cta--product { flex-wrap: wrap; }
}
