/* Mercado Vera Wishlist */

.mvw-btn {
	--mvw-accent: #ab4d2b;
	appearance: none;
	border: 1px solid transparent;
	background: #fff;
	color: var(--mvw-accent);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mvw-btn:hover,
.mvw-btn:focus-visible {
	outline: none;
	border-color: var(--mvw-accent);
	background: rgba(171, 77, 43, 0.08);
}

.mvw-btn.is-active {
	background: var(--mvw-accent);
	color: #fff;
	border-color: var(--mvw-accent);
}

.mvw-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.mvw-btn__icon {
	width: 1.1em;
	height: 1.1em;
	display: inline-block;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.2-4.6-9.5-8.5C.7 9.3 2.2 5.8 5.5 5.2c1.9-.3 3.7.6 4.7 2.1C11.2 5.8 13 .9 14.9 5.2c3.3.6 4.8 4.1 3 7.3C19.2 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.2-4.6-9.5-8.5C.7 9.3 2.2 5.8 5.5 5.2c1.9-.3 3.7.6 4.7 2.1C11.2 5.8 13 .9 14.9 5.2c3.3.6 4.8 4.1 3 7.3C19.2 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mvw-btn--loop {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 3;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	box-shadow: 0 4px 14px rgba(40, 30, 20, 0.12);
}

.mvw-btn--loop .mvw-btn__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.mvw-btn--single {
	margin: 0.75rem 0 1.25rem;
	padding: 0.7rem 1.15rem;
	font-family: Inter, sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
}

/* Ensure loop product wrappers can position the button */
.woocommerce ul.products li.product,
.products .product,
.wc-block-grid__product {
	position: relative;
}

/* Wishlist page */
.mvw-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

.mvw-page__title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	color: #2c2c2c;
	margin: 0 0 0.35rem;
}

.mvw-page__count {
	font-family: Inter, sans-serif;
	color: #8a8a8a;
	margin: 0 0 1.75rem;
	font-size: 0.95rem;
}

.mvw-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	background: #f7f7f7;
	border-radius: 16px;
	font-family: Inter, sans-serif;
	color: #5a5a5a;
}

.mvw-empty__cta {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.75rem 1.25rem;
	background: var(--mvw-accent, #ab4d2b);
	color: #fff !important;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
}

.mvw-empty__cta:hover {
	opacity: 0.92;
}

.mvw-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
}

.mvw-item {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 6px 20px rgba(40, 30, 20, 0.05);
}

.mvw-item__media {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f3f3f3;
}

.mvw-item__media img,
.mvw-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mvw-item__body {
	padding: 1rem 1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
	font-family: Inter, sans-serif;
}

.mvw-item__title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.mvw-item__title a {
	color: #2c2c2c;
	text-decoration: none;
}

.mvw-item__title a:hover {
	color: var(--mvw-accent, #ab4d2b);
}

.mvw-item__vendor {
	margin: 0;
	font-size: 0.85rem;
	color: #8a8a8a;
}

.mvw-item__vendor a {
	color: inherit;
}

.mvw-item__price {
	margin: 0;
	font-weight: 600;
	color: #2c2c2c;
}

.mvw-item__actions {
	display: flex;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.65rem;
}

.mvw-item__view,
.mvw-item__remove {
	flex: 1;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.55rem 0.6rem;
	border-radius: 8px;
	border: 1px solid #e6e6e6;
	background: #fff;
	cursor: pointer;
	text-decoration: none;
	color: #2c2c2c;
	font-family: Inter, sans-serif;
}

.mvw-item__view {
	background: var(--mvw-accent, #ab4d2b);
	border-color: var(--mvw-accent, #ab4d2b);
	color: #fff !important;
}

.mvw-item__remove:hover {
	border-color: var(--mvw-accent, #ab4d2b);
	color: var(--mvw-accent, #ab4d2b);
}

.mvw-item.is-removing {
	opacity: 0.45;
	pointer-events: none;
}

/* Header badge */
.mvw-header-link {
	position: relative !important;
}

.mvw-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--mvw-accent, #ab4d2b);
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.15rem;
	text-align: center;
	pointer-events: none;
	box-shadow: 0 2px 6px rgba(171, 77, 43, 0.35);
}

.mvw-count[hidden] {
	display: none !important;
}
