/**
 * Agrotexbd child theme: supplementary CSS.
 *
 * Sections:
 *   1. Header
 */

/* ==========================================================================
   1. Header  (patterns/header.php)
   Desktop: white top row (logo / search / account / cart) over a dark bar
   (All categories / main menu / social).
   Mobile (<= 768px, the RivoBlocks nav toggle breakpoint): hamburger + logo +
   cart on one row, search underneath, dark bar hidden.
   ========================================================================== */

/* --- Sticky header: the template-part wrapper is a direct child of .wp-site-blocks --- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

body.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Below 601px WordPress stops fixing the admin bar (it scrolls away), so the
   sticky header must not keep reserving room for it. */
@media (max-width: 600px) {
	body.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

.agro-header {
	--agro-pill: 999px;
	--agro-line: var(--wp--preset--color--border);
}

/* --- Top row --- */

.agro-header .agro-header__top {
	gap: 40px;
	padding-top: 14px;
	padding-bottom: 14px;
	min-height: 76px;
	box-sizing: border-box;
}

.agro-header__logo {
	flex-shrink: 0;
	line-height: 0;
}

.agro-header__logo img {
	display: block;
	width: 172px;
	height: auto;
}

.agro-header__mobile-nav {
	display: none;
}

/* Search: pill field with the button sitting inside on the right. */
.agro-header__search {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.agro-header .agro-header__search .wp-block-search__inside-wrapper {
	min-height: 0;
	height: 48px;
	box-sizing: border-box;
	padding: 4px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--agro-line);
	border-radius: var(--agro-pill);
}

.agro-header__search .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 36px;
	padding: 0 8px 0 15px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 15px;
	color: var(--wp--preset--color--foreground);
}

.agro-header__search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--foreground-light);
	opacity: 1;
}

.agro-header__search .wp-block-search__input:focus {
	outline: 0;
}

.agro-header__search .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--primary-dark);
	box-shadow: 0 0 0 3px rgba(109, 184, 46, 0.35);
}

.agro-header__search .wp-block-search__button {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	min-width: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
}

.agro-header__search .wp-block-search__button:hover,
.agro-header__search .wp-block-search__button:focus-visible {
	background: var(--wp--preset--color--primary-dark);
	color: #fff;
}

.agro-header__search .wp-block-search__button svg {
	fill: currentColor;
	width: 22px;
	height: 22px;
}

/* Account + mini-cart. */
.agro-header .agro-header__actions {
	flex-shrink: 0;
	gap: 12px;
}

.agro-header__account .wc-block-customer-account__account-icon,
.agro-header__account a {
	display: flex;
	align-items: center;
	justify-content: center;
}

.agro-header__account a {
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1px solid var(--agro-line);
	background: #fff;
	color: var(--wp--preset--color--foreground);
}

.agro-header__account a:hover,
.agro-header__account a:focus-visible {
	border-color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--surface);
}

.agro-header__cart .wc-block-mini-cart__button {
	position: relative;
	height: 44px;
	box-sizing: border-box;
	padding: 0 16px 0 14px;
	gap: 8px;
	border-radius: var(--agro-pill);
	background: var(--wp--preset--color--secondary);
	color: #fff;
	display: flex;
	align-items: center;
}

.agro-header__cart .wc-block-mini-cart__button:hover,
.agro-header__cart .wc-block-mini-cart__button:focus-visible {
	background: var(--wp--preset--color--primary-dark);
}

.agro-header__cart .wc-block-mini-cart__button svg,
.agro-header__cart .wc-block-mini-cart__icon {
	color: #fff;
	fill: currentColor;
}

.agro-header__cart .wc-block-mini-cart__amount {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.agro-header__cart .wc-block-mini-cart__icon {
	position: static;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
}

/* Woo writes the badge colours inline from the Interactivity store, so these
   two declarations need !important to win. */
.agro-header__cart .wc-block-mini-cart__quantity-badge .wc-block-mini-cart__badge {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--secondary) !important;
	position: static;
	inset: auto;
	margin: 0;
	transform: none;
	min-width: 20px;
	height: 20px;
	box-sizing: border-box;
	padding: 0 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 11px;
	font-weight: 700;
}

.agro-header__cart .wc-block-mini-cart__quantity-badge {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

/* --- Dark bar --- */

.agro-header .agro-header__bar-inner {
	gap: 32px;
	min-height: 56px;
	box-sizing: border-box;
}

.agro-header__cats,
.agro-header__main-nav {
	flex-shrink: 0;
}

.agro-header__main-nav {
	flex: 1 1 auto;
}

.agro-header .agro-header__social {
	margin-left: auto;
	gap: 16px;
}

.agro-header__social .wp-social-link {
	color: var(--wp--preset--color--background);
	background: transparent;
}

.agro-header__social .wp-social-link a {
	padding: 0;
}

/* Neutralise the parent's vertical padding on the header's nested groups so
   the two rows are sized only by their own min-height. */
.agro-header,
.agro-header .agro-header__bar,
.agro-header .agro-header__bar-inner,
.agro-header .agro-header__cats,
.agro-header .agro-header__main-nav {
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
}

/* Main menu: active/current page. */
.agro-header .agro-header__main-nav nav.rb-navigation .rb-navigation__list:not(.rb-navigation__list--offcanvas) > li.current-menu-item > a,
.agro-header .agro-header__main-nav nav.rb-navigation .rb-navigation__list:not(.rb-navigation__list--offcanvas) > li.current-menu-ancestor > a {
	color: var(--wp--preset--color--primary);
}

/* All categories: green pill with a hamburger glyph. The menu's root item
   carries the `agro-all-cats` class (set in the menu, not in markup). */
.agro-header__cats nav.rb-navigation.rb-navigation--show-indicators .rb-navigation__list:not(.rb-navigation__list--offcanvas) > li.agro-all-cats > a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	box-sizing: border-box;
	padding: 0 34px 0 40px;
	--rb-navigation-menu-item-padding-horizontal: 14px;
	border-radius: 18px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.agro-header__cats nav.rb-navigation.rb-navigation--show-indicators .rb-navigation__list:not(.rb-navigation__list--offcanvas) > li.agro-all-cats > a::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.agro-header__cats nav.rb-navigation.rb-navigation--show-indicators .rb-navigation__list:not(.rb-navigation__list--offcanvas) > li.agro-all-cats > a:hover,
.agro-header__cats nav.rb-navigation.rb-navigation--show-indicators .rb-navigation__list:not(.rb-navigation__list--offcanvas) > li.agro-all-cats > a:focus-visible {
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--secondary);
}

/* Category dropdown panel. */
.agro-header__cats .sub-menu {
	min-width: 280px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--agro-line);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(11, 46, 23, 0.18);
}

.agro-header__cats .sub-menu a {
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
}

/* --- Tablet (769px to 1024px): keep the bar on one line --- */

.agro-header__main-nav a {
	white-space: nowrap;
}

@media (min-width: 769px) and (max-width: 1024px) {
	.agro-header .agro-header__top {
		gap: 24px;
	}

	.agro-header .agro-header__bar-inner {
		gap: 20px;
	}

	/* The nav block sets its gap inline, hence !important. */
	.agro-header__main-nav .rb-navigation__list {
		gap: 18px !important;
	}

	.agro-header .agro-header__social.wp-block-social-links {
		display: none;
	}
}

/* --- Mobile --- */

/* Hamburger: 44px dark circle with a green glyph (icon colour comes from the
   block's toggleIconColor attribute). */
.agro-header__mobile-nav .rb-navigation__toggle-button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary);
}

@media (max-width: 768px) {
	.agro-header .agro-header__top {
		flex-wrap: wrap;
		gap: 12px;
		padding-top: 12px;
		padding-bottom: 12px;
		min-height: 0;
	}

	/* Logo on the left; cart then hamburger together on the right. */
	.agro-header__logo {
		order: 0;
		flex: 1 1 auto;
	}

	.agro-header__mobile-nav {
		display: block;
		order: 2;
	}

	.agro-header__logo img {
		width: 150px;
	}

	.agro-header .agro-header__actions {
		order: 1;
		gap: 8px;
	}

	.agro-header__account {
		display: none;
	}

	.agro-header__cart .wc-block-mini-cart__amount {
		display: none;
	}

	/* Mobile cart: white pill with a dark glyph and plain count (per design). */
	.agro-header__cart .wc-block-mini-cart__button {
		background: #fff;
		border: 1px solid var(--agro-line);
		color: var(--wp--preset--color--secondary);
		padding: 0 14px;
	}

	.agro-header__cart .wc-block-mini-cart__button svg,
	.agro-header__cart .wc-block-mini-cart__icon {
		color: var(--wp--preset--color--secondary);
	}

	.agro-header__cart .wc-block-mini-cart__quantity-badge .wc-block-mini-cart__badge {
		background-color: transparent !important;
		color: var(--wp--preset--color--secondary) !important;
		font-size: 13px;
		min-width: 0;
		padding: 0;
	}

	.agro-header__search {
		order: 3;
		flex: 0 0 100%;
	}

	.agro-header .agro-header__search .wp-block-search__inside-wrapper {
		height: 46px;
	}

	.agro-header__search .wp-block-search__button {
		width: 36px;
		height: 36px;
		min-width: 36px;
	}

	.agro-header__bar {
		display: none;
	}
}

