/*
 * Shop, category and search listings, and product cards.
 *
 * Loaded on every front-end page, because shortcodes can print product
 * cards anywhere. WooCommerce's stock templates
 * print the markup; the hook map is in inc/woocommerce/shop.php.
 *
 * The cards themselves are still styled by style.css (.woocommerce
 * ul.products li.product ...). This file only covers what the stock markup
 * changed.
 */

/* Listing title. The stock template has no theme classes on it. */
.uwd-shop .woocommerce-products-header__title {
	color: #1974bb;
	font-weight: 700;
}

/* One line of space between the title block and the result count, where
   the old template had a line break. Padding, so it adds to the title's own
   bottom margin instead of collapsing into it. */
.uwd-shop .woocommerce-products-header {
	padding-bottom: 1.8em;
}

/* The stock price is a span, not a paragraph, so it misses the 20px line
   height that style.css gives paragraphs inside a card. */
.woocommerce ul.products li.product .price-price .price {
	line-height: 20px;
}

/* On phones the price box sits in the flow above the button (from 480px it
   is pinned to the bottom of the card). Keep the gap the old markup had. */
@media (max-width: 479px) {
	.woocommerce ul.products li.product .price-box {
		margin-bottom: 11px;
	}
}

/* Parts-for page: keep each part's price level with the buttons beside it.
   The old markup got this gap from a stray empty paragraph above the price. */
.parts-for-page .parts-finder-product .single-product-price {
	margin-top: 11px;
}

/* "New" ribbon over the corner of a card. */
.woocommerce ul.products li.product .uwd-card__ribbon {
	position: absolute;
	top: -11px;
	left: -11px;
}
