/**
 * Product cards sitewide — family tint, pipeline variant, footer CTAs, purity badge.
 * Loaded after theme + WooCommerce + CoA plugin.
 */

/* Family-colored catalog cards (shop, homepage featured, category landings). */
.product-card--family-color {
	--category-ink: #15203a;
	border-color: color-mix(in srgb, var(--category-bg, #d8dcdf) 48%, var(--clr-border, #e0e0d8) 52%);
	background: color-mix(in srgb, var(--category-bg, #d8dcdf) 26%, #fff 74%);
}

.product-card--family-color:hover {
	border-color: color-mix(in srgb, var(--category-bg, #d8dcdf) 62%, var(--clr-border, #e0e0d8) 38%);
}

.product-card--family-color .product-card-body {
	background: transparent;
}

.product-card--family-color .product-card-title,
.product-card--family-color .product-card-title a,
.product-card--family-color .product-card-title span {
	color: var(--category-ink, #15203a);
}

.product-card--family-color .product-card-price,
.product-card--family-color .product-card-price .from,
.product-card--family-color .product-card-price .woocommerce-Price-amount {
	color: var(--category-ink, #15203a);
}

.product-card--family-color .product-card-category,
.product-card--family-color .product-card-sub__detail {
	color: color-mix(in srgb, var(--category-ink, #15203a) 76%, transparent);
	opacity: 1;
}

.product-card--family-color .product-card-img--category {
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--category-bg, #d8dcdf) 62%, #fff) 0%,
		var(--category-bg, #d8dcdf) 100%
	);
}

/* Pipeline / coming-soon cards */
.product-card--pipeline {
	cursor: default;
	border: 1px dashed color-mix(in srgb, var(--clr-border, #e0e0d8) 85%, var(--clr-text-3, #5c6478) 15%);
	box-shadow: none;
	background: color-mix(in srgb, var(--clr-bg-soft, #f6f6f2) 55%, #fff 45%);
}

.product-card--pipeline:hover {
	box-shadow: none;
	transform: none;
}

.product-card--pipeline .product-card__image-static {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
}

.product-card--pipeline .product-card__image-static::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(255, 255, 255, 0.38);
	pointer-events: none;
}

.product-card--pipeline .product-card-img--pipeline {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	filter: grayscale(0.5) saturate(0.7);
}

.product-card--pipeline .product-card-img--pipeline::after {
	display: none;
}

.product-card--pipeline .product-card-img--pipeline img,
.product-card--pipeline .product-card-vial-fallback,
.product-card--pipeline .product-image-placeholder {
	opacity: 0.82;
}

.product-card-pipeline-badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 3;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	background: rgba(255, 255, 255, 0.94);
	color: var(--clr-text-2, #3d4558);
	border: 1px solid color-mix(in srgb, var(--clr-border, #e0e0d8) 70%, transparent);
	box-shadow: 0 1px 3px rgba(15, 16, 32, 0.06);
}

.product-card--pipeline .product-card-body {
	background: transparent;
}

.product-card--pipeline .product-card-title,
.product-card--pipeline .product-card-title span {
	color: var(--clr-text, #15203a);
	opacity: 1;
}

.product-card--pipeline .product-card-row {
	margin-bottom: 0.15rem;
}

.product-card-sub--pipeline {
	margin: 0;
}

.product-card-sub--pipeline .product-card-sub__detail {
	font-weight: 600;
	font-size: 0.8125rem;
	color: var(--clr-text-2, #3d4558);
	letter-spacing: 0.01em;
}

.product-card--pipeline .product-card-price {
	display: none;
}

.product-card-foot {
	display: flex;
	align-items: stretch;
	gap: var(--sp-3);
	margin-top: auto;
}

.product-card-foot .product-card__cta.btn,
.product-card-foot .product-card__coa.btn,
.product-card-foot .wpcoa-loop-btn--full.btn {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	min-height: 38px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 8px 18px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	border-radius: var(--r-pill);
	font-family: var(--font-body);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--t), border-color var(--t), color var(--t);
}

/* Primary — View */
.woocommerce .product-card-foot a.product-card__cta.btn,
.woocommerce .product-card-foot .product-card__cta.btn {
	background: #0f1020 !important;
	color: #fff !important;
	border: 1.5px solid #0f1020 !important;
	box-shadow: none !important;
}

.woocommerce .product-card-foot a.product-card__cta.btn:hover,
.woocommerce .product-card-foot .product-card__cta.btn:hover {
	background: #1f2040 !important;
	border-color: #1f2040 !important;
	color: #fff !important;
	transform: none !important;
}

/* Secondary — View CoA */
.woocommerce .product-card-foot button.wpcoa-loop-btn.product-card__coa,
.woocommerce .product-card-foot .product-card__coa.btn {
	background: var(--clr-bg, #fff) !important;
	color: var(--clr-text) !important;
	border: 1.5px solid var(--clr-border) !important;
	box-shadow: none !important;
}

.woocommerce .product-card-foot button.wpcoa-loop-btn.product-card__coa:hover,
.woocommerce .product-card-foot .product-card__coa.btn:hover {
	background: var(--clr-bg-soft) !important;
	color: var(--clr-text) !important;
	border-color: var(--clr-text) !important;
	transform: none !important;
}

.product-card-foot .product-card__cta:focus-visible,
.product-card-foot .product-card__coa:focus-visible {
	outline: 2px solid var(--clr-accent, #1f2040);
	outline-offset: 2px;
}

.product-card-img .wpcoa-loop-purity--overlay {
	top: var(--sp-2, 0.5rem);
	right: var(--sp-2, 0.5rem);
	border-radius: var(--r-sm, 6px);
}

.product-card-img .wpcoa-loop-purity--overlay .wpcoa-loop-purity__value {
	color: var(--clr-text, #0f1020);
}

.product-card-img .wpcoa-loop-purity--overlay .wpcoa-loop-purity__text {
	color: var(--clr-text-3, #5c6478);
	opacity: 1;
}

@media (max-width: 767px) {
	.product-card-foot .product-card__cta.btn,
	.product-card-foot .product-card__coa.btn,
	.product-card-foot .wpcoa-loop-btn--full.btn {
		min-height: 34px;
		padding: 6px 10px;
		font-size: 0.75rem;
	}
}