/* Off-canvas menu (the RivoBlocks panel is rendered inside the mobile nav). */
.agro-header__mobile-nav .rb-navigation__offcanvas-inner {
	padding: 20px 20px 32px;
}

.agro-header__mobile-nav .rb-navigation__list--offcanvas > li {
	border-bottom: 1px solid var(--agro-line);
}

.agro-header__mobile-nav .rb-navigation__list--offcanvas > li > a {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 16px;
	font-weight: 700;
}

.agro-header a {
	text-decoration: none;
}

@media (max-width: 768px) {
	.agro-header__logo .custom-logo-link {
		display: flex;
		align-items: center;
		min-height: 44px;
	}
}

@media (max-width: 360px) {
	.agro-header__logo img {
		width: 120px;
	}
}

/* ==========================================================================
   2. Footer  (patterns/footer.php)
   Amber call-to-action band, dark four-column footer, copyright bar.
   Layout rules are prefixed with .agro-footer so they beat WordPress's
   `:root :where(.is-layout-*)` defaults in the editor as well as on the front end.
   ========================================================================== */

.agro-footer {
	--agro-footer-line: #17402a;
	--agro-footer-muted: #c3d8c2;
}

.agro-footer a {
	text-decoration: none;
}

/* Call-to-action band. */
.agro-footer .agro-footer__cta {
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.agro-footer .agro-footer__cta-inner {
	gap: 16px 32px;
	min-height: 96px;
	box-sizing: border-box;
	padding-top: 24px;
	padding-bottom: 24px;
}

.agro-footer .agro-footer__cta-title {
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.01em;
}

.agro-footer .agro-footer__cta-button {
	margin: 0;
}

.agro-footer .agro-footer__cta-button .wp-block-button__link {
	display: flex;
	align-items: center;
	min-height: 48px;
	box-sizing: border-box;
	padding: 0 24px;
	font-size: 15px;
	font-weight: 700;
}

.agro-footer .agro-footer__cta-button .wp-block-button__link:hover,
.agro-footer .agro-footer__cta-button .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--primary-dark);
	color: #fff;
}

/* Main columns. */
.agro-footer .agro-footer__main {
	padding-top: 44px;
	padding-bottom: 44px;
	margin-top: 0;
	margin-bottom: 0;
}

.agro-footer .agro-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	align-items: start;
}

.agro-footer .agro-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.agro-footer .agro-footer__col p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

.agro-footer .agro-footer__col a {
	color: var(--wp--preset--color--background);
}

.agro-footer .agro-footer__col a:hover,
.agro-footer .agro-footer__col a:focus-visible {
	color: var(--wp--preset--color--primary);
}

.agro-footer .agro-footer__col p.agro-footer__title {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--primary);
}

.agro-footer .agro-footer__col .agro-footer__title {
	margin-bottom: 0;
}

.agro-footer .agro-footer__logo {
	width: 190px;
	height: 56px;
	box-sizing: border-box;
	padding: 0;
	margin: 0 0 6px;
	border-radius: 14px;
	align-items: center;
}

.agro-footer .agro-footer__logo img {
	display: block;
	width: 150px;
	height: auto;
}

.agro-footer .agro-footer__col .agro-footer__tagline {
	color: var(--agro-footer-muted);
}

/* Footer menus: keep the plugin's vertical list tight and left-aligned. */
.agro-footer .agro-footer__col nav.rb-navigation {
	display: block;
}

.agro-footer .agro-footer__col .rb-navigation__list {
	flex-direction: column;
	align-items: flex-start;
}

/* Copyright bar. */
.agro-footer .agro-footer__bottom {
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
	border-top: 1px solid var(--agro-footer-line);
}

.agro-footer .agro-footer__bottom-inner {
	gap: 8px 24px;
	min-height: 56px;
	box-sizing: border-box;
	color: #9db8a0;
}

.agro-footer .agro-footer__bottom-inner p {
	margin: 0;
	font-size: 14px;
}

@media (min-width: 769px) and (max-width: 1024px) {
	.agro-footer .agro-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.agro-footer .agro-footer__cta-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		min-height: 0;
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.agro-footer .agro-footer__cta-title {
		font-size: 24px;
		line-height: 1.15;
	}

	.agro-footer .agro-footer__cta-button,
	.agro-footer .agro-footer__cta-button .wp-block-button {
		width: 100%;
	}

	.agro-footer .agro-footer__cta-button .wp-block-button__link {
		justify-content: center;
	}

	.agro-footer .agro-footer__main {
		padding-top: 28px;
		padding-bottom: 20px;
	}

	.agro-footer .agro-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 20px;
	}

	.agro-footer .agro-footer__col--brand {
		grid-column: 1 / -1;
	}

	.agro-footer .agro-footer__col--office {
		grid-column: 1 / -1;
		order: 5;
	}

	.agro-footer .agro-footer__col p.agro-footer__title {
		font-size: 12px;
	}

	.agro-footer .agro-footer__col--office {
		gap: 6px;
	}

	.agro-footer .agro-footer__col .rb-navigation__list {
		gap: 4px !important;
	}

	/* The location line repeats the address above; the design drops it on mobile. */
	.agro-footer .agro-footer__bottom-inner p:last-child {
		display: none;
	}

	.agro-footer .agro-footer__logo {
		width: 170px;
		height: 48px;
	}

	.agro-footer .agro-footer__logo img {
		width: 132px;
	}

	.agro-footer .agro-footer__bottom-inner {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		gap: 2px;
		padding-top: 14px;
		padding-bottom: 14px;
	}
}

/* ==========================================================================
   3. Home sections  (patterns/home-sections.php)
   Section rows (eyebrow, title, "view all" link) and the tinted / dark bands
   that hold RivoBlocks category tiles and product grids.
   ========================================================================== */

.agro-section {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 80px;
}

.agro-section--trending {
	padding-top: 88px;
}

.agro-section--strip {
	padding-top: 56px;
}

.agro-band {
	margin-top: 88px;
	margin-bottom: 0;
	padding-top: 56px;
	padding-bottom: 56px;
}

.agro-band--tint {
	background: var(--wp--preset--color--surface);
}

.agro-band--dark {
	margin-top: 56px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
}

.agro-section > .alignwide + .alignwide,
.agro-band > .alignwide + .alignwide {
	margin-block-start: 28px;
}

.agro-section .agro-section__head,
.agro-band .agro-section__head {
	gap: 16px;
}

.agro-section .agro-section__titles {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.agro-section .agro-section__titles > *,
.agro-band .agro-section__titles > * {
	margin: 0;
}

.agro-section .agro-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	color: var(--wp--preset--color--primary-dark);
}

