/* =========================================================================
   Products listing — agrochemical catalogue
   Brand: #00AC63 (green) / #F99D20 (amber)
   ====================================================================== */

.agri {
	--g-500: #00ac63;
	--g-600: #009255;
	--g-700: #067247;
	--g-900: #062b1d;
	--g-050: #e8f6ef;
	--g-100: #cdeade;

	--a-500: #f99d20;
	--a-600: #e2860c;
	--a-050: #fef2e2;

	--ink: #0d2a1f;
	--body: #45584f;
	--muted: #6f827a;
	--line: #dfe8e3;
	--line-soft: #eef3f0;
	--surface: #ffffff;
	--canvas: #f4f7f5;

	--r-card: 16px;
	--r-ctl: 10px;
	--shadow-1: 0 1px 2px rgba(6, 43, 29, .05);
	--shadow-2: 0 22px 44px -26px rgba(6, 43, 29, .45);

	--rail-w: 312px;
	--ctl-h: 46px;   /* every control in the toolbar matches this */
	--sticky-top: 24px;
	--ease: cubic-bezier(.22, .61, .36, 1);

	background: var(--canvas);
	color: var(--body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.agri *,
.agri *::before,
.agri *::after { box-sizing: border-box; }

.agri :where(h1, h2, h3) {
	color: var(--ink);
	margin: 0;
	line-height: 1.18;
	letter-spacing: -.015em;
}

.agri a { text-decoration: none; color: inherit; }
.agri :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.agri img { max-width: 100%; height: auto; display: block; }
.agri button { font: inherit; color: inherit; }

.agri .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.agri :focus-visible {
	outline: 2px solid var(--g-500);
	outline-offset: 3px;
	border-radius: 4px;
}

/* -------------------------------------------------------------- Buttons */

.agri-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: var(--r-ctl);
	border: 1px solid transparent;
	background: none;
	font-size: .92rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .18s var(--ease), color .18s var(--ease),
		border-color .18s var(--ease), transform .18s var(--ease);
}
.agri-btn:active { transform: translateY(1px); }
.agri-btn svg { width: 18px; height: 18px; flex: none; }

.agri .agri-btn--solid,
.agri .agri-btn--solid span { color: #fff; }
.agri-btn--solid { background: var(--g-500); }
.agri-btn--solid:hover { background: var(--g-600); }

.agri-btn--outline {
	border-color: var(--line);
	background: var(--surface);
	color: var(--ink);
}
.agri-bar__tools .agri-btn { height: var(--ctl-h); padding-top: 0; padding-bottom: 0; }
.agri-btn--outline:hover { border-color: var(--g-500); color: var(--g-700); }

.agri-btn--ghost { color: var(--g-700); padding: 8px 4px; }
.agri-btn--ghost:hover { color: var(--a-600); }
.agri-btn[hidden] { display: none; }

/* ==========================================================================
   Hero
   ========================================================================= */

.agri-hero {
	position: relative;
	background:
		radial-gradient(120% 140% at 88% -10%, rgba(0, 172, 99, .38) 0%, rgba(0, 172, 99, 0) 58%),
		linear-gradient(168deg, #0a3b27 0%, #062b1d 100%);
	background-color: #062b1d;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

/* row-crop rhythm: thin vertical lines like planted rows */
.agri-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		92deg,
		rgba(255, 255, 255, .05) 0 1px,
		transparent 1px 34px
	);
	mask-image: linear-gradient(to bottom, transparent, #000 45%, transparent);
	pointer-events: none;
	z-index: -1;
}

.agri-hero__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 26px clamp(18px, 4vw, 48px) clamp(38px, 5vw, 58px);
}

.agri-hero__lead { max-width: 46ch; margin: 22px 0 26px; }

.agri-hero__title {
	color: #fff;
	font-size: clamp(2rem, 4.4vw, 3.15rem);
	font-weight: 700;
	letter-spacing: -.028em;
}

.agri-hero__sub,
.agri .agri-hero__sub p,
.agri .agri-hero__sub li,
.agri .agri-hero__sub a {
	color: rgba(255, 255, 255, .8);
}
.agri-hero__sub {
	margin: 12px 0 0;
	font-size: 1.08rem;
	max-width: 60ch;
}
.agri .agri-hero__sub p { margin: 0 0 .6em; }
.agri .agri-hero__sub p:last-child { margin-bottom: 0; }
.agri .agri-hero__sub a { text-decoration: underline; text-underline-offset: 3px; }

/* Breadcrumbs ------------------------------------------------------------ */

.agri .agri-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 4px;
	font-size: .9rem;
}
.agri-crumbs li { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); }
.agri-crumbs li + li::before {
	content: "";
	width: 5px; height: 5px;
	border-right: 1.5px solid rgba(255, 255, 255, .38);
	border-top: 1.5px solid rgba(255, 255, 255, .38);
	transform: rotate(45deg);
}
.agri-crumbs a { color: rgba(255, 255, 255, .72); transition: color .16s var(--ease); }
.agri-crumbs a:hover { color: #fff; }
.agri-crumbs li.is-current span,
.agri-crumbs__live span { color: #fff; font-weight: 500; }
.agri-crumbs__live[hidden] { display: none; }
.agri-crumbs__live span {
	color: var(--a-500);
	animation: agri-crumb-in .28s var(--ease) both;
}
@keyframes agri-crumb-in {
	from { opacity: 0; transform: translateX(-4px); }
}

/* Search ----------------------------------------------------------------- */

.agri-search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 620px;
	background: rgba(255, 255, 255, .09);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 14px;
	padding: 4px 6px 4px 16px;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
	backdrop-filter: blur(6px);
}
.agri-search:focus-within {
	background: #fff;
	border-color: #fff;
	box-shadow: 0 0 0 4px rgba(0, 172, 99, .28);
}
.agri-search__icon {
	width: 20px; height: 20px; flex: none;
	color: rgba(255, 255, 255, .7);
	transition: color .2s var(--ease);
}
.agri-search:focus-within .agri-search__icon { color: var(--g-600); }

.agri-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	padding: 14px 12px;
	color: #fff;
	font-size: 1rem;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
/*
 * The wrapper carries the focus ring — the input must never draw its own.
 * The parent theme / Elementor style inputs on focus with selectors stronger
 * than ours (e.g. input:not([type=submit]):not([type=button]):focus), which
 * showed up as a second green rounded box inside the search bar while typing.
 * !important on the base selector wins over any state (:focus, :hover,
 * :valid, :not(:placeholder-shown) …) the theme may target.
 */
.agri .agri-search input[type="search"],
.agri .agri-search #agri-search {
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}
.agri .agri-facet__findinput:focus-visible { outline: none; }

