/* برچسب‌های تصویر محصول */
.wcbc-wrap { position: relative; display: block; }
.wcbc-wrap > img { display: block; }
.wp-block-woocommerce-product-image,
.wcbc-gallery { position: relative; }

.wcbc-layer {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	pointer-events: none;
	z-index: 9;
}
/* تا زمانی که جاوااسکریپت به گالری منتقل نکرده، برچسب صفحهٔ محصول پنهان بماند */
.wcbc-layer[data-move]:not(.wcbc-moved) { display: none; }

.wcbc-badges {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	max-width: 80%;
	box-sizing: border-box;
}
.wcbc-pos-top-right    { top: 0;    right: 0; align-items: flex-end; }
.wcbc-pos-top-left     { top: 0;    left: 0;  align-items: flex-start; }
.wcbc-pos-bottom-right { bottom: 0; right: 0; align-items: flex-end;   flex-direction: column-reverse; }
.wcbc-pos-bottom-left  { bottom: 0; left: 0;  align-items: flex-start; flex-direction: column-reverse; }

.wcbc-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: var(--wcbc-bg, #e11d48);
	color: var(--wcbc-color, #fff);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	padding: .35em .85em;
	white-space: nowrap;
	text-align: center;
	direction: rtl;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.wcbc-size-sm { font-size: 10px; }
.wcbc-size-md { font-size: 12px; }
.wcbc-size-lg { font-size: 15px; }

.wcbc-shape-rect    { border-radius: 0; }
.wcbc-shape-rounded { border-radius: 6px; }
.wcbc-shape-pill    { border-radius: 999px; }
.wcbc-shape-circle  { border-radius: 50%; min-width: 3.6em; aspect-ratio: 1 / 1; padding: .4em; white-space: normal; }
.wcbc-shape-flag {
	box-shadow: none;
	padding: .4em 1.4em .4em 1em;
	clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 50%, 100% 100%, 0 100%);
}
.wcbc-pos-top-right .wcbc-shape-flag,
.wcbc-pos-bottom-right .wcbc-shape-flag {
	padding: .4em 1em .4em 1.4em;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, .7em 50%);
}

/* برچسب تصویری */
.wcbc-badge--img { background: none; box-shadow: none; padding: 0; border-radius: 0; aspect-ratio: auto; min-width: 0; }
.wcbc-badge--img img { display: block; height: auto; max-width: 100%; }
.wcbc-badge--img.wcbc-size-sm img { width: 40px; }
.wcbc-badge--img.wcbc-size-md img { width: 64px; }
.wcbc-badge--img.wcbc-size-lg img { width: 96px; }

/* شمارندهٔ معکوس کمپین */
.wcbc-countdown {
	margin: 12px 0;
	padding: 12px 14px;
	border: 1px dashed #e11d48;
	border-radius: 10px;
	background: #fff5f7;
	text-align: center;
}
.wcbc-countdown__title { font-weight: 700; margin-bottom: 8px; }
.wcbc-countdown__timer { display: flex; justify-content: center; gap: 8px; direction: ltr; }
.wcbc-countdown__unit {
	display: flex; flex-direction: column; align-items: center;
	min-width: 56px; padding: 6px 4px;
	background: #e11d48; color: #fff; border-radius: 8px;
}
.wcbc-countdown__unit b { font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wcbc-countdown__unit small { font-size: 11px; opacity: .9; }
