/**
 * Lista de deseos — corazón, header y página
 */

/* ------------------------------------------------------------------
   Card / ficha / fila — botón
------------------------------------------------------------------ */
.product figure:has(.dmary-wishlist-btn--card),
.product .ct-media-container:has(.dmary-wishlist-btn--card) {
	position: relative;
}

.dmary-wishlist-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--dmary-ink, #1f1c1a);
	cursor: pointer;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	appearance: none;
	-webkit-appearance: none;
	transition: color 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		background 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		border-color 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		transform 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.dmary-wishlist-btn:focus-visible {
	outline: 2px solid var(--dmary-accent, #5c6b5a);
	outline-offset: 2px;
}

.dmary-wishlist-heart {
	display: block;
	flex-shrink: 0;
}

.dmary-wishlist-btn.is-active .dmary-wishlist-heart {
	fill: currentColor;
	stroke: currentColor;
}

.dmary-wishlist-btn.is-busy {
	pointer-events: none;
	opacity: 0.65;
}

.dmary-wishlist-btn--card {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 4;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 50%;
	background: rgba(255, 252, 247, 0.92);
	color: var(--dmary-ink, #1f1c1a);
	box-shadow: 0 4px 14px rgba(31, 28, 26, 0.12);
	backdrop-filter: blur(6px);
}

.dmary-wishlist-btn--card:hover {
	transform: translateY(-1px);
	color: var(--dmary-accent, #5c6b5a);
}

.dmary-wishlist-btn--card.is-active {
	color: var(--dmary-accent, #5c6b5a);
}

.dmary-wishlist-btn--card .dmary-wishlist-heart {
	width: 16px;
	height: 16px;
}

.dmary-wishlist-btn--single {
	margin-top: 0.85rem;
	padding: 0.55rem 0.15rem;
	color: var(--dmary-muted, #6a645c);
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dmary-wishlist-btn--single:hover,
.dmary-wishlist-btn--single.is-active {
	color: var(--dmary-ink, #1f1c1a);
}

.dmary-wishlist-btn--single .dmary-wishlist-heart {
	width: 15px;
	height: 15px;
}

.dmary-wishlist-btn--row {
	padding: 0.45rem 0.15rem;
	color: var(--dmary-muted, #6a645c);
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dmary-wishlist-btn--row:hover {
	color: var(--dmary-ink, #1f1c1a);
}

.dmary-wishlist-btn__label {
	line-height: 1;
}

/* ------------------------------------------------------------------
   Header icon
------------------------------------------------------------------ */
.dmary-wishlist-header {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	margin-inline-end: 0.15rem;
	color: var(--theme-icon-color, inherit);
	text-decoration: none;
}

.dmary-wishlist-header:hover {
	color: var(--dmary-accent, #5c6b5a);
}

.dmary-wishlist-header .ct-icon-container {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dmary-wishlist-header .dmary-wishlist-heart {
	width: 15px;
	height: 15px;
}

.dmary-wishlist-header.is-filled .dmary-wishlist-heart {
	fill: currentColor;
}

.dmary-wishlist-header__count {
	position: absolute;
	top: -0.15rem;
	right: -0.2rem;
	min-width: 1.05rem;
	height: 1.05rem;
	padding: 0 0.22rem;
	border-radius: 999px;
	background: var(--dmary-ink, #1f1c1a);
	color: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1.05rem;
	text-align: center;
}

.dmary-wishlist-header__count[hidden] {
	display: none !important;
}

/* ------------------------------------------------------------------
   Página
------------------------------------------------------------------ */
.dmary-wishlist-page #main {
	background:
		radial-gradient(90% 50% at 50% 0%, rgba(92, 107, 90, 0.07), transparent 60%),
		linear-gradient(180deg, #f7f4ef 0%, #fff 18rem, #fff 100%);
}

.dmary-wishlist-page .hero-section,
.dmary-wishlist-page .entry-header,
.dmary-wishlist-page .page-title,
.dmary-wishlist-page .ct-breadcrumbs,
.dmary-wishlist-page .featured-image,
.dmary-wishlist-page .ct-featured-image {
	display: none !important;
}

.dmary-wishlist-page .entry-content {
	max-width: none !important;
	width: 100% !important;
	padding-inline: 0 !important;
	margin: 0 !important;
}

.dmary-wishlist {
	--ds-ink: var(--dmary-ink, #1f1c1a);
	--ds-muted: var(--dmary-muted, #6a645c);
	--ds-line: var(--dmary-line, rgba(31, 28, 26, 0.12));
	--ds-surface: var(--dmary-surface, #f3f0eb);
	width: min(100% - 2rem, 1120px);
	margin: 0 auto 4rem;
	padding-top: clamp(2rem, 5vw, 3.25rem);
}

.dmary-wishlist__hero {
	margin-bottom: 2.25rem;
	text-align: center;
}

.dmary-wishlist__eyebrow {
	display: block;
	margin: 0 auto 0.65rem;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ds-muted);
}

.dmary-wishlist__title {
	margin: 0 auto !important;
	max-width: 18ch;
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif !important;
	font-size: clamp(2.15rem, 5vw, 3.35rem) !important;
	font-weight: 600 !important;
	letter-spacing: -0.035em !important;
	line-height: 1.05 !important;
	color: var(--ds-ink) !important;
}

.dmary-wishlist__lede {
	margin: 0.85rem auto 0 !important;
	max-width: 38ch;
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	line-height: 1.55;
	color: var(--ds-muted);
}

.dmary-wishlist__grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.35rem) clamp(1rem, 2vw, 1.6rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dmary-wishlist-item {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	float: none !important;
}

.dmary-wishlist-item__media {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--ds-surface);
}

.dmary-wishlist-item__media img,
.dmary-wishlist-item__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.dmary-wishlist-item__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-top: 1.05rem;
}

.dmary-wishlist-item__title {
	margin: 0;
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-size: clamp(1.02rem, 1.3vw, 1.14rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.2;
	color: var(--ds-ink);
}

.dmary-wishlist-item__title a {
	color: inherit;
	text-decoration: none;
}

.dmary-wishlist-item__price {
	margin-top: 0.4rem;
	font-size: 0.98rem;
	font-weight: 650;
	color: var(--ds-ink);
}

.dmary-wishlist-item__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-top: 0.85rem;
}

.dmary-wishlist-item__actions .button {
	display: inline-flex;
	flex: 1 1 10rem;
	align-items: center;
	justify-content: center;
	min-height: 2.55em;
	margin: 0 !important;
	border: 1px solid rgba(31, 28, 26, 0.22) !important;
	border-radius: var(--dmary-radius, 3px) !important;
	background: transparent !important;
	color: var(--ds-ink) !important;
	font-size: 0.74rem !important;
	font-weight: 650 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.dmary-wishlist-item__actions .button:hover {
	background: var(--ds-ink) !important;
	border-color: var(--ds-ink) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(31, 28, 26, 0.12) !important;
}

.dmary-wishlist-item__stock {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ds-muted);
}

.dmary-wishlist__empty {
	max-width: 36ch;
	margin: 2.5rem auto 4rem;
	text-align: center;
}

.dmary-wishlist__empty-title {
	margin: 0;
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 600;
	color: var(--ds-ink);
}

.dmary-wishlist__empty-lede {
	margin: 0.7rem 0 1.4rem;
	color: var(--ds-muted);
	line-height: 1.55;
}

.dmary-wishlist__shop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.55em;
	padding: 0.55rem 1.25rem;
	border: 1px solid rgba(31, 28, 26, 0.22);
	border-radius: var(--dmary-radius, 3px);
	color: var(--ds-ink);
	font-size: 0.74rem;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		color 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		transform 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.dmary-wishlist__shop:hover {
	background: var(--ds-ink);
	border-color: var(--ds-ink);
	color: #fff;
	transform: translateY(-2px);
}

.dmary-wishlist__share {
	margin-top: 2.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--ds-line);
}

.dmary-wishlist__share[hidden] {
	display: none !important;
}

.dmary-wishlist__share-label {
	margin: 0 0 0.85rem;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ds-ink);
}

.dmary-wishlist__share-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.15rem;
}

.dmary-wishlist__share-networks {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.dmary-wishlist__share-net {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid var(--ds-line);
	border-radius: 50%;
	color: var(--ds-ink);
	text-decoration: none;
	transition: border-color 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		background 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		color 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		transform 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.dmary-wishlist__share-net:hover {
	border-color: var(--dmary-accent, #5c6b5a);
	color: var(--dmary-accent, #5c6b5a);
	transform: translateY(-1px);
}

.dmary-wishlist__share-copy {
	display: flex;
	flex: 1 1 18rem;
	min-width: 12rem;
	max-width: 36rem;
	border: 1px solid var(--ds-line);
	background: #fff;
}

.dmary-wishlist__share-url {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0.7rem 0.85rem;
	border: 0;
	background: transparent;
	color: var(--ds-ink);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.82rem;
	line-height: 1.3;
}

.dmary-wishlist__share-url:focus {
	outline: none;
}

.dmary-wishlist__copy {
	margin: 0;
	padding: 0 1.05rem;
	border: 0;
	border-left: 1px solid var(--ds-line);
	background: var(--ds-ink);
	color: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.25s var(--dmary-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.dmary-wishlist__copy:hover {
	background: var(--dmary-accent, #5c6b5a);
}

.dmary-wishlist__share-help {
	margin: 0.7rem 0 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--ds-muted);
}

.dmary-wishlist__shared-note {
	margin: 2rem auto 0;
	max-width: 42ch;
	text-align: center;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--ds-muted);
}

@media (min-width: 900px) {
	.dmary-wishlist__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 689px) {
	.dmary-wishlist {
		width: min(100% - 1.5rem, 1120px);
	}

	.dmary-wishlist__grid {
		gap: 1.35rem 0.85rem;
	}

	.dmary-wishlist-item__media {
		aspect-ratio: 3 / 4;
	}

	.dmary-wishlist-btn--card {
		top: 0.55rem;
		right: 0.55rem;
		width: 1.95rem;
		height: 1.95rem;
	}
}
