/**
 * Preço: azul + peso (WooCommerce .woocommerce-Price-amount / .amount).
 * Depende de fisio-etheme-grid-categories — carrega depois do Elementor.
 */
body.woocommerce .etheme-product-grid .etheme-product-grid-item .price .woocommerce-Price-amount,
body.woocommerce .etheme-product-grid .etheme-product-grid-item .price .woocommerce-Price-amount.amount,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-item .price .woocommerce-Price-amount,
.elementor-widget-etheme_product_grid .woocommerce .etheme-product-grid .price .woocommerce-Price-amount,
.etheme-product-grid .price .woocommerce-Price-amount,
.etheme-product-grid-item .price .woocommerce-Price-amount,
.elementor-widget-etheme_product_carousel .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.single-product .summary .price .woocommerce-Price-amount {
	color: #2d8eb8 !important;
	font-weight: 600 !important;
}

body.woocommerce .etheme-product-grid .etheme-product-grid-item .price del .woocommerce-Price-amount,
.elementor-widget-etheme_product_grid .etheme-product-grid .price del .woocommerce-Price-amount,
.etheme-product-grid .price del .woocommerce-Price-amount,
.etheme-product-grid-item .price del .woocommerce-Price-amount,
.elementor-widget-etheme_product_carousel .price del .woocommerce-Price-amount,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
.single-product .summary .price del .woocommerce-Price-amount {
	color: #9ca3af !important;
	font-weight: 400 !important;
}

/* -----------------------------------------------------------------
   Categoria + título + preço: fluxo em coluna, sem margens negativas (evitam preço por cima do título a 2 linhas).
   ----------------------------------------------------------------- */
body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content .etheme-product-grid-categories,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-categories,
.elementor-widget-etheme_product_grid .woocommerce .etheme-product-grid .etheme-product-grid-categories,
.elementor-widget-etheme_product_carousel .etheme-product-grid-content .etheme-product-grid-categories {
	margin-bottom: 0 !important;
}

body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content h2.etheme-product-grid-title,
body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content h2.woocommerce-loop-product__title,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content h2.etheme-product-grid-title,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content h2.woocommerce-loop-product__title {
	margin-block: 0 !important;
	padding-block: 0 !important;
	line-height: 1.25 !important;
	margin-bottom: 0 !important;
}

.elementor-widget-etheme_product_carousel .etheme-product-grid-item .etheme-product-grid-content h2.etheme-product-grid-title,
.elementor-widget-etheme_product_carousel .etheme-product-grid-item .etheme-product-grid-content h2.woocommerce-loop-product__title {
	margin-block: 0 !important;
	padding-block: 0 !important;
	line-height: 1.25 !important;
	margin-bottom: 0 !important;
}

body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content .price,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content .price,
.etheme-product-grid .etheme-product-grid-content .price,
.etheme-product-grid-item .etheme-product-grid-content .price,
.elementor-widget-etheme_product_carousel .etheme-product-grid-content .price {
	margin-block: 0 !important;
	margin-top: 0.2rem !important;
	padding-block: 0 !important;
	line-height: 1.3 !important;
}

/* Ecrãs estreitos: folga explícita título → preço (wrap frequente) */
@media (max-width: 767px) {
	body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content h2.etheme-product-grid-title,
	body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content h2.woocommerce-loop-product__title,
	.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content h2.etheme-product-grid-title,
	.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content h2.woocommerce-loop-product__title,
	.elementor-widget-etheme_product_carousel .etheme-product-grid-item .etheme-product-grid-content h2.etheme-product-grid-title,
	.elementor-widget-etheme_product_carousel .etheme-product-grid-item .etheme-product-grid-content h2.woocommerce-loop-product__title {
		line-height: 1.3 !important;
	}

	body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content .price,
	.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content .price,
	.etheme-product-grid .etheme-product-grid-content .price,
	.etheme-product-grid-item .etheme-product-grid-content .price,
	.elementor-widget-etheme_product_carousel .etheme-product-grid-content .price {
		margin-top: 0.35rem !important;
	}
}

/*
 * CTA na base do cartão (mesma linha em toda a grelha). Sem isto, cartões sem .price
 * ficam com o botão mais baixo que os que têm preço.
 */
body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content .product-footer,
body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content .yith-ywraq-add-to-quote,
body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content > a.add_to_cart_button,
body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content > a.button,
body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content > .ajax_add_to_cart,
body.woocommerce .etheme-product-grid .etheme-product-grid-item .etheme-product-grid-content > .etheme-product-grid-button,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content .product-footer,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content .yith-ywraq-add-to-quote,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content > a.add_to_cart_button,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content > a.button,
.elementor-widget-etheme_product_grid .etheme-product-grid .etheme-product-grid-content > .ajax_add_to_cart,
.elementor-widget-etheme_product_carousel .etheme-product-grid-content .product-footer,
.elementor-widget-etheme_product_carousel .etheme-product-grid-content .yith-ywraq-add-to-quote,
.elementor-widget-etheme_product_carousel .etheme-product-grid-content > a.add_to_cart_button,
.elementor-widget-etheme_product_carousel .etheme-product-grid-content > a.button,
.elementor-widget-etheme_product_carousel .etheme-product-grid-content > .ajax_add_to_cart {
	margin-top: auto !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	width: 100%;
	box-sizing: border-box;
}

/* Reserva ~1 linha de preço quando não existe .price (alinha com cartões que mostram valor) */
.etheme-product-grid .etheme-product-grid-item:not(:has(.price)) .etheme-product-grid-content::after,
.etheme-product-grid-item:not(:has(.price)) .etheme-product-grid-content::after,
.elementor-widget-etheme_product_carousel .etheme-product-grid-item:not(:has(.price)) .etheme-product-grid-content::after {
	content: "" !important;
	display: block !important;
	flex: 0 0 auto !important;
	min-height: 1.4em !important;
	margin: 0 !important;
	padding: 0 !important;
	order: 98 !important;
}