.agri-search input::placeholder { color: rgba(255, 255, 255, .55); }
.agri-search input::-webkit-search-cancel-button { display: none; }
.agri-search:focus-within input { color: var(--ink); }
.agri-search:focus-within input::placeholder { color: var(--muted); }

.agri-search__clear {
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	width: 34px; height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color .16s var(--ease);
}
.agri-search__clear svg { width: 16px; height: 16px; }
.agri-search__clear:hover { background: rgba(255, 255, 255, .28); }
.agri-search:focus-within .agri-search__clear { background: var(--line-soft); color: var(--ink); }
.agri-search__clear[hidden] { display: none; }

/* Crop quick-pick --------------------------------------------------------- */

.agri-quick {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 20px;
}
.agri-quick__label { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.agri .agri-quick__list { display: flex; flex-wrap: wrap; gap: 8px; }

.agri-quick__btn {
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .06);
	color: rgba(255, 255, 255, .9);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: .92rem;
	cursor: pointer;
	transition: background-color .18s var(--ease), color .18s var(--ease),
		border-color .18s var(--ease), transform .18s var(--ease);
}
.agri-quick__btn:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.agri-quick__btn.is-active {
	background: var(--a-500);
	border-color: var(--a-500);
	color: #3a2402;
	font-weight: 600;
}

/* ==========================================================================
   Shell
   ========================================================================= */

.agri-shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(24px, 3vw, 40px) clamp(18px, 4vw, 48px) 80px;
	display: grid;
	grid-template-columns: var(--rail-w) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 44px);
	align-items: stretch; /* required: a start-aligned column has no room to stick */
}

/* Sticky needs no scroll-container ancestors; JS converts hidden -> clip. */
.agri,
.agri-shell,
.agri-main,
.agri-rail { overflow: visible; }

/* ==========================================================================
   Filter rail
   ========================================================================= */

