/*
 * Material Figma loop card — title clamp + price stack (Figma 5778:2, 5540:30, 5056:12, 5628:21).
 * Loads after figma-material-loop-card.css; do not duplicate in archive-loop-pricing.css.
 */

/* Figma card — title rhythm (5540:30; 5394:325); single h2.woocommerce-loop-product__title */
@media screen and (min-width: 1000px) {
	body:not(.single-product) li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body h2.woocommerce-loop-product__title,
	body:not(.single-product) li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body h2.woocommerce-loop-product__title a,
	body:not(.single-product).woocommerce li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body h2.woocommerce-loop-product__title,
	body:not(.single-product).woocommerce li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body h2.woocommerce-loop-product__title a {
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		line-clamp: 2 !important;
		white-space: normal !important;
		word-break: break-word;
		line-height: 1.3 !important;
		min-height: 2.6em !important;
		max-height: 2.6em !important;
		margin: 0 !important;
		padding: 0 !important;
		height: auto !important;
		overflow-wrap: anywhere;
	}
}

@media screen and (max-width: 999px) {
	body:not(.single-product) li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body h2.woocommerce-loop-product__title,
	body:not(.single-product) li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body h2.woocommerce-loop-product__title a,
	body:not(.single-product).woocommerce li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body h2.woocommerce-loop-product__title,
	body:not(.single-product).woocommerce li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body h2.woocommerce-loop-product__title a {
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		line-clamp: 2 !important;
		white-space: normal !important;
		word-break: break-word;
		line-height: 1.3 !important;
		min-height: 2.6em !important;
		max-height: 2.6em !important;
		margin: 0 !important;
		padding: 0 !important;
		height: auto !important;
		overflow-wrap: anywhere;
		font-size: clamp(12px, 2.9vw + 0.35rem, 15px) !important;
	}
}

