/* Descontos personalizados — badge circular e cores de preço */

.promo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-width: 58px;
	min-height: 58px;
	padding: 0;
	border-radius: 50%;
	background: linear-gradient(145deg, #ff5252 0%, #e53935 45%, #c62828 100%);
	color: #fff;
	font-weight: 800;
	font-size: calc(58px * 0.28);
	line-height: 1;
	text-align: center;
	letter-spacing: -0.03em;
	box-shadow: 0 5px 16px rgba(198, 40, 40, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
	border: 3px solid #fff;
	box-sizing: border-box;
}

.promo-badge::after {
	content: '%';
	font-size: 0.82em;
	font-weight: 800;
	line-height: 1;
	margin-left: 1px;
}

.promo-badge--product-image {
	width: 62px;
	height: 62px;
	min-width: 62px;
	min-height: 62px;
	font-size: calc(62px * 0.28);
}

#product-product .product-image-main--promo {
	position: relative;
	list-style: none;
}

#product-product .product-image-main--promo .thumbnail {
	display: block;
}

#product-product .promo-badge--product-image {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
}

.product-thumb .promo-badge {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 58px;
	height: 58px;
	font-size: calc(58px * 0.28);
	z-index: 3;
}

.product-thumb .image {
	position: relative;
}

/* Layout preços promocionais empilhados */
.price-block--promo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.promo-price-from,
.promo-price-to {
	display: block;
	width: 100%;
	line-height: 1.25;
}

.promo-price-from {
	font-size: 17px;
	color: #666;
}

.promo-price-to {
	font-size: 20px;
	font-weight: 700;
}

#product-product .promo-price-from,
#product-product .promo-price-to {
	list-style: none;
}

#product-product .promo-price-to {
	font-size: 20px;
	font-weight: 700;
}

/* Preço antigo (De): cinza, riscado — todo o site */
.price-block--promo .price-old,
.promo-price-from .price-old,
#content .price-block--promo .price-old,
#product-product .price-block--promo .price-old,
#product-product .promo-price-from .price-old,
.product-thumb .price-block--promo .price-old,
.product-thumb:has(.promo-badge) .price-old,
#content .product-thumb:has(.promo-badge) .price-old {
	color: #888 !important;
	font-weight: 600 !important;
	text-decoration: line-through !important;
	font-size: 17px !important;
	margin-left: 0 !important;
}

/* Preço final em vermelho quando campanha ativa (display ou apply) */
#product-product.promo-module-active ul.list-unstyled h2,
#product-product.promo-module-active .promo-price-to h2.price-new,
#product-product:has(.promo-badge) ul.list-unstyled h2,
#content .product-thumb.promo-module-active p.price,
#content .product-thumb.promo-module-active .price,
#content .product-thumb:has(.promo-badge) p.price,
#content .product-thumb:has(.promo-badge) .price,
#content .product-thumb.promo-module-active .price-new,
#content .product-thumb:has(.promo-badge) .price-new,
#content .product-thumb.promo-module-active .promo-price-to,
#content .product-thumb:has(.promo-badge) .promo-price-to,
#content .product-thumb.promo-module-active .promo-price-to .price-new,
#content .product-thumb:has(.promo-badge) .promo-price-to .price-new,
.product-thumb.promo-module-active p.price,
.product-thumb:has(.promo-badge) p.price,
.product-thumb.promo-module-active .promo-price-to .price-new,
.product-thumb:has(.promo-badge) .promo-price-to .price-new {
	color: #d32f2f !important;
	font-weight: 700 !important;
}

/* Preço com desconto (modo apply): vermelho */
.price-block--promo .price-new,
.price-block--promo h2.price-new,
.promo-price-to .price-new,
.promo-price-to h2.price-new,
#content .price-block--promo .price-new,
#content .price-block--promo h2.price-new,
#content .product-thumb.price-block--promo .price-new,
#content .product-thumb .price-block--promo .price-new,
#product-product .price-block--promo .price-new,
#product-product .price-block--promo h2.price-new,
#product-product ul.list-unstyled.price-block--promo h2.price-new,
#product-product .promo-price-to h2.price-new,
.product-thumb .price-block--promo .price-new,
.product-thumb:has(.promo-badge) .price-new,
#content .product-thumb:has(.promo-badge) .price-new {
	color: #d32f2f !important;
	font-weight: 700 !important;
}

#product-product .price-block--promo h2.price-new,
#product-product ul.list-unstyled.price-block--promo h2.price-new,
#product-product .promo-price-to h2.price-new {
	margin: 0;
	display: inline;
}

.price-block--promo .price-tax {
	margin-top: 4px;
}