.agri-rail__inner {
	position: sticky;
	top: var(--sticky-top);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow-1);
	max-height: calc(100vh - var(--sticky-top) - 24px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.agri-rail__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line-soft);
}
.agri-rail__head h2 { font-size: 1.05rem; font-weight: 700; }

.agri-rail__headtools { display: flex; align-items: center; gap: 6px; }

.agri-reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--muted);
	border-radius: 999px;
	padding: 6px 12px 6px 10px;
	font-size: .855rem;
	font-weight: 600;
	cursor: pointer;
	transition: color .18s var(--ease), border-color .18s var(--ease),
		background-color .18s var(--ease), transform .18s var(--ease);
	animation: agri-pop .24s var(--ease);
}
.agri-reset svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.agri-reset:hover {
	color: var(--a-600);
	border-color: #f6d5a6;
	background: var(--a-050);
}
.agri-reset:hover svg { transform: rotate(-180deg); }
.agri-reset[hidden] { display: none; }

.agri-rail__close {
	display: none;
	border: 0; background: none; cursor: pointer;
	width: 36px; height: 36px; border-radius: 50%;
	place-items: center;
	color: var(--ink);
}
.agri-rail__close svg { width: 22px; height: 22px; }
.agri-rail__close:hover { background: var(--line-soft); }

.agri-rail form {
	overflow-y: auto;
	flex: 1;
	overscroll-behavior: contain;
}
.agri-rail__facets { padding: 4px 0; }

.agri-rail__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid var(--line-soft);
	background: var(--surface);
}
.agri-rail__apply { display: none; flex: 1; }
.agri-rail__scrim { display: none; }

/* Facets ------------------------------------------------------------------ */

.agri-facet { border-bottom: 1px solid var(--line-soft); }
.agri-facet:last-child { border-bottom: 0; }
.agri-facet h3 { margin: 0; font-size: inherit; }

.agri-facet__toggle:focus-visible { outline-offset: -3px; border-radius: 10px; }

.agri-facet__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 17px 24px;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	position: relative;
}
.agri-facet__toggle::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 3px; height: 0;
	background: var(--g-500);
	border-radius: 0 3px 3px 0;
	transform: translateY(-50%);
	transition: height .26s var(--ease);
}
.agri-facet.is-open .agri-facet__toggle::before { height: 22px; }
.agri-facet--target .agri-facet__toggle::before { background: var(--a-500); }
.agri-facet--chem .agri-facet__toggle::before { background: var(--g-900); }
.agri-facet--form .agri-facet__toggle::before { background: var(--a-500); }

.agri-facet__title { flex: 1; font-weight: 650; color: var(--ink); font-size: 1rem; }

.agri-facet__badge {
	min-width: 21px;
	height: 21px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--g-500);
	color: #fff;
	font-size: .76rem;
	font-weight: 700;
	display: grid;
	place-items: center;
	animation: agri-pop .22s var(--ease);
}
.agri-facet__badge[hidden] { display: none; }
@keyframes agri-pop { from { transform: scale(.5); opacity: 0; } }

.agri-facet__chev {
	width: 18px; height: 18px;
	color: var(--muted);
	transition: transform .26s var(--ease);
}
.agri-facet.is-open .agri-facet__chev { transform: rotate(180deg); }

.agri-facet__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .3s var(--ease);
}
.agri-facet.is-open .agri-facet__panel { grid-template-rows: 1fr; }
.agri-facet__inner { overflow: hidden; padding: 0 24px; }
.agri-facet.is-open .agri-facet__inner { padding-top: 6px; }
.agri-facet.is-open .agri-facet__inner { padding-bottom: 24px; }

