/* لایک محصول — صفحه فروشگاه و داشبورد */

.product-like-btn {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 2rem;
	padding: 0.375rem 0.5rem;
	border: none;
	border-radius: 9999px;
	background: rgba(15, 23, 42, 0.55);
	color: #fff;
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.product-like-btn:hover {
	transform: scale(1.05);
	background: rgba(15, 23, 42, 0.72);
}

.product-like-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.product-like-btn__icon {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
}

.product-like-btn__icon--filled {
	display: none;
	color: #f43f5e;
}

.product-like-btn.is-liked .product-like-btn__icon--outline {
	display: none;
}

.product-like-btn.is-liked .product-like-btn__icon--filled {
	display: block;
}

.product-like-btn.is-liked {
	background: rgba(255, 255, 255, 0.92);
	color: #e11d48;
}

.product-like-btn__count {
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	min-width: 0.75rem;
}

.dash-like-thumb {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 0.75rem;
	background: var(--site-bg-hover, #f1f5f9);
	overflow: hidden;
	flex-shrink: 0;
}

.dash-like-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dash-unlike-product-btn {
	padding: 0.5rem 0.875rem;
	border-radius: 0.75rem;
	border: none;
	background: rgba(15, 23, 42, 0.55);
	color: #94a3b8;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.dash-unlike-product-btn:hover:not(:disabled) {
	color: #fca5a5;
	background: rgba(127, 29, 29, 0.35);
}

/* داشبورد — لیست لایک‌های محصولات */
.dash-likes-panel {
	background: var(--site-bg-card, #fff);
	border: 1px solid var(--site-border, #e2e8f0);
	color: var(--site-text, #0f172a);
}

.dash-like-product-row {
	border: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	background: var(--dash-subscription-stat-bg, #f8fafc);
	color: var(--site-text, #0f172a);
}

.dash-like-product-row:hover {
	background: var(--site-bg-hover, #f1f5f9);
}

.dash-like-product-row .opacity-70 {
	opacity: 1;
	color: var(--site-text-muted, #64748b);
}

.dash-like-product-row .opacity-50 {
	opacity: 1;
	color: var(--site-text-muted, #64748b);
}

.dash-like-empty-icon {
	background: var(--site-bg-hover, #f1f5f9);
}

html[data-theme="dark"] .site-theme .dash-likes-panel {
	background: var(--dash-card-dark-bg, rgba(15, 23, 42, 0.92));
	border-color: var(--dash-card-dark-border, #334155);
	color: var(--dash-card-dark-text, #f1f5f9);
}

html[data-theme="dark"] .site-theme .dash-like-product-row {
	background: rgba(30, 41, 59, 0.45);
	color: var(--dash-card-dark-text, #f1f5f9);
}

html[data-theme="dark"] .site-theme .dash-like-product-row:hover {
	background: rgba(51, 65, 85, 0.55);
}

html[data-theme="dark"] .site-theme .dash-like-product-row .opacity-70,
html[data-theme="dark"] .site-theme .dash-like-product-row .opacity-50 {
	opacity: 0.7;
	color: inherit;
}

html[data-theme="dark"] .site-theme .dash-like-thumb {
	background: #1e293b;
}

html[data-theme="dark"] .site-theme .dash-like-empty-icon {
	background: #1e293b;
}

.dash-like-product-row:focus-visible {
	outline: 2px solid var(--brand-primary, #720ba1);
	outline-offset: 2px;
}

.dash-like-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	padding: 0.25rem 0.65rem;
	border-radius: 9999px;
	background: rgba(244, 63, 94, 0.15);
	color: #fb7185;
	font-size: 0.8rem;
	font-weight: 800;
}

.dash-likers-modal__panel {
	background: var(--site-bg-card, #fff);
	color: var(--site-text, #0f172a);
	border: 1px solid var(--site-border, #e2e8f0);
}

.dash-likers-modal__head {
	border-color: var(--site-border, #e2e8f0);
	background: var(--site-bg-card, #fff);
}

.dash-likers-list__item {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: var(--dash-subscription-stat-bg, #f8fafc);
	border: 1px solid var(--site-border, #e2e8f0);
}

.dash-likers-list__name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--site-text, #0f172a);
}

html[data-theme="dark"] .site-theme .dash-likers-list__item {
	background: rgba(30, 41, 59, 0.55);
}
