/* ==========================================================================
   favorites.css — Favorites page, heart buttons, toast notifications
   ========================================================================== */

/* ---- Heart Button (product cards + single product) ---- */
[data-mt-fav] {
	cursor: pointer;
	transition: all 0.2s ease;
}

[data-mt-fav] svg {
	transition: all 0.2s ease;
}

[data-mt-fav].mt-fav--active svg {
	fill: #E91E8C;
	stroke: #E91E8C;
}

[data-mt-fav].mt-fav--pop {
	animation: mtFavPop 0.4s ease;
}

@keyframes mtFavPop {
	0%   { transform: scale(1); }
	30%  { transform: scale(1.3); }
	60%  { transform: scale(0.9); }
	100% { transform: scale(1); }
}

/* ---- Toast Notification ---- */
.mt-fav-toast {
	position: fixed;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #fff;
	border: 1px solid #eee;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	border-radius: 12px;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	z-index: 99999;
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: none;
}

.mt-fav-toast--show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.mt-fav-toast--added {
	border-color: rgba(233,30,140,0.2);
}

.mt-fav-toast--removed {
	border-color: #ddd;
}

/* ---- Header Favorites Count Badge ---- */
.mt-fav-count {
	position: absolute;
	top: -4px;
	right: -6px;
	background: var(--mt-primary, #E91E8C);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ==========================================================================
   FAVORITES PAGE
   ========================================================================== */

.mt-favorites-page {
	padding: 0 0 60px;
}

/* ---- Header ---- */
.mt-fav-header {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 32px 40px;
	background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
	border-radius: 16px;
	margin-bottom: 32px;
}

.mt-fav-header__icon {
	width: 64px;
	height: 64px;
	min-width: 64px;
	background: rgba(255,255,255,0.7);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(233,30,140,0.15);
}

.mt-fav-header__title {
	font-size: 28px;
	font-weight: 800;
	color: var(--mt-dark, #1a1a2e);
	margin: 0 0 4px;
}

.mt-fav-header__desc {
	font-size: 14px;
	color: var(--mt-text-muted, #777);
	margin: 0;
	line-height: 1.5;
}

/* ---- Empty State ---- */
.mt-fav-empty {
	text-align: center;
	padding: 80px 20px;
}

.mt-fav-empty__icon {
	margin-bottom: 20px;
	opacity: 0.4;
}

.mt-fav-empty__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--mt-dark);
	margin-bottom: 8px;
}

.mt-fav-empty__text {
	font-size: 15px;
	color: var(--mt-text-muted);
	margin-bottom: 28px;
}

.mt-fav-empty__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	background: linear-gradient(135deg, #E91E8C 0%, #c2185b 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border-radius: 12px;
	transition: all 0.2s ease;
	box-shadow: 0 4px 16px rgba(233,30,140,0.3);
}

.mt-fav-empty__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(233,30,140,0.4);
	color: #fff;
}

/* ---- Layout ---- */
.mt-fav-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 32px;
	align-items: start;
}

/* ---- Toolbar ---- */
.mt-fav-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.mt-fav-toolbar__count {
	font-size: 14px;
	color: var(--mt-text-muted);
}

.mt-fav-toolbar__count strong {
	color: var(--mt-dark);
	font-weight: 700;
}

/* ---- Product Grid ---- */
.mt-fav-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

/* ---- Favorite Card ---- */
.mt-fav-card {
	background: #fff;
	border: 1px solid var(--mt-border-light, #eee);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	transition: all 0.3s ease;
}

.mt-fav-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.mt-fav-card__remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	background: rgba(255,255,255,0.9);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	color: #999;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mt-fav-card__remove:hover {
	background: #fee2e2;
	color: #ef4444;
}

.mt-fav-card__image-link {
	display: block;
	aspect-ratio: 1/1;
	overflow: hidden;
}

.mt-fav-card__image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mt-fav-card:hover .mt-fav-card__image-link img {
	transform: scale(1.05);
}

.mt-fav-card__body {
	padding: 12px;
}

.mt-fav-card__vendor {
	font-size: 11px;
	color: var(--mt-primary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.mt-fav-card__title {
	font-size: 13px;
	font-weight: 600;
	margin: 4px 0 6px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mt-fav-card__title a {
	color: var(--mt-dark);
	transition: color 0.2s;
}

.mt-fav-card__title a:hover {
	color: var(--mt-primary);
}

.mt-fav-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--mt-text-muted);
	margin-bottom: 6px;
}

.mt-fav-card__stars {
	color: #f59e0b;
}

.mt-fav-card__price {
	font-size: 15px;
	font-weight: 700;
	color: var(--mt-primary);
	margin-bottom: 10px;
}

.mt-fav-card__price del {
	color: var(--mt-text-muted);
	font-weight: 400;
	font-size: 12px;
}

.mt-fav-card__price ins {
	text-decoration: none;
}

.mt-fav-card__cart-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 8px 12px;
	background: linear-gradient(135deg, #E91E8C 0%, #c2185b 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mt-fav-card__cart-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(233,30,140,0.3);
	color: #fff;
}

/* ---- Sidebar ---- */
.mt-fav-sidebar {
	position: sticky;
	top: 100px;
}

.mt-fav-summary {
	background: #fff;
	border: 1px solid var(--mt-border-light, #eee);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 16px;
}

.mt-fav-summary__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--mt-dark);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--mt-border-light, #eee);
}

.mt-fav-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 14px;
	color: var(--mt-text-muted);
}

.mt-fav-summary__row strong {
	color: var(--mt-dark);
	font-weight: 700;
}

/* CTA Card */
.mt-fav-cta {
	background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
	border: 1px solid rgba(233,30,140,0.1);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
}

.mt-fav-cta__icon {
	width: 44px;
	height: 44px;
	background: rgba(233,30,140,0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
	color: var(--mt-primary);
}

.mt-fav-cta h4 {
	font-size: 14px;
	font-weight: 700;
	color: var(--mt-dark);
	margin: 0 0 6px;
}

.mt-fav-cta p {
	font-size: 13px;
	color: var(--mt-text-muted);
	margin: 0 0 16px;
	line-height: 1.5;
}

.mt-fav-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 20px;
	background: var(--mt-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.mt-fav-cta__btn:hover {
	background: #c2185b;
	color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.mt-fav-layout {
		grid-template-columns: 1fr;
	}

	.mt-fav-sidebar {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.mt-fav-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.mt-fav-header {
		padding: 24px 20px;
		gap: 16px;
	}

	.mt-fav-header__icon {
		width: 48px;
		height: 48px;
		min-width: 48px;
	}

	.mt-fav-header__icon svg {
		width: 24px;
		height: 24px;
	}

	.mt-fav-header__title {
		font-size: 22px;
	}

	.mt-fav-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.mt-fav-sidebar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.mt-fav-header {
		flex-direction: column;
		text-align: center;
	}

	.mt-fav-card__title {
		font-size: 12px;
	}

	.mt-fav-card__price {
		font-size: 13px;
	}
}