.agri-facet__find { margin-bottom: 14px; }
.agri-facet__findinput {
	width: 100%;
	display: block;
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 10px 13px;
	font-size: .92rem;
	background: var(--canvas);
	color: var(--ink);
	outline: none;
	transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.agri-facet__findinput:focus { border-color: var(--g-500); background: #fff; }

.agri-facet__none { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.agri-facet__none[hidden] { display: none; }

/*
 * Scroll containers in the rail.
 *
 * Overlay-style: the track is always reserved (so nothing shifts) but stays
 * fully transparent, and only a slim floating thumb fades in while the pointer
 * is in the panel. The transparent border plus background-clip is what makes
 * the thumb read as floating rather than sitting in a groove.
 */
.agri .agri-opts,
.agri-rail form {
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
	transition: scrollbar-color .25s var(--ease);
}

.agri-facet:hover .agri-opts,
.agri-facet:focus-within .agri-opts,
.agri-rail__inner:hover form,
.agri-rail__inner:focus-within form { scrollbar-color: rgba(6, 43, 29, .24) transparent; }

.agri .agri-opts::-webkit-scrollbar,
.agri-rail form::-webkit-scrollbar { width: 11px; background: transparent; }

.agri .agri-opts::-webkit-scrollbar-track,
.agri-rail form::-webkit-scrollbar-track { background: transparent; border: 0; }

.agri .agri-opts::-webkit-scrollbar-thumb,
.agri-rail form::-webkit-scrollbar-thumb {
	background-color: transparent;
	border: 4px solid transparent;   /* leaves a 3px visible thumb */
	background-clip: content-box;
	border-radius: 99px;
	min-height: 42px;
	transition: background-color .25s var(--ease);
}

.agri-facet:hover .agri-opts::-webkit-scrollbar-thumb,
.agri-facet:focus-within .agri-opts::-webkit-scrollbar-thumb,
.agri-rail__inner:hover form::-webkit-scrollbar-thumb,
.agri-rail__inner:focus-within form::-webkit-scrollbar-thumb {
	background-color: rgba(6, 43, 29, .22);
	background-clip: content-box;
}

.agri .agri-opts::-webkit-scrollbar-thumb:hover,
.agri-rail form::-webkit-scrollbar-thumb:hover {
	background-color: rgba(6, 43, 29, .38);
	background-clip: content-box;
}

.agri .agri-opts {
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;          /* no sideways scroll, ever */
	padding-right: 6px;
	overscroll-behavior: contain;
}

/* Checkbox rows ----------------------------------------------------------- */

.agri-opt { position: relative; }
.agri-opt input {
	position: absolute;
	opacity: 0;
	width: 1px; height: 1px;
}
.agri-opt label {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 11px;
	margin: 3px 0;
	border-radius: 9px;
	cursor: pointer;
	font-size: .94rem;
	color: var(--body);
	transition: background-color .16s var(--ease), color .16s var(--ease);
}
.agri-opt label:hover { background: var(--g-050); color: var(--ink); }

.agri-opt__box {
	width: 20px; height: 20px;
	margin-top: 1px;
	flex: none;
	align-self: flex-start;
	border: 1.6px solid var(--line);
	border-radius: 6px;
	background: #fff;
	display: grid;
	place-items: center;
	color: #fff;
	transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.agri-opt__box svg { width: 13px; height: 13px; stroke-dasharray: 20; stroke-dashoffset: 20; }

.agri-opt input:checked + label .agri-opt__box {
	background: var(--g-500);
	border-color: var(--g-500);
}
.agri-opt input:checked + label .agri-opt__box svg {
	animation: agri-tick .3s var(--ease) forwards;
}
@keyframes agri-tick { to { stroke-dashoffset: 0; } }

.agri-facet--target .agri-opt input:checked + label .agri-opt__box {
	background: var(--a-500); border-color: var(--a-500);
}
.agri-opt input:focus-visible + label {
	outline: 2px solid var(--g-500);
	outline-offset: 1px;
}
.agri-opt input:checked + label { color: var(--ink); font-weight: 600; }

.agri-opt__name {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	line-height: 1.4;
}
.agri-opt__count {
	font-size: .82rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	transition: opacity .2s var(--ease);
}
.agri-opt__count:empty { display: none; }

.agri-opt.is-empty { opacity: .38; }
.agri-opt.is-empty label { cursor: not-allowed; }
.agri-opt[hidden] { display: none; }



/* Grouped hierarchy ------------------------------------------------------- */

.agri-group { display: block; margin-bottom: 6px; }
.agri-group:last-child { margin-bottom: 0; }
.agri-group[hidden] { display: none; }

.agri .agri-group__head { margin: 0 0 2px; }

.agri-opt--root > label {
	font-weight: 700;
	color: var(--ink);
	font-size: .985rem;
}
.agri-opt--root > label:hover { background: var(--g-050); }

.agri .agri-group__items {
	margin: 2px 0 8px 11px;
	padding-left: 14px;
	border-left: 1px solid var(--line);
}
.agri-group__items:empty { display: none; }

.agri-opt--child > label { font-size: .915rem; }
.agri-opt--child .agri-opt__box { width: 18px; height: 18px; border-radius: 5px; }

/* Pills ------------------------------------------------------------------- */

.agri .agri-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.agri-pill { cursor: pointer; }
.agri-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agri-pill__label {
	display: inline-block;
	padding: 6px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: .885rem;
	color: var(--body);
	background: #fff;
	transition: all .18s var(--ease);
}
.agri-pill:hover .agri-pill__label { border-color: var(--a-500); color: var(--ink); }
.agri-pill input:checked + .agri-pill__label {
	background: var(--a-050);
	border-color: var(--a-500);
	color: #7a4a04;
	font-weight: 650;
}
.agri-pill input:focus-visible + .agri-pill__label { outline: 2px solid var(--g-500); outline-offset: 2px; }
.agri-pill.is-empty { opacity: .38; }

/* ==========================================================================
   Toolbar
   ========================================================================= */

.agri-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}
.agri-bar__count { margin: 0; color: var(--ink); font-weight: 650; font-size: 1.08rem; }
.agri-bar__count em { font-style: normal; color: var(--muted); font-weight: 400; }
.agri-bar__tools { display: flex; align-items: center; gap: 10px; }
.agri-bar__tools > * { flex: none; }
.agri-bar__filters { display: none; }

.agri-bar__badge {
	min-width: 20px; height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--g-500);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	display: grid;
	place-items: center;
}
.agri-bar__badge[hidden] { display: none; }

.agri-select { position: relative; display: flex; align-items: center; }
.agri-select select {
	appearance: none;
	-webkit-appearance: none;
	height: var(--ctl-h);
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: var(--r-ctl);
	padding: 0 38px 0 15px;
	line-height: 1;
	font-size: .94rem;
	color: var(--ink);
	cursor: pointer;
	outline: none;
	transition: border-color .18s var(--ease);
}
.agri-select select:hover { border-color: var(--g-500); }
.agri-select svg {
	position: absolute;
	right: 12px;
	width: 16px; height: 16px;
	pointer-events: none;
	color: var(--muted);
}

.agri-view {
	display: flex;
	height: var(--ctl-h);
	border: 1px solid var(--line);
	border-radius: var(--r-ctl);
	background: var(--surface);
	overflow: hidden;
}
.agri-view button {
	border: 0;
	background: none;
	width: 44px;
	height: 100%;
	padding: 0;
	cursor: pointer;
	color: var(--muted);
	display: grid;
	place-items: center;
	transition: background-color .18s var(--ease), color .18s var(--ease);
}
.agri-view button svg { width: 17px; height: 17px; fill: currentColor; }
.agri-view button:hover { color: var(--ink); }
.agri-view button[aria-pressed="true"] { background: var(--g-050); color: var(--g-700); }

/* Applied filter chips ---------------------------------------------------- */

.agri .agri-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0 0 26px;
}
.agri-chips[hidden] { display: none; }

.agri-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 8px 6px 13px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: .9rem;
	color: var(--ink);
	animation: agri-chip-in .26s var(--ease) both;
}
@keyframes agri-chip-in {
	from { opacity: 0; transform: translateY(4px) scale(.94); }
}
.agri-chip--target { border-color: #f6d5a6; background: var(--a-050); }
.agri-chip--crop,
.agri-chip--cat { border-color: var(--g-100); background: var(--g-050); }
.agri-chip__tax { color: var(--muted); }
.agri-chip button {
	border: 0;
	background: none;
	cursor: pointer;
	width: 20px; height: 20px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--muted);
	transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.agri-chip button:hover { background: rgba(6, 43, 29, .09); color: var(--ink); transform: rotate(90deg); }
.agri-chip button svg { width: 12px; height: 12px; }

/* ==========================================================================
   Product grid + cards
   Images are square (1:1), so the media frame is square too — no letterboxing.
   ========================================================================= */

.agri-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
	gap: clamp(18px, 2vw, 26px);
	scroll-margin-top: 90px;
}
.agri-grid[aria-busy="true"] { display: none; }

