/* Melpomene — wishlist: card heart, header icon with count, off-canvas panel. */
:root { --mlp-ink: #171418; --mlp-purple: #410c60; --mlp-gold: #c1a875; --mlp-line: #ece7df; }

/* ---------- heart on product cards (outline → filled) ---------- */
.wd-product .wd-buttons .wd-wishlist-btn > a .wd-action-icon { font-size: 0 !important; width: 18px; height: 18px; position: relative; }
.wd-product .wd-buttons .wd-wishlist-btn > a .wd-action-icon::before {
	content: '' !important; position: absolute; inset: 0; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10A4.2 4.2 0 0 1 12 8a4.2 4.2 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10Z'/%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' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10A4.2 4.2 0 0 1 12 8a4.2 4.2 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wd-product .wd-buttons .wd-wishlist-btn > a .wd-check-icon { display: none !important; }
.wd-product .wd-buttons .wd-wishlist-btn > a.added { background: #fff !important; color: var(--mlp-purple) !important; }
.wd-product .wd-buttons .wd-wishlist-btn > a.added .wd-action-icon::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10A4.2 4.2 0 0 1 12 8a4.2 4.2 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10Z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10A4.2 4.2 0 0 1 12 8a4.2 4.2 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10Z'/%3E%3C/svg%3E");
	animation: mlpHeartPop .45s cubic-bezier(.2, 1.6, .4, 1);
}
.wd-product .wd-buttons .wd-wishlist-btn > a.added:hover { background: #fff !important; color: var(--mlp-purple) !important; }
.wd-product .wd-buttons .wd-wishlist-btn > a.loading .wd-action-icon::before { opacity: .35; }
@keyframes mlpHeartPop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---------- header icon ---------- */
.mlp-wish { display: inline-flex; }
.mlp-wish__toggle {
	position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; color: inherit !important; transition: background .25s; /* WoodMart link colour (#333) made it grey on the slider */
}
.mlp-wish__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.mlp-wish .wd-tools-count {
	position: absolute; top: 5px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--mlp-ink); font-size: 10px; font-weight: 700; line-height: 1;
	transition: transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.mlp-wish--empty .wd-tools-count { transform: scale(0); }
/* Header icons stay line icons in the text colour; the count badge shows there are items. */
.mlp-wish--pulse .mlp-wish__toggle svg { animation: mlpHeartPop .5s cubic-bezier(.2, 1.6, .4, 1); }
.mlp-wish-panel.is-empty .mlp-wish-panel__foot { display: none; }

/* ---------- off-canvas ---------- */
html.mlp-wish-lock { overflow: hidden; }
.mlp-wish-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 10, 18, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s; }
.mlp-wish-overlay.is-open { opacity: 1; }
.mlp-wish-panel {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 100001; width: min(420px, 100%);
	display: flex; flex-direction: column; background: #fff; color: var(--mlp-ink);
	font-family: 'Manrope', sans-serif; box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4);
	transform: translateX(100%); transition: transform .55s cubic-bezier(.16, 1, .3, 1); visibility: hidden;
}
.mlp-wish-panel.is-open { transform: none; visibility: visible; }
.mlp-wish-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--mlp-line); }
.mlp-wish-panel__head h3 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 600; color: var(--mlp-ink); }
.mlp-wish-panel__count { font-size: 14px; font-weight: 500; color: #7a7080; margin-left: 4px; }
.mlp-wish-panel__close { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mlp-ink); cursor: pointer; transition: background .25s; }
.mlp-wish-panel__close:hover { background: #f1ece4; }
.mlp-wish-panel__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mlp-wish-panel__body { position: relative; flex: 1; overflow-y: auto; padding: 4px 24px; }
.mlp-wish-panel.is-loading .mlp-wish-panel__body > :not(.mlp-wish-panel__loading) { opacity: .45; transition: opacity .2s; }
.mlp-wish-panel__loading { display: none; justify-content: center; padding: 40px 0; }
.mlp-wish-panel.is-loading .mlp-wish-panel__loading:only-child { display: flex; }
.mlp-wish-panel__loading span { width: 26px; height: 26px; border: 2px solid var(--mlp-line); border-top-color: var(--mlp-gold); border-radius: 50%; animation: mlpSpin .8s linear infinite; }
@keyframes mlpSpin { to { transform: rotate(360deg); } }

.mlp-wish-list { list-style: none; margin: 0; padding: 0; }
.mlp-wish-item { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 18px 40px 18px 0; border-bottom: 1px solid var(--mlp-line); animation: mlpWishIn .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mlpWishIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.mlp-wish-item__img img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; display: block; }
.mlp-wish-item__info { display: grid; gap: 4px; min-width: 0; }
.mlp-wish-item__name { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--mlp-ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mlp-wish-item__name:hover { color: var(--mlp-purple); }
.mlp-wish-item__price { font-size: 14px; font-weight: 700; color: var(--mlp-ink); }
.mlp-wish-item__price del { opacity: .5; font-weight: 400; margin-right: 6px; }
.mlp-wish-item__view { font-size: 12px; color: #7a7080; text-decoration: underline; text-underline-offset: 3px; }
.mlp-wish-item__view:hover { color: var(--mlp-ink); }
/* remove = WoodMart's own wishlist toggle, shown as a small × */
.mlp-wish-item__remove { position: absolute; top: 18px; right: 0; }
.mlp-wish-item__remove > a { width: 30px; height: 30px; display: grid !important; place-items: center; padding: 0 !important; border-radius: 50%; color: #7a7080 !important; transition: background .25s, color .25s; }
.mlp-wish-item__remove > a:hover { background: #f1ece4; color: var(--mlp-ink) !important; }
.mlp-wish-item__remove .wd-action-text, .mlp-wish-item__remove .wd-check-icon { display: none !important; }
.mlp-wish-item__remove .wd-action-icon { font-size: 0 !important; width: 14px; height: 14px; position: relative; }
.mlp-wish-item__remove .wd-action-icon::before {
	content: '' !important; position: absolute; inset: 0; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mlp-wish-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 12px; text-align: center; }
.mlp-wish-empty svg { width: 40px; height: 40px; fill: none; stroke: #d8cfc2; stroke-width: 1.4; }
.mlp-wish-empty p { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--mlp-ink); }
.mlp-wish-empty span { font-size: 14px; color: #7a7080; }

.mlp-wish-panel__foot { padding: 20px 24px 24px; border-top: 1px solid var(--mlp-line); }
.mlp-wish-panel__all, .mlp-wish-panel__shop {
	display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
	border: 1px solid var(--mlp-ink); border-radius: 0; background: var(--mlp-ink); color: #fff !important;
	font-size: 15px; font-weight: 500; transition: background .3s, border-color .3s, color .3s;
}
.mlp-wish-panel__all:hover, .mlp-wish-panel__shop:hover { background: var(--mlp-gold); border-color: var(--mlp-gold); color: var(--mlp-ink) !important; }
.mlp-wish-panel__shop { margin-top: 16px; }

/* ---------- header cart icon ([mlp_cart_icon]) — same look as the wishlist ---------- */
.mlp-cartx { display: inline-flex; }
.mlp-cartx__toggle {
	position: relative; width: 42px; height: 42px; display: inline-flex !important; align-items: center; justify-content: center;
	padding: 0 !important; border-radius: 50%; color: inherit !important; transition: background .25s;
}
.mlp-cartx__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transition: fill .25s, stroke .25s; }
.mlp-cartx .wd-cart-number {
	position: absolute; top: 5px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--mlp-ink); font-size: 10px; font-weight: 700; line-height: 1;
	transition: transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.mlp-cartx .wd-cart-number > span { display: none; }
.mlp-cartx--empty .wd-cart-number { transform: scale(0); }
.mlp-cartx--pulse .mlp-cartx__toggle svg { animation: mlpHeartPop .5s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------- WoodMart side cart: same style as the wishlist panel ---------- */
.cart-widget-side { width: min(420px, 100%); font-family: 'Manrope', sans-serif; color: var(--mlp-ink); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4); }
.cart-widget-side .wd-heading { padding: 22px 24px; border-bottom: 1px solid var(--mlp-line); }
.cart-widget-side .wd-heading .title { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--mlp-ink); }
.cart-widget-side .widget_shopping_cart_content { padding-inline: 24px; }
.cart-widget-side .woocommerce-mini-cart-item { padding: 18px 0 !important; border-bottom: 1px solid var(--mlp-line); }
.cart-widget-side .woocommerce-mini-cart-item img { width: 84px !important; height: 84px; object-fit: cover; border-radius: 6px; }
.cart-widget-side .woocommerce-mini-cart-item .wd-entities-title { font-size: 14px; font-weight: 500; color: var(--mlp-ink); }
.cart-widget-side .woocommerce-mini-cart__total { padding: 18px 0 8px; font-size: 16px; }
.cart-widget-side .woocommerce-mini-cart__total .amount { font-weight: 700; color: var(--mlp-ink); }
.cart-widget-side .woocommerce-mini-cart__buttons { display: grid; gap: 10px; padding-bottom: 24px; }
.cart-widget-side .woocommerce-mini-cart__buttons .button {
	min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 0; border: 1px solid var(--mlp-ink);
	font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0;
	background: #fff; color: var(--mlp-ink); transition: background .3s, color .3s, border-color .3s;
}
.cart-widget-side .woocommerce-mini-cart__buttons .button.checkout { background: var(--mlp-ink); color: #fff; }
.cart-widget-side .woocommerce-mini-cart__buttons .button:hover { background: var(--mlp-gold); border-color: var(--mlp-gold); color: var(--mlp-ink); }
.wd-close-side.wd-close-side-opened { background: rgba(15, 10, 18, .5); backdrop-filter: blur(3px); }

/* ---------- quick add panel (products with options / variations) ---------- */
.mlp-qa-panel { width: min(520px, 100%); }
.mlp-qa-body { display: flex; flex-direction: column; padding: 0; }
.mlp-qa-body > .mlp-wish-panel__loading { padding: 60px 0; }
.mlp-qa-product { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--mlp-line); background: #faf7f2; }
.mlp-qa-product__img img { width: 88px; height: 88px; object-fit: cover; border-radius: 4px; display: block; }
.mlp-qa-product__info { display: grid; gap: 6px; min-width: 0; }
.mlp-qa-product__name { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--mlp-ink); }
.mlp-qa-product__name:hover { color: var(--mlp-purple); }
.mlp-qa-product__price { font-size: 16px; font-weight: 700; color: var(--mlp-ink); }
.mlp-qa-form { display: flex; flex-direction: column; flex: 1; margin: 0; }
.mlp-qa-form .melpomene-configurator { margin: 0; padding: 20px 24px 8px; border: 0; background: none; box-shadow: none; }
.mlp-qa-form .melpomene-configurator h3 { font-size: 16px; }
.mlp-qa-form .melpomene-configurator__summary { display: none; }
.mlp-qa-more { align-self: flex-start; margin: 4px 24px 20px; font-size: 13px; color: #7a7080; text-decoration: underline; text-underline-offset: 3px; }
.mlp-qa-more:hover { color: var(--mlp-ink); }
.mlp-qa-footer {
	position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--mlp-line); background: #fff; box-shadow: 0 -12px 24px -18px rgba(0, 0, 0, .25);
}
.mlp-qa-actions { display: flex; gap: 10px; }
.mlp-qa-actions .quantity { flex: 0 0 auto; display: inline-flex; align-items: stretch; margin: 0; border: 1px solid var(--mlp-line); }
.mlp-qa-actions .quantity input.qty { width: 44px; min-height: 52px; border: 0; text-align: center; }
.mlp-qa-actions .quantity .plus, .mlp-qa-actions .quantity .minus { width: 36px; min-height: 0; border: 0; background: transparent; }
.mlp-qa-submit {
	flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px;
	border: 1px solid var(--mlp-ink); border-radius: 0; background: var(--mlp-ink); color: #fff;
	font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.mlp-qa-submit__price:not(:empty) { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .35); font-weight: 700; }
.mlp-qa-submit:hover { background: var(--mlp-gold); border-color: var(--mlp-gold); color: var(--mlp-ink); }
.mlp-qa-submit:hover .mlp-qa-submit__price { border-color: rgba(0, 0, 0, .2); }
.mlp-qa-submit.loading { opacity: .6; pointer-events: none; }
.mlp-qa-error { margin-bottom: 10px; padding: 10px 14px; background: #fbeaea; color: #8a1c1c; font-size: 14px; }
@media (max-width: 600px) {
	.mlp-qa-product { grid-template-columns: 72px 1fr; padding: 16px; }
	.mlp-qa-product__img img { width: 72px; height: 72px; }
	.mlp-qa-form .melpomene-configurator { padding: 16px 16px 8px; }
	.mlp-qa-more { margin-inline: 16px; }
	.mlp-qa-footer { padding-inline: 16px; }
	.mlp-qa-submit { font-size: 14px; padding: 0 12px; }
}
