/* Kestra — WooCommerce block overrides.
   Enqueued only when WooCommerce is active (see kestra_woo_assets in functions.php). */

.woocommerce-product-gallery,
.wc-block-cart,
.wc-block-checkout {
	container-type: inline-size;
}

.wc-block-cart__submit-container,
.wc-block-components-quantity-selector input {
	min-height: 44px;
}

.wc-block-components-product-price,
.woocommerce-Price-amount {
	font-weight: 600;
}

.wp-block-post-template .wc-block-components-product-price {
	margin-block-start: var(--wp--preset--spacing--10);
}

/* Product cards: equalise height so a long title in one card doesn't leave a
   ragged gap before the next grid row, and keep the add-to-cart button aligned
   along the bottom of every card regardless of title or price length. */
.wp-block-post-template.is-layout-grid > li {
	display: flex;
	flex-direction: column;
}

.wp-block-post-template.is-layout-grid > li > .wp-block-post-title {
	flex-grow: 1;
}

.wp-block-post-template.is-layout-grid > li > .wp-block-button,
.wp-block-post-template.is-layout-grid > li > .wc-block-components-product-button {
	margin-block-start: auto;
}

@media (max-width: 47.99em) {
	.wp-block-woocommerce-checkout {
		grid-template-columns: 1fr !important;
	}
}