.agri-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	overflow: hidden;
	transition: border-color .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease);
}
.agri-card:hover {
	border-color: var(--g-100);
	box-shadow: var(--shadow-2);
	transform: translateY(-4px);
}

/* entrance — only applied to freshly injected cards by JS */
.agri-card--enter { opacity: 0; transform: translateY(14px); }
.agri-card--in {
	animation: agri-card-in .46s var(--ease) forwards;
	animation-delay: var(--d, 0ms);
}
@keyframes agri-card-in {
	to { opacity: 1; transform: translateY(0); }
}

.agri-card__media {
	position: relative;
	background: linear-gradient(158deg, #fbfdfc 0%, #eef6f1 100%);
	border-bottom: 1px solid var(--line-soft);
	overflow: visible;   /* the category badge straddles the bottom edge */
}
.agri-card__imglink {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.agri-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease);
}
.agri-card:hover .agri-card__img { transform: scale(1.04); }
.agri-card__img--placeholder { object-fit: contain; padding: 18%; opacity: .45; }

.agri-card__formulation {
	position: absolute;
	top: 12px; left: 12px;
	z-index: 2;
	background: rgba(255, 255, 255, .95);
	color: #7a4a04;
	border: 1px solid #f7dcb0;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: .79rem;
	font-weight: 700;
	line-height: 1.3;
	backdrop-filter: blur(4px);
	transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.agri-card__formulation:hover {
	background: var(--a-500);
	border-color: var(--a-500);
	color: #fff;
	transform: translateY(-1px);
}

.agri-card__body {
	padding: 26px 20px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 11px;
	flex: 1;
}

.agri-tag {
	position: absolute;
	left: 14px;
	bottom: -14px;
	z-index: 3;
	max-width: calc(100% - 28px);
	font-size: .8rem;
	font-weight: 650;
	line-height: 1.35;
	padding: 6px 13px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .95);
	border: 1px solid var(--g-100);
	color: var(--g-700);
	box-shadow: 0 6px 16px -10px rgba(6, 43, 29, .5);
	backdrop-filter: blur(4px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color .18s var(--ease), color .18s var(--ease),
		border-color .18s var(--ease), transform .18s var(--ease);
}
.agri-tag:hover {
	background: var(--g-500);
	border-color: var(--g-500);
	color: #fff;
	transform: translateY(-1px);
}

.agri-card__title { font-size: 1.14rem; font-weight: 700; line-height: 1.32; }
.agri-card__title a { transition: color .18s var(--ease); }
.agri-card__title a:hover { color: var(--g-700); }

.agri-card__excerpt {
	margin: 0;
	width: 100%;
	font-size: .92rem;
	line-height: 1.6;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.agri-card__actives { width: 100%; padding-top: 4px; }
.agri-card__label {
	display: block;
	font-size: .8rem;
	color: var(--muted);
	margin-bottom: 5px;
}
.agri-card__terms {
	margin: 0;
	max-width: 100%;
	font-size: .93rem;
	line-height: 1.65;
	color: var(--ink);
	overflow-wrap: anywhere;
	word-break: break-word;
}
.agri-card__terms a {
	display: inline;
	color: var(--ink);
	font-weight: 550;
	border-bottom: 1px solid var(--g-100);
	transition: color .16s var(--ease), border-color .16s var(--ease);
}
.agri-card__terms a:hover { color: var(--g-700); border-color: var(--g-500); }
.agri-plus { color: var(--muted); font-weight: 400; }

.agri-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: 100%;
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid var(--line-soft);
	color: var(--g-700);
	font-size: .925rem;
	font-weight: 650;
}
.agri-card__cta svg { width: 17px; height: 17px; transition: transform .28s var(--ease); }
.agri-card:hover .agri-card__cta svg { transform: translateX(5px); }
.agri-card__cta:hover { color: var(--a-600); }

/* List view --------------------------------------------------------------- */

.agri[data-view="list"] .agri-grid { grid-template-columns: 1fr; }
.agri[data-view="list"] .agri-card { flex-direction: row; }
.agri[data-view="list"] .agri-card__media {
	width: 232px;
	flex: none;
	display: flex;
	align-items: center;
	border-bottom: 0;
	border-right: 1px solid var(--line-soft);
}
.agri[data-view="list"] .agri-card__imglink { width: 100%; }
.agri[data-view="list"] .agri-tag { left: 14px; bottom: 14px; }
.agri[data-view="list"] .agri-card__body {
	padding: 22px 28px;
	justify-content: center;
	gap: 12px;
}
.agri[data-view="list"] .agri-card__excerpt { -webkit-line-clamp: 2; max-width: 78ch; }
.agri[data-view="list"] .agri-card__cta { width: auto; border-top: 0; padding-top: 6px; }

@media (max-width: 560px) {
	.agri[data-view="list"] .agri-card { flex-direction: column; }
	.agri[data-view="list"] .agri-card__media {
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid var(--line-soft);
	}
	.agri[data-view="list"] .agri-tag { bottom: -14px; }
}

/* ==========================================================================
   Skeleton, empty state, load more
   ========================================================================= */

.agri-skeleton {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
	gap: clamp(18px, 2vw, 26px);
}
.agri-skeleton[hidden] { display: none; }

.agri-skel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 0 20px 20px;
	overflow: hidden;
}
.agri-skel__media { aspect-ratio: 1 / 1; margin: 0 -20px 16px; }
.agri-skel__line { height: 11px; border-radius: 6px; margin-top: 9px; }
.agri-skel__line--sm { width: 34%; }
.agri-skel__line--md { width: 55%; }
.agri-skel__line--lg { width: 78%; height: 15px; }

