/* WooCommerce cards, product details, and purchase surfaces. */
.wc-block-product-template {
	padding: 0;
	list-style: none;
	gap: 24px;
}

.wc-block-product-template > li {
	min-width: 0;
}

.wc-block-product-template .wc-block-product {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: white;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wc-block-product:hover {
	border-color: #bdc9e7;
	box-shadow: 0 12px 32px #13233b0a;
}

.wc-block-product .wc-block-components-product-image {
	overflow: hidden;
	margin: 0 0 16px;
	border-radius: 10px;
	background: var(--wp--preset--color--mist);
}

.wc-block-product img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.wc-block-product h2,
.wc-block-product h3 {
	margin: 0 4px 10px;
	font-size: 1rem;
	line-height: 1.4;
	letter-spacing: -0.015em;
}

.wc-block-product .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.wc-block-product .wp-block-post-title a:hover {
	color: var(--wp--preset--color--teal);
}

.wc-block-product .wc-block-components-product-price {
	margin: 0 4px 10px;
	font-size: 1.05rem;
	font-weight: 650;
}

.wc-block-product .wc-block-components-product-stock-indicator {
	margin: 0 4px 12px;
	color: #276749;
	font-size: 0.75rem;
}

.wc-block-product .wc-block-components-product-stock-indicator--out-of-stock {
	color: #8b3441;
}

.wc-block-product .wp-block-woocommerce-product-button {
	width: 100%;
	align-self: stretch;
	margin-bottom: 0;
	margin-top: auto;
	padding-top: 6px;
}

.wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	width: 100%;
	justify-content: center;
	text-align: center;
}

.wp-block-query-pagination {
	gap: 12px;
	margin-block: 32px;
}

.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 44px;
	border-radius: 8px;
	text-decoration: none;
}

.wp-block-query-pagination .current {
	background: var(--wp--preset--color--teal);
	color: white;
}

.vb-product-layout {
	gap: clamp(24px, 5vw, 72px);
	margin-block: 28px 64px;
}

.wp-block-woocommerce-product-image-gallery img {
	border-radius: 16px;
	background: var(--wp--preset--color--mist);
}

.vb-product-summary h1 {
	font-size: clamp(1.9rem, 4vw, 3rem);
}

.vb-product-summary .wp-block-post-excerpt {
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
}

.vb-post-card {
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
}

.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-page-content-wrapper {
	max-width: 100%;
}

/* Native checkout can render a submit action beside its no-payment error.
 * Remove that unavailable action from both the visual and accessibility trees.
 * The action returns automatically when WooCommerce removes the error notice. */
.wc-block-checkout:has(.wc-block-checkout__no-payment-methods-notice) .wc-block-components-checkout-place-order-button {
	display: none;
}
