/*
 * Stand-in: WooCommerce product title on the H2 role, prices on the meta (secondary) role.
 * See anima-woocommerce-title-price-roles.php for the issue. Tokens only; selectors are WooCommerce's / Anima's own.
 */

/* Single product (Anima classic layout): the product title takes the H2 role (primary family) instead of H3, so it is
   never smaller than the H2s of the description; H2, not H1, because the summary column is narrow (~264 px at 1440). */
.c-product-main .product_title[class] {
	--font-size: var(--theme-heading-2-font-size);
	--current-font-family: var(--theme-heading-2-font-family);
	--current-font-weight: var(--theme-heading-2-font-weight);
	--current-font-style: var(--theme-heading-2-font-style);
	--current-line-height: var(--theme-heading-2-line-height);
	--current-letter-spacing: var(--theme-heading-2-letter-spacing);
	--current-text-transform: var(--theme-heading-2-text-transform);
}

/* Prices: single product, related/grid lists, product collections, cart, checkout summary, mini cart.
   Meta role (secondary family) at the meta size, one step heavier than meta for the figure (a real face of a variable
   or multi-weight family; with no heavier face it renders at the meta weight, see anima-font-synthesis). */
:is(
	.c-product-main .price,
	.woocommerce .product .price,
	.wc-block-grid__product-price,
	.wc-block-components-product-price,
	.wc-block-cart-item__prices,
	.wc-block-cart-item__total,
	.wc-block-components-order-summary-item__individual-prices,
	.wc-block-components-order-summary-item__total-price,
	.wc-block-components-totals-item__value,
	.woocommerce-cart-form .product-price,
	.woocommerce-cart-form .product-subtotal,
	.cart_totals .amount,
	.woocommerce-mini-cart .quantity,
	.woocommerce-mini-cart__total .amount
)[class],
:is(
	.c-product-main .price,
	.woocommerce .product .price,
	.wc-block-grid,
	.wc-block-components-product-price,
	.wc-block-cart-item__prices,
	.wc-block-cart-item__total,
	.wc-block-components-totals-item__value,
	.woocommerce-mini-cart
) :is(.woocommerce-Price-amount, .wc-block-formatted-money-amount)[class] {
	--font-size: var(--theme-meta-font-size);
	--font-size-modifier: 1;
	--current-font-family: var(--theme-meta-font-family);
	--current-font-weight: min(900, calc(var(--theme-meta-font-weight) + 200));
	--current-font-style: var(--theme-meta-font-style);
	--current-line-height: var(--theme-meta-line-height);
	--current-letter-spacing: var(--theme-meta-letter-spacing);
	--current-text-transform: var(--theme-meta-text-transform);
}