.agro-section .agro-section__head h2,
.agro-band .agro-section__head h2 {
	margin: 0;
	font-size: 36px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.agro-band .agro-section__head h2 {
	font-size: 32px;
}

.agro-section--strip .agro-section__head h2 {
	font-size: 32px;
}

.agro-section .agro-section__link,
.agro-band .agro-section__link {
	margin: 0;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.agro-section .agro-section__link a,
.agro-band .agro-section__link a {
	padding-bottom: 2px;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}

.agro-band--dark .agro-section__head h2 {
	color: #fff;
}

.agro-band--dark .agro-section__link a {
	color: var(--wp--preset--color--primary);
}

@media (max-width: 1024px) {
	.agro-section .agro-section__head h2 {
		font-size: 30px;
	}
}

@media (max-width: 768px) {
	.agro-hide-mobile {
		display: none !important;
	}

	.agro-section {
		padding-top: 40px;
	}

	/* On mobile the Pheromone band is hidden, so Seeds takes the tint band. */
	.agro-section--strip {
		margin-top: 40px;
		padding-top: 32px;
		padding-bottom: 32px;
		background: var(--wp--preset--color--surface);
	}

	.agro-band {
		margin-top: 40px;
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.agro-band--dark {
		margin-top: 0;
	}

	.agro-section > .alignwide + .alignwide,
	.agro-band > .alignwide + .alignwide {
		margin-block-start: 16px;
	}

	.agro-section .agro-section__head {
		align-items: center;
	}

	.agro-section .agro-eyebrow {
		display: none;
	}

	.agro-section .agro-section__head h2,
	.agro-band .agro-section__head h2,
	.agro-section--strip .agro-section__head h2 {
		font-size: 24px;
	}

	.agro-band .agro-section__head h2 {
		font-size: 22px;
	}

	.agro-section .agro-section__link,
	.agro-band .agro-section__link {
		font-size: 14px;
	}
}

/* ==========================================================================
   4. Shop pages  (templates/archive-product, taxonomy-product_cat/_tag)
   Page hero, sidebar cards, layout, WooCommerce filter widgets.
   ========================================================================== */

.agro-shop-page {
	padding-bottom: 64px;
}

.agro-page-hero {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 32px;
}

.agro-page-hero > * {
	margin: 0;
	text-align: left;
}

.agro-page-hero .woocommerce-breadcrumb,
.agro-page-hero .wc-block-breadcrumbs {
	justify-content: flex-start;
}

.agro-page-hero .woocommerce-breadcrumb,
.agro-page-hero .wc-block-breadcrumbs {
	font-size: 14px;
	color: var(--wp--preset--color--foreground-light);
}

.agro-page-hero .woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.agro-page-hero .woocommerce-breadcrumb,
.agro-page-hero .wc-block-breadcrumbs {
	--agro-crumb-current: var(--wp--preset--color--foreground);
}

.agro-page-hero h1 {
	font-size: 48px;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.agro-page-hero .wp-block-term-description {
	color: var(--wp--preset--color--foreground-light);
	max-width: 720px;
}

.agro-shop {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-top: 32px;
}

.agro-shop.agro-shop--full {
	grid-template-columns: minmax(0, 1fr);
}

.agro-shop > * {
	margin: 0;
	min-width: 0;
}

.agro-shop .agro-shop__sidebar {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.agro-card {
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: #fff;
}

.agro-card > * {
	margin-block: 0;
}

.agro-card > * + * {
	margin-top: 16px;
}

.agro-card__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

/* Product categories: flat list of 36px rows, current one tinted. */
.agro-card .wc-block-product-categories-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.agro-card .wc-block-product-categories-list-item {
	margin: 0;
}

.agro-card .wc-block-product-categories-list-item > a {
	display: flex;
	align-items: center;
	min-height: 36px;
	box-sizing: border-box;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--wp--preset--color--foreground);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.agro-card .wc-block-product-categories-list-item > a:hover,
.agro-card .wc-block-product-categories-list-item.is-current > a {
	background: var(--wp--preset--color--surface);
	font-weight: 700;
}

/* Price filter: green track, dark thumbs, dark "Filter" pill. */
.agro-card .wc-block-price-filter .wc-block-components-price-slider__range-input-wrapper {
	background: var(--wp--preset--color--border);
}

.agro-card .wc-block-price-filter .wc-block-components-price-slider__range-input-progress {
	--range-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.agro-card .wc-block-price-filter .wc-block-components-price-slider__range-input::-webkit-slider-thumb {
	background: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
}

.agro-card .wc-block-price-filter .wc-block-components-price-slider__range-input::-moz-range-thumb {
	background: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
}

.agro-card .wc-block-price-filter__actions {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	font-size: 14px;
}

.agro-card .wc-block-price-filter__button,
.agro-card .wc-block-components-filter-submit-button {
	height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 18px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.agro-card .wc-block-components-price-slider__controls {
	font-size: 14px;
}

@media (max-width: 1024px) {
	.agro-shop {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.agro-shop-page {
		padding-bottom: 32px;
	}

	.agro-page-hero {
		gap: 6px;
		padding-top: 16px;
	}

	.agro-page-hero h1 {
		font-size: 34px;
	}

	.agro-page-hero .woocommerce-breadcrumb,
	.agro-page-hero .wc-block-breadcrumbs {
		font-size: 13px;
	}

	.agro-shop,
	.agro-shop.agro-shop--full {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 16px;
	}

	/* Sidebar becomes a panel opened by the toolbar's Filter button. */
	.agro-shop .agro-shop__sidebar {
		display: none;
		gap: 16px;
	}

	.agro-shop.agro-filters-open .agro-shop__sidebar {
		display: flex;
	}
}

/* ==========================================================================
   5. Single product  (templates/single-product.html)
   ========================================================================== */

.agro-page-hero--product {
	padding-top: 28px;
}

.agro-product {
	display: grid;
	grid-template-columns: 600px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	margin-top: 24px;
}

.agro-product > * {
	margin: 0;
	min-width: 0;
}

/* Gallery: rounded tint stage, four thumbnails below. */
.agro-product .woocommerce-product-gallery {
	position: relative;
	margin: 0;
	opacity: 1 !important;
}

.agro-product .woocommerce-product-gallery .flex-viewport,
.agro-product .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	border-radius: 28px;
	background: var(--wp--preset--color--surface);
}

.agro-product .woocommerce-product-gallery__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 600 / 560;
}

.agro-product .woocommerce-product-gallery__image a {
	display: flex;
	width: 100%;
	height: 100%;
}

.agro-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agro-product .woocommerce-product-gallery__trigger {
	top: auto;
	right: 20px;
	bottom: 20px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
}

.agro-product .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.agro-product .flex-control-thumbs li {
	margin: 0;
	width: auto;
	float: none;
}

.agro-product .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	opacity: 1;
}

.agro-product .flex-control-thumbs img.flex-active {
	border-color: var(--wp--preset--color--primary);
}

/* Summary. */
.agro-product__summary {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-top: 8px;
}

.agro-product__summary > * {
	margin: 0;
	max-width: none;
}

.agro-product__summary h1 {
	font-size: 38px;
	line-height: 1.1;
	letter-spacing: -0.025em;
	text-align: left;
}

.agro-product__summary .wc-block-components-product-price,
.agro-product__summary .wp-block-woocommerce-product-price {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--primary-dark);
}

.agro-product__summary .price ins,
.agro-product__summary .wc-block-components-product-price ins {
	text-decoration: none;
}

.agro-product__summary .price del,
.agro-product__summary .wc-block-components-product-price del {
	font-size: 22px;
	font-weight: 400;
	color: var(--wp--preset--color--foreground-light);
}

.agro-product__summary .wp-block-post-excerpt {
	color: var(--wp--preset--color--foreground-light);
	font-size: 16px;
}

/* Cart form: quantity pill, Add to cart, Order now on one row. */
.agro-product__summary form.cart {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.agro-product__summary form.cart .quantity {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 56px;
	box-sizing: border-box;
	padding: 0 6px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 28px;
	background: #fff;
}

.agro-product__summary form.cart .quantity .qty-button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.agro-product__summary form.cart .quantity .qty {
	width: 40px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.agro-product__summary form.cart .single_add_to_cart_button,
.agro-product__summary form.cart .agro-order-now {
	flex: 1 1 0;
	min-width: 140px;
	height: 56px;
	padding: 0 24px;
	border: 0;
	border-radius: 28px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.agro-product__summary form.cart .single_add_to_cart_button {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
}

.agro-product__summary form.cart .agro-order-now {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--secondary);
}

.agro-product__summary form.cart .single_add_to_cart_button:hover,
.agro-product__summary form.cart .agro-order-now:hover {
	filter: brightness(0.95);
}

.agro-product__summary .agro-product__rule {
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--wp--preset--color--border);
}

/* Meta rows: muted label, bold value. */
.agro-product__meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 15px;
}

.agro-product__meta > *,
.agro-product__meta .sku_wrapper {
	margin: 0;
	color: var(--wp--preset--color--foreground-light);
	font-size: 15px;
}

.agro-product__meta a,
.agro-product__meta .sku,
.agro-product__meta .wp-block-woocommerce-product-sku strong {
	color: var(--wp--preset--color--foreground);
	font-weight: 700;
	text-decoration: none;
}

.agro-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--wp--preset--color--foreground-light);
	font-size: 15px;
}

.agro-share a {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: #fff;
	color: var(--wp--preset--color--foreground);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

/* Tabs card. */
.agro-product-details {
	margin-top: 56px;
	box-sizing: border-box;
	padding: 12px 40px 40px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 28px;
	background: #fff;
}

.agro-product-details .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 32px;
	margin: 0 0 24px;
	padding: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	list-style: none;
	justify-content: flex-start;
}

.agro-product-details .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.agro-product-details .woocommerce-tabs ul.tabs li a {
	display: flex;
	align-items: center;
	height: 56px;
	box-sizing: border-box;
	padding: 0;
	border-bottom: 3px solid transparent;
	color: var(--wp--preset--color--foreground-light);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
}

.agro-product-details .woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--foreground);
}

