/*
 * Material shop loop — Figma card shell (5778:2, 5540:30, 4985:294, 5596:12, 5609:17).
 * Loaded after archive pricing + single pricing so layout/footer rules beat Salient.
 * On this site every material loop item uses rasch_custom_product_thumbnail_material (li.product.material).
 * Pricing/title overrides: figma-material-loop-card-pricing.css
 */

body:not(.single-product) li.product {
	position: relative;
	overflow: visible;
}

/* Salient uses flex-wrap on ul.products[data-product-style="material"]; keep row cross-size explicit. */
body:not(.single-product) .woocommerce ul.products[data-product-style="material"],
body:not(.single-product).woocommerce ul.products[data-product-style="material"] {
	align-items: stretch;
	align-content: flex-start;
}

body:not(.single-product) .woocommerce ul.products[data-product-style="material"] > li.product.material,
body:not(.single-product).woocommerce ul.products[data-product-style="material"] > li.product.material {
	align-self: stretch;
}

/* Salient material `li` is flex row (onsale + wrap). Stack so the wrap can stretch to row height. */
body:not(.single-product) li.product.material {
	flex-direction: column;
	align-items: stretch;
	min-height: 0;
}

body:not(.single-product) li.product.material .product-wrap._custom-material-wrap {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-height: 0;
	height: 100%;
	width: 100%;
}

