/* =========================================================================
   AGROLATVIJA — Home page (prototype skin over WoodMart). Scoped to .agro-home.
   ========================================================================= */
.agro-home {
	/* Colours/fonts inherit WoodMart Theme Settings (Colors/Typography); values after
	   the comma are only fallbacks used when an option isn't set. */
	--brand: var(--wd-primary-color, #0F3D2E);
	--brand-2: color-mix(in srgb, var(--wd-primary-color, #0F3D2E) 82%, #fff);
	--brand-ink: color-mix(in srgb, var(--wd-primary-color, #0F3D2E) 60%, #000);
	--accent: var(--wd-alternative-color, #E8B84C); --accent-ink: #3D2E00; --red: #B43A2E; --ok: #3E8A5A;
	--bg: var(--wd-main-bgcolor, #F6F4EF); --surface: #FFFFFF; --surface-2: #EFEBE2;
	--ink: var(--wd-title-color, #121512); --ink-2: var(--wd-text-color, #3D4440); --ink-3: var(--wd-text-color, #6B736E);
	--line: var(--wd-form-brd-color, #E3DFD5); --line-2: var(--wd-form-brd-color, #D4CEBE);
	--radius: 14px; --pill: 999px;
	--shadow-2: 0 8px 24px -12px rgba(12,18,15,.18), 0 2px 6px rgba(12,18,15,.04);
	--font: var(--wd-text-font, "Inter Tight", system-ui, sans-serif);
	font-family: var(--font);
	color: var(--ink); background: var(--bg);
}
.agro-home * { box-sizing: border-box; }
/* Page width follows WoodMart's Site Width setting (--wd-container-w). */
.agro-home .wrap-wide { max-width: var(--wd-container-w, 1320px); margin: 0 auto; padding: 0 clamp(14px, 2vw, 28px); }
.agro-home a { text-decoration: none; color: inherit; }
.agro-home h1, .agro-home h2, .agro-home h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
.ah-eyebrow { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ah-num, .ah-stat__n { font-variant-numeric: tabular-nums; }

/* buttons */
.ah-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--pill); padding: 12px 20px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.ah-btn--lg { padding: 15px 26px; font-size: 15px; }
.ah-btn--accent { background: var(--accent); color: var(--accent-ink); }
.ah-btn--accent:hover { filter: brightness(.96); }
.ah-btn--outline { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.ah-btn--outline:hover { border-color: rgba(255,255,255,.5); }
.ah-btn--primary { background: var(--brand); color: #fff; }
.ah-btn--primary:hover { background: var(--brand-2); }

/* ---- HERO ---- */
.ah-hero { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--brand-ink); color: #fff; border-radius: 20px; overflow: hidden; margin-top: 22px; }
.ah-hero__copy { padding: 52px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.ah-eyebrow--light { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); }
.ah-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; }
.ah-h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: .99; letter-spacing: -.02em; margin: 20px 0 16px; text-wrap: balance; color: #fff; }
.ah-h1 em { color: var(--accent); font-style: normal; }
.ah-hero__sub { color: #C6D2CC; max-width: 46ch; font-size: 16px; line-height: 1.5; }
.ah-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.ah-hero__stats { display: flex; gap: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.ah-stat { display: flex; flex-direction: column; }
.ah-stat__n { font-size: 24px; font-weight: 700; color: #EDEBDD; }
.ah-stat__l { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-family: "JetBrains Mono", monospace; color: #C6D2CC; margin-top: 2px; }
.ah-hero__img { position: relative; min-height: 340px; display: grid; place-items: center;
	background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,0) 14px 28px), linear-gradient(180deg, var(--brand) 0%, var(--brand-ink) 100%); }
.ah-hero__shape { width: 78%; aspect-ratio: 1.3; background: color-mix(in srgb, var(--brand) 70%, #000); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }

/* ---- BRAND STRIP ---- */
.ah-brands { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 22px; background: var(--surface); overflow: hidden; }
.ah-brand { height: 68px; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--ink-2); font-weight: 700; letter-spacing: .08em; font-size: 12.5px; text-align: center; transition: background .15s; }
.ah-brand:last-child { border-right: none; }
.ah-brand:hover { background: var(--surface-2); }

/* ---- SECTION ---- */
.ah-section { margin-top: 56px; }
.ah-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ah-h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 6px; }
.ah-sub { color: var(--ink-3); font-size: 14px; margin-top: 8px; max-width: 60ch; }
.ah-see { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ah-see:hover { gap: 9px; }
.ah-see svg { width: 15px; height: 15px; }

/* ---- CATEGORY CHIPS ---- */
.ah-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ah-cat { position: relative; min-height: 150px; border-radius: var(--radius); padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; transition: transform .16s, box-shadow .16s; overflow: hidden; }
.ah-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ah-cat__count { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .1em; opacity: .75; text-transform: uppercase; }
.ah-cat__name { font-weight: 700; font-size: 17px; line-height: 1.15; margin-top: 8px; flex: 1; }
.ah-cat__arrow { align-self: flex-end; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.ah-cat__arrow svg { width: 15px; height: 15px; }

/* ---- PRODUCT ROWS (WooCommerce shortcodes, restyled) ---- */
.ah-prow .products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; margin: 0 !important; float: none !important; }
.ah-prow .products::before, .ah-prow .products::after { display: none !important; }
.ah-prow .products .product { width: auto !important; margin: 0 !important; float: none !important; clear: none !important; }
.ah-prow .wd-product .product-wrapper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ah-prow .wd-product .wd-entities-title a { font-size: 15px; font-weight: 600; color: var(--ink); }
.ah-prow .wd-product .price { font-weight: 700; color: var(--ink); }
.ah-prow .wd-product .add_to_cart_button, .ah-prow .wd-product .button {
	background: var(--brand) !important; color: #fff !important; border-radius: var(--pill) !important; font-weight: 600 !important; }
.ah-prow .wd-product .add_to_cart_button:hover { background: var(--brand-2) !important; }
.agro-home-emptyrow { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--ink-3); }

/* ---- PROMO ---- */
.ah-promo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.ah-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--pill); }
.ah-tag svg { width: 13px; height: 13px; }
.ah-promo__h { font-size: clamp(22px, 2.2vw, 28px); margin: 14px 0 8px; }
.ah-promo__text p { color: var(--ink-3); font-size: 15px; margin-bottom: 18px; }
.ah-promo__img { aspect-ratio: 1.35; border-radius: 14px; background: repeating-linear-gradient(135deg, rgba(15,61,46,.05) 0 14px, rgba(15,61,46,0) 14px 28px), var(--surface-2); }

/* ---- VALUE PROPS ---- */
.ah-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ah-value { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; }
.ah-value__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.ah-value__t { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.ah-value__d { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
	.ah-hero { grid-template-columns: 1fr; }
	.ah-hero__img { min-height: 220px; order: -1; }
	.ah-cats { grid-template-columns: repeat(3, 1fr); }
	.ah-brands { grid-template-columns: repeat(4, 1fr); }
	.ah-prow .products { grid-template-columns: repeat(3, 1fr) !important; }
	.ah-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.agro-home .wrap-wide { padding: 0 18px; }
	.ah-hero__copy { padding: 34px 26px; }
	.ah-promo { grid-template-columns: 1fr; }
	.ah-promo__img { display: none; }
}
@media (max-width: 640px) {
	.agro-home .wrap-wide { padding: 0 14px; }
	.ah-cats { grid-template-columns: repeat(2, 1fr); }
	.ah-brands { grid-template-columns: repeat(2, 1fr); }
	.ah-prow .products { grid-template-columns: repeat(2, 1fr) !important; }
	.ah-values { grid-template-columns: 1fr; }
	.ah-hero__stats { gap: 22px; }
}
