/* ==========================================================================
   AgroModern v1.1 — design layer
   New header & footer, product designs (card, filter, spotlight, list),
   category cards and the layout variants of the section blocks.
   Loaded after theme.css.
   ========================================================================== */

:root {
	--am-slate: #2B4354;
	--am-ink: #1F3240;
	--am-coral: #E2765B;
	--am-coral-deep: #C65E49;
	--am-sage: #9CAF9C;
	--am-sage-soft: #E6ECE3;
	--am-ivory: #F6F2EA;
	--am-line: #D9DEDE;
	--am-muted: #687780;
	--am-radius: 18px;
	--am-radius-sm: 10px;
	--am-hdr-h: 84px;
}

body.menu-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   Header (Ivory)
   ------------------------------------------------------------------------- */

.hdr-strip {
	background: var(--am-ink);
	color: rgba(255, 255, 255, .78);
	font-size: .8rem;
}

.hdr-strip__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: .5rem var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.hdr-strip__note { display: flex; align-items: center; gap: .6rem; margin: 0; }

.hdr-strip__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--am-sage);
	box-shadow: 0 0 0 4px rgba(156, 175, 156, .22);
}

.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-links a {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: inherit;
	text-decoration: none;
}

.hdr-strip .contact-links a { color: #fff; }
.hdr-strip .contact-links a:hover { color: var(--am-coral); }
.contact-links .icon { color: var(--am-coral); }

.hdr {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(246, 242, 234, .94);
	border-bottom: 1px solid var(--am-line);
	-webkit-backdrop-filter: saturate(1.3) blur(10px);
	backdrop-filter: saturate(1.3) blur(10px);
	transition: box-shadow .25s var(--ease);
}

.admin-bar .hdr { top: 32px; }
.hdr.is-scrolled { box-shadow: 0 10px 30px rgba(32, 53, 71, .08); }

.hdr__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
	min-height: var(--am-hdr-h);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.5rem;
}

.hdr .brand { color: var(--am-slate); }
.hdr .brand__tagline { display: none; }

.hdr__nav { justify-self: center; min-width: 0; }
.hdr__panel-foot { display: none; }

.hdr .primary-menu { gap: .1rem; }

.hdr .primary-menu > li > a {
	padding: .55rem .9rem;
	border-radius: 999px;
	color: var(--am-slate);
	font-size: .92rem;
	font-weight: 550;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}

.hdr .primary-menu > li > a:hover { background: rgba(43, 67, 84, .07); color: var(--am-slate); }

.hdr .primary-menu > li > a::after {
	left: 50%;
	right: auto;
	bottom: .2rem;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--am-coral);
	transform: translateX(-50%) scale(0);
}

.hdr .primary-menu > li > a:hover::after { transform: translateX(-50%) scale(0); }
.hdr .primary-menu > .current-menu-item > a::after,
.hdr .primary-menu > .current-menu-ancestor > a::after { transform: translateX(-50%) scale(1); }

.hdr .primary-menu .menu-item-has-children > a { padding-right: 1.7rem; }
.hdr .primary-menu .menu-item-has-children > a::before { right: .75rem; }

.hdr .primary-menu .sub-menu {
	top: calc(100% + .45rem);
	min-width: 270px;
	padding: .55rem;
	border: 1px solid var(--am-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 50px rgba(32, 53, 71, .14);
}

.hdr .primary-menu .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -.6rem;
	height: .6rem;
}

.hdr .primary-menu .sub-menu a {
	padding: .65rem .8rem;
	border-radius: 9px;
	color: var(--am-slate);
	font-size: .9rem;
}

.hdr .primary-menu .sub-menu a:hover { background: var(--am-sage-soft); }

.hdr__actions { display: flex; align-items: center; gap: .6rem; }

