/**
 * DELTITECH wishlist page (v1.0.244) — see inc/dt-wishlist.php.
 *
 * Hero, saved pairs (the shop's cards from dt-wl-cards.css with a
 * "Saved · remove" row), share links, undo notices, empty state, newest
 * pairs. Tokens come from dt-ui.css (.dt-ui).
 */

html body.dt-wl-page #page-header,
html body.dt-wl-page .page-header {
	display: none !important;
}

html body.dt-wl-page #site-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

html body .dt-wl {
	position: relative;
	overflow: clip;
	background: var(--paper);
	color: var(--ink);
	font-size: 16px;
}

html body .dt-wl > .dt-ambient i:nth-child(1) {
	top: -160px;
	left: -140px;
	width: 620px;
	height: 620px;
}

html body .dt-wl > .dt-ambient i:nth-child(2) {
	top: 40px;
	right: -200px;
	width: 560px;
	height: 560px;
}

html body .dt-wl > .dt-ambient i:nth-child(3) {
	top: 380px;
	bottom: auto;
	left: 38%;
	width: 460px;
	height: 460px;
	opacity: 0.45;
}

html body .dt-wl__wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Hero ------------------------------------------------------------------- */

html body .dt-wl__hero {
	position: relative;
	padding: 112px 0 48px;
	text-align: center;
}

html body .dt-wl__pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 38px;
	padding: 0 16px 0 6px;
	border-radius: 999px;
	background: var(--glass-bg);
	box-shadow: var(--glass-shadow);
	color: var(--ink-2);
	font: 600 12.5px/1 var(--body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	animation: dt-wl-fade 0.9s var(--ease) both;
}

html body .dt-wl__heart {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--dark-bg);
	box-shadow: var(--dark-shadow);
	color: #fff;
}

html body .dt-wl__heart svg {
	width: 14px;
	height: 14px;
	animation: dt-wl-beat 2.6s var(--ease) 1s infinite;
}

html body .dt-ui .dt-wl__title {
	margin: 24px auto 20px;
	color: var(--ink);
	font: 800 clamp(48px, 8vw, 104px) / 0.94 var(--display);
	letter-spacing: -0.055em;
}

html body .dt-wl__line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.06em;
}

html body .dt-wl__line > span {
	display: block;
	animation: dt-wl-rise 1.1s var(--ease) both;
}

html body .dt-wl__line:nth-child(2) > span {
	animation-delay: 0.1s;
}

html body .dt-wl__soft {
	color: rgba(10, 10, 10, 0.36);
}

html body .dt-ui .dt-wl__lead {
	max-width: 560px;
	margin: 0 auto;
	color: var(--ink-2);
	font: 500 clamp(16px, 1.4vw, 18.5px) / 1.6 var(--body);
	animation: dt-wl-fade 1s 0.25s var(--ease) both;
}

html body .dt-wl__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
	animation: dt-wl-fade 1s 0.35s var(--ease) both;
}

/* List ------------------------------------------------------------------- */

html body .dt-wl__list {
	padding: 24px 0 40px;
}

html body .dt-wl .wcboost-wishlist {
	margin: 0;
}

html body .dt-wl .wcboost-wishlist-form {
	margin: 0;
}

/* WCBoost's own title / description. */
html body .dt-wl .wcboost-wishlist-header {
	display: none;
}

html body .dt-wl__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 22px;
	padding: 14px 20px;
	border-radius: 22px;
	background: var(--glass-bg);
	box-shadow: var(--glass-shadow);
}

html body .dt-ui .dt-wl__count {
	margin: 0;
	color: var(--ink-2);
	font: 500 15px/1.2 var(--body);
}

html body .dt-wl__count strong {
	color: var(--ink);
	font: 800 22px/1 var(--display);
	letter-spacing: -0.03em;
}

html body .dt-ui .dt-wl__hint {
	margin: 0;
	color: var(--muted);
	font: 500 13.5px/1.3 var(--body);
}

/* Grid. */
html body .dt-wl ul.products.dt-wl__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px 22px;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