body:not(.single-product) .woocommerce .material.product .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta .price,
body:not(.single-product).woocommerce .material.product .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta .price {
	margin-top: 0 !important;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price:not(:has(del)) ins bdi,
body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price:not(:has(del)) ins {
	color: #d41c00 !important;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price del bdi {
	color: rgba(0, 0, 0, 0.55) !important;
}

/* Figma — centered price + currency (5056:12); DKK matches Figma red */
body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	row-gap: 2px;
	margin: 2px 0 4px;
	text-align: center;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price > * {
	width: 100%;
	text-align: center;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price bdi {
	font-family: "Lora", serif !important;
	font-weight: 600 !important;
	font-size: 27.54px !important;
	line-height: 1 !important;
	color: #d41c00 !important;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price bdi .woocommerce-Price-currencySymbol {
	font-size: 12.47px !important;
	font-weight: 600 !important;
	color: #d41c00 !important;
	line-height: 1;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi .woocommerce-Price-currencySymbol {
	font-size: 12.47px !important;
	font-weight: 600 !important;
	color: #d41c00 !important;
	line-height: 1;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price del {
	order: 0;
	opacity: 0.55;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price del bdi {
	font-size: 16px !important;
	font-weight: 400 !important;
	color: rgba(0, 0, 0, 0.7) !important;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins {
	order: 1;
	text-decoration: none;
	display: inline-flex;
	justify-content: center;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi {
	font-size: 27.54px !important;
	font-weight: 600 !important;
	color: #d41c00 !important;
}

/* Shrink-wrap numeric amount so box height matches glyphs (flex row + meta column). */
body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins .woocommerce-Price-amount,
body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins span.amount {
	display: inline !important;
	line-height: 1 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: baseline;
	box-sizing: border-box;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta span.price:has(del):not(:has(.qdp-qty-note)) ins bdi {
	color: #d41c00 !important;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta span.price:has(del):not(:has(.qdp-qty-note)) ins bdi .woocommerce-Price-currencySymbol {
	color: #d41c00 !important;
	font-size: 12.47px !important;
	font-weight: 600 !important;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta span.price .screen-reader-text {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	word-wrap: normal !important;
	white-space: nowrap !important;
}

@media (max-width: 999px) {
	/* Figma 5394:554 — price row (amount + meta), fluid type */
	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		align-items: flex-end !important;
		align-content: center !important;
		column-gap: 0.35rem !important;
		row-gap: 0.25rem !important;
	}

	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price > * {
		width: auto !important;
		max-width: 100%;
	}

	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price del {
		flex: 1 0 100%;
		text-align: center;
	}

	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price bdi,
	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi {
		font-size: clamp(14px, 3.2vw + 0.35rem, 18px) !important;
	}

	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price bdi .woocommerce-Price-currencySymbol,
	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi .woocommerce-Price-currencySymbol {
		font-size: clamp(9px, 1.8vw + 0.2rem, 11.5px) !important;
	}

	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta .price del bdi {
		font-size: clamp(12px, 2.2vw + 0.25rem, 14px) !important;
	}

	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins bdi {
		font-size: clamp(14px, 3.2vw + 0.35rem, 18px) !important;
	}

	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) .qdp-qty-note {
		font-size: clamp(9px, 1.7vw + 0.2rem, 11.5px);
	}

	body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ._rasch_bmsm_meta_col .woocommerce-Price-currencySymbol {
		font-size: clamp(8.5px, 1.65vw + 0.15rem, 11.15px) !important;
		padding-inline-start: 0;
	}
}

/* BMSM / QDP (5628:21, 5631:27) */
body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta:has(.price .qdp-qty-note) {
	align-items: center;
	flex: 1 1 auto;
	min-height: 0;
	justify-content: flex-start;
}

body:not(.single-product) li.product.material ._rasch_product_figma_card ._rasch_card_body.product-meta:has(.price .qdp-qty-note) > span.price {
	margin-top: auto;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note),
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) {
	flex-direction: row !important;
	flex-wrap: wrap;
	justify-content: center !important;
	align-items: flex-end !important;
	align-self: center !important;
	width: 100%;
	max-width: 100%;
	text-align: center;
	column-gap: 8px;
	row-gap: 4px;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) > *,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) > * {
	width: auto;
	max-width: 100%;
	text-align: center;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) del,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) del {
	display: none !important;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins {
	display: inline-flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	align-self: flex-end;
	text-align: center;
	column-gap: 6px;
	row-gap: 2px;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins > .woocommerce-Price-amount,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins > .woocommerce-Price-amount,
body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins > span.amount,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins > span.amount {
	flex: 0 0 auto;
	align-self: flex-start;
	line-height: 1 !important;
	height: auto !important;
	min-height: 0 !important;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins bdi,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ins bdi {
	color: #d41c00 !important;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ._rasch_bmsm_meta_col,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ._rasch_bmsm_meta_col {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	row-gap: 2px;
	flex: 0 0 auto;
	text-align: left;
	min-width: 0;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ._rasch_bmsm_meta_col .woocommerce-Price-currencySymbol,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ._rasch_bmsm_meta_col .woocommerce-Price-currencySymbol {
	font-family: "Lora", serif;
	font-size: clamp(8.5px, 1.65vw + 0.15rem, 12.47px);
	font-weight: 600;
	color: #d41c00 !important;
	line-height: 1;
	display: block;
	text-align: left;
	width: 100%;
	padding-inline-start: 0;
	margin-left: 7px;
	box-sizing: border-box;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ._rasch_bmsm_meta_col .qdp-qty-note,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) ._rasch_bmsm_meta_col .qdp-qty-note {
	display: block;
	text-align: left;
	width: 100%;
}

body:not(.single-product) .woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) .qdp-qty-note,
body:not(.single-product).woocommerce ul.products li.product.material .product-wrap ._rasch_product_figma_card ._rasch_card_body.product-meta > span.price:has(.qdp-qty-note) .qdp-qty-note {
	font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(9px, 1.75vw + 0.2rem, 12.94px);
	font-weight: 600;
	font-style: normal;
	color: #000;
	line-height: 1.2;
	white-space: nowrap;
	text-align: left;
}

li.product.material ._rasch_card_footer_cart.product-add-to-cart .price,
li.product.material ._rasch_card_footer_cart.product-add-to-cart a > span.price {
	display: none !important;
}

body .woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price del,
body.woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price del {
	display: none !important;
}

body .woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi,
body.woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi {
	color: #d41c00 !important;
	font-size: 27.54px !important;
}

body .woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi .woocommerce-Price-currencySymbol,
body.woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi .woocommerce-Price-currencySymbol {
	color: #d41c00 !important;
	font-size: 12.47px !important;
	font-weight: 600 !important;
}

@media (max-width: 999px) {
	body .woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi,
	body.woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi {
		font-size: clamp(14px, 3.2vw + 0.35rem, 18px) !important;
	}

	body .woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi .woocommerce-Price-currencySymbol,
	body.woocommerce li.product.material.sale ._rasch_product_figma_card ._rasch_card_body.product-meta .price ins bdi .woocommerce-Price-currencySymbol {
		font-size: clamp(9px, 1.8vw + 0.2rem, 11.5px) !important;
	}
}