.hdr__quote-list {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	height: 2.75rem;
	padding: 0 .5rem 0 .75rem;
	border: 1px solid #C9D2D0;
	border-radius: 999px;
	color: var(--am-slate);
	font-size: .86rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.hdr__quote-list:hover { border-color: var(--am-slate); color: var(--am-slate); background: #fff; }
.hdr__quote-list svg { width: 1.15rem; height: 1.15rem; }
.hdr__quote-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hdr__count {
	display: grid;
	place-items: center;
	min-width: 1.6rem;
	height: 1.6rem;
	padding: 0 .35rem;
	border-radius: 999px;
	background: var(--am-slate);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
}

.hdr__count[data-quote-count="0"] { background: var(--am-line); color: var(--am-muted); }

.hdr__cta {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	height: 2.75rem;
	padding: 0 1.3rem;
	border: 0;
	border-radius: 999px;
	background: var(--am-coral);
	color: #fff;
	font: 600 .9rem/1 var(--f-body);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.hdr__cta:hover { background: var(--am-slate); }
.hdr__cta span { transition: transform .2s var(--ease); }
.hdr__cta:hover span { transform: translateX(3px); }

.hdr__toggle {
	display: none;
	align-items: center;
	gap: .65rem;
	height: 2.75rem;
	padding: 0 .9rem 0 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--am-slate);
	color: #fff;
	font: 600 .85rem/1 var(--f-body);
	cursor: pointer;
}

.hdr__toggle-icon { position: relative; width: 18px; height: 10px; }

.hdr__toggle-icon span {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s var(--ease), top .3s var(--ease);
}

.hdr__toggle-icon span:first-child { top: 0; }
.hdr__toggle-icon span:last-child { top: 8px; }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-icon span:first-child { top: 4px; transform: rotate(45deg); }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-icon span:last-child { top: 4px; transform: rotate(-45deg); }

.hdr .primary-menu > li > a { white-space: nowrap; }

@media (max-width: 1380px) {
	.hdr .brand__tagline { display: none; }
}

@media (max-width: 1240px) {
	.hdr__inner { gap: 1rem; }
	.hdr .primary-menu > li > a { padding: .5rem .6rem; font-size: .88rem; }
	.hdr .primary-menu .menu-item-has-children > a { padding-right: 1.4rem; }
	.hdr .primary-menu .menu-item-has-children > a::before { right: .5rem; }
	.hdr__cta { padding: 0 1rem; }
}

/* Mobile / tablet: full-height panel under the header bar. */
@media (max-width: 1140px) {
	:root { --am-hdr-h: 72px; }

	.hdr-strip { display: none; }

	.hdr__inner { display: flex; justify-content: space-between; gap: 1rem; }
	.hdr__toggle { display: inline-flex; }

	.hdr__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		height: calc(100vh - var(--am-hdr-h));
		height: calc(100dvh - var(--am-hdr-h) - var(--wp-admin--admin-bar--height, 0px));
		background: var(--am-ivory);
		border-top: 1px solid var(--am-line);
	}

	.hdr__nav.is-open { display: block; animation: am-panel .35s var(--ease) both; }

	@keyframes am-panel {
		from { opacity: 0; transform: translateY(-8px); }
		to { opacity: 1; transform: none; }
	}

	.hdr__nav-scroll {
		height: 100%;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 1rem var(--gutter) 2rem;
		display: flex;
		flex-direction: column;
		max-width: 720px;
		margin: 0 auto;
	}

	.hdr .primary-menu,
	.hdr .primary-menu.is-open {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: none;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
		overflow: visible;
		animation: none;
		counter-reset: am-nav;
	}

	.hdr .primary-menu > li { border-bottom: 1px solid var(--am-line); }

	.hdr .primary-menu > li > a {
		display: flex;
		align-items: baseline;
		gap: .9rem;
		padding: 1rem 0;
		border-radius: 0;
		font-family: var(--f-display);
		font-size: clamp(1.45rem, 5.5vw, 2rem);
		font-weight: 600;
		letter-spacing: -.02em;
		background: none !important;
		border-bottom: 0;
	}

	.hdr .primary-menu > li > a::before {
		counter-increment: am-nav;
		content: counter(am-nav, decimal-leading-zero);
		display: inline !important;
		position: static;
		width: auto;
		height: auto;
		border: 0;
		transform: none;
		font-family: var(--f-body);
		font-size: .72rem;
		font-weight: 700;
		letter-spacing: .1em;
		color: var(--am-coral);
	}

	.hdr .primary-menu > li > a::after { display: none; }
	.hdr .primary-menu .menu-item-has-children > a { padding-right: 0; }

	.hdr .primary-menu .sub-menu {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: .5rem;
		min-width: 0;
		padding: 0 0 1.1rem 2.1rem;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.hdr .primary-menu .sub-menu::before { display: none; }

	.hdr .primary-menu .sub-menu a {
		padding: .5rem .9rem;
		border: 1px solid #C9D2D0;
		border-radius: 999px;
		background: #fff;
		font-size: .88rem;
		color: var(--am-slate);
	}

	.hdr__panel-foot {
		display: grid;
		gap: 1.25rem;
		margin-top: auto;
		padding-top: 2rem;
	}

	.hdr__panel-cta { width: 100%; border-radius: 999px; }
	.hdr__panel-cta.btn--primary { background: var(--am-coral); color: #fff; }

	.hdr__panel-foot .contact-links { flex-direction: column; gap: .75rem; color: var(--am-slate); font-weight: 500; }
}

@media (max-width: 782px) { .admin-bar .hdr { top: 46px; } }
@media (max-width: 600px) {
	.admin-bar .hdr { top: 0; }
	.hdr__cta { display: none; }
	.hdr .brand__name { font-size: 1.05rem; }
	.hdr .brand__mark { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
	.hdr__toggle-label { display: none; }
	.hdr__toggle { padding: 0 .9rem; }
	.hdr .brand__name { font-size: .95rem; white-space: normal; }
}

/* -------------------------------------------------------------------------
   Footer (Statement)
   ------------------------------------------------------------------------- */

.ftr {
	background: var(--am-ink);
	color: rgba(255, 255, 255, .74);
	font-size: .93rem;
}

.ftr__cta { background: var(--am-sage-soft); color: var(--am-slate); }

.ftr__cta-inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: clamp(3.25rem, 7vw, 5.5rem) var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	align-items: end;
	gap: 2.5rem 4rem;
}

.ftr__cta .eyebrow { margin-bottom: 1.1rem; }

.ftr__cta-title {
	margin: 0;
	color: var(--am-slate);
	font-size: clamp(1.9rem, 4.2vw, 3.4rem);
	line-height: 1.04;
	letter-spacing: -.035em;
}

.ftr__cta-title em { color: var(--am-coral); font-weight: 500; }

.ftr__mail {
	display: inline-flex;
	align-items: baseline;
	gap: .6rem;
	max-width: 100%;
	padding-bottom: .35rem;
	border-bottom: 2px solid var(--am-coral);
	color: var(--am-slate);
	font-family: var(--f-display);
	font-size: clamp(1.2rem, 2.3vw, 1.65rem);
	font-weight: 600;
	text-decoration: none;
}

.ftr__mail span:first-child { overflow-wrap: anywhere; }
.ftr__mail:hover { color: var(--am-coral-deep); }

.ftr__cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.ftr__cta .btn--dark { background: var(--am-slate); }
.ftr__cta .btn--ghost { border-color: var(--am-slate); color: var(--am-slate); }
.ftr__cta .btn--ghost:hover { background: var(--am-slate); color: #fff; }

.ftr__main {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 1.5rem;
}

.ftr__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.3fr);
	gap: 2.5rem;
}

.ftr__col { min-width: 0; }

.ftr .brand--footer .brand__name { white-space: normal; }

.ftr__tagline { max-width: 360px; margin: 1.25rem 0 1.5rem; line-height: 1.65; }

.ftr__heading {
	margin: 0 0 1.15rem;
	font-family: var(--f-body);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--am-sage);
}

.ftr .footer-links { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.ftr .footer-links a,
.ftr .footer-contact a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.ftr .footer-links a:hover,
.ftr .footer-contact a:hover { color: var(--am-coral); }
.ftr .footer-contact { display: grid; gap: .95rem; margin: 0; padding: 0; list-style: none; }
.ftr .footer-contact__item { display: flex; gap: .75rem; line-height: 1.5; overflow-wrap: break-word; }
.ftr .footer-contact__item .icon { margin-top: .2rem; color: var(--am-coral); }
.ftr .footer-contact strong { color: #fff; font-weight: 600; }
.ftr .footer-contact .muted { color: rgba(255, 255, 255, .55); font-size: .85rem; }
.ftr .footer-reg__item { border-color: rgba(255, 255, 255, .16); border-radius: 999px; padding: .35rem .8rem; }
.ftr .footer-reg__item strong { color: #fff; }

.ftr__wordmark {
	margin: clamp(2.5rem, 6vw, 4rem) 0 0;
	padding-top: clamp(1.25rem, 3vw, 2rem);
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.ftr__wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }

.ftr__wordmark text {
	font-family: var(--f-display);
	font-size: 100px;
	font-weight: 600;
	fill: transparent;
	stroke: rgba(255, 255, 255, .24);
	stroke-width: 1;
}

.ftr__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .9rem 2rem;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .83rem;
}

.ftr__copy,
.ftr__legal { margin: 0; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.ftr__legal a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ftr__legal a:hover { color: #fff; }

.ftr__top {
	padding: .5rem 1rem;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	background: none;
	color: #fff;
	font: 600 .8rem/1 var(--f-body);
	cursor: pointer;
}

.ftr__top:hover { background: #fff; color: var(--am-ink); }

@media (max-width: 1140px) {
	.ftr__cta-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}

@media (max-width: 600px) {
	.ftr__grid { gap: 2.25rem 1.5rem; }
	.ftr__col--brand,
	.ftr__col--contact { grid-column: 1 / -1; }
	.ftr__cta-actions .btn { flex: 1 1 100%; }
	.ftr__bottom { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   Product card (pcard)
   ------------------------------------------------------------------------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.agromodern-products-grid .card-grid,
.single-products .section--related .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }

.pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: .55rem;
	background: #fff;
	border: 1px solid var(--am-line);
	border-radius: var(--am-radius);
	transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}

.pcard[hidden] { display: none; }

.pcard:hover {
	border-color: transparent;
	box-shadow: 0 2px 4px rgba(32, 53, 71, .05), 0 24px 48px rgba(32, 53, 71, .13);
	transform: translateY(-4px);
}

.pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3.1;
	overflow: hidden;
	border-radius: calc(var(--am-radius) - 6px) calc(var(--am-radius) - 6px) 4px 4px;
	background: var(--c-mist);
}

.pcard__image,
.pcard__media .img-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .9s var(--ease);
}

.pcard:hover .pcard__image { transform: scale(1.06); }

.pcard__chip {
	position: absolute;
	left: .65rem;
	bottom: .65rem;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	max-width: calc(100% - 1.3rem);
	padding: .3rem .7rem .3rem .35rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--am-slate);
	font-size: .72rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pcard__chip-icon {
	flex: 0 0 auto;
	width: 1.3rem;
	height: 1.3rem;
	padding: .2rem;
	border-radius: 50%;
	background: var(--cat-accent);
	color: #fff;
}

.pcard__body { flex: 1 1 auto; padding: 1rem .7rem .4rem; }

.pcard__sku {
	margin: 0 0 .35rem;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--am-muted);
}

.pcard__title { margin: 0 0 .45rem; font-size: 1.22rem; line-height: 1.2; }
.pcard__title a { color: var(--am-slate); text-decoration: none; }
.pcard__title a:hover { color: var(--am-coral-deep); }

.pcard__excerpt {
	margin: 0 0 .9rem;
	font-size: .88rem;
	line-height: 1.55;
	color: var(--am-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pcard__facts {
	display: grid;
	gap: .35rem;
	margin: 0;
	padding: .75rem 0 0;
	border-top: 1px dashed var(--am-line);
	font-size: .8rem;
}

.pcard__facts div { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .5rem; }
.pcard__facts dt { color: var(--am-muted); font-weight: 600; }
.pcard__facts dd { margin: 0; color: var(--am-slate); font-weight: 500; }

.pcard__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .7rem .7rem .55rem;
}

.pcard__link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: var(--am-slate);
	font-size: .86rem;
	font-weight: 600;
	text-decoration: none;
}

.pcard__link .icon { transition: transform .25s var(--ease); }
.pcard__link:hover { color: var(--am-coral-deep); }
.pcard__link:hover .icon { transform: translateX(4px); }

.pcard__add {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--am-sage-soft);
	color: var(--am-slate);
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .3s var(--ease);
}

.pcard__add svg { width: 1.1rem; height: 1.1rem; transition: transform .3s var(--ease); }
.pcard__add:hover { background: var(--am-coral); color: #fff; }
.pcard__add:hover svg { transform: rotate(90deg); }
.pcard__add.is-added { background: var(--am-slate); color: #fff; animation: pop .45s var(--ease); }
.pcard__add.is-duplicate { box-shadow: 0 0 0 2px var(--am-coral); }

.carousel__slide { flex-basis: calc((100% - 4.5rem) / 4); }
@media (max-width: 1180px) { .carousel__slide { flex-basis: calc((100% - 3rem) / 3); } }
@media (max-width: 860px) { .carousel__slide { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 560px) { .carousel__slide { flex-basis: 84%; min-width: 0; } }

/* Filter chips */
.pfilter {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.pfilter__chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem .6rem .55rem 1rem;
	border: 1px solid #C9D2D0;
	border-radius: 999px;
	background: #fff;
	color: var(--am-slate);
	font: 600 .86rem/1 var(--f-body);
	cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.pfilter__chip span {
	min-width: 1.5rem;
	padding: .2rem .4rem;
	border-radius: 999px;
	background: var(--am-sage-soft);
	font-size: .72rem;
	text-align: center;
}

.pfilter__chip:hover { border-color: var(--am-slate); }
.pfilter__chip.is-active { background: var(--am-slate); border-color: var(--am-slate); color: #fff; }
.pfilter__chip.is-active span { background: rgba(255, 255, 255, .18); }
.pfilter__empty { margin-top: 1rem; color: var(--am-muted); }

@media (max-width: 600px) {
	.pfilter { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; scrollbar-width: none; }
	.pfilter::-webkit-scrollbar { display: none; }
	.pfilter__chip { flex: 0 0 auto; }
}

/* -------------------------------------------------------------------------
   Category cards
   ------------------------------------------------------------------------- */

.cat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.cat-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--am-line);
	border-radius: var(--am-radius);
	transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}

.cat-card:hover { box-shadow: 0 24px 48px rgba(32, 53, 71, .12); transform: translateY(-4px); }

.cat-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-mist); }
.cat-card__image,
.cat-card__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cat-card:hover .cat-card__image { transform: scale(1.05); }

.cat-card__count {
	position: absolute;
	right: .75rem;
	top: .75rem;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: rgba(31, 50, 64, .82);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
}

.cat-card__body { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; padding: 2rem 1.4rem 1.4rem; }

.cat-card__icon {
	position: absolute;
	top: -1.4rem;
	left: 1.4rem;
	display: grid;
	place-items: center;
	width: 2.8rem;
	height: 2.8rem;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--cat-accent);
	color: #fff;
}

.cat-card__svg { width: 1.35rem; height: 1.35rem; }
.cat-card__name { margin: 0 0 .5rem; font-size: 1.35rem; }
.cat-card__name a { color: var(--am-slate); text-decoration: none; }
.cat-card__text { margin: 0 0 1rem; color: var(--am-muted); font-size: .9rem; line-height: 1.55; }

.cat-card__list {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.cat-card__list a {
	display: inline-block;
	padding: .3rem .65rem;
	border-radius: 999px;
	background: var(--am-sage-soft);
	color: var(--am-slate);
	font-size: .76rem;
	font-weight: 600;
	text-decoration: none;
}

.cat-card__list a:hover { background: var(--am-slate); color: #fff; }

.cat-card__cta {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-top: auto;
	color: var(--am-coral-deep);
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
}

.cat-card__cta .icon { transition: transform .25s var(--ease); }
.cat-card:hover .cat-card__cta .icon { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   Product spotlight
   ------------------------------------------------------------------------- */

.spotlight {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.spotlight--right .spotlight__media { order: 2; }

.spotlight__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1.02;
	overflow: hidden;
	border-radius: 34px 8px 34px 8px;
	background: var(--c-mist);
}

.spotlight__image,
.spotlight__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.spotlight:hover .spotlight__image { transform: scale(1.04); }

.spotlight__sku {
	position: absolute;
	left: 1rem;
	top: 1rem;
	padding: .4rem .8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--am-slate);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .14em;
}

.spotlight__cat {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 1rem;
	color: var(--am-slate);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
}

.spotlight__cat-icon { width: 1.7rem; height: 1.7rem; padding: .3rem; border-radius: 50%; background: var(--cat-accent); color: #fff; }
.spotlight .eyebrow { display: flex; }

.spotlight__title { margin: 0 0 .5em; font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.03em; }
.spotlight__title a { color: var(--am-slate); text-decoration: none; }
.spotlight__lede { margin-bottom: 1.5rem; color: var(--am-muted); font-size: 1.06rem; }

.spotlight__specs {
	margin: 0 0 1.25rem;
	border-top: 2px solid var(--am-slate);
}

.spotlight__specs div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1rem;
	padding: .6rem 0;
	border-bottom: 1px solid var(--am-line);
	font-size: .9rem;
}

.spotlight__specs dt { color: var(--am-muted); }
.spotlight__specs dd { margin: 0; color: var(--am-slate); font-weight: 600; }

.spotlight__facts { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0 0 1rem; padding: 0; list-style: none; font-weight: 600; color: var(--am-slate); }
.spotlight__facts span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--am-coral-deep); }

.spotlight__markets { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.75rem; }
.spotlight__markets span { padding: .3rem .7rem; border: 1px solid #C9D2D0; border-radius: 999px; font-size: .76rem; color: var(--am-slate); }

.spotlight__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 900px) {
	.spotlight { grid-template-columns: minmax(0, 1fr); }
	.spotlight--right .spotlight__media { order: 0; }
	.spotlight__media { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
	.spotlight__specs div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
	.spotlight__actions .btn { flex: 1 1 100%; }
}

/* -------------------------------------------------------------------------
   Product list (table)
   ------------------------------------------------------------------------- */

.plist { border-top: 2px solid var(--am-slate); }

.plist__head,
.plist__row {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.2fr) auto;
	align-items: center;
	gap: 1rem;
	padding: .85rem .5rem;
	border-bottom: 1px solid var(--am-line);
}

.plist__head {
	padding-top: .75rem;
	padding-bottom: .75rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--am-muted);
}

.plist__row { position: relative; transition: background-color .2s var(--ease); }
.plist__row:hover { background: #fff; }
.plist__row::before { content: ""; position: absolute; left: 0; top: .85rem; bottom: .85rem; width: 3px; border-radius: 3px; background: var(--cat-accent); opacity: 0; transition: opacity .2s; }
.plist__row:hover::before { opacity: 1; }

.plist__product { display: flex; align-items: center; gap: .9rem; min-width: 0; }

.plist__thumb {
	flex: 0 0 auto;
	width: 3.6rem;
	height: 3.6rem;
	overflow: hidden;
	border-radius: 12px;
	background: var(--c-mist);
}

.plist__thumb img,
.plist__thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.plist__thumb .img-placeholder__icon { width: 1.8rem; height: 1.8rem; padding: .35rem; }

.plist__name { display: flex; flex-direction: column; min-width: 0; }
.plist__name a { color: var(--am-slate); font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; text-decoration: none; }
.plist__name a:hover { color: var(--am-coral-deep); }
.plist__name small { font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--am-muted); }

.plist__cell { font-size: .9rem; color: var(--am-text, var(--c-text)); min-width: 0; }
.plist__cat { color: var(--am-muted); }

.plist__actions { display: flex; align-items: center; gap: .6rem; justify-content: flex-end; }

.plist__link {
	padding: .45rem .9rem;
	border: 1px solid #C9D2D0;
	border-radius: 999px;
	color: var(--am-slate);
	font-size: .82rem;
	font-weight: 600;
	text-decoration: none;
}

.plist__link:hover { border-color: var(--am-slate); background: var(--am-slate); color: #fff; }

@media (max-width: 860px) {
	.plist__head { display: none; }
	.plist { border-top: 0; display: grid; gap: .75rem; }
	.plist__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .75rem 1rem;
		padding: 1rem;
		border: 1px solid var(--am-line);
		border-radius: var(--am-radius-sm);
		background: #fff;
	}
	.plist__row::before { display: none; }
	.plist__product { grid-column: 1 / -1; }
	.plist__cell::before {
		content: attr(data-label);
		display: block;
		font-size: .66rem;
		font-weight: 700;
		letter-spacing: .12em;
		text-transform: uppercase;
		color: var(--am-muted);
	}
	.plist__cat { display: none; }
	.plist__actions { grid-column: 1 / -1; justify-content: space-between; padding-top: .75rem; border-top: 1px dashed var(--am-line); }
}

/* -------------------------------------------------------------------------
   Section variants
   ------------------------------------------------------------------------- */

/* Media + text: overlapping card */
.media-text--v-overlap {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 0;
	align-items: center;
}

.media-text--v-overlap .media-text__media::before { display: none; }
.media-text--v-overlap .media-text__frame { aspect-ratio: 16 / 11; border-radius: 30px 8px 30px 8px; }

.media-text--v-overlap .media-text__copy {
	position: relative;
	z-index: 2;
	margin-left: -5rem;
	padding: clamp(1.75rem, 4vw, 3rem);
	background: #fff;
	border-radius: var(--am-radius);
	box-shadow: 0 30px 60px rgba(32, 53, 71, .14);
}

.media-text--v-overlap.media-text--right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.media-text--v-overlap.media-text--right .media-text__copy { margin-left: 0; margin-right: -5rem; order: 1; }
.media-text--v-overlap.media-text--right .media-text__media { order: 2; }

/* Media + text: centred copy above a wide image */
.media-text--v-stacked { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); text-align: center; }
.media-text--v-stacked .media-text__copy { order: -1; max-width: 760px; margin: 0 auto; }
.media-text--v-stacked .media-text__copy .eyebrow { justify-content: center; }
.media-text--v-stacked .media-text__media,
.media-text--v-stacked.media-text--right .media-text__media { order: 0; margin: 0 !important; }
.media-text--v-stacked .media-text__media::before { display: none; }
.media-text--v-stacked .media-text__frame { aspect-ratio: 21 / 9; border-radius: 30px 8px 30px 8px; }