.agro-product-details .woocommerce-Tabs-panel {
	font-size: 16px;
	line-height: 1.65;
}

.agro-product-details .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

.agro-section--related {
	padding-top: 56px;
}

.agro-section--related > .wp-block-heading {
	margin: 0 0 24px;
	font-size: 36px;
	letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
	.agro-product {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 32px;
	}

	.agro-product__summary h1 {
		font-size: 30px;
	}
}

@media (max-width: 768px) {
	.agro-product {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		margin-top: 16px;
	}

	.agro-product .woocommerce-product-gallery__image {
		aspect-ratio: 1;
	}

	.agro-product .woocommerce-product-gallery .flex-viewport,
	.agro-product .woocommerce-product-gallery__wrapper {
		border-radius: 20px;
	}

	.agro-product .flex-control-thumbs {
		gap: 8px;
	}

	.agro-product__summary {
		gap: 16px;
	}

	.agro-product__summary h1 {
		font-size: 26px;
	}

	.agro-product__summary .wp-block-woocommerce-product-price {
		font-size: 32px;
	}

	.agro-product__summary form.cart .quantity {
		flex: 0 0 100%;
		justify-content: space-between;
	}

	.agro-product-details {
		margin-top: 32px;
		padding: 8px 20px 24px;
		border-radius: 20px;
	}

	.agro-section--related {
		padding-top: 32px;
	}

	.agro-section--related > .wp-block-heading {
		margin-bottom: 16px;
		font-size: 24px;
	}
}

/* Single product: specificity fixes against the parent's gallery/tabs rules. */
.agro-product .woocommerce-product-gallery,
.agro-product .woocommerce div.product div.images {
	float: none;
	width: 100%;
	max-width: none;
}

.agro-product__summary .wp-block-separator.agro-product__rule {
	width: 100%;
	max-width: none;
	height: 1px;
}

.agro-product-details .woocommerce-tabs ul.tabs.wc-tabs {
	justify-content: flex-start;
	text-align: left;
}

.agro-product-details .woocommerce-tabs ul.tabs.wc-tabs li a {
	letter-spacing: 0;
	text-transform: none;
	font-size: 15px;
}

.agro-product-details .woocommerce-tabs ul.tabs.wc-tabs li.active a {
	color: var(--wp--preset--color--foreground);
	border-bottom-color: var(--wp--preset--color--primary);
}

.agro-product .wp-block-woocommerce-product-image-gallery {
	width: 100%;
	max-width: none;
	margin: 0;
}

.agro-product-details .woocommerce-tabs ul.tabs.wc-tabs {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.agro-product-details .woocommerce-tabs ul.tabs.wc-tabs li a {
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: var(--wp--preset--color--foreground-light);
}

.agro-product-details .woocommerce-tabs ul.tabs.wc-tabs li.active a {
	color: var(--wp--preset--color--foreground);
}

/* ==========================================================================
   6. Cart and checkout  (WooCommerce Cart / Checkout blocks)
   Line items as white cards, dark totals card with a green total, pill inputs.
   ========================================================================== */

.agro-woo-page__content {
	margin-top: 32px;
}

.agro-woo-page .wc-block-components-sidebar-layout {
	gap: 32px;
	margin: 0;
	align-items: flex-start;
}

.agro-woo-page .wc-block-components-sidebar-layout .wc-block-components-main,
.agro-woo-page .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	padding: 0;
}

.agro-woo-page--cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	flex: 0 0 380px;
	width: 380px;
}

.agro-woo-page--checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	flex: 0 0 420px;
	width: 420px;
}

/* --- Cart line items -------------------------------------------------- */
.agro-woo-page table.wc-block-cart-items {
	border-collapse: separate;
	border-spacing: 0 12px;
	margin: -12px 0 0;
}

.agro-woo-page table.wc-block-cart-items thead {
	display: none;
}

.agro-woo-page table.wc-block-cart-items td {
	padding: 16px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: #fff;
	vertical-align: middle;
}

.agro-woo-page table.wc-block-cart-items td:first-child {
	border-left: 1px solid var(--wp--preset--color--border);
	border-radius: 20px 0 0 20px;
}

.agro-woo-page table.wc-block-cart-items td:last-child {
	border-right: 1px solid var(--wp--preset--color--border);
	border-radius: 0 20px 20px 0;
	text-align: right;
}

.agro-woo-page .wc-block-cart-item__image img {
	width: 104px;
	height: 104px;
	border-radius: 14px;
	object-fit: cover;
	background: var(--wp--preset--color--surface);
}

.agro-woo-page .wc-block-components-product-name {
	color: var(--wp--preset--color--foreground);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.agro-woo-page .wc-block-cart-item__prices,
.agro-woo-page .wc-block-components-product-metadata {
	color: var(--wp--preset--color--foreground-light);
	font-size: 14px;
}

.agro-woo-page .wc-block-cart-item__total .wc-block-components-product-price,
.agro-woo-page .wc-block-cart-item__total .wc-block-formatted-money-amount {
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 22px;
	font-weight: 800;
}

.agro-woo-page .wc-block-components-quantity-selector {
	height: 48px;
	border: 0;
	border-radius: 24px;
	background: var(--wp--preset--color--background);
}

.agro-woo-page .wc-block-components-quantity-selector::after {
	display: none;
}

.agro-woo-page .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	background: transparent;
	font-weight: 700;
}

.agro-woo-page .wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--foreground-light);
	font-size: 14px;
}

/* --- Dark totals / order card ------------------------------------------ */
.agro-woo-page .wc-block-components-sidebar {
	box-sizing: border-box;
	padding: 28px;
	border-radius: 24px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
}

.agro-woo-page--cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.agro-woo-page--checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	padding: 28px;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-cart__totals-title,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-checkout-order-summary__title-text,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-title {
	padding: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
}

