/* Brahmabit – Badge-uri produse (sus-dreapta). Badge-ul de reducere al temei rămâne sus-stânga. */
.wd-product-thumb, .product-element-top, .wd-gallery-images, .woocommerce-product-gallery { position: relative; }

.bbsb-badges {
	position: absolute;
	top: 7px;
	inset-inline-end: 7px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	max-width: 48%;
	pointer-events: none;
	transition: opacity .25s ease;
}
.bbsb-badges.bbsb-ctx-single { top: 15px; inset-inline-end: 15px; }
/* În containerul de etichete al temei (pagina produsului WoodMart): în flux, sub reducere */
.bbsb-badges.bbsb-inline { position: static; max-width: none; align-items: inherit; top: auto; inset-inline-end: auto; }
.product-labels:has(.bbsb-inline) { max-width: none; align-items: flex-end; }
.bbsb-inline .bbsb-badge { width: max-content; max-width: 240px; word-break: normal; overflow-wrap: normal; }
.bbsb-inline .bbsb-shape-circle { width: 84px; }
.bbsb-inline .bbsb-shape-ribbon { transform: none; width: auto; margin: 0; padding: 7px 13px !important; border-radius: 0; box-shadow: none; }

.bbsb-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.15;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: .02em;
	word-break: break-word;
}
.bbsb-type-text {
	background: var(--bbsb-bg, #111);
	color: var(--bbsb-color, #fff);
	padding: 5px 10px;
	font-size: 12px;
}
.bbsb-size-s.bbsb-type-text { font-size: 10px; padding: 4px 8px; }
.bbsb-size-l.bbsb-type-text { font-size: 14px; padding: 7px 13px; }
.bbsb-ctx-single .bbsb-type-text { font-size: 14px; padding: 7px 13px; }
.bbsb-ctx-single .bbsb-size-s.bbsb-type-text { font-size: 12px; }
.bbsb-ctx-single .bbsb-size-l.bbsb-type-text { font-size: 17px; }

.bbsb-shape-rect { border-radius: 0; }
.bbsb-shape-rounded { border-radius: 6px; }
.bbsb-shape-pill { border-radius: 999px; }
.bbsb-shape-circle {
	border-radius: 50%;
	width: 62px;
	height: 62px;
	padding: 6px !important;
	font-size: 10px;
	line-height: 1.1;
}
.bbsb-size-s.bbsb-shape-circle { width: 50px; height: 50px; font-size: 9px; }
.bbsb-size-l.bbsb-shape-circle { width: 76px; height: 76px; font-size: 12px; }
.bbsb-ctx-single .bbsb-shape-circle { width: 84px; height: 84px; font-size: 13px; }

/* Panglică pe colțul din dreapta-sus */
.bbsb-badges.bbsb-has-ribbon { top: 0; inset-inline-end: 0; overflow: visible; }
.bbsb-shape-ribbon {
	position: relative;
	border-radius: 0;
	width: 150px;
	margin: 22px -38px 6px 0;
	transform: rotate(45deg);
	padding: 5px 0 !important;
	font-size: 11px;
	box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.bbsb-has-ribbon .bbsb-badge:not(.bbsb-shape-ribbon) { margin-inline-end: 7px; }
.wd-product-thumb:has(.bbsb-has-ribbon), .wd-gallery-images:has(.bbsb-has-ribbon) { overflow: hidden; }

.bbsb-type-image { padding: 0; background: none; }
.bbsb-type-image img { display: block; max-width: 100%; height: auto; }

/* WoodMart: butoanele wishlist/compare/quick view apar sus-dreapta la hover → badge-ul se retrage temporar */
@media (hover: hover) {
	.wd-product:hover .bbsb-badges.bbsb-ctx-loop { opacity: 0; }
}

@media (max-width: 576px) {
	.bbsb-type-text { font-size: 10px; padding: 4px 7px; }
	.bbsb-shape-circle { width: 48px; height: 48px; font-size: 8px; }
	.bbsb-shape-ribbon { width: 120px; margin: 16px -32px 4px 0; font-size: 9px; }
	.bbsb-type-image img { max-width: 64px; }
}
