/* ==============================================
   YR Wishlist — yr-wishlist.css
   ============================================== */


/* --- Heart button (single product page) --- */

.yr-wishlist-single-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0;
}

.yr-wishlist-btn {
	display: inline-flex;
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: inherit;
	transition: color 0.2s ease;
}

.yr-wishlist-btn svg {
	width: 22px;
	height: 22px;
	transition: fill 0.2s ease, stroke 0.2s ease;
}

/* --- Nav icon + count bubble --- */

.yr-wishlist-nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.yr-wishlist-nav-link svg {
	width: 22px;
	height: 22px;
}

.yr-wishlist-count-bubble {
	position: absolute;
	top: -6px;
	right: -8px;
	background: #e2401c;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.yr-wishlist-count-bubble[data-count="0"] {
	opacity: 0;
}


/* --- Wishlist page --- */

.yr-wishlist-empty {
	padding: 40px 0;
	color: #888;
}

.yr-wishlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.yr-wishlist-item {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.yr-wishlist-item a.yr-wishlist-item-image {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
}

.yr-wishlist-item a.yr-wishlist-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.yr-wishlist-item a.yr-wishlist-item-image:hover img {
	transform: scale(1.04);
}

.yr-wishlist-item-body {
	padding: 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.yr-wishlist-item-name {
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	color: inherit;
}

.yr-wishlist-item-name:hover {
	text-decoration: underline;
}

.yr-wishlist-item-price {
	font-size: 14px;
	color: #555;
}

.yr-wishlist-item-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-top: 1px solid #f0f0f0;
	gap: 8px;
}

.yr-wishlist-view-btn {
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: 5px 12px;
	transition: background 0.2s ease, color 0.2s ease;
}

.yr-wishlist-view-btn:hover {
	background: #111;
	color: #fff;
	border-color: #111;
}

.yr-wishlist-remove-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #aaa;
	font-size: 12px;
	padding: 4px;
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	gap: 4px;
}

.yr-wishlist-remove-btn:hover {
	color: #e2401c;
}