/**
 * Home flash deal (T7.5).
 *
 * Featured layout (not the standard card). No invented urgency styles
 * when the countdown is absent.
 */

.po-home-flash {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
	margin-block-start: var(--po-space-section);
	padding: var(--po-space-inset);
	border: 1px solid var(--po-color-border);
	border-radius: var(--po-radius-large);
	background: linear-gradient(145deg, var(--po-color-surface), #11131b);
}

.po-home-flash__eyebrow {
	display: block;
	margin-bottom: 0.65rem;
	color: var(--po-color-cyan);
	font-size: 0.74rem;
	font-weight: var(--po-font-weight-ui-extrabold, 800);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.po-home-flash__heading {
	margin: 0 0 1rem;
	color: var(--po-color-text);
	font-family: var(--po-font-display);
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: var(--po-font-weight-display);
	letter-spacing: var(--po-font-display-tracking-tight);
	line-height: 1.04;
}

.po-home-flash__text,
.po-home-flash__static {
	margin: 0 0 1.25rem;
	color: var(--po-color-muted);
	font-size: 1rem;
	line-height: 1.5;
}

.po-home-flash__countdown time {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1.25rem;
}

.po-home-flash__unit {
	display: flex;
	min-width: 3.5rem;
	flex-direction: column;
	align-items: center;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--po-color-border);
	border-radius: var(--po-radius-small);
	background-color: var(--po-color-surface-raised);
}

.po-home-flash__unit strong {
	color: var(--po-color-text);
	font-family: var(--po-font-display);
	font-size: 1.45rem;
	line-height: 1;
}

.po-home-flash__unit small {
	margin-top: 0.3rem;
	color: var(--po-color-muted);
	font-size: 0.75rem;
	text-transform: uppercase;
}

.po-home-flash__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

#primary a.po-home-flash__cta--quiet {
	color: #c7cbd7;
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
}

#primary a.po-home-flash__cta--quiet:hover,
#primary a.po-home-flash__cta--quiet:focus-visible {
	color: var(--po-color-text);
}

#primary a.po-home-flash__deal {
	display: grid;
	grid-template-columns: minmax(8rem, 42%) minmax(0, 1fr);
	gap: 1.1rem;
	align-items: center;
	min-width: 0;
	padding: 1rem;
	border: 1px solid var(--po-color-border);
	border-radius: var(--po-radius-medium);
	background-color: var(--po-color-surface-alt);
	color: inherit;
	text-decoration: none;
}

#primary a.po-home-flash__deal:hover,
#primary a.po-home-flash__deal:focus-visible {
	color: inherit;
	text-decoration: none;
}

#primary a.po-home-flash__deal:focus-visible,
#primary a.po-home-flash__cta:focus-visible {
	outline: 3px solid var(--po-color-cyan);
	outline-offset: 3px;
}

.po-home-flash__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border-radius: var(--po-radius-small);
	object-fit: cover;
}

.po-home-flash__rank {
	grid-column: 1 / -1;
	color: var(--po-color-yellow);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.po-home-flash__name {
	margin: 0.35rem 0 0.65rem;
	font-size: 1.25rem;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.po-home-flash__kicker,
.po-home-flash__price {
	color: var(--po-color-muted);
	font-size: 0.85rem;
}

.po-home-flash__price del {
	margin-inline-end: 0.4rem;
	color: var(--po-color-muted);
	text-decoration: line-through;
	text-decoration-thickness: 0.08em;
}

.po-home-flash__price del .woocommerce-Price-amount,
.po-home-flash__price del bdi {
	color: inherit;
	font-size: inherit;
	text-decoration: line-through;
	text-decoration-thickness: 0.08em;
	animation: none;
}

.po-home-flash__price ins {
	color: var(--po-color-yellow);
	text-decoration: none;
}

.po-home-flash--ended .po-home-flash__unit strong {
	color: var(--po-color-muted);
}

@media (max-width: 720px) { /* --po-bp-nav */
	.po-home-flash {
		grid-template-columns: minmax(0, 1fr);
		margin-block-start: var(--po-space-section-compact);
		padding: var(--po-space-inset-compact);
	}

	#primary a.po-home-flash__deal {
		grid-template-columns: minmax(0, 1fr);
	}

	.po-home-flash__countdown time {
		justify-content: flex-start;
	}
}

@media (max-width: 400px) { /* --po-bp-tight */
	.po-home-flash__unit {
		flex: 1 1 calc(50% - 0.65rem);
		min-width: 3.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.po-home-flash__unit strong {
		transition: none;
	}
}
