/**
 * Wishlist page — Farmley product card grid (see inc/farmley/wishlist-page.php).
 */

body.ng-farmley-wishlist-page .qwfw-wishlist-table.ng-farmley-wishlist-cards {
	display: block !important;
	width: 100% !important;
	max-width: 1280px;
	margin: 0 auto;
	vertical-align: top;
}

body.ng-farmley-wishlist-page .qwfw-wishlist-table .qwfw-m-inner {
	padding: 0;
	background: transparent;
}

body.ng-farmley-wishlist-page .qwfw-wishlist-table .qwfw-m-section-heading {
	margin: 0 0 28px;
}

body.ng-farmley-wishlist-page .qwfw-wishlist-table .qwfw-m-heading {
	font-family: "Manrope", sans-serif !important;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
	font-weight: 700 !important;
	color: #183b2f !important;
	letter-spacing: -0.02em;
	text-transform: none;
}

/* Card grid wrapper — inherits shop/home product card rules */
body.ng-farmley-wishlist-page .ng-farmley-wishlist-grid-wrap.qwfw-m-items {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 100% !important;
	overflow: visible !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-grid-wrap > ul.products {
	overflow: visible !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-grid-wrap .qwfw-m-items-heading,
body.ng-farmley-wishlist-page .ng-farmley-wishlist-grid-wrap .qwfw-m-items-content,
body.ng-farmley-wishlist-page .ng-farmley-wishlist-grid-wrap .qwfw-m-items-content-row {
	display: none !important;
}

body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap.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;
	list-style: none;
	width: 100%;
}

body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap > ul.products > li.product.ng-farmley-wishlist-card {
	position: relative !important;
	display: flex !important;
	flex-direction: column;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 14px 14px 0 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	list-style: none;
	overflow: visible !important;
	isolation: auto !important;
}

body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap > ul.products > 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;
	isolation: auto !important;
}

body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap > ul.products > li.product .qodef-e-content {
	flex: 1 1 auto;
	display: flex !important;
	flex-direction: column;
	min-height: 0;
}

body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap > ul.products > li.product .ng-farmley-card-foot {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap > 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;
}

body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap > ul.products > li.product .ng-farmley-card-footer__price,
body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap > ul.products > li.product .ng-farmley-card-footer__cart {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap > ul.products > li.product .ng-farmley-card-buttons {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 8px !important;
	width: 100% !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-grid-wrap .qodef-e-media {
	position: relative;
}

/* Filled heart — top-left on wishlist cards */
body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart {
	position: absolute;
	top: 12px;
	left: 12px;
	right: auto;
	z-index: 17;
	line-height: 1;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart .qwfw-add-to-wishlist-wrapper {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart .qwfw-shortcode:not(.button) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	padding: 0 !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: #e53935 !important;
	text-decoration: none !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart .qwfw-shortcode:not(.button):hover {
	background: #fff5f5 !important;
	border-color: rgba(229, 57, 53, 0.35) !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart .qwfw-m-text {
	display: none !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart .qwfw-m-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 16px;
	opacity: 1 !important;
	visibility: visible !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart .qwfw-m-icon svg {
	width: 18px;
	height: 16px;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart .qwfw-shortcode.qwfw--added .qwfw-m-icon svg path,
body.ng-farmley-wishlist-page .ng-farmley-wishlist-heart .qwfw-shortcode.ng-farmley-wishlist--active .qwfw-m-icon svg path {
	fill: #e53935 !important;
	stroke: #e53935 !important;
}

/* Remove (X) — modal-style, top-right above the card */
body.ng-farmley-wishlist-page .ng-farmley-wishlist-card > .ng-farmley-wishlist-remove {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	z-index: 30;
	line-height: 1;
	pointer-events: none;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-card > .ng-farmley-wishlist-remove .qwfw-e-remove-button {
	pointer-events: auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(12, 83, 61, 0.14);
	border-radius: 50%;
	background: #ffffff;
	color: #374151;
	box-shadow: 0 6px 18px rgba(12, 83, 61, 0.18);
	text-decoration: none;
	transform: translate(20%, -20%);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-card > .ng-farmley-wishlist-remove .qwfw-e-remove-button:hover {
	border-color: #9ca3af;
	color: #111827;
	background: #ffffff;
	transform: translate(20%, -20%) scale(1.05);
	box-shadow: 0 8px 22px rgba(12, 83, 61, 0.22);
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-card > .ng-farmley-wishlist-remove .qwfw-e-remove-button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-card > .ng-farmley-wishlist-remove .qwfw-e-remove-button-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-card > .ng-farmley-wishlist-remove .qwfw-e-remove-button-icon svg,
body.ng-farmley-wishlist-page .ng-farmley-wishlist-card > .ng-farmley-wishlist-remove .qwfw-e-remove-button-icon svg path {
	fill: #374151 !important;
	stroke: #374151 !important;
}

body.ng-farmley-wishlist-page .ng-farmley-wishlist-card > .ng-farmley-wishlist-remove .ng-farmley-wishlist-remove__x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Manrope", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	color: #374151;
}

body.ng-farmley-wishlist-page .qwfw-wishlist-table .qwfw-m-not-found {
	padding: 40px 24px;
	text-align: center;
	background: var(--ng-brand-cream, #fcf4eb);
	border-radius: var(--ng-card-radius, 18px);
	border: 1px dashed rgba(12, 83, 61, 0.18);
}

body.ng-farmley-wishlist-page .qwfw-wishlist-table .qwfw-m-not-found-title {
	margin: 0;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #183b2f;
}

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

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

@media (max-width: 520px) {
	body.ng-farmley-wishlist-page.ng-farmley-product-cards .ng-farmley-wishlist-grid-wrap.qodef-woo-product-list > ul.products {
		grid-template-columns: 1fr !important;
	}
}