.agro-woo-page .wc-block-components-sidebar,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-totals-item__label,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-product-name,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-order-summary-item__description,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-product-metadata {
	color: #c3d8c2;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-components-totals-item__value,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-order-summary-item__total-price,
.agro-woo-page .wc-block-components-sidebar .wc-block-formatted-money-amount {
	color: #fff;
	font-weight: 700;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-components-totals-wrapper {
	padding: 12px 0;
	border-color: #24503a;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: #fff;
	font-size: 15px;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 34px;
	font-weight: 800;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-components-panel__button,
.agro-woo-page .wc-block-components-sidebar .wc-block-components-totals-coupon-link {
	color: #fff;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-components-order-summary-item__image img {
	border-radius: 10px;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-components-order-summary-item__quantity {
	border-color: #24503a;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	box-shadow: none;
}

/* --- Buttons ------------------------------------------------------------ */
.agro-woo-page .wc-block-cart__submit-button,
.agro-woo-page .wc-block-components-checkout-place-order-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	border: 0;
	border-radius: 27px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.agro-woo-page .wc-block-cart__submit-button:hover,
.agro-woo-page .wc-block-components-checkout-place-order-button:hover {
	filter: brightness(0.95);
}

.agro-woo-page .wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	color: inherit;
}

/* --- Checkout form card -------------------------------------------------- */
.agro-woo-page--checkout .wc-block-checkout__main {
	box-sizing: border-box;
	padding: 36px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 28px;
	background: #fff;
}

.agro-woo-page--checkout .wc-block-checkout__main .wc-block-components-title,
.agro-woo-page--checkout .wc-block-checkout__main .wc-block-components-checkout-step__title {
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
}

.agro-woo-page .wc-block-components-text-input input,
.agro-woo-page .wc-block-components-textarea,
.agro-woo-page .wc-blocks-components-select .wc-blocks-components-select__select,
.agro-woo-page .wc-block-components-address-form select,
.agro-woo-page textarea {
	min-height: 52px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 26px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
}

.agro-woo-page textarea {
	border-radius: 22px;
}

.agro-woo-page .wc-block-components-text-input input:focus,
.agro-woo-page textarea:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 2px rgba(109, 184, 46, 0.35);
	outline: 0;
}

.agro-woo-page .wc-block-components-text-input label {
	left: 20px;
}

/* Payment: white card inside the dark column. */
.agro-woo-page--checkout .wc-block-checkout__payment-method,
.agro-woo-page--checkout .wc-block-components-radio-control {
	color: var(--wp--preset--color--foreground);
}

.agro-woo-page--checkout .wc-block-components-radio-control__option {
	border-radius: 20px;
	background: #fff;
	color: var(--wp--preset--color--foreground);
	font-weight: 700;
}

/* Empty cart. */
.agro-woo-page .wp-block-woocommerce-empty-cart-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 48px 0 24px;
	text-align: center;
}

.agro-woo-page .wp-block-woocommerce-empty-cart-block h2 {
	margin: 0;
	font-size: 56px;
	letter-spacing: -0.03em;
}

.agro-woo-page .wp-block-woocommerce-empty-cart-block p {
	max-width: 520px;
	margin: 0;
	color: var(--wp--preset--color--foreground-light);
	font-size: 18px;
	line-height: 1.6;
}

@media (max-width: 1024px) {
	.agro-woo-page--cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.agro-woo-page--checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		flex-basis: 100%;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.agro-woo-page__content {
		margin-top: 16px;
	}

	.agro-woo-page--checkout .wc-block-checkout__main {
		padding: 20px;
		border-radius: 20px;
	}

	.agro-woo-page .wc-block-components-sidebar {
		padding: 20px;
		border-radius: 20px;
	}

	.agro-woo-page .wp-block-woocommerce-empty-cart-block h2 {
		font-size: 34px;
	}
}

/* Cart/checkout layout + line item cards (overrides of the rules above). */
.agro-woo-page .wc-block-components-sidebar-layout {
	flex-wrap: nowrap;
}

.agro-woo-page .wc-block-components-sidebar-layout .wc-block-components-main {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.agro-woo-page table.wc-block-cart-items tr.wc-block-cart-items__row {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	box-sizing: border-box;
	padding: 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: #fff;
}

.agro-woo-page table.wc-block-cart-items tbody {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.agro-woo-page table.wc-block-cart-items {
	display: block;
	margin: 0;
	border-spacing: 0;
}

.agro-woo-page table.wc-block-cart-items tr.wc-block-cart-items__row td {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.agro-woo-page .wc-block-cart-item__image {
	width: 104px;
}

@media (max-width: 768px) {
	.agro-woo-page table.wc-block-cart-items tr.wc-block-cart-items__row {
		grid-template-columns: 80px minmax(0, 1fr);
		gap: 12px;
	}

	.agro-woo-page .wc-block-cart-item__image img {
		width: 80px;
		height: 80px;
	}

	.agro-woo-page .wc-block-cart-item__total {
		grid-column: 1 / -1;
		text-align: right;
	}
}

/* Checkout polish: card padding, pill inputs, radio cards, inner borders. */
.agro-woo-page--checkout .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-checkout__main {
	padding: 36px;
}

.agro-woo-page .wc-block-components-text-input input[type="text"],
.agro-woo-page .wc-block-components-text-input input[type="email"],
.agro-woo-page .wc-block-components-text-input input[type="tel"],
.agro-woo-page .wc-block-components-text-input input[type="number"],
.agro-woo-page .wc-block-components-text-input input[type="password"] {
	min-height: 52px;
	padding: 20px 20px 6px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 26px;
	background: var(--wp--preset--color--background);
}

.agro-woo-page .wc-block-components-text-input.is-active input {
	padding-top: 22px;
}

.agro-woo-page .wc-block-components-text-input label {
	left: 20px;
}

.agro-woo-page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option,
.agro-woo-page .wc-block-components-radio-control-accordion-option,
.agro-woo-page .wc-block-components-radio-control__option {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	box-shadow: none;
}

.agro-woo-page .wc-block-components-radio-control-accordion-content {
	margin: 0 16px 16px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground-light);
	font-size: 14px;
}

.agro-woo-page .wc-block-components-sidebar .wc-block-components-checkout-order-summary__content,
.agro-woo-page .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border: 0;
}

.agro-woo-page table.wc-block-cart-items,
.agro-woo-page table.wc-block-cart-items tbody,
.agro-woo-page table.wc-block-cart-items tr {
	border-bottom: 0;
}

.agro-woo-page table.wc-block-cart-items tr.wc-block-cart-items__row::after {
	display: none;
}

/* ==========================================================================
   7. My account  (templates/page-my-account.html)
   Logged out: one white card, login on the left, green "New here?" panel.
   ========================================================================== */

body:not(.logged-in) .agro-woo-page--account .agro-page-hero {
	display: none;
}

body:not(.logged-in) .agro-woo-page--account {
	padding-top: 56px;
	padding-bottom: 80px;
}

.agro-woo-page--account .u-columns.col2-set,
.agro-woo-page--account #customer_login {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 32px;
	background: #fff;
}

.agro-woo-page--account .u-columns .u-column1,
.agro-woo-page--account .u-columns .u-column2 {
	float: none;
	width: auto;
	max-width: none;
	box-sizing: border-box;
	padding: 48px;
}

.agro-woo-page--account .u-columns .u-column2 {
	padding: 48px 40px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
}

.agro-woo-page--account .u-columns h2 {
	margin: 0 0 20px;
	font-size: 40px;
	letter-spacing: -0.02em;
}

.agro-woo-page--account .u-columns .u-column2 h2 {
	display: none;
}

.agro-account__eyebrow {
	display: block;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.agro-account__promo-title {
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.agro-account__promo-text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
}

.agro-woo-page--account form.woocommerce-form {
	margin: 0;
	padding: 0;
	border: 0;
}

.agro-woo-page--account form .form-row {
	margin: 0 0 16px;
	padding: 0;
}

.agro-woo-page--account form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
}

.agro-woo-page--account form input.input-text,
.agro-woo-page--account form input[type="text"],
.agro-woo-page--account form input[type="email"],
.agro-woo-page--account form input[type="password"] {
	width: 100%;
	height: 52px;
	box-sizing: border-box;
	padding: 0 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 26px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	font-size: 15px;
}

.agro-woo-page--account form .password-input {
	display: block;
	position: relative;
}

.agro-woo-page--account form .show-password-input {
	position: absolute;
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
}

.agro-woo-page--account form .woocommerce-button,
.agro-woo-page--account form button[type="submit"] {
	width: 100%;
	height: 54px;
	border: 0;
	border-radius: 27px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.agro-woo-page--account .u-column2 form button[type="submit"] {
	background: var(--wp--preset--color--secondary);
	color: #fff;
}

.agro-woo-page--account .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 14px;
}

.agro-woo-page--account .lost_password {
	margin: 12px 0 0;
	font-size: 14px;
}

.agro-woo-page--account .lost_password a {
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
	text-decoration: none;
}

/* Logged in: nav pills on the left, content card on the right. */
.woocommerce-account.logged-in .agro-woo-page--account .woocommerce {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.woocommerce-account.logged-in .agro-woo-page--account .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .agro-woo-page--account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: #fff;
}

.woocommerce-account.logged-in .agro-woo-page--account .woocommerce-MyAccount-content {
	padding: 32px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--wp--preset--color--foreground);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--surface);
	font-weight: 700;
}

@media (max-width: 768px) {
	body:not(.logged-in) .agro-woo-page--account {
		padding-top: 24px;
		padding-bottom: 40px;
	}

	.agro-woo-page--account .u-columns.col2-set,
	.agro-woo-page--account #customer_login {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 24px;
	}

	.agro-woo-page--account .u-columns .u-column1,
	.agro-woo-page--account .u-columns .u-column2 {
		padding: 28px 20px;
	}

	.agro-woo-page--account .u-columns h2 {
		font-size: 32px;
	}

	.woocommerce-account.logged-in .agro-woo-page--account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}
}

.agro-woo-page--account form .woocommerce-Input.input-text,
.agro-woo-page--account form input.woocommerce-Input {
	height: 52px;
	padding: 0 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 26px;
	background: var(--wp--preset--color--background);
}

.agro-woo-page--account .u-column2 form .woocommerce-Input.input-text {
	background: #fff;
}

