/**
 * LEO Commerce UI — Produto individual: selo de oferta + relacionados
 * v0.5.11.25
 *
 * Escopo deliberadamente restrito a body.single-product.
 */

/* ====================================================
   SELO OFERTA — PRODUTO PRINCIPAL
   ==================================================== */

body.single-product.woocommerce div.product .woocommerce-product-gallery .onsale,
body.single-product.woocommerce div.product .flexy-items .onsale,
body.single-product.woocommerce div.product .ct-product-gallery .onsale {
	min-width: auto !important;
	min-height: auto !important;
	margin: 0 !important;
	padding: 10px 16px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #ef3d43 !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
}

/* ====================================================
   PRODUTOS RELACIONADOS — TÍTULO/BLOCO
   ==================================================== */

body.single-product.woocommerce .related.products {
	margin-top: 32px !important;
}

body.single-product.woocommerce .related.products > h2 {
	margin: 0 0 18px !important;
	color: #111111 !important;
	font-family: inherit !important;
	font-size: 32px !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	text-transform: none !important;
}

/* ====================================================
   GRID DOS RELACIONADOS
   ==================================================== */

body.single-product.woocommerce .related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	column-gap: 16px !important;
	row-gap: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product.woocommerce .related.products ul.products::before,
body.single-product.woocommerce .related.products ul.products::after {
	display: none !important;
	content: none !important;
}

/* ====================================================
   CARD DOS RELACIONADOS
   ==================================================== */

body.single-product.woocommerce .related.products ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
	min-width: 0 !important;
	width: 100% !important;
	height: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 12px 12px 14px !important;
	position: relative !important;
	background: #ffffff !important;
	border: 1px solid #e1e1e1 !important;
	border-radius: 18px !important;
	box-shadow: none !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.single-product.woocommerce .related.products ul.products li.product:hover {
	border-color: #d7d7d7 !important;
	box-shadow: 0 8px 22px rgba(0,0,0,.045) !important;
	transform: translateY(-1px) !important;
}

body.single-product.woocommerce .related.products ul.products li.product .woocommerce-LoopProduct-link,
body.single-product.woocommerce .related.products ul.products li.product .woocommerce-loop-product__link {
	display: block !important;
	width: 100% !important;
	color: inherit !important;
	text-decoration: none !important;
}

/* ====================================================
   IMAGEM DOS RELACIONADOS
   ==================================================== */

body.single-product.woocommerce .related.products ul.products li.product .ct-image-container,
body.single-product.woocommerce .related.products ul.products li.product .ct-media-container {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 210px !important;
	min-height: 210px !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	background: transparent !important;
	overflow: hidden !important;
}

body.single-product.woocommerce .related.products ul.products li.product img {
	display: block !important;
	width: 100% !important;
	max-width: 190px !important;
	height: 210px !important;
	max-height: 210px !important;
	margin: 0 auto !important;
	object-fit: contain !important;
	object-position: center !important;
}

/* ====================================================
   SELO OFERTA — RELACIONADOS
   ==================================================== */

body.single-product.woocommerce .related.products ul.products li.product .onsale {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	z-index: 5 !important;
	min-width: auto !important;
	min-height: auto !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #ef3d43 !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
}

/* ====================================================
   TÍTULO / PREÇO / META
   ==================================================== */

body.single-product.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product.woocommerce .related.products ul.products li.product h2 {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	overflow: hidden !important;
	min-height: 52px !important;
	max-height: 52px !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	color: #282828 !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.45 !important;
	text-align: left !important;
	text-transform: none !important;
}

body.single-product.woocommerce .related.products ul.products li.product .star-rating {
	display: none !important;
}

body.single-product.woocommerce .related.products ul.products li.product .price {
	display: block !important;
	min-height: 26px !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #111111 !important;
	font-family: inherit !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: left !important;
}

body.single-product.woocommerce .related.products ul.products li.product .price .amount {
	color: #111111 !important;
	font-size: inherit !important;
	font-weight: 700 !important;
}

body.single-product.woocommerce .related.products ul.products li.product .price del {
	color: #929292 !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	opacity: 1 !important;
}

body.single-product.woocommerce .related.products ul.products li.product .price ins {
	background: transparent !important;
	color: #111111 !important;
	text-decoration: none !important;
}

