/* T3 product cards. Classic loop + Elementor product widgets (ul.products li.product) and the block grid. */
body.eikst-cards ul.products li.product,
body.eikst-cards .wc-block-grid__product,
body.eikst-cards .wc-block-product {
	display: flex;
	flex-direction: column;
	position: relative;
}

body.eikst-cards ul.products li.product > a.woocommerce-LoopProduct-link,
body.eikst-cards ul.products li.product > a.woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
}

body.eikst-cards ul.products li.product a img,
body.eikst-cards .wc-block-grid__product-image img,
body.eikst-cards .wc-block-components-product-image img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--eikst-card-img-bg, #fff);
}

body.eikst-cards ul.products li.product .woocommerce-loop-product__title,
body.eikst-cards .wc-block-grid__product-title,
body.eikst-cards .wc-block-product .wp-block-post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--eikst-card-title-lines, 2);
	line-clamp: var(--eikst-card-title-lines, 2);
	overflow: hidden;
	line-height: 1.35;
	min-block-size: calc(1.35em * var(--eikst-card-title-lines, 2));
	overflow-wrap: anywhere;
}

body.eikst-cards ul.products li.product .price,
body.eikst-cards .wc-block-grid__product-price,
body.eikst-cards .wc-block-product .wc-block-components-product-price {
	display: block;
	line-height: 1.3;
	min-block-size: calc(1.3em * 2);
	font-family: var(--eikst-price-font, inherit);
	font-weight: var(--eikst-price-weight-big, 700);
}

body.eikst-cards ul.products li.product .price del,
body.eikst-cards .wc-block-grid__product-price del {
	font-weight: 400;
}

/* Footer: the add-to-cart button (or the quick-buy block) sits at the bottom of the card. */
body.eikst-cards ul.products li.product > .button,
body.eikst-cards ul.products li.product > .eikst-qb,
body.eikst-cards .wc-block-grid__product-add-to-cart,
body.eikst-cards .wc-block-product .wp-block-button,
body.eikst-cards .wc-block-product .wc-block-components-product-button {
	margin-block-start: auto;
}