.agro-woo-page--account .woocommerce-privacy-policy-text,
.agro-woo-page--account .woocommerce-privacy-policy-text p {
	font-size: 13px;
	line-height: 1.5;
}

/* ==========================================================================
   8. About and Contact  (patterns/about.php, patterns/contact.php)
   ========================================================================== */

.agro-about,
.agro-contact {
	padding-bottom: 0;
}

.agro-about__intro {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 64px;
}

.agro-about__intro > * {
	margin: 0;
	text-align: left;
	max-width: 980px;
}

.agro-about__intro h1 {
	font-size: 52px;
	line-height: 1;
	letter-spacing: -0.03em;
}

.agro-about .agro-mark {
	padding: 0 12px;
	border-radius: 12px;
	background: var(--wp--preset--color--primary);
	color: inherit;
}

.agro-about .agro-eyebrow,
.agro-contact .agro-eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--primary-dark);
}

.agro-about__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 56px;
}

.agro-about__grid > * {
	margin: 0;
}

.agro-about__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-sizing: border-box;
	padding: 40px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 28px;
	background: #fff;
	color: #2c4735;
	font-size: 16px;
	line-height: 1.7;
}

.agro-about__card > * {
	margin: 0;
}

.agro-about__card h2 {
	color: var(--wp--preset--color--foreground);
	font-size: 32px;
}

.agro-about__card strong {
	color: var(--wp--preset--color--foreground);
}

.agro-about .agro-about__num {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	-webkit-text-stroke: 1px var(--wp--preset--color--secondary);
}

.agro-about__card--dark {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary);
	color: #c3d8c2;
}

.agro-about__card--dark h2 {
	color: #fff;
}

.agro-about__card--dark strong {
	color: var(--wp--preset--color--primary);
}

.agro-about__card--dark .agro-about__num {
	-webkit-text-stroke: 0;
}

.agro-about__cta {
	margin-top: 56px;
	padding: 64px 0;
	text-align: center;
}

.agro-about__cta > * {
	margin-left: auto;
	margin-right: auto;
	max-width: 900px;
}

.agro-about__cta h2 {
	margin-bottom: 16px;
	font-size: 44px;
	letter-spacing: -0.02em;
}

.agro-about__cta p {
	font-size: 17px;
	line-height: 1.7;
}

/* Contact. */
.agro-contact__hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	margin-top: 32px;
	min-height: 220px;
	padding: 0 56px;
	border-radius: 28px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
}

.agro-contact__hero > * {
	margin: 0;
	text-align: left;
}

.agro-contact__hero .agro-eyebrow {
	color: var(--wp--preset--color--primary);
}

.agro-contact__hero h1 {
	color: #fff;
	font-size: 52px;
	letter-spacing: -0.03em;
}

.agro-contact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
	margin-top: 32px;
}

.agro-contact__col {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.agro-contact__col > * {
	margin: 0;
}

.agro-contact__card {
	padding: 32px;
	border-radius: 24px;
}

.agro-contact__card h2 {
	margin: 0 0 14px;
	font-size: 28px;
}

.agro-contact__row {
	position: relative;
	margin: 0 0 14px;
	padding-left: 44px;
	min-height: 32px;
	display: flex;
	align-items: center;
	font-size: 16px;
	line-height: 1.5;
}

.agro-contact__row:last-child {
	margin-bottom: 0;
}

.agro-contact__row a {
	color: inherit;
	text-decoration: none;
}

.agro-contact__row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 32px;
	height: 32px;
	transform: translateY(-50%);
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary);
	background-image: var(--agro-ico);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px;
}

