/* ==========================================================================
   Farmley shop — modern sidebar filters + product grid
   Brand: Green #0C533D, Gold #B99531, Cream #FCF4EB
   ========================================================================== */

/*
 * GreenPath sidebar layout bug: invalid `grid-column: col-start 4/ -1` on > ul drops the
 * product grid into the left column, overlapping Popular Products. Rebuild placement explicitly.
 */
.qodef-woo-product-list.qodef-filter-type--sidebar {
	grid-template-areas: none !important;
	column-gap: 32px !important;
	position: relative;
}

@media (min-width: 1025px) {
	.qodef-woo-product-list.qodef-filter-type--sidebar {
		align-items: start;
	}

	/* Row 1: results bar full width; row 2: sidebar + products aligned at top */
	.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-top-bar {
		grid-area: auto !important;
		grid-column: 1 / -1 !important;
		grid-row: 1 !important;
		align-self: start;
	}

	.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-content {
		grid-area: auto !important;
		grid-column: 1 / span 3 !important;
		grid-row: 2 !important;
		align-self: start;
	}

	.qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner {
		grid-area: auto !important;
		grid-column: 4 / -1 !important;
		grid-row: 2 !important;
		align-self: start;
		width: 100% !important;
		min-width: 0;
	}

	.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-m-pagination {
		grid-area: auto !important;
		grid-column: 4 / -1 !important;
		grid-row: 3 !important;
		align-self: start;
	}
}

@media (max-width: 1024px) {
	.qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner,
	.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-top-bar,
	.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-m-pagination {
		grid-column: 1 / -1 !important;
	}
}

/* Theme sets gaps on ul.products but the list uses ul.qodef-grid-inner */
.qodef-woo-product-list.qodef-gutter--normal > ul.qodef-grid-inner {
	--qode-columns-col-gap: 30px;
	column-gap: 30px !important;
}