.agri-skel__media,
.agri-skel__line {
	background: linear-gradient(100deg, #eef3f0 30%, #f8fbf9 50%, #eef3f0 70%);
	background-size: 220% 100%;
	animation: agri-shimmer 1.25s linear infinite;
}
@keyframes agri-shimmer {
	from { background-position: 160% 0; }
	to { background-position: -60% 0; }
}

.agri-empty {
	text-align: center;
	padding: 56px 24px 64px;
	background: var(--surface);
	border: 1px dashed var(--line);
	border-radius: var(--r-card);
	animation: agri-fade .3s var(--ease);
}
.agri-empty[hidden] { display: none; }
.agri-empty__art { width: 68px; height: 68px; margin: 0 auto 14px; color: var(--g-500); }
.agri-empty h2 { font-size: 1.28rem; margin-bottom: 8px; }
.agri-empty p { margin: 0 0 22px; color: var(--muted); font-size: 1rem; }
@keyframes agri-fade { from { opacity: 0; transform: translateY(6px); } }

.agri-more-wrap { display: grid; justify-items: center; gap: 12px; padding-top: 44px; }

.agri-more-btn {
	min-width: 230px;
	position: relative;
	padding: 14px 30px;
	font-size: .95rem;
	letter-spacing: .005em;
	border-radius: 999px;
	box-shadow: 0 14px 26px -16px rgba(0, 172, 99, .85);
}
/* the theme colours bare <button> text, so state it explicitly */
.agri .agri-more-btn,
.agri .agri-more-btn:hover,
.agri .agri-more-btn:focus,
.agri .agri-more-btn span { color: #fff; }
.agri .agri-more-btn:hover {
	background: var(--g-600);
	transform: translateY(-2px);
	box-shadow: 0 18px 30px -16px rgba(0, 172, 99, .95);
}
.agri-more-btn__text { display: inline-block; }
.agri-more-btn[hidden] { display: none; }
.agri-more-btn__spin {
	display: none;
	width: 16px; height: 16px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: agri-spin .7s linear infinite;
}
.agri-more-btn.is-loading .agri-more-btn__spin { display: block; }
.agri-more-btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes agri-spin { to { transform: rotate(360deg); } }

.agri-more-end { color: var(--muted); font-size: .93rem; margin: 0; }
.agri-more-end[hidden] { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1024px) {
	.agri { --rail-w: 260px; }
	.agri-grid,
	.agri-skeleton { grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); }
}

@media (max-width: 880px) {
	.agri-shell { grid-template-columns: 1fr; }
	.agri-bar__filters { display: inline-flex; }

	.agri-rail {
		position: fixed;
		inset: 0 auto 0 0;
		width: min(360px, 88vw);
		z-index: 10000;
		transform: translateX(-102%);
		transition: transform .34s var(--ease);
		will-change: transform;
	}
	.agri-rail.is-open { transform: translateX(0); }
	.agri-rail__inner {
		position: static;
		height: 100%;
		max-height: none;
		border-radius: 0;
		border: 0;
		box-shadow: 0 0 60px rgba(6, 43, 29, .3);
	}
	.agri-rail__close { display: grid; }
	.agri-rail__apply { display: inline-flex; }

	.agri-rail__scrim {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(6, 43, 29, .48);
		z-index: 9999;
		opacity: 0;
		transition: opacity .3s var(--ease);
	}
	.agri-rail__scrim[hidden] { display: none; }
	.agri-rail__scrim.is-visible { opacity: 1; }

	.agri-shell.is-locked { overflow: hidden; }
}

@media (max-width: 620px) {
	.agri-grid,
	.agri-skeleton { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.agri-card__body { padding: 14px 14px 16px; gap: 9px; }
	.agri-card__title { font-size: .97rem; }
	.agri-card__label { font-size: .7rem; }
	.agri-card__terms { font-size: .8rem; }
	.agri-card__cta { padding-top: 12px; font-size: .82rem; }
	.agri-bar { align-items: flex-start; }
	.agri-bar__tools { width: 100%; }
	.agri-select { flex: 1; }
	.agri-select select { width: 100%; }
	.agri-hero__inner { padding-bottom: 30px; }
	.agri-quick__list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.agri-quick__list::-webkit-scrollbar { display: none; }
	.agri-quick__btn { white-space: nowrap; }
}

/* ==========================================================================
   Motion / contrast preferences
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	.agri *,
	.agri *::before,
	.agri *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.agri-card--enter { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
	.agri-card,
	.agri-rail__inner { border: 1px solid CanvasText; }
	.agri-opt__box { border: 1px solid CanvasText; }
}


/* ==========================================================================
   Taxonomy archives
   Same shell as the listing page, with the term fixed as context.
   ========================================================================= */

.agri-hero__kicker {
	margin: 0 0 10px;
	font-size: .92rem;
	font-weight: 600;
	color: var(--a-500);
}

.agri-archive .agri-hero__sub p { margin: 0 0 .6em; }
.agri-archive .agri-hero__sub p:last-child { margin-bottom: 0; }

.agri-archive .agri-quick__btn { display: inline-block; text-decoration: none; }

.agri-rail__context {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	margin: 16px 24px 6px;
	padding: 14px 16px 12px;
	background: var(--g-050);
	border: 1px solid var(--g-100);
	border-radius: 12px;
}
.agri-rail__contextlabel { font-size: .8rem; color: var(--muted); }
.agri-rail__context strong { color: var(--g-700); font-size: .98rem; font-weight: 700; }

.agri-rail__foot .agri-btn--ghost { text-decoration: none; }

/* Author archive — the article list under the products ------------------- */

.agri-authorposts {
	border-top: 1px solid var(--line);
	background: var(--surface);
	padding: clamp(34px, 4vw, 56px) 0 clamp(40px, 5vw, 68px);
}
.agri-authorposts__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 48px);
}
.agri-authorposts__title {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 700;
	margin: 0 0 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	position: relative;
}
.agri-authorposts__title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 46px; height: 2px;
	background: var(--g-500);
}