html body .dt-wl ul.products.dt-wl__grid > li.product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	display: flex !important;
	flex-direction: column;
	height: auto !important;
	animation: dt-wl-card 0.7s var(--ease) both;
}

/* The card fills what's left under the "Saved" row instead of 100%. */
html body .dt-wl ul.products.dt-wl__grid > li.product > .product-inner {
	flex: 1 1 auto;
	height: auto !important;
	min-height: 0;
}

html body .dt-wl ul.products.dt-wl__grid > li.product:nth-child(2) {
	animation-delay: 0.05s;
}

html body .dt-wl ul.products.dt-wl__grid > li.product:nth-child(3) {
	animation-delay: 0.1s;
}

html body .dt-wl ul.products.dt-wl__grid > li.product:nth-child(n + 4) {
	animation-delay: 0.15s;
}

/* "Saved Oct 1 · ×" above each saved card. */
html body .dt-wl__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 34px;
	margin: 0 0 10px;
	padding: 0 2px 0 6px;
}

html body .dt-wl__date {
	color: var(--muted);
	font: 600 11.5px/1 var(--body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

html body .dt-wl .dt-wl__remove {
	display: flex;
	margin-left: auto;
}

html body .dt-wl .dt-wl__remove > a.remove {
	display: grid !important;
	place-items: center;
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: var(--glass-bg) !important;
	box-shadow: var(--chip-shadow) !important;
	color: var(--ink) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	transition: transform 0.45s var(--spring), background 0.2s, color 0.2s !important;
}

html body .dt-wl .dt-wl__remove > a.remove:hover {
	background: #fff !important;
	color: #b42318 !important;
	transform: rotate(90deg) scale(1.06);
}

html body .dt-wl .dt-wl__remove > a.remove svg {
	width: 15px;
	height: 15px;
}

/* The card's own heart is redundant on this page. */
html body .dt-wl .dt-wl__grid--saved :is(.wcboost-wishlist-button, .product__wishlist-pill) {
	display: none !important;
}

/* WCBoost blocks the form while removing. */
html body .dt-wl .blockUI.blockOverlay {
	border-radius: 24px;
	background: rgba(var(--dt-s-fafaf7-rgb, 250, 250, 247), 0.6) !important;
}

/* Notices (removed — undo). */
html body .dt-wl .woocommerce-notices-wrapper:empty {
	display: none;
}

html body .dt-wl :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 18px !important;
	padding: 14px 18px !important;
	border: 0 !important;
	border-radius: 18px !important;
	background: var(--glass-bg) !important;
	box-shadow: var(--glass-shadow) !important;
	color: var(--ink) !important;
	font: 500 14.5px/1.4 var(--body) !important;
	animation: dt-wl-fade 0.5s var(--ease) both;
}

html body .dt-wl :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
	display: none !important;
}

html body .dt-wl :is(.woocommerce-message, .woocommerce-info) a {
	order: 2;
	margin-left: auto;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--dark-bg);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}

/* Share. */
html body .dt-wl .wcboost-wishlist-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 34px;
	padding: 18px 20px;
	border-radius: 22px;
	background: var(--glass-bg);
	box-shadow: var(--glass-shadow);
}

html body .dt-wl .wcboost-wishlist-footer:empty {
	display: none;
}

html body .dt-wl .wishlist-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

html body .dt-ui .dt-wl .wishlist-share__title {
	margin: 0;
	color: var(--ink);
	font: 700 15px/1.2 var(--display);
	letter-spacing: -0.01em;
}

html body .dt-wl .wishlist-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .dt-wl .wishlist-share__buttons a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--chip-shadow);
	color: var(--ink);
	transition: transform 0.45s var(--spring);
}

html body .dt-wl .wishlist-share__buttons a:hover {
	transform: translateY(-2px);
}

html body .dt-wl .wishlist-share__buttons svg {
	width: 17px;
	height: 17px;
}

/* Empty ------------------------------------------------------------------ */

html body .dt-wl-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 640px;
	margin: 0 auto;
	padding: 52px 32px 46px;
	border-radius: 36px;
	background: var(--glass-bg);
	box-shadow: var(--glass-shadow);
	text-align: center;
	animation: dt-wl-card 0.8s var(--ease) both;
}