.agromodern-text-image.media-text--v-overlap .media-text__copy .eyebrow,
.agromodern-text-image.media-text--v-stacked .media-text__copy .eyebrow { align-items: center; }

@media (max-width: 960px) {
	.media-text--v-overlap,
	.media-text--v-overlap.media-text--right { grid-template-columns: minmax(0, 1fr); }
	.media-text--v-overlap .media-text__media,
	.media-text--v-overlap.media-text--right .media-text__media { order: 0; margin: 0 !important; }
	.media-text--v-overlap .media-text__copy,
	.media-text--v-overlap.media-text--right .media-text__copy { order: 1; margin: -3.5rem 1rem 0; }
	.media-text--v-stacked .media-text__frame { aspect-ratio: 16 / 10; }
}

@media (max-width: 480px) {
	.media-text--v-overlap .media-text__copy,
	.media-text--v-overlap.media-text--right .media-text__copy { margin: -2rem .5rem 0; }
}

/* Feature grid: numbered list with side heading */
.fg--list .fg__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}

.fg--list .agromodern-feature-grid__head { position: sticky; top: calc(var(--am-hdr-h) + 2rem); margin: 0; }
.fg--list { background: var(--c-paper); color: var(--c-text); }
.fg--list h2 { color: var(--c-ink); }
.fg--list .section-heading p { color: var(--am-muted); }
.fg--list .grid-container { display: block; border-top: 2px solid var(--am-slate); }