.qodef-woo-product-list.qodef-vertical-gutter--medium > ul.qodef-grid-inner {
	--qode-columns-row-gap: 40px;
	row-gap: 40px !important;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-gutter--normal > ul.qodef-grid-inner {
	--qode-columns-col-gap: var(--ng-card-gap, 18px);
	column-gap: var(--ng-card-gap, 18px) !important;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-vertical-gutter--medium > ul.qodef-grid-inner {
	--qode-columns-row-gap: 24px;
	row-gap: 24px !important;
}

/* Sidebar column layout */
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-content {
	display: flex;
	flex-direction: column;
	gap: 32px;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	overflow: visible;
	margin-top: 0 !important;
	padding-top: 0;
	min-width: 0;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-product-list-filter-vertical {
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	background: #FFFFFF;
	border: 1px solid rgba(12, 83, 61, 0.1);
	border-radius: 16px;
	padding: 22px 20px;
	box-shadow: 0 4px 24px rgba(12, 83, 61, 0.06);
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-content .qodef-filter-item {
	margin-bottom: 0;
	padding-bottom: 22px;
	margin-top: 0;
	border-bottom: 1px solid rgba(12, 83, 61, 0.08);
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-content .qodef-filter-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-content .qodef-filter-title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0C533D;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-checkbox {
	padding: 5px 0;
	margin-bottom: 2px;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-checkbox label {
	font-size: 14px;
	font-weight: 500;
	color: #2F2F2F;
	line-height: 1.4;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-checkbox input:checked + label .qodef-e-label {
	color: #0C533D;
	font-weight: 600;
}

/* Price slider — touch-draggable on mobile filters */
.qodef-woo-product-list .qodef-e-price-filter .qodef-price-slider {
	position: relative;
	margin: 20px 10px 16px;
	height: 4px;
	background: #E8E0D6;
	border: 0;
	border-radius: 999px;
	touch-action: none;
	-ms-touch-action: none;
}

.qodef-woo-product-list .qodef-e-price-filter .ui-slider-range {
	background: #0C533D;
	border: 0;
	border-radius: 999px;
}

.qodef-woo-product-list .qodef-e-price-filter .ui-slider-handle,
.qodef-woo-product-list .qodef-e-price-filter .ui-slider-handle.ui-state-default,
.qodef-woo-product-list .qodef-e-price-filter .ui-slider-handle.ui-state-hover,
.qodef-woo-product-list .qodef-e-price-filter .ui-slider-handle.ui-state-focus,
.qodef-woo-product-list .qodef-e-price-filter .ui-slider-handle.ui-state-active {
	position: absolute;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	border: 2px solid #0C533D !important;
	background: #FCF4EB !important;
	background-image: none !important;
	box-shadow: 0 2px 8px rgba(12, 83, 61, 0.2);
	outline: none !important;
	cursor: grab;
	touch-action: none;
	-ms-touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	z-index: 3;
	/* Expand hit area beyond the visible thumb */
	-webkit-tap-highlight-color: transparent;
}

.qodef-woo-product-list .qodef-e-price-filter .ui-slider-handle::before {
	content: "";
	position: absolute;
	inset: -12px;
	border-radius: 50%;
}

.qodef-woo-product-list .qodef-e-price-filter .ui-slider-handle.ui-state-active {
	cursor: grabbing;
	background: #0C533D !important;
}

/* Popular products — sidebar widget matching reference exactly */
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-widget-area {
	width: 100%;
	max-width: 100%;
	margin-top: 0;
	flex: 0 0 auto;
	overflow: visible;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-widget-area .qodef-product-list-sidebar-widget-area {
	background: #ffffff;
	border: 1px solid rgba(12, 83, 61, 0.06);
	border-radius: 28px;
	padding: 24px 18px 20px;
	box-shadow: 0 6px 24px rgba(12, 83, 61, 0.05);
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-widget-area .qodef-product-list-sidebar-widget-area:has(> .widgettitle),
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-widget-area .qodef-product-list-sidebar-widget-area:has(> .qodef-widget-title) {
	margin-bottom: 0 !important;
	padding-bottom: 18px;
	border-bottom: 0;
	border-radius: 28px 28px 0 0;
	box-shadow: 0 6px 18px rgba(12, 83, 61, 0.04);
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-e-widget-area .widget_greenpath_core_product_list.qodef-product-list-sidebar-widget-area {
	margin-top: -1px !important;
	padding-top: 18px;
	border-top: 0;
	border-radius: 0 0 28px 28px;
}

/* Header: leaf icon + POPULAR PRODUCTS */
.qodef-product-list-sidebar-widget-area .widgettitle,
.qodef-product-list-sidebar-widget-area .qodef-widget-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #0C533D;
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
}

.qodef-product-list-sidebar-widget-area .widgettitle::before,
.qodef-product-list-sidebar-widget-area .qodef-widget-title::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	background: #5a9a6e;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c-1.1-4.5-.4-8.5 2-12 2.1-3 5.1-4.8 8.8-5.5-.3 3.9-1.8 7.1-4.5 9.6-1.8 1.7-3.9 2.8-6.3 3.3V22Zm-2.2-3.4C6.2 18 3.5 16.4 1.7 13.8.2 11.6-.3 9 .2 6c3 .6 5.4 1.9 7.1 4 1.8 2.3 2.6 5.1 2.5 8.6ZM11.2 13C8.6 10.6 7.5 7.8 8 4.5 8.3 2.8 9 1.3 10.3 0c2.2 2.3 3.3 4.9 3.1 7.7-.1 2-.9 3.7-2.2 5.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c-1.1-4.5-.4-8.5 2-12 2.1-3 5.1-4.8 8.8-5.5-.3 3.9-1.8 7.1-4.5 9.6-1.8 1.7-3.9 2.8-6.3 3.3V22Zm-2.2-3.4C6.2 18 3.5 16.4 1.7 13.8.2 11.6-.3 9 .2 6c3 .6 5.4 1.9 7.1 4 1.8 2.3 2.6 5.1 2.5 8.6ZM11.2 13C8.6 10.6 7.5 7.8 8 4.5 8.3 2.8 9 1.3 10.3 0c2.2 2.3 3.3 4.9 3.1 7.7-.1 2-.9 3.7-2.2 5.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Popular Products sidebar — horizontal reference card */
.qodef-e-widget-area .qodef-woo-product-list.qodef-item-layout--info-right {
	position: relative;
	padding-top: 0;
	--ng-popular-media-size: 76px;
	--ng-popular-media-radius: 12px;
}

.qodef-e-widget-area .qodef-woo-product-list.qodef-item-layout--info-right::before {
	display: none;
}

.qodef-e-widget-area .qodef-woo-product-list.qodef-item-layout--info-right .qodef-e-inner,
.qodef-e-widget-area .qodef-woo-product-list.qodef-item-layout--info-right .ng-farmley-popular-card {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 0;
	padding: 14px 12px 14px 14px;
	background: #fdf8f3;
	border: 1.5px solid #0c533d;
	border-right: 3px solid #b99531;
	border-radius: 20px;
	box-shadow: 0 4px 16px rgba(12, 83, 61, 0.05);
	text-decoration: none;
	box-sizing: border-box;
	overflow: visible;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.qodef-e-widget-area .qodef-woo-product-list li.product:first-child .ng-farmley-popular-card,
.qodef-e-widget-area .qodef-woo-product-list li.product .ng-farmley-popular-card {
	border: 1.5px solid #0c533d;
	background: #fdf8f3;
	box-shadow: none;
}

.qodef-e-widget-area .qodef-woo-product-list li.product:hover .ng-farmley-popular-card {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(12, 83, 61, 0.1);
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__body {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: none;
	margin: 0 !important;
	padding: 0 !important;
	order: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 6px;
	min-height: 0;
	overflow: visible;
}

.qodef-e-widget-area .qodef-woo-product-list .qodef-woo-product-title {
	font-family: "Manrope", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	min-height: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qodef-e-widget-area .qodef-woo-product-list .qodef-woo-product-title a {
	color: #0c533d;
	text-decoration: none;
	transition: color 0.2s ease;
}

.qodef-e-widget-area .qodef-woo-product-list .qodef-woo-product-title a:hover {
	color: #094432;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-weight {
	display: inline-flex;
	align-items: center;
	gap: 0;
	min-height: 24px;
	padding: 3px 12px;
	border-radius: 999px;
	background: #e6efe9;
	border: 0;
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	color: #0c533d;
	letter-spacing: 0.01em;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-weight__leaf {
	display: none !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-weight__text {
	line-height: 1.2;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price {
	width: 100%;
	margin: 2px 0 0;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price .ng-farmley-card-price,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price .qodef-e-price-holder {
	margin: 0 !important;
}

.qodef-e-widget-area .qodef-woo-product-list .price,
.qodef-e-widget-area .qodef-woo-product-list .qodef-woo-product-price,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price .ng-farmley-card-price .price ins,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price .ng-farmley-card-price .price > .woocommerce-Price-amount,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price .ng-farmley-card-price .ng-farmley-card-price__offer {
	font-family: "Manrope", sans-serif;
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1.05;
	color: #0c533d !important;
	margin: 0 !important;
	letter-spacing: -0.02em;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price .price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price .price del {
	display: block !important;
	font-family: "Manrope", sans-serif;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2;
	color: #9a9a9a !important;
	text-decoration: line-through;
	margin: 2px 0 0;
	order: 2;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__price .price ins {
	text-decoration: none;
	order: 1;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid rgba(12, 83, 61, 0.12);
	overflow: visible;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 10px;
	width: 100%;
	min-width: 0;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons a.button,
.qodef-e-widget-area .qodef-woo-shortcode .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.add_to_cart_button:first-child:nth-last-child(n),
.qodef-e-widget-area .qodef-woo-shortcode .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.product_type_variable:first-child:nth-last-child(n),
.qodef-e-widget-area .qodef-woo-shortcode .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.product_type_grouped:first-child:nth-last-child(n),
.qodef-e-widget-area .qodef-woo-shortcode .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.ng-farmley-buy-now,
.qodef-e-widget-area .ng-farmley-popular-card__actions .ng-farmley-card-buttons .ng-farmley-popular-btn,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons a.button {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	float: none !important;
	flex: none !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	min-height: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 12px !important;
	font-family: "Manrope", sans-serif !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: normal !important;
	overflow: visible !important;
	box-sizing: border-box;
	box-shadow: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now) {
	background: #ffffff !important;
	border: 1.5px solid #0c533d !important;
	color: #0c533d !important;
	box-shadow: none !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.ng-farmley-buy-now {
	background: var(--ng-brand-secondary, #b99531) !important;
	border: 1.5px solid var(--ng-brand-secondary, #b99531) !important;
	color: #ffffff !important;
	box-shadow: none !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-btn__inner,
.qodef-e-widget-area .ng-farmley-popular-card__actions .ng-farmley-card-btn__inner {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	width: 100% !important;
	min-width: 0;
	line-height: 1 !important;
	text-align: center;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-popular-btn-icon,
.qodef-e-widget-area .ng-farmley-popular-card__actions .ng-farmley-popular-btn-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	overflow: visible;
	visibility: visible;
	color: #0c533d;
	flex: 0 0 auto;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-popular-btn-svg,
.qodef-e-widget-area .ng-farmley-popular-card__actions .ng-farmley-popular-btn-svg {
	display: block;
	width: 24px;
	height: 24px;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-popular-btn-icon--cart,
.qodef-e-widget-area .ng-farmley-popular-card__actions .ng-farmley-popular-btn-icon--cart {
	color: #0c533d;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-popular-btn-icon--bag,
.qodef-e-widget-area .ng-farmley-popular-card__actions .ng-farmley-popular-btn-icon--bag,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.ng-farmley-buy-now .ng-farmley-popular-btn-icon,
.qodef-e-widget-area .ng-farmley-popular-card__actions .button.ng-farmley-buy-now .ng-farmley-popular-btn-icon {
	color: #ffffff !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-popular-btn-label,
.qodef-e-widget-area .ng-farmley-popular-card__actions .ng-farmley-popular-btn-label,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .qodef-m-text,
.qodef-e-widget-area .ng-farmley-popular-card__actions .qodef-m-text {
	display: none !important;
}

/* Keep popular actions icon-only (sidebar is too narrow for ADD TO CART). */
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button {
	font-size: 0 !important;
	line-height: 0 !important;
	letter-spacing: 0 !important;
	text-indent: 0 !important;
}

/* Hide theme-injected cart SVG only — keep custom popular icons */
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card .qodef-svg--button-icon,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .qodef-svg--button-icon {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now):hover {
	background: #f4faf7 !important;
	border-color: #094432 !important;
	color: #094432 !important;
	transform: translateY(-1px);
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .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;
	transform: translateY(-1px);
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.ng-farmley-buy-now:hover .ng-farmley-popular-btn-icon {
	color: #ffffff !important;
}

/* Undo theme main.css width calc on paired loop buttons */
.qodef-e-widget-area .qodef-woo-shortcode .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.add_to_cart_button,
.qodef-e-widget-area .qodef-woo-shortcode .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.product_type_variable,
.qodef-e-widget-area .qodef-woo-shortcode .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.product_type_grouped,
.qodef-e-widget-area .qodef-woo-shortcode .ng-farmley-popular-card__actions .ng-farmley-card-buttons .button.ng-farmley-buy-now {
	width: 100% !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .add_to_cart_button .qodef-svg--button-icon,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.product_type_variable .qodef-svg--button-icon,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.product_type_grouped .qodef-svg--button-icon {
	display: none !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.loading,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.ng-farmley-buy-now--busy {
	opacity: 0.85;
	pointer-events: none;
	cursor: wait;
	position: relative;
	overflow: hidden !important;
	color: transparent !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.loading .ng-farmley-card-btn__inner,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.ng-farmley-buy-now--busy .ng-farmley-card-btn__inner,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.loading .ng-farmley-popular-btn-icon,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.ng-farmley-buy-now--busy .ng-farmley-popular-btn-icon {
	opacity: 0 !important;
	visibility: hidden !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.loading::after,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.ng-farmley-buy-now--busy::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 2px solid rgba(12, 83, 61, 0.22);
	border-top-color: #0c533d;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: ng-farmley-buy-now-spin 0.65s linear infinite;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.ng-farmley-buy-now.loading::after,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__actions .button.ng-farmley-buy-now.ng-farmley-buy-now--busy::after {
	border-color: rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
}

@keyframes ng-farmley-buy-now-spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-card-price {
	margin: 0 !important;
}

.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-card-price .ng-farmley-card-price__mrp {
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #8a8a8a !important;
}

.qodef-e-widget-area .qodef-woo-product-list .price .woocommerce-Price-amount {
	color: inherit;
}

/* Image on right — compact thumbnail, vertically centered beside copy */
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__media,
.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media {
	flex: 0 0 var(--ng-popular-media-size);
	width: var(--ng-popular-media-size);
	min-width: var(--ng-popular-media-size);
	max-width: var(--ng-popular-media-size);
	order: 2;
	align-self: center;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media-image {
	position: relative;
	width: var(--ng-popular-media-size) !important;
	height: var(--ng-popular-media-size) !important;
	min-width: var(--ng-popular-media-size);
	min-height: var(--ng-popular-media-size);
	max-width: var(--ng-popular-media-size);
	max-height: var(--ng-popular-media-size);
	border-radius: var(--ng-popular-media-radius) !important;
	background: #fcf4eb !important;
	overflow: hidden;
	display: flex !important;
	align-items: stretch;
	justify-content: stretch;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media-image a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	line-height: 0 !important;
}

.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media-image img,
.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media-image a img,
.qodef-e-widget-area .qodef-woo-product-list .ng-farmley-popular-card__media img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	border-radius: 0 !important;
	border: 0 !important;
	background: transparent !important;
	display: block !important;
	transform: none !important;
	box-shadow: none !important;
	/* Soften pure-white product photo backgrounds */
	mix-blend-mode: multiply;
}

/* Popular sidebar — corner ribbon scaled down to fit the compact thumbnail */
.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media-image > .ng-farmley-oos-ribbon,
.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media .ng-farmley-oos-ribbon {
	top: 0;
	right: 0;
	left: auto;
	width: var(--ng-popular-media-size, 76px);
	height: var(--ng-popular-media-size, 76px);
	border-radius: 0 var(--ng-popular-media-radius, 12px) 0 0;
	z-index: 5;
}

.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media-image > .ng-farmley-oos-ribbon .ng-farmley-oos-ribbon__text,
.qodef-e-widget-area .qodef-woo-product-list .qodef-e-media .ng-farmley-oos-ribbon .ng-farmley-oos-ribbon__text {
	top: 12px;
	right: -36px;
	left: auto;
	width: 110px;
	padding: 3px 0;
	font-size: 7px;
	font-weight: 800;
	letter-spacing: 0.04em;
	box-shadow: none;
	transform: rotate(45deg);
}

/* Popular / shop category cards — same full-bleed thumbnail treatment */
body.woocommerce-shop .qodef-woo-product-category-list .product-category,
body.post-type-archive-product .qodef-woo-product-category-list .product-category,
body.woocommerce .qodef-woo-product-category-list .product-category {
	overflow: hidden !important;
	background-color: #fcf4eb !important;
}

body.woocommerce-shop .qodef-woo-product-category-list .product-category a,
body.post-type-archive-product .qodef-woo-product-category-list .product-category a,
body.woocommerce .qodef-woo-product-category-list .product-category a {
	padding-top: 0 !important;
}

body.woocommerce-shop .qodef-woo-product-category-list .qodef-e-image-holder,
body.post-type-archive-product .qodef-woo-product-category-list .qodef-e-image-holder,
body.woocommerce .qodef-woo-product-category-list .qodef-e-image-holder {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #fcf4eb !important;
	border: 0 !important;
	border-radius: 0 !important;
	overflow: hidden !important;
	box-shadow: none !important;
}

body.woocommerce-shop .qodef-woo-product-category-list .qodef-e-image-holder::before,
body.post-type-archive-product .qodef-woo-product-category-list .qodef-e-image-holder::before,
body.woocommerce .qodef-woo-product-category-list .qodef-e-image-holder::before {
	display: none !important;
	content: none !important;
}

body.woocommerce-shop .qodef-woo-product-category-list .qodef-e-image-holder img,
body.post-type-archive-product .qodef-woo-product-category-list .qodef-e-image-holder img,
body.woocommerce .qodef-woo-product-category-list .qodef-e-image-holder img {
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	background: transparent !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	mix-blend-mode: multiply;
}

/* Hide ratings and action buttons */
.qodef-e-widget-area .qodef-woo-product-list .qodef-woo-ratings,
.qodef-e-widget-area .qodef-woo-product-list .qodef-action-holder {
	display: none !important;
}

/* Row item spacing */
.qodef-e-widget-area .qodef-woo-product-list li.product {
	margin-bottom: 12px !important;
	padding: 0 !important;
	border-bottom: 0;
	list-style: none;
}

.qodef-e-widget-area .qodef-woo-product-list li.product:hover {
	background: transparent;
}

.qodef-e-widget-area .qodef-woo-product-list li.product:first-child {
	padding-top: 0 !important;
}

.qodef-e-widget-area .qodef-woo-product-list li.product:last-child {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Legacy shop card shell — skip when unified Farmley cards are active */
body:not(.ng-farmley-product-cards) .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner > li.product {
	border: 1px solid rgba(12, 83, 61, 0.1);
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 2px 14px rgba(12, 83, 61, 0.05);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	overflow: hidden;
}

body:not(.ng-farmley-product-cards) .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner > li.product:hover {
	box-shadow: 0 10px 28px rgba(12, 83, 61, 0.1);
	transform: translateY(-2px);
}

body:not(.ng-farmley-product-cards) .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner .qodef-e-media-image {
	border-radius: 14px 14px 0 0;
}

body:not(.ng-farmley-product-cards) .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner .qodef-e-content {
	margin: 14px 0 0;
	padding: 0 16px 18px;
}

body:not(.ng-farmley-product-cards) .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner .qodef-woo-product-title {
	font-size: 14px;
	line-height: 1.4;
	min-height: 0;
	margin-bottom: 4px;
}

body:not(.ng-farmley-product-cards) .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner .qodef-woo-ratings {
	margin-top: 6px;
}

body:not(.ng-farmley-product-cards) .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner .price {
	font-size: 14px;
	font-weight: 600;
}

/* Top bar — full width above sidebar + products */
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-top-bar {
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(12, 83, 61, 0.08);
}

/* Category / price filter loading overlay */
.qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner {
	position: relative;
}

.qodef-woo-product-list.qodef-filter-type--sidebar.qodef--loading > ul.qodef-grid-inner {
	opacity: 0.35;
	pointer-events: none;
	transition: opacity 0.2s ease;
	min-height: 320px;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .ng-shop-grid-loader {
	display: none;
	position: absolute;
	z-index: 25;
	align-items: center;
	justify-content: center;
	background: rgba(252, 244, 235, 0.72);
	border-radius: 14px;
	pointer-events: none;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .ng-shop-grid-loader.is-active {
	display: flex;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .ng-shop-grid-loader__spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(12, 83, 61, 0.15);
	border-top-color: #0C533D;
	border-radius: 50%;
	animation: ng-shop-spin 0.7s linear infinite;
}

@keyframes ng-shop-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Shop cards — single-line action row without compare */
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 6px;
	margin-top: 12px;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder .qcfw-button,
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder .compare,
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder .yith-compare,
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder a.compare {
	display: none !important;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder .qwfw-add-to-wishlist-wrapper,
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder .qqvfw-quick-view-button-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
}

.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder .add_to_cart_button,
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder .button.product_type_variable,
.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-action-holder .button.product_type_grouped {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	flex-basis: auto !important;
	white-space: nowrap;
	padding: 7px 12px 8px !important;
	font-size: 12px;
	border-radius: 8px;
}

@media (max-width: 1200px) {
	.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-content {
		gap: 24px;
	}

	.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-product-list-filter-vertical {
		padding: 18px 16px;
	}
}

@media (max-width: 1024px) {
	.qodef-woo-product-list.qodef-filter-type--sidebar .qodef-filter-content {
		gap: 20px;
	}
}

/* ==========================================================================
   Shop product grid — 3 columns, homepage-matched Farmley cards
   ========================================================================== */

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar.qodef-layout--columns {
	--qode-columns: 3;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar.qodef-layout--columns > ul.qodef-grid-inner {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	align-items: stretch !important;
	column-gap: var(--ng-home-carousel-gap, 24px) !important;
	row-gap: 24px !important;
	width: 100% !important;
	min-width: 0;
	padding: 12px 0 8px;
	box-sizing: border-box;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner > li.product {
	display: flex !important;
	flex-direction: column;
	align-self: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	height: 100% !important;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
	transform: none !important;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner > li.product:hover {
	box-shadow: none !important;
	transform: none !important;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner > li.product .qodef-e-inner.ng-farmley-card {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100% !important;
	height: 100% !important;
	min-height: 0;
	overflow: visible !important;
	background: var(--ng-brand-cream, #fcf4eb) !important;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar > ul.qodef-grid-inner > li.product .qodef-e-content {
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0;
	width: 100%;
	background: var(--ng-brand-cream, #fcf4eb) !important;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar .ng-farmley-card-foot {
	flex: 1 1 auto !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	width: 100%;
	height: 100%;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar .ng-farmley-card-footer {
	margin-top: auto !important;
}

.ng-farmley-product-cards .qodef-woo-product-list.qodef-filter-type--sidebar .ng-farmley-card-foot .qodef-woo-product-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	min-height: 0;
}

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

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

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

/* Native product search/archive cards — price on top, buttons full-width below. */
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer {
	display: flex !important;
	flex-flow: column nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	width: 100% !important;
	margin-top: auto !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .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-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-price,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-price .price {
	width: auto !important;
	margin: 0 !important;
	text-align: left !important;
	align-items: baseline !important;
	justify-content: flex-start !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart {
	flex: 0 0 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
}

/* Category/archive cards — Add to Cart + Buy Now side-by-side under price */
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-buttons {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	align-items: stretch !important;
	gap: 8px !important;
	width: 100% !important;
	min-width: 0 !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .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;
	flex: none !important;
	flex-basis: auto !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 38px !important;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	font-size: 11px !important;
	line-height: 1 !important;
	border-radius: 100px !important;
	box-sizing: border-box;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now),
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_button:not(.ng-farmley-buy-now) {
	background: var(--ng-brand-green, #0c533d) !important;
	border: 1.5px solid var(--ng-brand-green, #0c533d) !important;
	color: #ffffff !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button.ng-farmley-buy-now {
	background: var(--ng-brand-gold, #b99531) !important;
	border: 1.5px solid var(--ng-brand-gold, #b99531) !important;
	color: #ffffff !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button .qodef-m-text {
	color: #ffffff !important;
}

.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:not(.ng-farmley-buy-now):hover,
.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .add_to_cart_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 .qodef-woo-product-list > ul.products > li.product .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 .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart .ng-farmley-card-buttons .button:hover .qodef-m-text {
	color: #ffffff !important;
}

@media (max-width: 680px) {
	.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__price,
	.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-footer__cart {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
	}

	.ng-farmley-product-cards .qodef-woo-product-list > ul.products > li.product .ng-farmley-card-buttons {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Catalog toolbar — sort + discount (shop + category archives) */
.qodef-woo-results {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-bottom: 24px;
}

.qodef-woo-results .woocommerce-result-count {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.ng-farmley-catalog-toolbar {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin-left: auto;
}

.ng-farmley-catalog-toolbar--shop {
	margin-left: 0;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-e-info-right {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px 12px;
}

.ng-farmley-catalog-toolbar__sort,
.ng-farmley-catalog-toolbar .woocommerce-ordering {
	margin: 0;
}

.ng-farmley-catalog-toolbar--shop .qodef-product-list-ordering {
	margin: 0;
}

.ng-farmley-catalog-toolbar--shop .qodef-product-list-ordering .qodef-current-value {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-width: 220px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(12, 83, 61, 0.14);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(12, 83, 61, 0.05);
}

.ng-farmley-catalog-toolbar--shop .qodef-product-list-ordering .qodef-current-value .qodef-e-text {
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #0c533d;
}

.ng-farmley-catalog-toolbar__toggles {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.ng-farmley-catalog-toolbar__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid rgba(12, 83, 61, 0.14);
	border-radius: 100px;
	background: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: #0c533d;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(12, 83, 61, 0.05);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.ng-farmley-catalog-toolbar__toggle:hover {
	border-color: #0c533d;
	color: #0c533d;
}

.ng-farmley-catalog-toolbar__toggle.is-active {
	background: #0c533d;
	border-color: #0c533d;
	color: #fff;
}

.ng-farmley-catalog-toolbar__select {
	min-width: 220px;
	max-width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 36px 0 14px;
	border: 1px solid rgba(12, 83, 61, 0.14);
	border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230C533D' d='M1.4.6 6 5.2 10.6.6 12 2l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #0c533d;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(12, 83, 61, 0.05);
}

.ng-farmley-catalog-toolbar__select:focus {
	outline: none;
	border-color: #0c533d;
	box-shadow: 0 0 0 3px rgba(12, 83, 61, 0.12);
}

/* Discount — label + sliding on/off switch (not a pill button) */
.ng-farmley-discount-toggle,
.ng-farmley-catalog-toolbar__discount,
.ng-farmley-archive-discount-filter,
.ng-farmley-shop-discount-filter,
#qodef-woo-page .ng-farmley-discount-toggle,
#qodef-woo-page .ng-farmley-archive-discount-filter,
#qodef-woo-page .ng-farmley-shop-discount-filter {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	min-height: 42px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #0c533d !important;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: none;
}

.ng-farmley-discount-toggle:hover,
.ng-farmley-discount-toggle:focus,
.ng-farmley-archive-discount-filter:hover,
.ng-farmley-archive-discount-filter:focus,
.ng-farmley-shop-discount-filter:hover,
.ng-farmley-shop-discount-filter:focus,
#qodef-woo-page .ng-farmley-discount-toggle:hover,
#qodef-woo-page .ng-farmley-discount-toggle:focus {
	background: transparent !important;
	border: 0 !important;
	color: #0c533d !important;
	box-shadow: none !important;
	outline: none;
}

.ng-farmley-discount-toggle:focus-visible .ng-farmley-discount-toggle__track,
.ng-farmley-archive-discount-filter:focus-visible .ng-farmley-discount-toggle__track,
.ng-farmley-shop-discount-filter:focus-visible .ng-farmley-discount-toggle__track {
	box-shadow: 0 0 0 3px rgba(12, 83, 61, 0.18);
}

.ng-farmley-discount-toggle__label {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	color: #0c533d;
	white-space: nowrap;
	user-select: none;
}

.ng-farmley-discount-toggle__track {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #d4d4d4;
	transition: background 0.22s ease;
}

.ng-farmley-discount-toggle__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	transition: transform 0.22s ease;
}

.ng-farmley-discount-toggle.is-active .ng-farmley-discount-toggle__track,
.ng-farmley-archive-discount-filter.is-active .ng-farmley-discount-toggle__track,
.ng-farmley-shop-discount-filter.is-active .ng-farmley-discount-toggle__track {
	background: #0c533d;
}

.ng-farmley-discount-toggle.is-active .ng-farmley-discount-toggle__thumb,
.ng-farmley-archive-discount-filter.is-active .ng-farmley-discount-toggle__thumb,
.ng-farmley-shop-discount-filter.is-active .ng-farmley-discount-toggle__thumb {
	transform: translateX(20px);
}

.qodef-woo-product-list .qodef-filter-top-bar {
	position: relative;
	z-index: 20;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering {
	position: relative;
	min-width: 220px;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering .qodef-current-value {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 220px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(12, 83, 61, 0.14);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(12, 83, 61, 0.05);
	cursor: pointer;
	overflow: hidden;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering .qodef-current-value .qodef-e-text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 170px;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #0c533d;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering .qodef-current-value .qodef-svg--chevron {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	color: #0c533d;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering .qodef-dropdown-options {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 2px;
	top: calc(100% + 6px);
	left: 0;
	right: auto;
	min-width: 100%;
	padding: 8px;
	border: 1px solid rgba(12, 83, 61, 0.12);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(12, 83, 61, 0.12);
	z-index: 50;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering.is-open .qodef-dropdown-options {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.qodef-woo-product-list.qodef-shortcode .qodef-filter-top-bar .qodef-product-list-ordering.qodef-dropdown-holder:not(.is-open):hover .qodef-dropdown-options {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering .qodef-dropdown-options .qodef-e-order-link {
	display: block;
	width: 100%;
	min-height: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #0c533d;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering .qodef-dropdown-options .qodef-e-order-link:hover {
	background: rgba(12, 83, 61, 0.06);
	border-color: transparent;
	color: #0c533d;
}

.qodef-woo-product-list .qodef-filter-top-bar .qodef-product-list-ordering .qodef-e-order-link.qodef--active {
	display: none;
}

.ng-farmley-catalog-toolbar__sort .ng-farmley-catalog-toolbar__select {
	text-overflow: ellipsis;
}

/*
 * Category archives: theme Select2 wraps .woocommerce-ordering select and
 * breaks the Farmley sort look. Hide Select2 and keep the same native select
 * styles used to match the shop sort control.
 */
.qodef-woo-results .ng-farmley-catalog-toolbar .select2-container {
	display: none !important;
}

.qodef-woo-results .ng-farmley-catalog-toolbar select.orderby.ng-farmley-catalog-toolbar__select,
.qodef-woo-results .ng-farmley-catalog-toolbar select.ng-farmley-catalog-toolbar__select {
	display: inline-block !important;
	visibility: visible !important;
	position: static !important;
	width: auto !important;
	min-width: 220px !important;
	max-width: 100% !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 36px 0 14px !important;
	border: 1px solid rgba(12, 83, 61, 0.14) !important;
	border-radius: 10px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230C533D' d='M1.4.6 6 5.2 10.6.6 12 2l-6 6-6-6z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px 8px !important;
	font-family: "Manrope", sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: #0c533d !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	cursor: pointer !important;
	box-shadow: 0 2px 10px rgba(12, 83, 61, 0.05) !important;
	clip: auto !important;
	clip-path: none !important;
	overflow: visible !important;
	opacity: 1 !important;
	transform: none !important;
	pointer-events: auto !important;
	z-index: auto !important;
}

.qodef-woo-results .ng-farmley-catalog-toolbar select.ng-farmley-catalog-toolbar__select:focus {
	outline: none !important;
	border-color: #0c533d !important;
	box-shadow: 0 0 0 3px rgba(12, 83, 61, 0.12) !important;
}

@media (max-width: 680px) {
	.qodef-woo-results {
		flex-direction: column;
		align-items: stretch;
	}

	.ng-farmley-catalog-toolbar,
	.qodef-woo-product-list .qodef-filter-top-bar .qodef-e-info-right {
		width: 100%;
		margin-left: 0;
		justify-content: stretch;
	}

	.ng-farmley-catalog-toolbar__select,
	.qodef-woo-results .ng-farmley-catalog-toolbar select.ng-farmley-catalog-toolbar__select,
	.ng-farmley-catalog-toolbar--shop .qodef-product-list-ordering .qodef-current-value {
		width: 100% !important;
		min-width: 0 !important;
	}

	.ng-farmley-catalog-toolbar__toggles {
		width: 100%;
	}

	.ng-farmley-catalog-toolbar__toggle,
	.ng-farmley-discount-toggle,
	.ng-farmley-archive-discount-filter,
	.ng-farmley-shop-discount-filter {
		flex: 0 0 auto;
		min-width: 0;
	}
}

/* ==========================================================================
   Mobile filter sheet — full-screen above sticky header (no double logo)
   ========================================================================== */
@media (max-width: 880px) {
	/* Dim layer above page chrome */
	body.qodef-product-mobile-filter-cover--opened .qodef-product-mobile-filter-cover {
		z-index: 100080 !important;
		background-color: rgba(12, 83, 61, 0.35) !important;
	}

	/* Hide site header while filter is open — panel has its own chrome */
	body.qodef-product-mobile-filter-cover--opened #qodef-page-mobile-header,
	body.qodef-product-mobile-filter-cover--opened .ng-farmley-promo {
		visibility: hidden !important;
		pointer-events: none !important;
	}

	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile {
		/* Hidden when closed — must use display:none (visibility:hidden alone
		   still shows children that set visibility:visible, e.g. Categories card). */
		display: none !important;
		position: fixed !important;
		inset: 0 !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		margin: 0 !important;
		padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		z-index: 100090 !important;
		overflow: hidden !important;
		flex-direction: column !important;
		box-sizing: border-box !important;
		background: #fff !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	.admin-bar .qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile {
		top: 46px !important;
		height: calc(100dvh - 46px) !important;
		max-height: calc(100dvh - 46px) !important;
	}

	.qodef-woo-product-list.qodef-shortcode.qodef-product-mobile-filter--opened .qodef-filter-content-mobile {
		display: flex !important;
		visibility: visible !important;
		pointer-events: auto !important;
		bottom: 0 !important;
	}

	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile .qodef-info-top {
		flex: 0 0 auto !important;
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		height: 56px !important;
		padding: 12px 18px !important;
		box-sizing: border-box;
		border-bottom: 1px solid #E8E0D6;
	}

	/* Drop duplicate brand logo — keep close + “Filters” label only */
	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile .qodef-info-top .qodef-mobile-header-logo-link {
		display: none !important;
	}

	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile .qodef-info-top::before {
		content: "Filters";
		font-family: "Manrope", sans-serif;
		font-size: 17px;
		font-weight: 700;
		line-height: 1;
		color: #0C533D;
		letter-spacing: -0.01em;
	}

	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile .qodef-info-bottom {
		flex: 1 1 auto !important;
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		padding-bottom: 96px !important;
		box-sizing: border-box;
	}

	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile .qodef-info-bottom.ps {
		overflow-y: auto !important;
	}

	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile .qodef-info-bottom > .ps__rail-x,
	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile .qodef-info-bottom > .ps__rail-y {
		display: none !important;
		pointer-events: none !important;
	}

	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-filter-content-mobile .qodef-e-actions {
		position: absolute !important;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
		left: 20px !important;
		width: calc(100% - 40px) !important;
		z-index: 2;
	}

	/* Price slider must win over sheet scroll gesture */
	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-e-price-filter .qodef-price-slider,
	.qodef-woo-product-list.qodef-shortcode .qodef-product-list-filter-mobile .qodef-e-price-filter .ui-slider-handle {
		touch-action: none !important;
		-ms-touch-action: none !important;
		pointer-events: auto !important;
	}
}

/* Shop pagination — visible active page */
.qodef-woo-product-list .qodef-m-pagination {
	margin-top: 40px;
	text-align: center;
}

.qodef-woo-product-list .qodef-m-pagination.qodef--standard .qodef-m-pagination-items {
	gap: 6px;
}

.qodef-woo-product-list .qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 10px;
	border-radius: 999px;
	color: #4b5563;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.qodef-woo-product-list .qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--number:hover {
	color: #0c533d;
	background: rgba(12, 83, 61, 0.08);
}

.qodef-woo-product-list .qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--number.qodef--active,
.qodef-woo-product-list .qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--number.qodef--active:hover {
	color: #fff !important;
	background: #0c533d !important;
	box-shadow: 0 4px 14px rgba(12, 83, 61, 0.22);
}
