/* =========================================================
   TLH Wishlist Drawer
   Header trigger via shortcode
   ========================================================= */

.tlh-wishlist-header-trigger,
button.tlh-wishlist-header-trigger {
	width: 24px;
	height: 24px;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #ffffff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	line-height: 1;
	vertical-align: middle;
	text-decoration: none !important;
}

.tlh-wishlist-header-trigger:hover,
.tlh-wishlist-header-trigger:focus,
button.tlh-wishlist-header-trigger:hover,
button.tlh-wishlist-header-trigger:focus {
	color: #FE5000 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	opacity: 1 !important;
}

.tlh-wishlist-header-trigger {
	transition: color 0.2s ease;
}

.tlh-wishlist-header-trigger.is-just-added {
	animation: tlhWishlistHeartLift 0.45s ease;
}

@keyframes tlhWishlistHeartLift {
	0% {
		transform: translateY(0);
	}
	35% {
		transform: translateY(-4px);
	}
	100% {
		transform: translateY(0);
	}
}

.tlh-wishlist-header-trigger__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}

.tlh-wishlist-header-trigger__icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.tlh-wishlist-header-trigger__icon svg path {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.8 !important;
}

.tlh-wishlist-header-trigger.is-active .tlh-wishlist-header-trigger__icon svg path {
	fill: currentColor !important;
	stroke: currentColor !important;
}

/* =========================================================
   Drawer shell
   ========================================================= */

.tlh-wishlist-drawer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
}

.tlh-wishlist-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.32);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.tlh-wishlist-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(420px, 92vw);
	height: 100%;
	background: #f8f8f6;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

/* =========================================================
   Open state
   ========================================================= */

body.tlh-wishlist-drawer-open {
	overflow: hidden;
}

body.tlh-wishlist-drawer-open .tlh-wishlist-drawer {
	pointer-events: auto;
}

body.tlh-wishlist-drawer-open .tlh-wishlist-drawer__overlay {
	opacity: 1;
}

body.tlh-wishlist-drawer-open .tlh-wishlist-drawer__panel {
	transform: translateX(0);
}

/* =========================================================
   Drawer header
   ========================================================= */

.tlh-wishlist-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 24px 18px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tlh-wishlist-drawer__title {
	margin: 0;
	font-family: "Shippori Mincho", serif;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 400;
	color: #1f1f1f;
}

.tlh-wishlist-drawer__close {
	width: 28px;
	height: 28px;
	padding: 0;
	margin: 0;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #1f1f1f;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
}

.tlh-wishlist-drawer__close:hover,
.tlh-wishlist-drawer__close:focus {
	color: #1f1f1f;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	opacity: 0.7;
}

/* =========================================================
   Drawer body
   ========================================================= */

.tlh-wishlist-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px;
}

.tlh-wishlist-drawer__items {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tlh-wishlist-drawer__empty {
	padding: 10px 0;
}

.tlh-wishlist-drawer__empty-title {
	margin: 0 0 8px;
	font-family: "Shippori Mincho", serif;
	font-size: 18px;
	line-height: 1.3;
	color: #1f1f1f;
}

.tlh-wishlist-drawer__empty-text {
	margin: 0;
	font-family: "Shippori Mincho", serif;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.68);
}

/* =========================================================
   Drawer footer
   ========================================================= */

.tlh-wishlist-drawer__footer {
	padding: 20px 24px 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tlh-wishlist-drawer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 14px 18px;
	border: 1px solid #1f1f1f;
	background: transparent;
	color: #1f1f1f;
	font-family: "Shippori Mincho", serif;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 14px;
	line-height: 1.2;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tlh-wishlist-drawer__button:hover,
.tlh-wishlist-drawer__button:focus {
	background: transparent;
	color: #FE5000;
	border-color: #FE5000;
	outline: none;
}
/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
	.tlh-wishlist-drawer__header,
	.tlh-wishlist-drawer__body,
	.tlh-wishlist-drawer__footer {
		padding-left: 18px;
		padding-right: 18px;
	}
}

/* =========================================================
   Drawer item rows
   ========================================================= */

.tlh-wishlist-drawer__empty.is-hidden {
	display: none;
}

.tlh-wishlist-drawer-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 24px;
	gap: 14px;
	align-items: start;
	padding: 0 0 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tlh-wishlist-drawer-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.tlh-wishlist-drawer-item__image {
	display: block;
	width: 72px;
	height: 72px;
	background: #ffffff;
	text-decoration: none;
	overflow: hidden;
}

.tlh-wishlist-drawer-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tlh-wishlist-drawer-item__content {
	min-width: 0;
}

.tlh-wishlist-drawer-item__title {
	display: block;
	margin: 0 0 8px;
	color: #1f1f1f;
	text-decoration: none;
	font-family: "Shippori Mincho", serif;
	font-size: 15px;
	line-height: 1.45;
}

.tlh-wishlist-drawer-item__title:hover,
.tlh-wishlist-drawer-item__title:focus {
	color: #FE5000;
	outline: none;
}

.tlh-wishlist-drawer-item__meta {
	font-size: 14px;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.72);
}

.tlh-wishlist-drawer-item__price {
	font-family: "Shippori Mincho", serif;
	font-size: 15px;
	color: #1f1f1f;
}

.tlh-wishlist-drawer-item__sold {
	font-family: "Shippori Mincho", serif;
	font-size: 15px;
	color: rgba(0, 0, 0, 0.6);
}

.tlh-wishlist-drawer-item__remove {
	width: 24px;
	height: 24px;
	padding: 0;
	margin: 0;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	color: rgba(0, 0, 0, 0.6);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none !important;
}

.tlh-wishlist-drawer-item__remove:hover,
.tlh-wishlist-drawer-item__remove:focus {
	color: #FE5000;
	background: transparent !important;
	outline: none !important;
}

/* Ensure live-added drawer items match PHP-rendered layout */
.tlh-wishlist-drawer-item__content {
	display: block;
	min-width: 0;
}

.tlh-wishlist-drawer-item__meta {
	display: block;
}

.tlh-wishlist-drawer-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}