.fg--list .feature-item {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 1rem;
	padding: 1.6rem 0;
	border-left: 0;
	border-bottom: 1px solid var(--am-line);
}

.fg--list .feature-number { grid-row: 1 / 3; font-size: 2.2rem; color: transparent; -webkit-text-stroke: 1px var(--am-coral); }
.fg--list .feature-title { margin: 0 0 .4rem; color: var(--am-slate); font-size: 1.3rem; }
.fg--list .feature-desc { color: var(--am-muted); font-size: .98rem; }

@media (max-width: 860px) {
	.fg--list .fg__layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.fg--list .agromodern-feature-grid__head { position: static; }
	.fg--list .feature-item { grid-template-columns: 3.2rem minmax(0, 1fr); }
	.fg--list .feature-number { font-size: 1.7rem; }
}

/* Feature grid: light cards */
.fg--cards { color: var(--c-text); background: var(--c-sand); }
.fg--cards h2 { color: var(--c-ink); }
.fg--cards .section-heading p { color: var(--am-muted); }
.fg--cards .agromodern-feature-grid__head { text-align: center; margin-left: auto; margin-right: auto; }
.fg--cards .agromodern-feature-grid__head .eyebrow { justify-content: center; }
.fg--cards .grid-container { gap: clamp(1rem, 2vw, 1.5rem); }

