/* ================================================================
   Flex Card (inc/class-evov-flex-card.php)

   Built on WoodMart's "Full width button" card: markup, CSS and JS are
   fw-button's, and Flex Cards carry .wd-hover-flex-card as well. On top:

   1. 10px side padding.
   2. Wishlist and compare always visible in the image corner with no box,
      wishlist on top (the "Buttons on hover" card's defaults).
   3. Brand chip: brand logo + name in a frosted bar over the bottom of the
      image, like evov's platform label. Inside .product-element-bottom, so
      it moves with the content on hover.
   4. Add to cart on hover (desktop): the quantity + button row is last in
      the content (content-product-flex-card.php). It hangs below the card
      hidden; on hover the content slides up by the row's height and the row
      fades in, so the card never grows ("Buttons on hover" mechanics).
      WoodMart's fw-button hover (lift, background, panel below) still runs.
      Touch and tablet widths (<= 1024px) keep the row visible.
   5. Hover panel: the product's highlights first, then the attributes
      hidden behind WoodMart's "..." button (click opens them).
   6. Mobile style: a horizontal card, one per row, built on the OTLT
      compact card: image left with the brand chip on it, title, SKU, price,
      icon cart button, wishlist in the corner, and a "..." row that expands
      the card in place to show the highlights (js/flex-card.js). The card
      keeps the same height until it is expanded.
      Only where the widget asks for it, as evov's mobile card: "[evov]
      Mobile Style" > "Use mobile style at this breakpoint" (markers
      evov-mc-{device}-on, matched against <html data-evov-device>, set in
      the head before the first paint) or "all breakpoints"
      (.evov-mobile-card). Every other flex card keeps the regular card at
      every width; the "wider than phones" rules are its rules. The gate is
      :where(), so it adds no specificity and the cascade is as before.
   ================================================================ */

.wd-product.wd-hover-flex-card {
	--fc-chip-h: 26px;
	--fc-row-h: calc(var(--wd-prod-gap, 12px) + var(--btn-accented-height, 42px));
	--wd-btn-inset: 0;
}

/* ── 1. Side padding ───────────────────────────────────────────── */

.wd-product.wd-hover-flex-card .wd-product-wrapper {
	padding-inline: 10px;
}

.wd-product.wd-hover-flex-card .product-element-bottom {
	position: relative;
	z-index: 2;
}

/* ── 2. Wishlist + compare ─────────────────────────────────────── */

/* The buttons are a child of the card (content-product-flex-card.php),
   10px from the card's top and right. */
.wd-product.wd-hover-flex-card .wd-product-wrapper > .wd-buttons {
	position: absolute;
	top: 10px;
	right: 10px;
	inset-inline-start: auto;
	z-index: 5;
	visibility: visible;
	transform: none;
}

/* Regular card (not the mobile style, section 6): wishlist and compare each on the phone card's white
   circle (40px), stacked 6px apart; the group itself has no box. */
.wd-product.wd-hover-flex-card:not(:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) *) .wd-product-wrapper > .wd-buttons {
	gap: 6px;
	opacity: 1;
	background: none !important;
	box-shadow: none !important;
}

.wd-product.wd-hover-flex-card:not(:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) *) .wd-product-wrapper > .wd-buttons .wd-action-btn {
	--wd-action-w: 40px;
	--wd-action-h: 40px;
	border-radius: 50%;
	background: var(--bgcolor-white, #fff);
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}

.wd-product.wd-hover-flex-card:not(:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) *) .wd-product-wrapper > .wd-buttons .wd-action-btn > a {
	width: 40px;
	height: 40px;
}


.wd-product.wd-hover-flex-card .wd-buttons .wd-wishlist-btn {
	order: -1;
}

/* The phone card's "..." button: phones only. */
.wd-product.wd-hover-flex-card .evov-fc-more {
	display: none;
}

/* ── 3. Brand chip ─────────────────────────────────────────────── */