body.single-product.woocommerce .related.products ul.products li.product .ct-product-categories,
body.single-product.woocommerce .related.products ul.products li.product .product-categories,
body.single-product.woocommerce .related.products ul.products li.product [class*="taxonomy"] {
	display: block !important;
	margin: 0 0 12px !important;
	color: #666666 !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.45 !important;
	text-align: left !important;
	text-transform: uppercase !important;
}

body.single-product.woocommerce .related.products ul.products li.product small,
body.single-product.woocommerce .related.products ul.products li.product [class*="installment"],
body.single-product.woocommerce .related.products ul.products li.product [class*="parcel"],
body.single-product.woocommerce .related.products ul.products li.product [class*="payment"] {
	color: #777777 !important;
	font-family: inherit !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
}

/* ====================================================
   BOTÃO DOS RELACIONADOS
   ==================================================== */

body.single-product.woocommerce .related.products ul.products li.product .button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	min-height: 44px !important;
	height: 44px !important;
	margin: auto 0 0 !important;
	padding: 0 14px !important;
	background: #19875c !important;
	border: 0 !important;
	border-radius: 9px !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center !important;
	text-transform: none !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	transition: background-color .16s ease !important;
}

body.single-product.woocommerce .related.products ul.products li.product .button:hover {
	background: #11734b !important;
	color: #ffffff !important;
}

body.single-product.woocommerce .related.products ul.products li.product .button.leo-catalog-out-of-stock,
body.single-product.woocommerce .related.products ul.products li.product span.button.leo-catalog-out-of-stock {
	background: #cccccc !important;
	color: #5f5f5f !important;
	cursor: default !important;
}

body.single-product.woocommerce .related.products ul.products li.product .button .leo-desktop-cart-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 17px !important;
	width: 17px !important;
	height: 17px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #ffffff !important;
}

body.single-product.woocommerce .related.products ul.products li.product .button .leo-desktop-cart-icon svg {
	display: block !important;
	width: 17px !important;
	height: 17px !important;
	margin: 0 !important;
	padding: 0 !important;
	fill: none !important;
	stroke: #ffffff !important;
}

body.single-product.woocommerce .related.products ul.products li.product .button .leo-desktop-add-text {
	display: inline-block !important;
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

/* ====================================================
   RESPONSIVO
   ==================================================== */

@media (max-width: 1024px) {
	body.single-product.woocommerce .related.products > h2 {
		font-size: 28px !important;
	}

	body.single-product.woocommerce .related.products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	body.single-product.woocommerce div.product .woocommerce-product-gallery .onsale,
	body.single-product.woocommerce div.product .flexy-items .onsale,
	body.single-product.woocommerce div.product .ct-product-gallery .onsale {
		padding: 9px 14px !important;
		font-size: 14px !important;
	}

	body.single-product.woocommerce .related.products {
		margin-top: 24px !important;
	}

	body.single-product.woocommerce .related.products > h2 {
		font-size: 24px !important;
		margin-bottom: 14px !important;
	}

	body.single-product.woocommerce .related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 12px !important;
		row-gap: 14px !important;
	}

	body.single-product.woocommerce .related.products ul.products li.product {
		padding: 10px 10px 12px !important;
		border-radius: 16px !important;
	}

	body.single-product.woocommerce .related.products ul.products li.product .ct-image-container,
	body.single-product.woocommerce .related.products ul.products li.product .ct-media-container {
		height: 170px !important;
		min-height: 170px !important;
		margin-bottom: 10px !important;
	}

	body.single-product.woocommerce .related.products ul.products li.product img {
		max-width: 150px !important;
		height: 170px !important;
		max-height: 170px !important;
	}

	body.single-product.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
	body.single-product.woocommerce .related.products ul.products li.product h2 {
		min-height: 46px !important;
		max-height: 46px !important;
		font-size: 13px !important;
	}

	body.single-product.woocommerce .related.products ul.products li.product .price {
		font-size: 16px !important;
	}

	body.single-product.woocommerce .related.products ul.products li.product .onsale {
		padding: 7px 10px !important;
		font-size: 12px !important;
	}

	body.single-product.woocommerce .related.products ul.products li.product .button {
		min-height: 42px !important;
		height: 42px !important;
		font-size: 13px !important;
	}
}
