/* ==========================================================================
   Bakba Wishlist — 商品页按钮 / 收藏页网格 / toast
   配色与账户中心一致：琥珀 #C4711E，深墨 #1B1A18
   ========================================================================== */

/* ---------- 商品卡心形（基础定位来自 mpd-mp-refactor，这里补移动端与动效） ---------- */
@media (max-width: 749px) {
	.mpd-card-wishlist {
		display: flex !important;
	}
}

.mpd-card-wishlist.is-active {
	color: #ff072e;
}

.bakba-wl-btn {
	transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.bakba-wl-btn.is-active svg path {
	fill: currentColor;
}

.bakba-wl-btn:active {
	transform: scale(.9);
}

/* ---------- 商品页心形：桌面在标题右侧，移动端在商品图右上角 ---------- */
.single-product .acmp-product-title {
	position: relative;
	padding-right: 50px; /* 给右侧心形留位，标题再长也不会压到 */
}

.single-product .woocommerce-product-gallery {
	position: relative;
}

.bakba-wl-pdp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1b1a18;
	cursor: pointer;
	line-height: 1;
}

.bakba-wl-pdp svg {
	width: 22px;
	height: 22px;
	display: block;
	overflow: visible;
}

.bakba-wl-pdp svg path {
	stroke-width: 1.6;
}

.bakba-wl-pdp:hover {
	color: #a9501a;
}

.bakba-wl-pdp.is-active {
	color: #ff072e;
}

/* 桌面：绝对定位在标题行右侧 */
.bakba-wl-pdp-title {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

/* 移动端：商品大图右上角 */
.bakba-wl-pdp-media {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 6;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}

/* Woo 自带放大镜与心形同占图片右上角，移动端让位给心形（目标站同款） */
@media (max-width: 749px) {
	.single-product .woocommerce-product-gallery__trigger {
		display: none !important;
	}
}

/* ---------- 账户页 Wishlist ---------- */
.bakba-wl-page {
	color: #1b1a18;
}

.bakba-wl-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e6e0d7;
}

.bakba-wl-head h2 {
	margin: 0;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 30px;
	font-weight: 400;
	letter-spacing: .01em;
	color: #1b1a18;
}

.bakba-wl-count {
	margin-left: 10px;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 22px;
	color: #c4711e;
}

.bakba-wl-count-label {
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8b857c;
}

.bakba-wl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 18px;
}

.bakba-wl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bakba-wl-card__media {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f1ec;
}

.bakba-wl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.bakba-wl-card:hover .bakba-wl-card__media img {
	transform: scale(1.035);
}

.bakba-wl-card__remove {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .88);
	color: #57534c;
	cursor: pointer;
	transition: color .16s ease, background-color .16s ease;
}

.bakba-wl-card__remove svg {
	width: 13px;
	height: 13px;
}

.bakba-wl-card__remove:hover {
	background: #fff;
	color: #a9501a;
}

.bakba-wl-card__body {
	padding-top: 12px;
}

.bakba-wl-card__cat {
	display: block;
	margin-bottom: 4px;
	font-size: 9.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #9a938a;
}

.bakba-wl-card__title {
	display: block;
	font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.35;
	color: #1b1a18;
	text-decoration: none;
}

.bakba-wl-card__title:hover {
	color: #a9501a;
}

.bakba-wl-card__price {
	margin-top: 6px;
	font-size: 13.5px;
	color: #1b1a18;
}

.bakba-wl-card__price del {
	margin-right: 6px;
	color: #9a938a;
	font-size: 12px;
}

.bakba-wl-card__price ins {
	text-decoration: none;
	color: #c4711e;
}

.bakba-wl-card__view {
	display: inline-block;
	margin-top: 8px;
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #a9501a;
	text-decoration: none;
	border-bottom: 1px solid rgba(169, 80, 26, .35);
	padding-bottom: 1px;
}

.bakba-wl-card__view:hover {
	border-bottom-color: #a9501a;
}

/* ---------- 空态 ---------- */
.bakba-wl-empty {
	padding: 56px 24px 64px;
	text-align: center;
	border: 1px dashed #e2dbd1;
	border-radius: 4px;
	background: #fcfaf7;
}

.bakba-wl-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #fbeedf;
	color: #c4711e;
}

.bakba-wl-empty__icon svg {
	width: 28px;
	height: 28px;
}

.bakba-wl-empty h3 {
	margin: 0 0 8px;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 26px;
	font-weight: 400;
	color: #1b1a18;
}

.bakba-wl-empty p {
	max-width: 380px;
	margin: 0 auto 22px;
	font-size: 13.5px;
	line-height: 1.65;
	color: #6f6a62;
}

.bakba-wl-cta {
	display: inline-block;
	padding: 13px 30px;
	background: #1b1a18;
	color: #fff;
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}

.bakba-wl-cta:hover {
	background: #c4711e;
	color: #fff;
}

/* ---------- 分页 ---------- */
.bakba-wl-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-top: 34px;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8b857c;
}

.bakba-wl-pager a {
	color: #a9501a;
	text-decoration: none;
}

.bakba-wl-pager a:hover {
	color: #c4711e;
}

/* ---------- toast ---------- */
.bakba-wl-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 99999;
	max-width: min(88vw, 420px);
	padding: 13px 22px;
	border-radius: 3px;
	background: #1b1a18;
	color: #fbf9f6;
	font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	font-size: 12.5px;
	line-height: 1.45;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	opacity: 0;
	transform: translate(-50%, 12px);
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
}

.bakba-wl-toast.is-show {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
	.bakba-wl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 14px;
	}
}

@media (max-width: 420px) {
	.bakba-wl-head h2 {
		font-size: 26px;
	}
}
