/*
Theme Name: Woo Precious Metals
Theme URI:
Author: Matt Paladino
Author URI:
Description: Child theme of Twenty Twenty-Five for Woo Precious Metals.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: woo-precious-metals
Tags: woocommerce, precious-metals
*/

/* Hide the page title on the front page and remove the gap it leaves */
.home .wp-block-post-title,
.home .wp-block-template-part .wp-block-post-title {
	display: none;
}

.home main.wp-block-group {
	margin-top: 0 !important;
}

.home main > .wp-block-group.alignfull {
	padding-top: 0 !important;
}

/* ── Featured Products: card layout ── */

/* Make each product card a flex column so the button always sits at the bottom */
.woocommerce ul.products li.product,
.wc-block-grid__product {
	display: flex !important;
	flex-direction: column !important;
}

/* Push price + button to the bottom */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.wc-block-grid__product-price,
.wc-block-grid__product-add-to-cart {
	margin-top: auto;
}

/* Smaller, fixed-height product title so price & button align across all cards */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
	font-size: 0.85rem !important;
	line-height: 1.35 !important;
	height: 69px;
	overflow: hidden;
	margin-bottom: 0;
}

/* Rounded, compact Add to Cart button */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button,
.wc-block-grid__product .wc-block-grid__product-add-to-cart a {
	border-radius: 6px !important;
	padding: 10px 16px !important;
	font-size: 0.8rem !important;
	letter-spacing: 0.03em;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}