.fg--cards .feature-item {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--am-line);
	border-radius: var(--am-radius);
	background: #fff;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.fg--cards .feature-item:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(32, 53, 71, .1); }

.fg--cards .feature-number {
	display: grid;
	place-items: center;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 50%;
	background: var(--am-sage-soft);
	color: var(--am-coral-deep);
	font-size: 1rem;
	font-weight: 700;
}

.fg--cards .feature-title { color: var(--am-slate); }
.fg--cards .feature-desc { color: var(--am-muted); }

/* CTA banner variants */
.cta-banner--slate {
	flex-direction: column;
	justify-content: center;
	text-align: center;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
	background: var(--am-slate);
	color: #fff;
	border-radius: var(--am-radius);
}

.cta-banner--slate::after { left: -80px; right: auto; top: auto; bottom: -160px; border-color: rgba(255, 255, 255, .06); }
.cta-banner--slate .cta-banner__copy { max-width: 720px; margin: 0 auto; }
.cta-banner--slate h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.cta-banner--slate p { color: rgba(255, 255, 255, .78); }
.cta-banner--slate .cta-banner__actions { justify-content: center; }
.cta-banner--slate .btn--primary { background: var(--am-coral); color: #fff; }
.cta-banner--slate .btn--primary:hover { background: #fff; color: var(--am-slate); }

.cta-banner--outline {
	background: transparent;
	border: 1.5px solid var(--am-slate);
	border-radius: var(--am-radius);
}

.cta-banner--outline::after { border-color: rgba(226, 118, 91, .14); }
.cta-banner--outline .btn--primary { background: var(--am-coral); color: #fff; }
.cta-banner--outline .btn--primary:hover { background: var(--am-slate); color: #fff; }

.cta-banner--coral { border-radius: var(--am-radius); }

@media (max-width: 600px) {
	.cta-banner--slate .cta-banner__actions .btn { flex: 1 1 100%; }
}

/* Stats variants */
.stats-band { background: var(--am-slate) !important; }

.agromodern-stats--band { border: 0; text-align: center; }
.agromodern-stats--band .stats__item { padding: 1rem 1.5rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.agromodern-stats--band .stats__item:first-child { border-left: 0; padding-left: 1.5rem; }
.agromodern-stats--band .stats__figure { color: #fff; font-size: clamp(2.6rem, 5vw, 4rem); }
.agromodern-stats--band .stats__label { color: var(--am-sage); }

.agromodern-stats--cards { gap: clamp(.75rem, 2vw, 1.25rem); border: 0; }

.agromodern-stats--cards .stats__item,
.agromodern-stats--cards .stats__item:first-child {
	padding: 1.75rem 1.5rem;
	border: 0;
	border-radius: var(--am-radius);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--am-line);
}

.agromodern-stats--cards .stats__item:nth-child(2n) { background: var(--am-sage-soft); box-shadow: none; }

@media (max-width: 960px) {
	.agromodern-stats--band .stats__item,
	.agromodern-stats--band .stats__item:first-child,
	.agromodern-stats--band .stats__item:nth-child(odd) { padding: 1.5rem 1rem; border-left: 0; border-right: 0; border-bottom: 0; }
	.agromodern-stats--band .stats__item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .14); }
	.agromodern-stats--band .stats__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }

	.agromodern-stats--cards .stats__item,
	.agromodern-stats--cards .stats__item:first-child,
	.agromodern-stats--cards .stats__item:nth-child(odd),
	.agromodern-stats--cards .stats__item:nth-child(-n+2) { padding: 1.4rem 1.1rem; border: 0; }
}

/* Story: large statement */
.story-statement { max-width: 980px; margin: 0 auto; text-align: center; }
.story-statement .eyebrow { justify-content: center; }

.story-statement__heading {
	margin: 0 0 .5em;
	font-size: clamp(2.2rem, 5.2vw, 4.2rem);
	line-height: 1.02;
	letter-spacing: -.04em;
}

.story-statement__text {
	max-width: 760px;
	margin: 0 auto 1.75rem;
	color: var(--am-muted);
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	line-height: 1.75;
}

/* Section headings centred inside tinted sections look calmer */
.section--tint .am-intro--center { max-width: 760px; }

/* Shared rounding for older blocks so everything matches the new language */
.media-text:not(.media-text--v-overlap):not(.media-text--v-stacked) .media-text__frame { border-radius: 26px 6px 26px 6px; }
.contact-panel { border-radius: var(--am-radius); overflow: hidden; }
.testimonial-card { border-radius: var(--am-radius); }
.am-card { border-radius: var(--am-radius); }
.am-table { border-radius: var(--am-radius-sm); }
.agt-single-photo,
.agt-slider__stage { border-radius: 24px 6px 24px 6px; }

/* Tinted sections: a visible warm tone (the old tint matched the page colour). */
.section--tint,
.fg--cards { background: #EFE8DB !important; }

/* The legacy "every third section is tinted" rule is invisible with this
   palette, so don't let it add extra top padding between plain sections. */
.page-content > .section + .section:nth-of-type(3n+2):not(.section--dark):not(.section--cta):not(.section--tint):not(.stats-band):not(.fg--cards):not(.story-statement-section) { padding-top: 0; background: transparent; }
.page-content > .section--tint + .section:not(.section--dark):not(.section--cta):not(.section--tint) { padding-top: clamp(3.5rem, 7vw, 6rem); }