.agro-contact__row--pin {
	--agro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2E17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.agro-contact__row--mail {
	--agro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2E17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.agro-contact__row--phone {
	--agro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2E17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.agro-contact__map {
	position: relative;
	height: 300px;
	overflow: hidden;
	border-radius: 24px;
	background: #d3e7c2;
}

.agro-contact__map .agro-contact__pin {
	position: absolute;
	left: 50%;
	top: 50%;
	margin: 0;
	transform: translate(-50%, -10%);
	padding: 4px 10px;
	border-radius: 10px;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
}

.agro-contact__map .agro-contact__pin::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -52px;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	border-radius: 22px 22px 22px 4px;
	background: var(--wp--preset--color--secondary);
	transform: rotate(-45deg);
}

/* WPForms inside the contact card. */
.agro-contact__form .wpforms-container {
	margin: 0;
}

.agro-contact__form .wpforms-field-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.agro-contact__form .wpforms-field {
	padding: 0;
}

.agro-contact__form .wpforms-field-textarea {
	grid-column: 1 / -1;
}

.agro-contact__form .wpforms-field-label {
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
}

.agro-contact__form input[type="text"],
.agro-contact__form input[type="email"] {
	width: 100%;
	max-width: none;
	height: 48px;
	box-sizing: border-box;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
	background: var(--wp--preset--color--background);
	font-size: 15px;
}

.agro-contact__form textarea {
	width: 100%;
	max-width: none;
	height: 110px;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: var(--wp--preset--color--background);
	font-size: 15px;
	resize: none;
}

.agro-contact__form .wpforms-submit-container {
	margin-top: 16px;
	padding: 0;
}

.agro-contact__form .wpforms-submit {
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: 26px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.agro-about__intro h1 {
		font-size: 42px;
	}
}

@media (max-width: 768px) {
	.agro-about__intro {
		padding-top: 32px;
	}

	.agro-about__intro h1 {
		font-size: 34px;
	}

	.agro-about__grid,
	.agro-contact__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.agro-about__grid {
		margin-top: 32px;
	}

	.agro-about__card {
		padding: 24px;
		border-radius: 20px;
	}

	.agro-about__card h2 {
		font-size: 26px;
	}

	.agro-about__cta {
		margin-top: 32px;
		padding: 40px 0;
	}

	.agro-about__cta h2 {
		font-size: 30px;
	}

	.agro-contact__hero {
		min-height: 160px;
		padding: 0 24px;
		border-radius: 20px;
	}

	.agro-contact__hero h1 {
		font-size: 36px;
	}

	.agro-contact__card {
		padding: 24px 20px;
	}

	.agro-contact__col {
		gap: 16px;
	}

	.agro-contact__map {
		height: 220px;
	}

	.agro-contact__form .wpforms-field-container {
		grid-template-columns: minmax(0, 1fr);
	}
}

.agro-contact {
	padding-top: 32px;
	padding-bottom: 64px;
}

.agro-contact__hero {
	margin-top: 0;
}

.agro-contact__form div.wpforms-container-full .wpforms-form input[type="text"],
.agro-contact__form div.wpforms-container-full .wpforms-form input[type="email"] {
	width: 100%;
	max-width: none;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
	background: var(--wp--preset--color--background);
}

.agro-contact__form div.wpforms-container-full .wpforms-form textarea {
	width: 100%;
	max-width: none;
	height: 110px;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: var(--wp--preset--color--background);
}

.agro-contact__form div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit {
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: 26px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 16px;
	font-weight: 700;
}

.agro-contact__form div.wpforms-container-full .wpforms-form .wpforms-field-label {
	font-size: 14px;
	font-weight: 500;
}

@media (max-width: 768px) {
	.agro-contact {
		padding-top: 16px;
		padding-bottom: 32px;
	}
}

/* Account inputs: beat WooCommerce's `.woocommerce form .form-row input.input-text`. */
body .agro-woo-page--account .woocommerce form .form-row input.input-text {
	height: 52px;
	padding: 0 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 26px;
	background: var(--wp--preset--color--background);
	box-shadow: none;
}

body .agro-woo-page--account .woocommerce .u-column2 form .form-row input.input-text {
	background: #fff;
}

/* Mobile cart rows: image + details on top, line total underneath. */
@media (max-width: 768px) {
	.agro-woo-page table.wc-block-cart-items tr.wc-block-cart-items__row {
		grid-template-columns: 80px minmax(0, 1fr) !important;
		grid-template-areas: none !important;
		align-items: start;
	}

	.agro-woo-page table.wc-block-cart-items tr.wc-block-cart-items__row .wc-block-cart-item__image {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: 80px;
	}

	.agro-woo-page table.wc-block-cart-items tr.wc-block-cart-items__row .wc-block-cart-item__product {
		grid-column: 2 !important;
		grid-row: 1 !important;
		min-width: 0;
	}

	.agro-woo-page table.wc-block-cart-items tr.wc-block-cart-items__row .wc-block-cart-item__total {
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
		text-align: right;
	}
}

/* ==========================================================================
   9. Polish
   ========================================================================== */

/* SKU block draws its own top border: only the separator above the meta rows should show. */
.agro-product__meta .wc-block-components-product-sku,
.agro-product__meta .wc-block-grid__product-sku {
	margin: 0;
	padding: 0;
	border: 0;
}

/* After adding to cart the button is replaced by a green "View cart" pill (single product form). */
.agro-product__summary form.cart:has(.added_to_cart) .single_add_to_cart_button {
	display: none;
}

.agro-product__summary form.cart .added_to_cart {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 140px;
	height: 56px;
	box-sizing: border-box;
	padding: 0 24px;
	border: 0;
	border-radius: 28px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.agro-page-hero .agro-crumb-sep {
	margin: 0 2px;
}

.agro-page-hero .agro-crumb-current {
	color: var(--wp--preset--color--foreground);
	font-weight: 700;
}


/* Tag hero: dark rounded panel with title left, count and sort pills right. */
.agro-tag-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	box-sizing: border-box;
	margin-top: 32px;
	min-height: 160px;
	padding: 24px 48px;
	border-radius: 32px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
}

.agro-tag-hero > * {
	margin: 0;
}

.agro-tag-hero__titles {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.agro-tag-hero__titles > * {
	margin: 0;
	text-align: left;
}

.agro-tag-hero .woocommerce-breadcrumb,
.agro-tag-hero .woocommerce-breadcrumb a {
	color: #c3d8c2;
	font-size: 14px;
}

.agro-tag-hero .agro-crumb-current {
	color: #fff;
}

.agro-tag-hero h1 {
	color: #fff;
	font-size: 48px;
	letter-spacing: -0.02em;
}

.agro-tag-hero h1 .agro-accent {
	color: var(--wp--preset--color--primary);
}

.agro-tag-hero__meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.agro-tag-hero__meta .woocommerce-result-count {
	display: flex;
	align-items: center;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border-radius: 20px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 14px;
	font-weight: 700;
}

.agro-tag-hero__meta select {
	height: 40px;
	padding: 0 16px;
	border: 1px solid #2f6b48;
	border-radius: 20px;
	background: transparent;
	color: #fff;
	font-size: 14px;
}

.agro-tag-hero__meta select option {
	color: var(--wp--preset--color--foreground);
}

/* Gallery badge. */
.agro-gallery-wrap {
	position: relative;
}

.agro-gallery-badge {
	position: absolute;
	z-index: 3;
	top: 20px;
	right: 20px;
	padding: 6px 14px;
	border-radius: 14px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--secondary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.agro-gallery-badge--hot {
	background: var(--wp--preset--color--secondary);
	color: #fff;
}

/* Description tab: two columns. */
.agro-desc {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
}

.agro-desc__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.agro-desc__col > * {
	margin: 0;
}

.agro-desc__col h3 {
	font-size: 26px;
}

.agro-desc__col ol {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
	list-style: none;
	counter-reset: kp;
}

.agro-desc__col ol li {
	counter-increment: kp;
}

.agro-desc__col ol li::before {
	content: counter(kp) ". ";
}

@media (max-width: 768px) {
	.agro-tag-hero {
		min-height: 0;
		padding: 20px;
		border-radius: 24px;
		margin-top: 16px;
	}

	.agro-tag-hero h1 {
		font-size: 30px;
	}

	.agro-desc {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

main.agro-shop-page > .agro-tag-hero {
	margin-top: 32px !important;
	flex-wrap: nowrap;
}

.agro-tag-hero__meta {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	main.agro-shop-page > .agro-tag-hero {
		margin-top: 16px !important;
		flex-wrap: wrap;
	}
}

.agro-tag-hero .agro-tag-hero__meta .wc-block-catalog-sorting select.orderby,
.agro-tag-hero .agro-tag-hero__meta select {
	height: 40px;
	padding: 0 16px;
	border: 1px solid #2f6b48;
	border-radius: 20px;
	background-color: transparent;
	color: #fff;
	font-size: 14px;
}

.agro-tag-hero .agro-tag-hero__meta .wc-block-catalog-sorting {
	margin: 0;
}

body .agro-product__meta .wc-block-components-product-sku {
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

body .agro-product-details .woocommerce-tabs ul.tabs.wc-tabs {
	justify-content: flex-start !important;
	text-align: left !important;
	padding-left: 0 !important;
}

/* "View cart" replaces "Add to cart" (specificity mirrors the parent's form.cart rules). */
.woocommerce div.product form.cart:has(a.added_to_cart) button.single_add_to_cart_button {
	display: none;
}

.woocommerce div.product form.cart a.added_to_cart.wc-forward {
	flex: 1 1 0;
	min-width: 140px;
	min-height: 56px;
	height: 56px;
	padding: 0 24px;
	border: 0;
	border-radius: 28px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.woocommerce div.product form.cart a.added_to_cart.wc-forward:hover {
	background-color: var(--wp--preset--color--primary);
	filter: brightness(0.95);
}

/* ==========================================================================
   10. Search results  (templates/product-search-results.html)
   Full-width 4-column grid under a white pill bar (count left, sort right).
   ========================================================================== */

.agro-search-page .agro-search-bar {
	box-sizing: border-box;
	min-height: 52px;
	margin-top: 32px;
	padding: 0 8px 0 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 26px;
	background: #fff;
	font-size: 14px;
}

.agro-search-page .agro-search-bar .woocommerce-result-count {
	margin: 0;
	color: var(--wp--preset--color--foreground-light);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

.agro-search-page .agro-search-bar .woocommerce-ordering {
	margin: 0;
}

.agro-search-page .agro-search-bar select.orderby {
	height: 38px;
	box-sizing: border-box;
	padding: 0 40px 0 16px;
	border: 0;
	border-radius: 19px;
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	font-size: 14px;
	font-weight: 500;
}

.agro-search-page .agro-shop {
	margin-top: 20px;
}

@media (max-width: 768px) {
	.agro-search-page .agro-page-hero h1 {
		font-size: 32px;
	}
}

/* --- My account (logged out): match the design card exactly ------------- */

.agro-woo-page--account .u-columns.col2-set,
.agro-woo-page--account #customer_login {
	min-height: 600px;
}

.agro-woo-page--account .u-columns .u-column1 {
	display: flex;
	flex-direction: column;
	padding: 56px;
}

.agro-woo-page--account .u-columns .u-column2 {
	display: flex;
	flex-direction: column;
	padding: 56px 40px;
}

.agro-woo-page--account .u-columns h2 {
	margin: 0 0 20px;
	font-size: 40px;
	line-height: 1.2;
}

/* Login: fields, full-width button, then "Remember me" left and the link right. */
.agro-woo-page--account form.woocommerce-form-login {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	row-gap: 20px;
	align-items: center;
}

.agro-woo-page--account form.woocommerce-form-login > .form-row-wide,
.agro-woo-page--account form.woocommerce-form-login > .form-row:has(.woocommerce-form-login__submit) {
	grid-column: 1 / -1;
}

.agro-woo-page--account form.woocommerce-form-login > .form-row:has(.woocommerce-form-login__submit) {
	display: contents;
}

.agro-woo-page--account form.woocommerce-form-login .form-row {
	margin: 0;
}

.agro-woo-page--account form.woocommerce-form-login .form-row-wide label {
	margin-bottom: 6px;
}

.agro-woo-page--account form.woocommerce-form-login .woocommerce-form-login__submit {
	grid-column: 1 / -1;
	grid-row: 3;
}

.agro-woo-page--account form.woocommerce-form-login .woocommerce-form-login__rememberme {
	grid-column: 1;
	grid-row: 4;
	margin: 0;
}

.agro-woo-page--account form.woocommerce-form-login .lost_password {
	grid-column: 2;
	grid-row: 4;
	margin: 0;
}

body:not(.logged-in) .agro-woo-page--account form .show-password-input {
	display: none;
}

body:not(.logged-in) .agro-woo-page--account form .password-input input {
	padding-right: 20px;
}

/* Register panel: promo on top, dark Register button pinned to the bottom. */
.agro-woo-page--account .u-column2 form.woocommerce-form-register {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.agro-woo-page--account .agro-account__promo-title {
	font-size: 36px;
}

.agro-woo-page--account .agro-account__promo-text {
	margin: 0 0 24px;
}

.agro-woo-page--account .woocommerce-form-register > p.form-row:last-child {
	margin: auto 0 0;
}

.agro-woo-page--account .woocommerce-form-register .woocommerce-form-register__submit {
	display: flex;
	align-items: center;
	justify-content: center;
}

.agro-woo-page--account form.agro-reg-collapsed .form-row-wide,
.agro-woo-page--account form.agro-reg-collapsed .woocommerce-privacy-policy-text {
	display: none;
}

.agro-woo-page--account .u-columns.col2-set,
.agro-woo-page--account #customer_login {
	box-sizing: border-box;
}

/* --- My account (logged in): sidebar card + form card from the design ---- */

.woocommerce-account.logged-in .agro-page-hero h1 {
	font-size: 52px;
	letter-spacing: -0.02em;
}

.woocommerce-account.logged-in .agro-woo-page--account .woocommerce {
	grid-template-columns: 320px minmax(0, 1fr);
}

.woocommerce-account.logged-in .agro-woo-page--account .woocommerce-MyAccount-navigation {
	padding: 12px;
	border-radius: 24px;
}

.woocommerce-account.logged-in .agro-woo-page--account .woocommerce-MyAccount-content {
	padding: 36px 36px 40px;
	border-radius: 28px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	box-sizing: border-box;
	min-height: 52px;
	padding: 0 18px;
	border: 0;
	border-radius: 16px;
	font-size: 15px;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--primary);
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover:not(:focus-visible) {
	background: var(--wp--preset--color--surface);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a:hover {
	background: var(--wp--preset--color--primary);
}

/* Edit account form. */
.woocommerce-account .woocommerce-EditAccountForm {
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-size: 15px;
}

.woocommerce-account .woocommerce-EditAccountForm .clear {
	display: none;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row {
	display: flex;
	float: none;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row label {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
	display: inline-flex;
}

body .agro-woo-page--account .woocommerce .woocommerce-EditAccountForm .form-row input.input-text {
	height: 60px;
	padding: 0 24px;
	font-size: 16px;
	border-radius: 30px;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row em {
	color: var(--wp--preset--color--foreground-light);
	font-size: 15px;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	padding: 20px 36px 34px;
	border: 1px dashed var(--wp--preset--color--border);
	border-radius: 4px;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
	padding: 0 10px;
	font-size: 16px;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row {
	margin: 0;
}

.woocommerce-account .woocommerce-EditAccountForm .password-input {
	display: block;
}

.woocommerce-account .woocommerce-EditAccountForm .password-input input {
	padding-right: 56px;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input {
	right: 24px;
}

.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type {
	margin: 6px 0 0;
}

.woocommerce-account .woocommerce-EditAccountForm button[name="save_account_details"] {
	width: 100%;
	height: 62px;
	border-radius: 31px;
	font-size: 17px;
}

/* Name row: two columns, 46px apart. */
@media (min-width: 769px) {
	.woocommerce-account .woocommerce-EditAccountForm {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 46px;
		row-gap: 18px;
	}

	.woocommerce-account .woocommerce-EditAccountForm > :not(.form-row-first):not(.form-row-last) {
		grid-column: 1 / -1;
	}
}

/* Product tabs: one divider line, active underline sits on it, tighter gap. */
body .agro-product-details .woocommerce-tabs ul.tabs.wc-tabs::before,
body .agro-product-details .woocommerce-tabs ul.tabs.wc-tabs::after {
	display: none !important;
	content: none !important;
	border: 0 !important;
}

body .agro-product-details .woocommerce-tabs ul.tabs.wc-tabs {
	margin: 0 0 16px !important;
	padding-bottom: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--border) !important;
	overflow: visible !important;
}

body .agro-product-details .woocommerce-tabs ul.tabs.wc-tabs li {
	margin: 0 0 -1px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body .agro-product-details .woocommerce-tabs ul.tabs.wc-tabs li::before,
body .agro-product-details .woocommerce-tabs ul.tabs.wc-tabs li::after {
	display: none !important;
}

body .agro-product-details .woocommerce-tabs ul.tabs.wc-tabs li a {
	height: 36px !important;
	padding: 0 !important;
	align-items: flex-start !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li,
.woocommerce-account .woocommerce-MyAccount-navigation li:not(:last-child) {
	border: 0;
	box-shadow: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	height: 52px;
	line-height: 1;
}

@media (max-width: 768px) {
	.woocommerce-account.logged-in .agro-page-hero h1 {
		font-size: 36px;
	}

	.woocommerce-account.logged-in .agro-woo-page--account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.woocommerce-account.logged-in .agro-woo-page--account .woocommerce-MyAccount-content {
		padding: 24px 20px 28px;
		border-radius: 24px;
	}

	.woocommerce-account .woocommerce-EditAccountForm fieldset {
		min-width: 0;
		padding: 16px 16px 24px;
	}
}

/* Product cards: larger title, calmer price. */
.rb-products-grid .rb-product-card .rb-product-card__title {
	font-size: 17px;
	line-height: 1.35;
}

.rb-products-grid .rb-product-card .rb-product-card__price-now {
	font-size: 18px;
}

.rb-products-grid .rb-product-card .rb-product-card__price-old {
	font-size: 13px;
}

/* Cart lines: title matches the product card (17px), smaller quantity and total. */
.agro-woo-page .wc-block-cart .wc-block-cart-items .wc-block-components-product-name {
	font-size: 17px;
	line-height: 1.35;
}

.agro-woo-page .wc-block-cart .wc-block-cart-item__total .wc-block-formatted-money-amount,
.agro-woo-page .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price {
	font-size: 18px;
}

.agro-woo-page .wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
	width: 88px;
	height: 38px;
	border-radius: 19px;
}

.agro-woo-page .wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	width: 30px;
	height: 38px;
	font-size: 13px;
}

.agro-woo-page .wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	height: 38px;
	min-width: 24px;
	font-size: 12px;
}

/* Category tiles: photos fill the whole frame. */
.rb-category-tiles__tile:not(.rb-category-tiles__tile--all) .rb-category-tiles__media img {
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: normal;
}

/* Cart quantity: centre the number (the input inherited extra top padding). */
.agro-woo-page .wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	line-height: 38px;
}

/* Mini-cart drawer: same line styling as the cart page. */
.wc-block-mini-cart__drawer .wc-block-cart-items .wc-block-components-product-name {
	color: var(--wp--preset--color--foreground);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.35;
	text-decoration: none;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__prices,
.wc-block-mini-cart__drawer .wc-block-components-product-metadata,
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description {
	color: var(--wp--preset--color--foreground-light);
	font-size: 14px;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__total .wc-block-formatted-money-amount,
.wc-block-mini-cart__drawer .wc-block-cart-item__total .wc-block-components-product-price {
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 18px;
	font-weight: 800;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
	width: 88px;
	height: 38px;
	border: 0;
	border-radius: 19px;
	background: var(--wp--preset--color--tint, #E3F0D8);
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector::after {
	display: none;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	box-sizing: border-box;
	width: 30px;
	height: 38px;
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: 13px;
	font-weight: 700;
	line-height: 38px;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	height: 38px;
	min-width: 24px;
	font-size: 12px;
}

/* Home hero on the light tint: the split layout hardcodes white for the
   secondary button, arrows, dots and counter, so recolour them dark. */
.agro-home-hero .rb-hero-slider--split.rb-hero-slider--split {
	color: var(--wp--preset--color--secondary);
}

.agro-home-hero .rb-hero-slider--split .rb-hero-slider__button-secondary {
	border-color: rgba(11, 46, 23, 0.35);
	color: var(--wp--preset--color--secondary) !important;
}

.agro-home-hero .rb-hero-slider--split .rb-hero-slider__button-secondary:hover,
.agro-home-hero .rb-hero-slider--split .rb-hero-slider__button-secondary:focus-visible {
	background: rgba(11, 46, 23, 0.06);
}

.agro-home-hero .rb-hero-slider--split .rb-hero-slider__arrow:not(.rb-hero-slider__arrow--next) {
	border-color: rgba(11, 46, 23, 0.35);
	color: var(--wp--preset--color--secondary);
}

.agro-home-hero .rb-hero-slider--split .rb-hero-slider__arrow:not(.rb-hero-slider__arrow--next):hover {
	background: rgba(11, 46, 23, 0.08);
}

.agro-home-hero .rb-hero-slider--split .rb-hero-slider__counter {
	color: rgba(11, 46, 23, 0.65);
}

.agro-home-hero .rb-hero-slider--split .rb-hero-slider__eyebrow {
	color: var(--wp--preset--color--secondary);
}
