/**
 * Timeless v2 product cards outside the Timeless pages (TL r7, owner 13 Nov). Loaded only while eupepsia_timeless_v2 is
 * on (inc/enqueue-timeless-v2.php); the cards are recognised by the Timeless-only image class (eup-tl2-cardimg, D-773),
 * so every other card is untouched and flag off prints the previous page.
 *
 * Home New Arrivals: the Timeless card is full-bleed, as the Timeless landing cards: the garment photo fills the whole
 * card box, a dark gradient at the bottom, brand, name and price in white. The box itself (width, height, radius, the
 * hover bar) is the neighbouring cards' own, so the row stays even at every width.
 */
.eup-hb2-card:has(img.eup-tl2-cardimg) {
	isolation: isolate;
}

.eup-hb2-card:has(img.eup-tl2-cardimg) .eup-hb2-card__media img.eup-tl2-cardimg {
	inset: 0;
	position: absolute;
	z-index: 0;
}

.eup-hb2-card:has(img.eup-tl2-cardimg)::after {
	background: linear-gradient(to bottom, rgb(20 16 12 / 0) 0%, rgb(20 16 12 / 0.38) 45%, rgb(20 16 12 / 0.78) 100%);
	bottom: 0;
	content: "";
	height: 58%;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	z-index: 1;
}

.eup-hb2-card:has(img.eup-tl2-cardimg) .eup-hb2-card__body {
	--eup-price-ink: #fff;
	position: relative;
	z-index: 2;
}

/* Owner 20 Nov: the whole card opens the product. The words lie over the photo's link (z-index 2), so a click on the
   brand line or the price hit plain text; they now let the click through to the photo link under them, and the name
   link and the bar stay clickable themselves. */
.eup-hb2-card:has(img.eup-tl2-cardimg) .eup-hb2-card__body {
	pointer-events: none;
}

.eup-hb2-card:has(img.eup-tl2-cardimg) .eup-hb2-card__body :is(a, button),
.eup-hb2-card:has(img.eup-tl2-cardimg) .eup-hb2-card__cta {
	pointer-events: auto;
}

.eup-hb2-card:has(img.eup-tl2-cardimg) .eup-hb2-card__cta {
	z-index: 3;
}

/* Codex tl8: on touch screens the bar is in the flow (static), where z-index does nothing and the absolute photo would
   paint over it; positioned here only (desktop keeps home-v6b2.css's absolute hover bar). */
@media (hover: none), (pointer: coarse) {
	.eup-hb2-card:has(img.eup-tl2-cardimg) .eup-hb2-card__cta {
		position: relative;
	}
}

html body.eup-home-v6b2 .eup-hb2-card:has(img.eup-tl2-cardimg) :is(.eup-hb2-card__brand, .eup-hb2-card__name, .eup-hb2-card__name a) {
	color: #fff;
}

html body.eup-home-v6b2 .eup-hb2-card:has(img.eup-tl2-cardimg) :is(.eup-hb2-card__price, .eup-hb2-card__price span.amount, .eup-hb2-card__price .woocommerce-Price-amount) {
	color: #fff !important; /* home-v6b2.css sets the navy with !important */
}