.agri .agri-postlist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
	margin: 0;
}
.agri-postlist a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.agri-postlist a:hover {
	border-color: var(--g-100);
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -22px rgba(6, 43, 29, .5);
}
.agri-postlist__thumb {
	width: 62px; height: 62px;
	flex: none;
	border-radius: 10px;
	overflow: hidden;
	background: var(--g-050);
}
.agri-postlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.agri-postlist__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.agri-postlist__date { font-size: .82rem; color: var(--muted); }
.agri-postlist__name {
	color: var(--ink);
	font-weight: 600;
	font-size: .98rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.agri-postlist a:hover .agri-postlist__name { color: var(--g-700); }

/* Quick route back to the full catalogue, from any archive --------------- */

.agri-hero__all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 18px 0 4px;
	padding: 7px 15px 7px 12px;
	border: 1px solid rgba(255, 255, 255, .26);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .92);
	font-size: .9rem;
	font-weight: 600;
	transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.agri-hero__all svg { width: 17px; height: 17px; transition: transform .24s var(--ease); }
.agri-hero__all:hover {
	background: rgba(255, 255, 255, .18);
	border-color: rgba(255, 255, 255, .42);
	color: #fff;
}
.agri-hero__all:hover svg { transform: translateX(-3px); }

.agri-rail__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: var(--g-700);
	font-size: .875rem;
	font-weight: 650;
	transition: color .16s var(--ease);
}
.agri-rail__all svg { width: 15px; height: 15px; transition: transform .24s var(--ease); }
.agri-rail__all:hover { color: var(--a-600); }
.agri-rail__all:hover svg { transform: translateX(3px); }