/**
 * AminH Price Range — the price line of a product card.
 *
 * Only two things, both about where the price sits and how the currency word is
 * sized. No number is formatted here, and no colour or weight is overridden.
 */

/*
 * 1) The blank band above the price.
 *
 * Woodmart stretches every card of a carousel to the height of the tallest slide
 * (`.wd-products[class*="wd-stretch-cont"] .wd-product { height: 100% }`) and then
 * pins the price block to the bottom of the card with `margin-top: auto`, so the
 * whole height difference piles up as empty space between the title and the price.
 *
 * On this shop one card per carousel keeps its add-to-cart button visible — 36px
 * of button plus the 12px card gap — which pushed the price of every *other* card
 * 48px down. Measured on the live homepage: the title-to-price distance was 12px
 * on that one card and 48.4px on its neighbours.
 *
 * Product titles are clamped to a single line here (`title-line-one` on the
 * products wrapper), so the price does not need the auto margin to stay level with
 * its neighbours: with the margin dropped, all 23 cards of the homepage sit at
 * exactly 12px and the leftover height goes to the bottom of the card, where the
 * (hidden) add-to-cart row already lives.
 *
 * One class more specific than the theme's own rule, so stylesheet load order —
 * which LiteSpeed's CSS combining is free to change — cannot decide the outcome.
 */
.wd-loop-builder-off[class*="wd-stretch-cont"] .wd-product .product-element-bottom :is( .price, .wrap-price, .product-rating-price ) {
	margin-top: 0;
}

/*
 * 2) «تومان» is a unit, not part of the number, so it is set smaller than the
 * digits it follows. `em`, so it keeps following whatever size the theme gives the
 * price on each breakpoint, and on every card price — not only the ranges this
 * plugin rewrites — otherwise a simple product's card would shout its currency
 * next to a variable product's.
 */
.wd-product .price .woocommerce-Price-currencySymbol {
	font-size: 0.75em;
}
