/**
 * YITH WooCommerce Wishlist — brand-tinted overrides.
 * Loaded only when the plugin is active (see inc/wishlist.php).
 *
 * == Customizing the heart icon ==
 * The SVG used for the heart is defined as a CSS variable below. To change
 * it, replace the data-URI in `--mrwoo-heart-svg` (and `--mrwoo-heart-svg-filled`
 * for the "in wishlist" state). Both variables expect a single-color SVG; the
 * actual color is applied via `currentColor` on the parent link.
 */

/* :root {
	--mrwoo-heart-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12.62 20.81c-.34.12-.9.12-1.24 0C8.48 19.82 2 15.69 2 8.69 2 5.6 4.49 3.1 7.56 3.1c1.82 0 3.43.88 4.44 2.24C13.01 3.98 14.63 3.1 16.44 3.1 19.51 3.1 22 5.6 22 8.69c0 7-6.48 11.13-9.38 12.12Z'/></svg>");
	--mrwoo-heart-svg-filled: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12.62 20.81c-.34.12-.9.12-1.24 0C8.48 19.82 2 15.69 2 8.69 2 5.6 4.49 3.1 7.56 3.1c1.82 0 3.43.88 4.44 2.24C13.01 3.98 14.63 3.1 16.44 3.1 19.51 3.1 22 5.6 22 8.69c0 7-6.48 11.13-9.38 12.12Z'/></svg>");
	--mrwoo-heart-size: 22px;
} */

/* === Card heart — placement comes from product-card.css; we only re-skin the YITH internals === */
.product-card__wishlist {
	background: transparent;
	box-shadow: none;
	padding: 0;
	width: auto;
	height: auto;
}

.product-card__wishlist .mrwoo-wishlist {
	display: inline-block;
	width: 36px;
	height: 36px;
}

.mrwoo-wishlist .yith-wcwl-add-to-wishlist,
.mrwoo-wishlist .yith-wcwl-add-button {
	margin: 0;
	padding: 0;
}

/* All YITH heart links share the same skin: white circular button with the
 * custom SVG (defined via --mrwoo-heart-svg) rendered through a CSS mask. */
.mrwoo-wishlist .yith-wcwl-add-button > a,
.mrwoo-wishlist a.add_to_wishlist,
.mrwoo-wishlist .yith-wcwl-wishlistaddedbrowse a,
.mrwoo-wishlist .yith-wcwl-wishlistexistsbrowse a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: var(--color-white);
	border-radius: 50%;
	box-shadow: var(--shadow-sm);
	color: var(--color-black);
	transition: color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
	text-decoration: none;
	position: relative;
}

.mrwoo-wishlist .yith-wcwl-add-button > a:hover,
.mrwoo-wishlist a.add_to_wishlist:hover,
.mrwoo-wishlist .yith-wcwl-wishlistaddedbrowse a:hover,
.mrwoo-wishlist .yith-wcwl-wishlistexistsbrowse a:hover {
	color: var(--color-pink-strawberry);
	transform: scale(1.08);
}

span.yith-wcwl-add-to-wishlist-button__label {
    display: none;
}

.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor svg.yith-wcwl-icon-svg, .yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor img {
    width: 48px;
    height: 48px;
    color: currentColor;
	padding: 12px;
    max-width: 48px;
    border-radius: 99px;
    background: #FFF;
}

/* Hide YITH's textual label and built-in icon — we render our own via ::before.
.mrwoo-wishlist .yith-wcwl-add-button > a > span,
.mrwoo-wishlist a.add_to_wishlist > span,
.mrwoo-wishlist .yith-wcwl-wishlistaddedbrowse a > span,
.mrwoo-wishlist .yith-wcwl-wishlistexistsbrowse a > span,
.mrwoo-wishlist .yith-wcwl-icon,
.mrwoo-wishlist i.yith-wcwl-icon {
	display: none !important;
} */

/* Custom heart icon — mask-image lets us tint via currentColor.
.mrwoo-wishlist .yith-wcwl-add-button > a::before,
.mrwoo-wishlist a.add_to_wishlist::before,
.mrwoo-wishlist .yith-wcwl-wishlistaddedbrowse a::before,
.mrwoo-wishlist .yith-wcwl-wishlistexistsbrowse a::before {
	content: "";
	display: block;
	width: var(--mrwoo-heart-size);
	height: var(--mrwoo-heart-size);
	background-color: currentColor;
	-webkit-mask-image: var(--mrwoo-heart-svg);
	mask-image: var(--mrwoo-heart-svg);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
} */