.wd-product.wd-hover-flex-card .evov-brand-chip {
	position: absolute;
	/* Bottom edge on the image's bottom edge (the wrapper gap sits between). */
	top: calc((var(--fc-chip-h) + var(--wd-prod-gap, 12px)) * -1);
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: var(--fc-chip-h);
	margin: 0;
	padding: 0 10px;
	border-radius: 0 0 var(--wd-brd-radius) var(--wd-brd-radius);
	background-color: rgba(255, 255, 255, .5);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	color: var(--wd-title-color, #333);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .02em;
	pointer-events: none;
}

.wd-product.wd-hover-flex-card .evov-brand-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Brand logos are wordmarks on a padded canvas: full image, 20px tall. */
.wd-product.wd-hover-flex-card .evov-brand-logo img {
	display: block;
	width: auto;
	max-width: 56px;
	height: 20px;
	object-fit: contain;
}

.wd-product.wd-hover-flex-card .evov-brand-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── 4. Add to cart on hover (desktop) ─────────────────────────── */

@media (min-width: 1025px) {
	/* One moving edge, like evov's platform label (product-loop.css §13):
	   the image is not clipped on hover; the content (white, with the chip
	   on it) slides up over the image instead. A clip-path animation runs on
	   the main thread and the transform on the compositor, so the image edge
	   and the chip drifted apart while hovering back and forth. ::before
	   fills the gap between the image and the content. */
	.wd-product.wd-hover-flex-card.wd-hover-flex-card .wd-product-thumb,
	.wd-product.wd-hover-flex-card.wd-hover-flex-card:not(:is(.quick-shop-shown, .wd-loading)):is(:hover, :focus-within, .state-hover) .wd-product-thumb {
		clip-path: inset(0 0 0 0 round var(--wd-brd-radius));
		transition: none;
	}

	.wd-product.wd-hover-flex-card .product-element-bottom {
		margin-bottom: calc(var(--fc-row-h) * -1);
		/* White only above the hidden add-to-cart row: that row hangs below
		   the card at rest (visible in carousels, which don't clip), and on
		   hover it sits over the card's own white background. */
		background: linear-gradient(var(--bgcolor-white, #fff), var(--bgcolor-white, #fff)) top / 100% calc(100% - var(--fc-row-h)) no-repeat;
		transition: transform .3s ease;
	}

	.wd-product.wd-hover-flex-card .product-element-bottom::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: calc(var(--wd-prod-gap, 12px) * -1);
		height: var(--wd-prod-gap, 12px);
		background-color: var(--bgcolor-white, #fff);
		pointer-events: none;
	}

	.wd-product.wd-hover-flex-card .product-element-bottom > .wd-add-btn {
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s ease, visibility .3s ease;
	}

	.wd-product.wd-hover-flex-card:not(:is(.quick-shop-shown, .wd-loading)):is(:hover, :focus-within, .state-hover) .product-element-bottom {
		transform: translateY(calc(var(--fc-row-h) * -1));
	}

	.wd-product.wd-hover-flex-card:not(:is(.quick-shop-shown, .wd-loading)):is(:hover, :focus-within, .state-hover) .product-element-bottom > .wd-add-btn {
		opacity: 1;
		visibility: visible;
	}
}

/* ── 5. Hover panel: highlights, attributes behind "..." ───────── */

.wd-product.wd-hover-flex-card .evov-highlights {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: var(--wd-prod-gap, 12px) 0 0;
	border-top: 1px solid var(--brdcolor-gray-300);
	list-style: none;
	font-size: .95em;
	font-weight: 500;
	line-height: 1.45;
	color: var(--wd-title-color, #333);
}

.wd-product.wd-hover-flex-card .evov-highlights li {
	position: relative;
	margin: 0;
	padding-inline-start: 14px;
}

.wd-product.wd-hover-flex-card .evov-highlights li::before {
	content: "";
	position: absolute;
	inset-inline-start: 2px;
	top: .62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wd-primary-color, currentColor);
}

.wd-product.wd-hover-flex-card .evov-highlights + .hover-content-wrap {
	padding-top: 2px;
	border-top: 0;
}

.wd-product.wd-hover-flex-card .wd-more-desc,
.wd-product.wd-hover-flex-card .wd-more-desc.wd-more-desc-full {
	max-height: none !important; /* WoodMart sets an inline max-height */
	overflow: visible;
}

.wd-product.wd-hover-flex-card .wd-more-desc:not(.wd-more-desc-full) .wd-more-desc-inner {
	display: none;
}

/* Open: a long list scrolls inside (WoodMart's 21 lines) so the chevron
   stays at the bottom of the panel, under the list. */
.wd-product.wd-hover-flex-card .wd-more-desc.wd-more-desc-full .wd-more-desc-inner {
	max-height: calc(var(--wd-text-line-height, 1.6) * 21em);
	overflow-y: auto;
	overscroll-behavior: contain;
	/* Divider from the highlights, like the one above them. */
	margin-top: calc(var(--wd-prod-gap, 12px) - 2px); /* 12px from the last highlight */
	padding-top: var(--wd-prod-gap, 12px);
	border-top: 1px solid var(--brdcolor-gray-300);
}

/* Tight chevron row: about 6px under the highlights and 6px above the
   card's bottom edge (the bottom margin shrinks the measured hover panel,
   so the card background ends closer to the chevron). */
.wd-product.wd-hover-flex-card.wd-hover-flex-card .wd-product-card-hover .hover-content-wrap {
	margin-top: -8px;
	margin-bottom: -9px;
}

/* The toggle: evov's dropdown chevron on a small white circle, in place of
   WoodMart's dots; it stays (flipped) when the list is open and closes it
   again (js/flex-card.js). */
.wd-product.wd-hover-flex-card .wd-more-desc .wd-more-desc-btn,
.wd-product.wd-hover-flex-card .wd-more-desc.wd-more-desc-full .wd-more-desc-btn {
	position: relative !important;
	inset: auto;
	display: block !important;
	width: 28px;
	height: 28px;
	margin: 0 auto 2px;
	padding: 0;
	border-radius: 50%;
	background: var(--bgcolor-white, #fff);
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
	opacity: 1;
	transform: none;
	transition: transform .2s ease;
}

.wd-product.wd-hover-flex-card .wd-more-desc .wd-more-desc-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--wd-form-chevron);
	background-repeat: no-repeat;
	background-position: center;
	background-size: auto 16px;
	font-size: 0;
	transition: transform .25s ease;
}

.wd-product.wd-hover-flex-card .wd-more-desc.wd-more-desc-full .wd-more-desc-btn::after {
	transform: rotate(180deg);
}

.wd-product.wd-hover-flex-card .wd-more-desc .wd-more-desc-btn:active {
	transform: scale(.97);
}

/* ── 6. Phones ─────────────────────────────────────────────────── */

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card {
	--fc-m-img: 112px;
	--fc-m-chip: 22px;
	--fc-m-pad: 10px;
	--fc-m-dots: 28px;
}

/* Grid: image on the left over rows 1-3 (title, SKU, price + cart), the
   expanding panel across the card in row 4, the chevron in row 5. Rows
   1-3 fit the image's height; the chevron is pulled up into the space
   kept under the price, so the card is image + padding tall until it is
   expanded, and then the chevron rides at the bottom under the panel. */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-product-wrapper {
	display: grid;
	grid-template-columns: var(--fc-m-img) minmax(0, 1fr);
	grid-template-rows: auto auto minmax(0, 1fr) auto auto;
	column-gap: 10px;
	row-gap: 0;
	align-items: start;
	min-height: 0;
	padding: var(--fc-m-pad);
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-product-card-bg,
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .hover-img,
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-compare-btn,
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-add-btn .quantity,
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .hover-content-wrap {
	display: none !important;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-product-thumb {
	grid-column: 1;
	grid-row: 1 / 4;
	width: var(--fc-m-img);
	height: var(--fc-m-img);
	border-radius: var(--wd-brd-radius);
	overflow: hidden;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-product-thumb img {
	width: 100%;
	height: var(--fc-m-img);
	object-fit: contain;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-labels {
	transform: scale(.8);
	transform-origin: top left;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-element-bottom {
	display: contents;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-entities-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	padding-inline-end: 44px; /* wishlist */
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-product-sku {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	display: block;
	margin: 2px 0 0;
	padding-inline-end: 64px; /* cart button */
	font-size: 10px; /* the image labels' size */
	line-height: 1.3;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wrap-price {
	grid-column: 2;
	grid-row: 3;
	align-self: end;
	justify-content: flex-start;
	margin: 0;
	padding-inline-end: 64px; /* cart button */
}

/* Brand chip across the bottom of the image. */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .evov-brand-chip {
	top: calc(var(--fc-m-pad) + var(--fc-m-img) - var(--fc-m-chip));
	left: var(--fc-m-pad);
	right: auto;
	width: var(--fc-m-img);
	height: var(--fc-m-chip);
	gap: 4px;
	padding: 0 6px;
	font-size: 10px;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .evov-brand-logo img {
	max-width: 40px;
	height: 16px;
}

/* Wishlist in the card's corner, a little larger, on WoodMart's white circle. */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-product-wrapper > .wd-buttons {
	top: 4px;
	right: var(--fc-m-pad); /* lines up with the cart button */
	opacity: 1;
	border-radius: 50%;
	background: var(--bgcolor-white, #fff);
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-product-wrapper > .wd-buttons .wd-action-btn {
	--wd-action-icon-size: 21px;
	--wd-action-w: 40px;
	--wd-action-h: 40px;
}

/* Cart: the compact card's outlined icon button, beside SKU + price. */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-element-bottom > .wd-add-btn {
	position: static;
	grid-column: 2;
	grid-row: 2 / 4;
	justify-self: end;
	align-self: end;
	width: auto;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-element-bottom > .wd-add-btn > a {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 52px;
	min-width: 0;
	max-width: 52px;
	height: 40px;
	min-height: 40px;
	padding: 0 !important; /* WoodMart's quantity overlap pads it */
	border: 2px solid var(--wd-primary-color);
	border-radius: var(--btn-accented-brd-radius, 5px);
	background: transparent;
	box-shadow: none;
	color: var(--wd-primary-color);
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-element-bottom > .wd-add-btn > a:active {
	background: var(--wd-primary-color);
	color: #fff;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-element-bottom > .wd-add-btn > a .wd-action-text {
	display: none !important;
}

/* The icon: the button's own ::before is WoodMart's loading spinner, so
   the cart glyph goes on .wd-action-icon (parked off-button by the
   "replace" effect, brought back here). */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-element-bottom > .wd-add-btn > a .wd-action-icon {
	position: static !important;
	inset: auto !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	transform: none !important;
	font-size: 0;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-element-bottom > .wd-add-btn > a .wd-action-icon::before {
	content: "\f123";
	font-family: "woodmart-font";
	font-size: 18px;
	line-height: 1;
	color: currentColor;
}

/* Adding to cart: WoodMart's spinner (the button's ::after) centred in
   the icon button. Its own offsets are worked out for the full-width
   button and put it outside this 52px one, so the button went blank. */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .product-element-bottom > .wd-add-btn > a::after {
	inset: 0 !important;
	margin: auto !important;
}

/* Expand button in the centre of the card: evov's dropdown chevron
   (WoodMart's form chevron) on the wishlist's white circle, scaled down.
   Only the chevron turns when the card opens. */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .evov-fc-more {
	position: relative;
	grid-column: 1 / -1;
	grid-row: 5;
	justify-self: center;
	align-self: center;
	display: block;
	width: 28px;
	min-width: 0;
	height: 28px;
	min-height: 0 !important; /* WoodMart's button min-height */
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bgcolor-white, #fff);
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform .2s ease;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .evov-fc-more::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--wd-form-chevron);
	background-repeat: no-repeat;
	background-position: center;
	background-size: auto 16px;
	transition: transform .25s ease;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card.fc-open .evov-fc-more::after {
	transform: rotate(180deg);
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .evov-fc-more:active {
	transform: scale(.97);
}

/* The expanding panel (WoodMart's hover panel, highlights only here).
   Doubled class: WoodMart's fade rules load later in the page. */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card.wd-hover-flex-card .wd-product-card-hover {
	display: block !important;
	position: static !important;
	grid-column: 1 / -1;
	grid-row: 4;
	height: 0;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: height .3s ease, opacity .25s ease, visibility 0s .3s;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card.wd-hover-flex-card.fc-open .wd-product-card-hover {
	height: auto;
	opacity: 1;
	visibility: visible;
	transition: height .3s ease, opacity .25s ease .05s, visibility 0s;
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card .wd-product-card-hover > .evov-highlights {
	margin-top: 8px;
	margin-bottom: calc(var(--fc-m-dots) + 6px); /* room for the chevron */
}

/* The chevron's place: kept under the price and cart button, and the
   chevron pulled up into it (doubled class: the base rule sets margin 0). */
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card:has(.evov-fc-more) .wrap-price,
:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card:has(.evov-fc-more) .product-element-bottom > .wd-add-btn {
	margin-bottom: var(--fc-m-dots);
}

:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) .wd-product.wd-hover-flex-card.wd-hover-flex-card .evov-fc-more {
	margin-top: calc(var(--fc-m-dots) * -1);
}


/* ── 7. Sold out, SKU, titles (all widths) ─────────────────────── */

/* Sold out: no cart button and no hover slide (nothing to reveal); the
   price shows evov's sad face + "Sold Out" (functions.php
   evov_sold_out_price), drawn in grey for the white card, in the price's
   font. WoodMart's "Sold out" label on the image goes. */
.wd-product.wd-hover-flex-card.outofstock {
	--fc-row-h: 0px;
}

.wd-product.wd-hover-flex-card.outofstock .product-element-bottom > .wd-add-btn,
.wd-product.wd-hover-flex-card .product-labels .out-of-stock {
	display: none !important;
}

.wd-product.wd-hover-flex-card .wrap-price .evov-soldout {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 22px;
}

.wd-product.wd-hover-flex-card .wrap-price .evov-soldout svg {
	display: block;
	width: auto;
	height: 18px;
	overflow: visible;
}

.wd-product.wd-hover-flex-card .wrap-price .evov-soldout svg circle {
	fill: var(--color-gray-500, #777);
}

.wd-product.wd-hover-flex-card .wrap-price .evov-soldout svg path {
	stroke: var(--color-gray-500, #777);
}

.wd-product.wd-hover-flex-card .wrap-price .evov-soldout-text {
	font: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	color: var(--color-gray-500, #777);
}

/* SKU without its "SKU:" label. */
.wd-product.wd-hover-flex-card .wd-product-sku .wd-label {
	display: none;
}

/* Regular card: the SKU at 11px. The mobile style keeps its 10px (the image
   labels' size, section 6). */
.wd-product.wd-hover-flex-card:not(:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) *) .wd-product-sku {
	font-size: 11px;
}


/* Titles: two lines, ending in "..." when trimmed (WoodMart cuts by height). */
.wd-product.wd-hover-flex-card .wd-entities-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	max-height: none;
}

/* Carousels: the hovered card's panel hangs below the carousel; lift the
   carousel over its own scrollbar (a later sibling) while a card is
   hovered, so the bar does not draw across the panel. */
@media (min-width: 769px) {
	.wd-carousel:has(.wd-hover-flex-card:is(:hover, .state-hover)) {
		position: relative;
		z-index: 2;
	}
}

/* ── 8. Carousels with wd-fade-off (769px and up) ───────────────
   Flex Card drops WoodMart's wd-fade-off from carousel cards (card_class()
   and js/flex-card.js on tablets), so they get the full hover card. Until
   the script runs on tablets (LiteSpeed delays it), WoodMart's class
   makes
   .product-element-bottom static (the brand chip then anchors to the card
   and floats above it) and shows the hover panel as static content under
   the card (cut off by the carousel). Keep the chip anchored and leave the
   panel out there; the hover add-to-cart still works. */
.wd-product.wd-hover-flex-card:not(:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) *).wd-fade-off .product-element-bottom {
	position: relative;
}

.wd-product.wd-hover-flex-card:not(:where(.evov-mobile-card, [data-evov-device="mobile"] .evov-mc-mobile-on, [data-evov-device="mobile_extra"] .evov-mc-mobile_extra-on, [data-evov-device="tablet"] .evov-mc-tablet-on, [data-evov-device="tablet_extra"] .evov-mc-tablet_extra-on, [data-evov-device="laptop"] .evov-mc-laptop-on, [data-evov-device="widescreen"] .evov-mc-widescreen-on, [data-evov-device="desktop"] .evov-mc-on) *).wd-fade-off .wd-product-card-hover {
	display: none !important;
}