html body .dt-wl-empty__art {
	position: relative;
	width: 120px;
	height: 120px;
	margin-bottom: 24px;
}

html body .dt-wl-empty__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--dt-p-4cd964-rgb, 76, 217, 100), 0.22), transparent 68%);
	animation: dt-wl-breathe 3.4s ease-in-out infinite;
}

html body .dt-wl-empty__tile {
	position: absolute;
	inset: 26px;
	display: grid;
	place-items: center;
	border-radius: 24px;
	background: var(--dark-bg);
	box-shadow: var(--dark-shadow);
	color: #fff;
	transform: rotate(-8deg);
	animation: dt-wl-float 5s ease-in-out infinite;
}

html body .dt-wl-empty__tile svg {
	width: 30px;
	height: 30px;
}

html body .dt-wl-empty__spark {
	position: absolute;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--green);
	transform: rotate(45deg);
	animation: dt-wl-twinkle 2.4s ease-in-out infinite;
}

html body .dt-wl-empty__spark--a {
	top: 14px;
	right: 12px;
}

html body .dt-wl-empty__spark--b {
	bottom: 18px;
	left: 10px;
	width: 7px;
	height: 7px;
	background: var(--ink);
	animation-delay: 1.1s;
}

html body .dt-ui .dt-wl-empty__title {
	margin: 0 0 10px;
	font: 800 clamp(28px, 3.4vw, 40px) / 1.04 var(--display);
	letter-spacing: -0.045em;
}

html body .dt-ui .dt-wl-empty__text {
	max-width: 420px;
	margin: 0 0 24px;
	color: var(--ink-2);
	font: 500 16px/1.6 var(--body);
}

html body .dt-wl-empty__brands {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

html body .dt-wl-empty__brands img {
	width: 28px;
	height: 20px;
	object-fit: contain;
}

/* More ------------------------------------------------------------------- */

html body .dt-wl__more {
	padding: 30px 0 110px;
}

html body .dt-wl__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

html body .dt-ui .dt-wl__h2 {
	margin: 0;
	font: 800 clamp(30px, 3.6vw, 48px) / 1.02 var(--display);
	letter-spacing: -0.045em;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1199px) {
	html body .dt-wl ul.products.dt-wl__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	html body .dt-wl__wrap {
		padding: 0 16px;
	}

	html body .dt-wl__hero {
		padding: 72px 0 30px;
	}

	html body .dt-wl ul.products.dt-wl__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 10px;
	}

	html body .dt-wl__bar {
		padding: 12px 16px;
	}

	html body .dt-ui .dt-wl__hint {
		display: none;
	}

	html body .dt-wl__date {
		font-size: 10.5px;
	}

	html body .dt-wl-empty {
		padding: 40px 20px 34px;
		border-radius: 28px;
	}

	html body .dt-wl__more {
		padding-bottom: 120px;
	}
}

/* Motion ----------------------------------------------------------------- */

@keyframes dt-wl-rise {
	from {
		transform: translateY(105%);
	}
}

@keyframes dt-wl-fade {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@keyframes dt-wl-card {
	from {
		opacity: 0;
		transform: translateY(22px) scale(0.98);
	}
}

@keyframes dt-wl-beat {
	0%,
	60%,
	100% {
		transform: scale(1);
	}
	20% {
		transform: scale(1.22);
	}
	35% {
		transform: scale(0.96);
	}
}

@keyframes dt-wl-breathe {
	50% {
		transform: scale(1.12);
		opacity: 0.7;
	}
}

@keyframes dt-wl-float {
	50% {
		transform: rotate(-4deg) translateY(-6px);
	}
}

@keyframes dt-wl-twinkle {
	50% {
		opacity: 0.25;
		transform: rotate(45deg) scale(0.6);
	}
}

@media (prefers-reduced-motion: reduce) {
	html body .dt-wl *,
	html body .dt-wl *::before {
		animation: none !important;
	}
}

/* Older wishlist script's remove pill (custom-wishlist-cards.js) — this page
   has its own control above each card. */
html body .dt-wl .product__remove-pill {
	display: none !important;
}
