/* Taxonomy labels below a product card are presentation only. */
.products .product :is(.posted_in, .tagged_as, .product-categories, .product-tags),
.products .product .product-details a[rel~="tag"] { display: none !important; }

/* The grid stretches each card's details to the tallest title in its row. */
ul.products.product-grid > li.product > .product-details > .price {
    align-self: stretch;
    margin: auto 0 0;
    padding-top: 6px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
}
ul.products.product-grid .product-details > .price :is(.pro_price_extra_info, .amount, .woocommerce-Price-currencySymbol, bdi, del, ins) {
    font-size: inherit !important;
    line-height: inherit;
}

.products .product:is(.outofstock, .product_cat-sold-items) .price,
.products .product:is(.outofstock, .product_cat-sold-items) .badge-wrap > :not(.out-of-stock-badge) {
    display: none !important;
}

/* WooCommerce's theme draws the stock badge itself. A piece explicitly marked
   sold by the gallery can still have an in-stock record in older inventory. */
.products .product.product_cat-sold-items:not(.outofstock) figure.animated-overlay:not(:has(.out-of-stock-badge))::after {
    content: "Sold"; position: absolute; top: 10px; right: 10px; z-index: 3;
    box-sizing: border-box; padding: 0 8px 0 12px; color: #fff; background: #777;
    font: bold 10px/26px Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase;
    clip-path: polygon(8px 0,100% 0,100% 100%,8px 100%,0 50%); pointer-events: none;
}
