/* =========================================================
   بانی‌بیبی – ستاره ویژه سریع (فرانت‌اند)
   ========================================================= */

/* دکمه ستاره کنترل ادمین */
.bb-quick-feature {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	right: auto !important;
	z-index: 50 !important;
	width: 36px !important;
	height: 36px !important;
	border: none !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.95) !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
	transition: all 0.25s ease !important;
	line-height: 1 !important;
	outline: none !important;
}

.bb-quick-feature:hover {
	transform: scale(1.12) !important;
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2) !important;
}

.bb-quick-feature .bb-star-icon {
	font-size: 20px !important;
	line-height: 1 !important;
	transition: color 0.2s ease, transform 0.2s ease !important;
}

/* حالت غیرفعال (خاکستری) */
.bb-quick-feature.bb-star-inactive {
	background: rgba(255, 255, 255, 0.92) !important;
}
.bb-quick-feature.bb-star-inactive .bb-star-icon {
	color: #bbb !important;
}

/* حالت فعال (طلایی) */
.bb-quick-feature.bb-star-active {
	background: #FFF8E1 !important;
	box-shadow: 0 3px 12px rgba(255, 193, 7, 0.4) !important;
}
.bb-quick-feature.bb-star-active .bb-star-icon {
	color: #FFC107 !important;
	text-shadow: 0 1px 2px rgba(255, 152, 0, 0.3);
}

/* هنگام لودینگ */
.bb-quick-feature.bb-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
}
.bb-quick-feature.bb-loading .bb-star-icon {
	animation: bb-spin 0.7s linear infinite;
}

@keyframes bb-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* نشان ستاره عمومی برای بازدیدکنندگان (محصولات ویژه) */
.bb-featured-badge {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	z-index: 20 !important;
	width: 32px !important;
	height: 32px !important;
	background: linear-gradient(135deg, #FFC107, #FF9800) !important;
	color: #fff !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 16px !important;
	box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4) !important;
	pointer-events: none !important;
}

/* اطمینان از relative بودن کانتینر تصویر در WoodMart و استاندارد */
.wd-product .wd-product-thumb,
.wd-product .product-element-top,
.product .woocommerce-loop-product__link,
.product .wd-product-img-link,
li.product .product-image-link,
li.product .wd-product-thumb {
	position: relative !important;
}

/* اگر تصویر مستقیم داخل لینک است */
.woocommerce ul.products li.product {
	position: relative;
}

/* پیام خالی شورت‌کد */
.bb-no-featured {
	text-align: center;
	padding: 30px 20px;
	color: #888;
	background: #f9f9f9;
	border-radius: 12px;
	font-size: 15px;
}

/* موبایل */
@media (max-width: 767px) {
	.bb-quick-feature {
		width: 32px !important;
		height: 32px !important;
		top: 8px !important;
		left: 8px !important;
	}
	.bb-quick-feature .bb-star-icon {
		font-size: 17px !important;
	}
}