/* Filled heart for "in wishlist" state. */
.mrwoo-wishlist .yith-wcwl-wishlistaddedbrowse a,
.mrwoo-wishlist .yith-wcwl-wishlistexistsbrowse a {
	color: var(--color-pink-strawberry);
}

/* .mrwoo-wishlist .yith-wcwl-wishlistaddedbrowse a::before,
.mrwoo-wishlist .yith-wcwl-wishlistexistsbrowse a::before {
	-webkit-mask-image: var(--mrwoo-heart-svg-filled);
	mask-image: var(--mrwoo-heart-svg-filled);
} */

/* AJAX loading dot. */
.mrwoo-wishlist .ajax-loading {
	width: 14px;
	height: 14px;
}

/* Inert fallback (no plugin) — same look as our original button. */
.mrwoo-wishlist--inert {
	width: 36px;
	height: 36px;
	border: 0;
	background: var(--color-white);
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	color: var(--color-black);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

/* === Gallery heart (single product page, top-right of main image) === */
.mrwoo-wishlist--gallery .yith-wcwl-add-button > a,
.mrwoo-wishlist--gallery a.add_to_wishlist,
.mrwoo-wishlist--gallery .yith-wcwl-wishlistaddedbrowse a,
.mrwoo-wishlist--gallery .yith-wcwl-wishlistexistsbrowse a,
.mrwoo-wishlist--gallery.mrwoo-wishlist--inert {
	width: 44px;
	height: 44px;
}

.mrwoo-wishlist--gallery {
	--mrwoo-heart-size: 24px;
}

/* === Wishlist page (/wishlist/) — the table YITH renders === */
.wishlist_table {
	font-family: var(--font-sans);
	border-collapse: collapse;
	width: 100%;
	margin: 24px 0;
}

.wishlist_table th,
.wishlist_table td {
	border-color: #ebebeb !important;
	padding: 16px !important;
	vertical-align: middle;
}

.wishlist_table th {
	font-family: var(--font-heading);
	font-weight: var(--font-bold);
	font-size: var(--text-sm);
	color: var(--color-black);
	background: var(--color-grey-bg);
	text-transform: none;
}

.wishlist_table .product-thumbnail img {
	max-width: 80px;
	height: auto;
	border-radius: var(--radius-md);
}

.wishlist_table .product-name a {
	color: var(--color-black);
	text-decoration: none;
	font-weight: var(--font-semibold);
}

.wishlist_table .product-name a:hover {
	color: var(--color-pink-strawberry);
}

.wishlist_table .product-price .amount {
	font-family: var(--font-heading);
	font-weight: var(--font-bold);
	color: var(--color-black);
}

.wishlist_table .product-add-to-cart a.button,
.wishlist_table .add_to_cart {
	background: var(--color-pink-shocking) !important;
	color: var(--color-black) !important;
	border: 0 !important;
	border-radius: var(--radius-pill) !important;
	font-weight: var(--font-semibold) !important;
	letter-spacing: 0 !important;
	padding: 10px 20px !important;
	text-transform: none !important;
}

.wishlist_table .product-add-to-cart a.button:hover {
	background: var(--color-pink-middle) !important;
}

.wishlist_table .product-remove a {
	color: var(--color-grey-light);
	transition: color var(--transition-fast);
}

.wishlist_table .product-remove a:hover {
	color: var(--color-pink-strawberry);
}

/* Wishlist top toolbar / share / counters — keep simple. */
.yith-wcwl-share,
.yith-wcwl-share ul {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	margin: 16px 0;
}

.yith-wcwl-share ul li {
	list-style: none;
	margin: 0;
}

.wishlist-title h2 {
	font-family: var(--font-heading);
	font-weight: var(--font-bold);
	font-size: var(--text-3xl);
	color: var(--color-black);
}

.wishlist_manage_table {
	margin-top: 16px;
}

/* Empty state */
.wishlist-empty {
	padding: 32px;
	text-align: center;
	background: var(--color-grey-bg);
	border-radius: var(--radius-lg);
	font-size: var(--text-base);
	color: var(--color-grey-light);
}

/* Mobile */
@media (max-width: 767px) {
	.wishlist_table {
		display: block;
	}
	.wishlist_table thead {
		display: none;
	}
	.wishlist_table tbody, .wishlist_table tr {
		display: block;
	}
	.wishlist_table tr {
		border: 1px solid #ebebeb;
		border-radius: var(--radius-md);
		margin-bottom: 12px;
		padding: 12px;
	}
	.wishlist_table td {
		display: flex;
		justify-content: space-between;
		border: 0 !important;
		padding: 6px 0 !important;
	}
	.wishlist_table td::before {
		content: attr(data-title);
		font-weight: var(--font-semibold);
		color: var(--color-grey-light);
	}
}