/* Card shell — Figma 4985:294: top/side inset 20px; footer bleeds full width (no bottom shell padding). */
body:not(.single-product) li.product .product-wrap._custom-material-wrap ._rasch_product_figma_card {
	--rasch_figma_card_pad_h: 20px;
	--rasch_figma_border: 2px solid rgba(213, 99, 38, 0.24);
	--rasch_figma_radius: 10px;
	--rasch_figma_shadow: 0 0 5px 0 rgba(255, 105, 38, 0.4);
	--rasch_figma_hero_min_h: 11.5rem;
	--rasch_figma_hero_pad_above: 0.75rem;
	--rasch_figma_hero_pad_below: 1.25rem;
	--rasch_figma_hero_img_vh_cap: 52vh;
	--rasch_figma_footer_min_h: 71px;
	background: #fff;
	border-radius: var(--rasch_figma_radius, 10px);
	border: var(--rasch_figma_border, 2px solid rgba(213, 99, 38, 0.24));
	box-shadow: var(--rasch_figma_shadow, 0 0 5px 0 rgba(255, 105, 38, 0.4));
	padding: 20px var(--rasch_figma_card_pad_h) 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

@media screen and (min-width: 1000px) {
	body:not(.single-product) li.product .product-wrap._custom-material-wrap ._rasch_product_figma_card {
		--rasch_figma_hero_min_h: 12.75rem;
	}
}

/* Udvalgte: Salient `.material.product .product-wrap { overflow: hidden }` clips glow; allow overflow
   on this wrap for featured figma cards only so outer glow is not clipped by Salient. */
body:not(.single-product) .woocommerce li.product.material.featured .product-wrap._custom-material-wrap,
body:not(.single-product).woocommerce li.product.material.featured .product-wrap._custom-material-wrap {
	overflow: visible;
}

/* Top row: image + optional taste column — min-height prevents flex collapse (Salient nectar-lazy sizing). */
body:not(.single-product) li.product ._rasch_card_top {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	gap: 10px;
	flex: 1 1 auto;
	min-height: var(--rasch_figma_hero_min_h, 11.5rem);
	padding-top: var(--rasch_figma_hero_pad_above, 0.75rem);
	padding-bottom: var(--rasch_figma_hero_pad_below, 1.25rem);
	box-sizing: border-box;
}

body:not(.single-product) li.product ._rasch_card_top_has_taste ._rasch_card_taste._custom-taste-hover {
	align-self: flex-end;
}

/* Sale badge sits top-right; clearance on icon stack only so the taste column stays bottom-aligned. */
body:not(.single-product) li.product ._rasch_product_figma_card:has(._rasch_sale_badge) ._rasch_card_top_has_taste ._rasch_card_taste._custom-taste-hover {
	align-self: flex-end;
	padding-top: 6px;
	padding-bottom: 6px;
}

body:not(.single-product) li.product ._rasch_card_top ._custom-image-area {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-self: stretch;
	flex: 1 1 auto;
	min-width: 0;
	min-height: var(--rasch_figma_hero_min_h, 11.5rem);
}

body:not(.single-product) li.product ._rasch_card_top:not(._rasch_card_top_has_taste) ._custom-image-area {
	flex: 1 1 100%;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._custom-image-area {
	align-items: stretch;
}

/*
 * Fill the stretched hero cell: in-flow flex on <a> stayed content-height; absolute inset
 * matches the flex item’s used height (all viewports — 2-col desktop was skipping max-width:999 rules).
 */
body:not(.single-product) li.product ._rasch_card_top ._custom-image-area a {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	min-height: 0;
	box-sizing: border-box;
}

body:not(.single-product) li.product ._custom-image-area a img {
	transition: transform 0.25s ease, opacity 0.35s ease;
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: min(100%, var(--rasch_figma_hero_img_vh_cap, 52vh));
	object-fit: contain;
	margin: 0 auto;
}

/* Salient loop rule sets product-wrap img { width: 100% }; scale up to full <a> (vh cap was shorter than the stretched cell). */
body:not(.single-product) li.product.material .product-wrap._custom-material-wrap ._custom-image-area a img {
	width: auto !important;
	max-width: 100%;
	max-height: 100% !important;
}

/*
 * Site-wide Custom CSS & JS (frontend slug like 94825.css) used `height: 150px !important` on
 * `li.product ._custom-image-area` under 768px, which caps the hero and breaks stretch + absolute <a> fill.
 * This selector beats that rule; remove the snippet in WP admin when convenient to avoid redundant CSS.
 */
@media screen and (max-width: 768px) {
	body:not(.single-product) li.product.material .product-wrap._custom-material-wrap ._rasch_card_top ._custom-image-area,
	body:not(.single-product).woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_card_top ._custom-image-area {
		height: auto !important;
	}
}

/* Taste column — always visible on loop */
body:not(.single-product) li.product ._rasch_card_taste._custom-taste-hover {
	position: relative;
	flex: 0 0 auto;
	width: max-content;
	max-width: 132px;
	opacity: 1;
	visibility: visible;
	transform: none;
	z-index: 2;
	padding: 6px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: visible;
	background: none;
}

/* Reserve the taste column width when the product has no taste/icons (bundles, etc.). */
body:not(.single-product) li.product ._rasch_card_taste._custom-taste-hover._rasch_card_taste_empty {
	flex: 0 0 132px;
	width: 132px;
	min-width: 132px;
	max-width: 132px;
	box-sizing: border-box;
	pointer-events: none;
}

@media (max-width: 999px) {
	body:not(.single-product) li.product ._rasch_card_taste._custom-taste-hover._rasch_card_taste_empty {
		display: none !important;
	}

	/* Figma 5394:554 — tighter shell, row hero (bottle | taste) */
	body:not(.single-product) li.product .product-wrap._custom-material-wrap ._rasch_product_figma_card {
		--rasch_figma_radius: 5px;
		--rasch_figma_border: 1px solid rgba(213, 99, 38, 0.24);
		--rasch_figma_shadow: 0 0 3px 0 rgba(255, 105, 38, 0.35);
		--rasch_figma_card_pad_h: clamp(10px, 3.2vw, 14px);
		--rasch_figma_hero_min_h: 8.75rem;
		--rasch_figma_hero_pad_above: 8px;
		--rasch_figma_hero_pad_below: 10px;
		--rasch_figma_footer_min_h: 64px;
		--rasch_figma_hero_img_vh_cap: 38vh;
		padding: clamp(10px, 3vw, 14px) var(--rasch_figma_card_pad_h) 0;
	}

	body:not(.single-product) li.product ._rasch_card_top {
		flex-direction: row;
		align-items: stretch;
		justify-content: space-between;
		gap: 6px;
	}

	body:not(.single-product) li.product ._rasch_card_top_has_taste ._rasch_card_taste._custom-taste-hover {
		flex: 0 1 auto;
		width: max-content;
		min-width: 0;
		max-width: min(118px, 32%);
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		align-self: stretch;
		padding: 4px 0;
	}

	body:not(.single-product) li.product ._rasch_product_figma_card:has(._rasch_sale_badge) ._rasch_card_top_has_taste ._rasch_card_taste._custom-taste-hover {
		padding-top: 4px;
		padding-bottom: 4px;
	}

	body:not(.single-product) li.product ._rasch_card_top_has_taste ._custom-taste-hover .smakklockor.cf {
		flex-direction: column;
		flex-wrap: nowrap;
		justify-content: flex-end;
		align-items: center;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes {
		gap: 6px;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka {
		gap: 6px;
	}

	body:not(.single-product) li.product.material ._has_custom-taste-hover ._rasch_product_figma_card:has(._rasch_sale_badge) ._rasch_card_top_has_taste ._rasch_card_taste._custom-taste-hover .smakklockor.cf {
		padding-top: 1.75rem;
	}

	body:not(.single-product) li.product ._rasch_card_body .woocommerce-loop-product__title {
		font-size: clamp(12px, 2.9vw + 0.35rem, 15px);
	}

	body:not(.single-product) li.product ._rasch_card_footer_qty {
		font-size: clamp(14px, 2.8vw, 17px);
		gap: clamp(8px, 2vw, 12px);
		min-height: 44px;
	}

	body:not(.single-product) li.product .rasch_loop_qty_btn {
		padding: 8px 10px;
		min-width: 44px;
		min-height: 44px;
		box-sizing: border-box;
	}

	body:not(.single-product) li.product ._rasch_product_figma_card .rasch_loop_qty_btn i {
		font-size: clamp(14px, 3vw, 16px);
	}

	body:not(.single-product) li.product ._rasch_product_figma_card ._rasch_sale_badge {
		top: clamp(6px, 2vw, 12px);
		right: clamp(6px, 2vw, 12px);
		width: clamp(32px, 9vw, 40px);
		height: clamp(32px, 9vw, 40px);
		font-size: clamp(11px, 2.8vw, 13px);
	}

	body:not(.single-product) li.product ._rasch_product_figma_card ._rasch_nyhed_badge {
		top: clamp(6px, 2vw, 12px);
		left: clamp(6px, 2vw, 12px);
		width: clamp(32px, 9vw, 40px);
		height: clamp(32px, 9vw, 40px);
	}
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf {
	padding: 0;
	display: flex;
	clear: none;
	flex-direction: column;
	align-items: center;
	width: max-content;
	min-width: max-content;
	max-width: 100%;
}

@media (min-width: 1000px) {
	body:not(.single-product) li.product.material ._has_custom-taste-hover ._rasch_product_figma_card:has(._rasch_sale_badge) ._rasch_card_top_has_taste ._rasch_card_taste._custom-taste-hover .smakklockor.cf {
		padding-top: 3.5rem;
	}
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf > .cf {
	display: flex;
	flex-direction: column;
	margin-bottom: 8px;
	align-items: center;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf > .cf .klocka {
	width: 100%;
	max-width: 120px;
	min-width: 0;
	padding: 0;
	box-sizing: border-box;
	text-align: center;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf > .cf .klocka p {
	font-size: 10px;
	padding: 0;
	line-height: normal;
	text-transform: uppercase;
	color: #bdbdbd;
	letter-spacing: 0.1em;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes {
	--rasch-taste-klocka-green: #82ac6b;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka-diagram {
	width: 30px;
	height: 30px;
	padding: 1px;
	overflow: visible;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes p {
	padding: 0;
	font-size: 10px;
	line-height: normal;
	text-transform: uppercase;
	color: #bdbdbd;
	letter-spacing: 0.1em;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka-diagram svg {
	width: 100%;
	height: 100%;
	display: block;
	overflow: visible;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka-diagram svg circle.pie {
	fill: none;
	stroke: var(--rasch-taste-klocka-green, #82ac6b);
	stroke-width: 10px;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka-diagram svg circle.pie-full {
	fill: var(--rasch-taste-klocka-green, #82ac6b);
	stroke: none;
	stroke-width: 0;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka {
	padding: 0;
	width: auto;
	max-width: 100%;
	min-width: min-content;
	box-sizing: border-box;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf > .cf .klocka img {
	display: block;
	width: auto;
	height: auto;
	max-width: 52px;
	max-height: 52px;
	object-fit: contain;
	margin-inline: auto;
	padding: 4px;
	box-sizing: content-box;
}

._has_custom-taste-hover ._rasch_card_taste img {
	max-width: 100%;
	height: auto;
}

body:not(.single-product) li.product ._rasch_card_taste .smakklockor.cf > .cf .klocka img {
	filter: grayscale(1);
	opacity: 0.55;
	transition: filter 0.35s ease, opacity 0.35s ease;
}

body:not(.single-product) li.product:hover ._rasch_card_taste .smakklockor.cf > .cf .klocka img,
body:not(.single-product) li.product:focus-within ._rasch_card_taste .smakklockor.cf > .cf .klocka img {
	filter: grayscale(0);
	opacity: 1;
}

/* Narrow phones: taste column clocks + labels scale down (Figma card hero stays readable). */
@media screen and (max-width: 700px) {
	body:not(.single-product) li.product ._rasch_card_top_has_taste ._rasch_card_taste._custom-taste-hover {
		max-width: min(96px, 30%);
		padding: 2px 0;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf > .cf {
		margin-bottom: 6px;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf > .cf .klocka {
		max-width: 96px;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf > .cf .klocka p {
		font-size: 8px;
		letter-spacing: 0.08em;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .smakklockor.cf > .cf .klocka img {
		max-width: 40px;
		max-height: 40px;
		padding: 2px;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes {
		gap: 5px;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka-diagram {
		width: 22px;
		height: 22px;
		padding: 0;
		overflow: visible;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes p {
		font-size: 8px;
		letter-spacing: 0.08em;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka-diagram svg circle.pie {
		stroke-width: 8px;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka-diagram svg circle.pie-full {
		stroke-width: 0;
	}

	body:not(.single-product) li.product ._has_custom-taste-hover ._rasch_card_taste .icons-alcohol-attributes .klocka {
		gap: 5px;
	}

	body:not(.single-product) li.product.material ._has_custom-taste-hover ._rasch_product_figma_card:has(._rasch_sale_badge) ._rasch_card_top_has_taste ._rasch_card_taste._custom-taste-hover .smakklockor.cf {
		padding-top: 1.25rem;
	}
}

body:not(.single-product) li.product ._rasch_card_body.product-meta {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
	height: auto;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: 0.625rem;
	padding: 12px 6px 6px;
}

body:not(.single-product) li.product ._rasch_card_body.product-meta > a {
	width: 100%;
	overflow: hidden;
}

body:not(.single-product) li.product ._rasch_card_body .woocommerce-loop-product__title {
	font-family: "Lora", serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	color: #000;
	text-align: center;
}

/* Footer: qty | add to cart — Figma 5540:30 */
body:not(.single-product) li.product ._rasch_card_footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	flex-shrink: 0;
	min-height: var(--rasch_figma_footer_min_h, 71px);
	margin: 0 calc(-1 * var(--rasch_figma_card_pad_h, 20px)) 0;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

body:not(.single-product) li.product ._rasch_card_footer_qty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 0 8px;
	border-right: 1px solid rgba(0, 0, 0, 0.12);
	font-family: "Lora", serif;
	font-size: 18px;
	color: #000;
	opacity: 0.7;
	min-height: 0;
	align-self: stretch;
}

body:not(.single-product) li.product .rasch_loop_qty_btn {
	background: none;
	border: 0;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: inherit;
	opacity: 0.85;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

body:not(.single-product) li.product ._rasch_product_figma_card .rasch_loop_qty_btn i {
	font-size: 16px;
	line-height: 1;
}

body:not(.single-product) li.product ._rasch_product_figma_card .rasch_loop_qty_btn {
	opacity: 1;
}

body:not(.single-product) li.product .rasch_loop_qty_btn:hover {
	opacity: 1;
}

body:not(.single-product) li.product input.rasch_loop_qty_value[type="text"] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	min-width: 2.25em;
	max-width: 4.5em;
	margin: 0;
	padding: 4px 6px;
	border: none;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	text-align: center;
}

body:not(.single-product) li.product input.rasch_loop_qty_value[type="text"]:focus {
	outline: none;
}

body:not(.single-product) li.product input.rasch_loop_qty_value[type="text"]:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart {
	display: grid !important;
	place-items: center !important;
	padding: 0 8px !important;
	min-height: 0;
	height: 100%;
	align-self: stretch;
	box-sizing: border-box;
	background-color: #fff;
	transition: background-color 0.2s ease;
}

body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart:hover,
body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart:hover,
body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart:focus-within,
body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart:focus-within {
	background-color: #faf6ef;
}

body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button,
body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	font-family: "Lora", serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	color: #000 !important;
	opacity: 0.7;
	margin: 0 !important;
	padding: 4px 8px !important;
	text-align: center !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	white-space: nowrap;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 0 !important;
	width: 100% !important;
	height: 100% !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	text-underline-offset: 0.12em;
	text-decoration-skip-ink: none;
}

body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span.text,
body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span.text {
	background: transparent !important;
	background-color: transparent !important;
	font-family: "Lora", serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	color: inherit !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1.2 !important;
	display: inline !important;
	text-transform: none !important;
}

body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a:hover,
body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a:hover {
	opacity: 1;
	text-decoration: underline !important;
	text-underline-offset: 0.12em;
	text-decoration-skip-ink: none;
}

body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:hover,
body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:hover,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:hover,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:hover {
	color: #000 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	text-decoration: underline !important;
	text-underline-offset: 0.12em;
	text-decoration-skip-ink: none;
}

body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:focus,
body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:focus,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:focus,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:focus,
body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:focus-visible,
body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:focus-visible,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:focus-visible,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:focus-visible {
	color: #000 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	text-decoration: none !important;
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:hover > span,
body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:hover > span.text,
body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:hover > span,
body:not(.single-product) .woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:hover > span.text,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:hover > span,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button:hover > span.text,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:hover > span,
body:not(.single-product).woocommerce li.product.material ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button:hover > span.text {
	color: #000 !important;
}

@media (max-width: 1199px) and (min-width: 1000px) {
	body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
	body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button,
	body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
	body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
	body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button,
	body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span {
		font-size: 16px !important;
	}
}

@media (max-width: 999px) {
	body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
	body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button,
	body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
	body .woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span.text,
	body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
	body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button,
	body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
	body.woocommerce ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span.text {
		font-size: clamp(12px, 2.5vw + 0.35rem, 16px) !important;
	}
}

/* Figma 5394:554 — compact qty | Tilføj til kurv footer (phone / narrow mobile). */
@media screen and (max-width: 768px) {
	body:not(.single-product) li.product .product-wrap._custom-material-wrap ._rasch_product_figma_card {
		--rasch_figma_footer_min_h: clamp(34px, 9.5vw, 42px);
	}

	body:not(.single-product) li.product ._rasch_card_footer_qty {
		gap: clamp(4px, 1.5vw, 8px);
		padding: 0 4px;
		font-size: clamp(9px, 2.35vw, 11px);
		opacity: 0.7;
		min-height: 0;
	}

	body:not(.single-product) li.product .rasch_loop_qty_btn {
		padding: 2px 4px;
		min-width: unset;
		min-height: unset;
		box-sizing: border-box;
		opacity: 0.85;
	}

	body:not(.single-product) li.product ._rasch_product_figma_card .rasch_loop_qty_btn i {
		font-size: clamp(8px, 2.1vw, 10px);
	}

	body:not(.single-product) li.product input.rasch_loop_qty_value[type="text"] {
		min-width: 1.5em;
		max-width: 2.5em;
		padding: 0 2px;
		font-size: inherit;
	}

	body:not(.single-product) ul.products > li.product ._rasch_card_footer_cart.product-add-to-cart,
	body:not(.single-product).woocommerce ul.products > li.product ._rasch_card_footer_cart.product-add-to-cart {
		padding: 0 4px !important;
	}

	body:not(.single-product) li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
	body:not(.single-product) li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button,
	body:not(.single-product).woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
	body:not(.single-product).woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button,
	body .woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
	body .woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button,
	body.woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.button,
	body.woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a.add_to_cart_button {
		font-size: clamp(9px, 2.35vw, 11px) !important;
		opacity: 1 !important;
		padding: 2px 4px !important;
	}

	body:not(.single-product) li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
	body:not(.single-product) li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span.text,
	body:not(.single-product).woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
	body:not(.single-product).woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span.text,
	body .woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
	body .woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span.text,
	body.woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span,
	body.woocommerce li.product.material .product-wrap._custom-material-wrap ._rasch_product_figma_card ._rasch_card_footer_cart.product-add-to-cart a > span.text {
		font-size: clamp(9px, 2.35vw, 11px) !important;
		opacity: 1 !important;
	}
}

li.product.material ._rasch_card_footer_cart.product-add-to-cart,
li.product.material:hover ._rasch_card_footer_cart.product-add-to-cart,
li.product.material.hovered ._rasch_card_footer_cart.product-add-to-cart {
	opacity: 1 !important;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	transition: background-color 0.2s ease !important;
}

li.product.material:hover:before {
	opacity: 0 !important;
}

li.product.material:hover h2,
li.product.material:hover h3,
li.product.material:hover .product-meta > .price {
	transform: none !important;
}

@media screen and (max-width: 999px) {
	body:not(.single-product) ul.products > li.product ._rasch_card_footer_cart.product-add-to-cart {
		border: 0;
		opacity: unset !important;
		position: relative !important;
		padding: 0 8px !important;
		bottom: auto !important;
		transform: none !important;
	}
}

body:not(.single-product) li.product ._rasch_product_figma_card {
	position: relative;
}

._rasch_sale_badge {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 43px;
	height: 43px;
	border-radius: 50%;
	background: #d41c00;
	color: #fff;
	font-family: "Lora", serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	pointer-events: none;
	letter-spacing: 0;
}

._rasch_nyhed_badge {
	position: absolute;
	top: 20px;
	left: 20px;
	width: 43px;
	height: 43px;
	border-radius: 50%;
	box-sizing: border-box;
	padding: 2px;
	background: #fff;
	border: 2px solid #000;
	color: #000;
	font-family: "Lora", serif;
	font-weight: 700;
	font-size: 8px;
	line-height: 1.1;
	letter-spacing: 0.04em;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-transform: uppercase;
	z-index: 6;
	pointer-events: none;
}

body .woocommerce li.product.material.sale .wcpb-product-badges-badge,
body.woocommerce li.product.material.sale .wcpb-product-badges-badge {
	display: none !important;
}

body:not(.single-product) .woocommerce ul.products li.product.material > span.onsale,
body:not(.single-product).woocommerce ul.products li.product.material > span.onsale {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Single product summary: same taste pie styling as loop (Figma green, solid at scale 8). */
.woocommerce.single-product .product .icons-alcohol-attributes {
	--rasch-taste-klocka-green: #82ac6b;
}

.woocommerce.single-product .product .icons-alcohol-attributes .klocka-diagram svg {
	overflow: visible;
}

.woocommerce.single-product .product .icons-alcohol-attributes .klocka-diagram svg circle.pie {
	fill: none;
	stroke: var(--rasch-taste-klocka-green, #82ac6b);
	stroke-width: 10px;
}

.woocommerce.single-product .product .icons-alcohol-attributes .klocka-diagram svg circle.pie-full {
	fill: var(--rasch-taste-klocka-green, #82ac6b);
	stroke: none;
	stroke-width: 0;
}

@media screen and (max-width: 700px) {
	.woocommerce.single-product .product .icons-alcohol-attributes .klocka-diagram svg circle.pie {
		stroke-width: 8px;
	}
}
