/* Product card — footer, weights, price, badge, cart */

.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-content {
	margin-top: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Cream info panel */
.ng-farmley-card-foot {
	background: var(--ng-brand-cream, #fcf4eb);
	border-top: 1px solid rgba(12, 83, 61, 0.06);
	border-radius: 0 0 var(--ng-card-radius, 18px) var(--ng-card-radius, 18px);
	padding: 12px 16px 14px;
	width: 100%;
	box-sizing: border-box;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
}

/* Narrow cards (e.g. 2-up carousel slides) — stack footer via container query */
.ng-farmley-product-cards .qodef-e-inner.ng-farmley-card {
	container-type: inline-size;
	container-name: ng-farmley-card;
}

@container ng-farmley-card (max-width: 280px) {
	.ng-farmley-card-foot {
		padding: 10px 10px 12px;
		gap: 6px;
	}

	.ng-farmley-product-cards .qodef-woo-product-list .ng-farmley-card-foot .qodef-woo-product-title {
		font-size: 12px !important;
		line-height: 1.3 !important;
	}

	.ng-farmley-card-weight__options {
		display: flex;
		flex-flow: row nowrap;
		gap: 5px;
		min-height: 26px;
	}

	.ng-farmley-card-weight__btn,
	.ng-farmley-card-weight__badge {
		width: auto !important;
		flex: 0 0 auto;
		padding: 4px 8px;
		font-size: 10px;
		min-height: 26px;
	}

	.ng-farmley-card-footer {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 8px;
		padding-top: 8px;
	}

	.ng-farmley-card-footer__price {
		width: 100%;
	}

	.ng-farmley-card-footer__cart {
		width: 100%;
		max-width: 100% !important;
		margin: 0;
	}

	.ng-farmley-card-buttons {
		grid-template-columns: 1fr !important;
		gap: 6px !important;
	}

	.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button,
	.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button,
	.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_variable,
	.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_grouped,
	.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now {
		min-height: 36px !important;
		height: 36px !important;
		padding: 0 12px !important;
		font-size: 11px !important;
		border-radius: 100px !important;
	}
}

/* Title */
.ng-farmley-product-cards .qodef-woo-product-list .ng-farmley-card-foot .qodef-woo-product-title {
	min-height: 0;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ng-farmley-product-cards .qodef-woo-product-list .qodef-woo-product-title a {
	color: var(--ng-brand-green, #0c533d);
	transition: color 0.2s ease;
}

.ng-farmley-product-cards .qodef-woo-product-list .product:hover .qodef-woo-product-title a {
	color: var(--ng-brand-green-dark, #094432);
}

/* Weight chips — always one horizontal row so multi-size cards match single-size height */
.ng-farmley-card-weight {
	margin: 0;
	min-width: 0;
	width: 100%;
}

.ng-farmley-card-weight__options {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: 100%;
	min-width: 0;
	/* Reserve one chip-row height so 1-size and 2-size cards stay even */
	min-height: 30px;
}

.ng-farmley-card-weight__btn,
.ng-farmley-card-weight__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto !important;
	max-width: none;
	min-width: 0;
	min-height: 30px;
	padding: 5px 10px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	border-radius: 100px;
	border: 1.5px solid rgba(12, 83, 61, 0.2);
	background: #ffffff;
	color: #2d2d2d;
	box-sizing: border-box;
	white-space: nowrap;
}

.ng-farmley-card-weight__btn {
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ng-farmley-card-weight__btn:hover {
	border-color: var(--ng-brand-green, #0c533d);
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(12, 83, 61, 0.1);
}

.ng-farmley-card-weight__btn.is-active {
	border-color: var(--ng-brand-green, #0c533d);
	background: var(--ng-brand-green, #0c533d);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(12, 83, 61, 0.22);
}

.ng-farmley-card-weight__text {
	pointer-events: none;
	white-space: nowrap;
}

.ng-farmley-product-weight {
	display: inline-flex;
	margin: 0;
	padding: 5px 11px;
	font-size: 11px;
	font-weight: 600;
	color: var(--ng-brand-green, #0c533d);
	background: rgba(255, 255, 255, 0.85);
	border: 1.5px solid rgba(12, 83, 61, 0.18);
	border-radius: 100px;
}

/* Discount badge */
.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-media {
	position: relative !important;
}

.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-media > .woocommerce-LoopProduct-link {
	z-index: 1;
}

.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-media-image {
	position: relative !important;
}

.ng-farmley-product-cards .qodef-woo-product-list .ng-farmley-card-media > .ng-farmley-card-badge,
.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-media-image > .ng-farmley-card-badge,
.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-media > .ng-farmley-card-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto !important;
	bottom: auto;
	z-index: 12;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: calc(100% - 20px);
	padding: 5px 10px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #ffffff;
	background: linear-gradient(135deg, var(--ng-brand-green, #0c533d) 0%, var(--ng-brand-green-dark, #094432) 100%);
	border: 1px solid rgba(185, 149, 49, 0.65);
	border-radius: 100px;
	box-shadow:
		0 3px 12px rgba(12, 83, 61, 0.32),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	pointer-events: none;
}

/* Full-width Buy Now row (above price + cart footer) */
.ng-farmley-card-buy-row {
	width: 100%;
	margin: 2px 0 0;
}

.ng-farmley-card-buy-row .button.ng-farmley-buy-now,
.ng-farmley-card-buy-row a.button.ng-farmley-buy-now {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 42px !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border-radius: 100px !important;
	background: var(--ng-brand-green, #0c533d) !important;
	border: 1.5px solid var(--ng-brand-green, #0c533d) !important;
	color: #ffffff !important;
	font-family: "Manrope", sans-serif !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(12, 83, 61, 0.2);
	box-sizing: border-box;
}

.ng-farmley-card-buy-row .button.ng-farmley-buy-now:hover,
.ng-farmley-card-buy-row a.button.ng-farmley-buy-now:hover {
	background: var(--ng-brand-green-dark, #094432) !important;
	border-color: var(--ng-brand-green-dark, #094432) !important;
	color: #ffffff !important;
}

/* Price + cart — price/USP on top, action buttons full-width below
   (home, shop, wishlist, related — same everywhere) */
.ng-farmley-card-footer,
.ng-farmley-product-cards .ng-farmley-card-footer,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer,
.ng-farmley-related-products .ng-farmley-card-footer,
.qodef-woo-shortcode .ng-farmley-card-footer {
	display: flex !important;
	flex-flow: column nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	margin-top: 0;
	padding-top: 10px;
	border-top: 1px solid rgba(12, 83, 61, 0.07);
}

.ng-farmley-card-footer__price,
.ng-farmley-product-cards .ng-farmley-card-footer__price,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__price,
.ng-farmley-related-products .ng-farmley-card-footer__price,
.qodef-woo-shortcode .ng-farmley-card-footer__price {
	flex: 0 0 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	text-align: left !important;
}

.ng-farmley-card-footer__cart,
.ng-farmley-product-cards .ng-farmley-card-footer__cart,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__cart,
.ng-farmley-related-products .ng-farmley-card-footer__cart,
.qodef-woo-shortcode .ng-farmley-card-footer__cart {
	flex: 0 0 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	display: block !important;
}

/* Card price + USP — offer + USP on one row, struck MRP below */
.ng-farmley-card-price .price,
.ng-farmley-product-cards .ng-farmley-card-price .price,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-price .price,
.ng-farmley-related-products .ng-farmley-card-price .price,
.qodef-woo-shortcode .ng-farmley-card-price .price,
#qodef-woo-page .ng-farmley-card-price .price,
#qodef-woo-page .ng-farmley-related-products .ng-farmley-card-price .price {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	justify-content: flex-start !important;
	column-gap: 8px !important;
	row-gap: 2px !important;
	margin: 0 !important;
	width: auto !important;
	text-align: left !important;
}

.ng-farmley-card-price .price ins,
.ng-farmley-product-cards .ng-farmley-card-price .price ins,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-price .price ins,
.ng-farmley-related-products .ng-farmley-card-price .price ins,
.qodef-woo-shortcode .ng-farmley-card-price .price ins,
#qodef-woo-page .ng-farmley-card-price .price ins,
.ng-farmley-card-price .price .ng-farmley-price__selling {
	order: 1 !important;
	text-decoration: none !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	color: var(--ng-brand-green, #0c533d) !important;
	letter-spacing: -0.02em;
}

.ng-farmley-card-price .price ins .woocommerce-Price-amount {
	color: inherit;
}

.ng-farmley-card-price .price del,
.ng-farmley-product-cards .ng-farmley-card-price .price del,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-price .price del,
.ng-farmley-related-products .ng-farmley-card-price .price del,
.qodef-woo-shortcode .ng-farmley-card-price .price del,
#qodef-woo-page .ng-farmley-card-price .price del,
.ng-farmley-card-price .price .ng-farmley-price__regular {
	order: 2 !important;
	flex-basis: auto !important;
	width: auto !important;
	margin: 0 !important;
	color: #9a9a9a !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	text-decoration: line-through !important;
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.ng-farmley-card-price .price del:after,
.ng-farmley-product-cards .ng-farmley-card-price .price del:after,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-price .price del:after,
.ng-farmley-related-products .ng-farmley-card-price .price del:after,
.qodef-woo-shortcode .ng-farmley-card-price .price del:after,
#qodef-woo-page .ng-farmley-card-price .price del:after {
	display: none !important;
	content: none !important;
}

.ng-farmley-card-price .price > .woocommerce-Price-amount {
	order: 1;
	font-size: 18px;
	font-weight: 700;
	color: var(--ng-brand-green, #0c533d);
}

.ng-farmley-card-price .price ins,
.ng-farmley-card-price .price del,
.ng-farmley-card-price .price .woocommerce-Price-amount,
.ng-farmley-card-price .price bdi {
	text-align: left !important;
}

.ng-farmley-card-price .price .ng-farmley-sp-usp,
.ng-farmley-card-price .price .ng-farmley-card-usp,
.ng-farmley-product-cards .ng-farmley-card-price .price .ng-farmley-sp-usp,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-price .price .ng-farmley-sp-usp,
.ng-farmley-related-products .ng-farmley-card-price .price .ng-farmley-sp-usp,
.qodef-woo-shortcode .ng-farmley-card-price .price .ng-farmley-sp-usp,
#qodef-woo-page .ng-farmley-card-price .price .ng-farmley-sp-usp {
	order: 3 !important;
	flex-basis: 100% !important;
	width: 100% !important;
	display: inline-flex !important;
	align-items: baseline !important;
	gap: 3px !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	font-family: "Manrope", sans-serif !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	color: #6b7280 !important;
	white-space: nowrap !important;
}

.ng-farmley-card-price .price .ng-farmley-sp-usp__label,
.ng-farmley-product-cards .ng-farmley-card-price .price .ng-farmley-sp-usp__label,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-price .price .ng-farmley-sp-usp__label,
.ng-farmley-related-products .ng-farmley-card-price .price .ng-farmley-sp-usp__label,
.qodef-woo-shortcode .ng-farmley-card-price .price .ng-farmley-sp-usp__label {
	font-weight: 700 !important;
	font-size: 10px !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #0c533d !important;
}

.ng-farmley-card-price .price .ng-farmley-sp-usp__value,
.ng-farmley-product-cards .ng-farmley-card-price .price .ng-farmley-sp-usp__value,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-price .price .ng-farmley-sp-usp__value,
.ng-farmley-related-products .ng-farmley-card-price .price .ng-farmley-sp-usp__value,
.qodef-woo-shortcode .ng-farmley-card-price .price .ng-farmley-sp-usp__value {
	font-weight: 600 !important;
	font-size: 11px !important;
	color: #555 !important;
}

/* Hide tax suffix on tight cards — prevents clipped "oo" above price */
.ng-farmley-card-price .price .woocommerce-price-suffix,
.ng-farmley-product-cards .price .woocommerce-price-suffix,
.ng-farmley-wishlist-grid-wrap .price .woocommerce-price-suffix,
.ng-farmley-related-products .price .woocommerce-price-suffix,
.qodef-e-price-holder .price .woocommerce-price-suffix,
.ng-farmley-popular-card__price .price .woocommerce-price-suffix {
	display: none !important;
}

/* Card action buttons — equal side-by-side pills under price */
.ng-farmley-card-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

/* Sold out / single action — full-width same pill as Add to cart */
.ng-farmley-card-buttons:has(> :only-child) {
	grid-template-columns: 1fr;
}

.ng-farmley-card-footer__cart .ng-farmley-card-btn__inner,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .ng-farmley-card-btn__inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: auto;
	max-width: 100%;
	min-width: 0;
	line-height: 1;
}

.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now),
.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons a.button:not(.ng-farmley-buy-now),
.ng-farmley-product-cards .qodef-woo-shortcode .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.add_to_cart_button:not(.ng-farmley-buy-now),
.ng-farmley-product-cards .qodef-woo-shortcode .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_variable:not(.ng-farmley-buy-now),
.ng-farmley-product-cards .qodef-woo-shortcode .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_grouped:not(.ng-farmley-buy-now),
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button:not(.ng-farmley-buy-now),
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_variable:not(.ng-farmley-buy-now),
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_grouped:not(.ng-farmley-buy-now),
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now),
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button:not(.ng-farmley-buy-now) {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	flex: none !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 38px !important;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 10px !important;
	font-family: "Manrope", sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
	border-radius: 100px !important;
	background: var(--ng-brand-green, #0c533d) !important;
	border: 1.5px solid var(--ng-brand-green, #0c533d) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(12, 83, 61, 0.2);
	box-sizing: border-box;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

/* Secondary — Buy Now */
.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now,
.ng-farmley-product-cards .qodef-woo-shortcode .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	flex: none !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 38px !important;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 10px !important;
	font-family: "Manrope", sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
	border-radius: 100px !important;
	background: var(--ng-brand-secondary, var(--ng-brand-gold, #b99531)) !important;
	border: 1.5px solid var(--ng-brand-secondary, var(--ng-brand-gold, #b99531)) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(185, 149, 49, 0.28);
	box-sizing: border-box;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

/* Hide cart icons on add-to-cart buttons (theme JS may inject one) */
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button .qodef-svg--button-icon,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_variable .qodef-svg--button-icon,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_grouped .qodef-svg--button-icon,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-action-holder .add_to_cart_button .qodef-svg--button-icon,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-action-holder .button.product_type_variable .qodef-svg--button-icon,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-action-holder .button.product_type_grouped .qodef-svg--button-icon {
	display: none !important;
}

.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button .qodef-m-text,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button .qodef-m-text,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now .qodef-m-text,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button .qodef-m-text {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	line-height: 1 !important;
	text-align: center;
	white-space: nowrap;
	color: #ffffff !important;
}

.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now .qodef-svg--button-icon,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now::before,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now::after {
	display: none !important;
	content: none !important;
}

.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now):hover,
.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons a.button:not(.ng-farmley-buy-now):hover,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button:not(.ng-farmley-buy-now):hover,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_variable:not(.ng-farmley-buy-now):hover,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_grouped:not(.ng-farmley-buy-now):hover,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now):hover {
	background: var(--ng-brand-green-dark, #094432) !important;
	border-color: var(--ng-brand-green-dark, #094432) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(12, 83, 61, 0.28);
	transform: translateY(-1px);
}

.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now):hover .qodef-m-text,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button:not(.ng-farmley-buy-now):hover .qodef-m-text,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now):hover .qodef-m-text {
	color: #ffffff !important;
}

.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now:hover,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now:hover,
.ng-farmley-wishlist-grid-wrap .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now:hover {
	background: var(--ng-brand-gold-dark, #a68428) !important;
	border-color: var(--ng-brand-gold-dark, #a68428) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(185, 149, 49, 0.35);
	transform: translateY(-1px);
}

.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now:hover .qodef-m-text,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now:hover .qodef-m-text {
	color: #ffffff !important;
}

/* Card layout */
.ng-farmley-product-cards .qodef-woo-product-list.qodef-swiper-container li.product,
.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-inner.ng-farmley-card {
	overflow: visible;
}

.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-inner.ng-farmley-card {
	display: flex !important;
	flex-direction: column;
	min-height: 0;
	width: 100%;
}

/* Carousel slides keep natural height; shop/category grids stretch */
.ng-farmley-product-cards .qodef-woo-product-list.qodef-swiper-container .qodef-e-inner.ng-farmley-card {
	height: auto !important;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-layout--columns .qodef-e-inner.ng-farmley-card,
.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-inner.ng-farmley-card {
	height: 100% !important;
}

.ng-farmley-product-cards .qodef-woo-product-list .qodef-e-content {
	flex: 1 1 auto;
	display: flex !important;
	flex-direction: column;
	width: 100%;
	min-height: 0;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-swiper-container .qodef-e-content {
	flex: 0 1 auto;
}

/* Homepage Fresh carousel — equal-height GreenPath slides */
.ng-farmley-product-cards .elementor-element-47bd4b6 {
	overflow: visible !important;
}

.ng-farmley-product-cards .elementor-element-a463981 .ng-farmley-card-foot {
	flex: 1 1 auto;
}

.ng-farmley-product-cards .elementor-element-a463981 .ng-farmley-card-footer {
	margin-top: auto;
}

.ng-farmley-product-cards .elementor-element-a463981 .qodef-woo-product-list.qodef-swiper-container .swiper-wrapper {
	align-items: stretch !important;
}

.ng-farmley-product-cards .elementor-element-a463981 .qodef-woo-product-list.qodef-swiper-container .swiper-slide.product,
.ng-farmley-product-cards .elementor-element-a463981 .qodef-woo-product-list.qodef-swiper-container li.product {
	height: auto !important;
	min-height: 0 !important;
	align-self: stretch !important;
}

/* Actions row — icons live on image via .ng-farmley-media-actions */
.ng-farmley-product-cards .ng-farmley-card-actions .qqvfw-quick-view-button-wrapper,
.ng-farmley-product-cards .ng-farmley-card-actions .qwfw-add-to-wishlist-wrapper {
	display: none !important;
}

.ng-farmley-product-cards .qodef-woo-product-list .ng-farmley-card-actions {
	display: none !important;
	margin: 0;
	padding: 0;
	min-height: 0;
}

.ng-farmley-product-cards .qodef-woo-product-list .qodef-woo-ratings {
	display: none !important;
}

/* Native WooCommerce archives/search — match homepage Farmley cards */
.ng-farmley-product-cards .qodef-woo-product-list > ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: var(--ng-card-gap, 20px) !important;
	align-items: stretch !important;
	margin: 0 !important;
	padding: 12px 0 8px !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product {
	display: flex !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-inner {
	width: 100%;
	min-height: 100%;
	background: var(--ng-brand-cream, #fcf4eb) !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-content {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0;
	width: 100%;
	background: transparent !important;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
}

/* Shop/search grid: keep 250 g + 500 g (and other multi sizes) on one line */
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-weight__options,
.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar .ng-farmley-card-weight__options {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	width: 100%;
	min-width: 0;
	min-height: 30px;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-weight__btn,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-weight__badge,
.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar .ng-farmley-card-weight__btn,
.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar .ng-farmley-card-weight__badge {
	display: inline-flex !important;
	width: auto !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	white-space: nowrap;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-foot {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	width: 100%;
	height: 100%;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-woo-product-title {
	min-height: 0;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	width: 100%;
	text-align: left !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder .price {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 2px !important;
	margin: 0;
	width: 100%;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--ng-brand-green, #0c533d);
	letter-spacing: -0.02em;
	text-align: left !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder .price ins {
	text-decoration: none !important;
	color: inherit;
	order: 1 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder .price del {
	color: #9a9a9a !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	text-decoration: line-through !important;
	opacity: 1;
	order: 2 !important;
	margin: 0 !important;
	position: static !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder .price del:after {
	display: none !important;
	content: none !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder .price ins,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder .price del,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder .price .woocommerce-Price-amount,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-price-holder .price bdi {
	text-align: left !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer {
	width: 100%;
	margin-top: auto;
	justify-content: flex-start;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product > .qcfw-button,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-action-holder .qcfw-button,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-action-holder .compare,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-action-holder a.compare {
	display: none !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-action-holder.ng-farmley-card-actions {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
}

body:not(.logged-in).ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-media-actions .qwfw-add-to-wishlist-wrapper {
	display: none !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions {
	top: 14px !important;
	left: 14px !important;
	gap: 8px;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button-wrapper,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qwfw-add-to-wishlist-wrapper {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qwfw-shortcode:not(.button) {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	border: 1px solid rgba(12, 83, 61, 0.1) !important;
	box-shadow: 0 4px 12px rgba(12, 83, 61, 0.12);
	color: #000000 !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button .qqvfw-m-text {
	display: none !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button .qqvfw-m-icon {
	color: #0c533d;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button .qqvfw-m-icon svg {
	fill: none;
	stroke: currentColor;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button-wrapper .qqvfw-quick-view-button:hover,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button:hover,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qwfw-add-to-wishlist-wrapper .qwfw-shortcode:not(.button):hover,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qwfw-shortcode:not(.button):hover {
	background: #0c533d !important;
	border-color: #0c533d !important;
	color: #ffffff !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button-wrapper .qqvfw-quick-view-button:hover .qqvfw-m-icon,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .qodef-e-media .ng-farmley-media-actions .qqvfw-quick-view-button:hover .qqvfw-m-icon {
	color: #ffffff;
}

@media (max-width: 1200px) {
	.ng-farmley-product-cards .qodef-woo-product-list > ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 1024px) {
	.ng-farmley-product-cards .qodef-woo-product-list > ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 680px) {
	.ng-farmley-product-cards .qodef-woo-product-list > ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Loading state */
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button.loading,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button.added,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .ng-farmley-buy-now.ng-farmley-buy-now--busy {
	display: inline-flex !important;
	pointer-events: none;
}

.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button.loading,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .ng-farmley-buy-now.ng-farmley-buy-now--busy {
	position: relative;
	opacity: 1;
	color: transparent !important;
}

.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button.loading .qodef-m-text,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button.loading .ng-farmley-card-btn__inner,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .ng-farmley-buy-now.ng-farmley-buy-now--busy .qodef-m-text,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .ng-farmley-buy-now.ng-farmley-buy-now--busy .ng-farmley-card-btn__inner {
	visibility: hidden !important;
	color: transparent !important;
}

.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button.loading::after,
.ng-farmley-card-footer__cart .ng-farmley-card-buttons .ng-farmley-buy-now.ng-farmley-buy-now--busy::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nuttergood-atc-spin 0.65s linear infinite;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 2;
}

@keyframes nuttergood-atc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Side cart opens on add — never show WooCommerce "View cart" on Farmley cards */
.ng-farmley-product-cards .added_to_cart.wc-forward,
.ng-farmley-product-cards .ng-farmley-card-footer__cart .added_to_cart,
.ng-farmley-card-footer__cart a.added_to_cart,
#qodef-woo-page .ng-farmley-card-footer__cart a.added_to_cart,
#qodef-woo-page .ng-farmley-card-footer__cart .added_to_cart {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	pointer-events: none !important;
}

@media (max-width: 680px) {
	.ng-farmley-card-foot {
		padding: 11px 14px 13px;
		gap: 7px;
	}

	.ng-farmley-card-footer {
		flex-direction: column !important;
		align-items: stretch !important;
		padding-top: 8px;
		gap: 8px;
	}

	.ng-farmley-card-footer__price {
		width: 100%;
	}

	.ng-farmley-card-footer__cart {
		width: 100%;
		max-width: 100% !important;
		margin: 0;
	}

	.ng-farmley-card-buttons {
		grid-template-columns: 1fr !important;
		gap: 6px !important;
	}

	.ng-farmley-card-weight__options {
		display: flex;
		flex-flow: row nowrap;
		gap: 5px;
		min-height: 28px;
	}

	.ng-farmley-card-weight__btn,
	.ng-farmley-card-weight__badge {
		width: auto !important;
		flex: 0 0 auto;
		padding: 4px 8px;
		font-size: 10px;
		min-height: 28px;
	}

	.ng-farmley-card-price .price ins {
		font-size: 16px;
	}

	.ng-farmley-card-price .price > .woocommerce-Price-amount {
		font-size: 16px;
	}

	.ng-farmley-card-price .price del {
		font-size: 11px;
	}

	.ng-farmley-product-cards .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button,
	.ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button,
	.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_variable,
	.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.product_type_grouped,
	.ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now {
		min-height: 38px !important;
		height: 38px !important;
		padding: 0 12px !important;
		font-size: 11px !important;
		border-radius: 100px !important;
	}
}