/*
 * Black Friday page (template-black-friday.php). Black page, white product photos on dark cards,
 * the shop's orange for prices and buttons.
 */

.vx-bf-body {
	--vx-bf-bg: #0b0b0c;
	--vx-bf-surface: #161618;
	--vx-bf-raise: #202023;
	--vx-bf-line: rgba(255, 255, 255, 0.09);
	--vx-bf-text: #f5f2ef;
	--vx-bf-muted: #a9a29c;
	--vx-bf-brand: #ea500e;
	--vx-bf-brand-hi: #ff6a26;
	background: var(--vx-bf-bg);
	color: var(--vx-bf-text);
}

.vx-bf-body #content,
.vx-bf-body .site-content {
	background: var(--vx-bf-bg);
}

.vx-bf {
	padding-bottom: clamp(3rem, 6vw, 5rem);
	color: var(--vx-bf-text);
}

/* Full-bleed blocks inside the theme's .col-full. */
.vx-bf-hero,
.vx-bf-nav,
.vx-bf-preview {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.vx-bf-preview {
	padding: 0.7rem var(--vx-gutter, 1.25rem);
	background: #fff3cd;
	color: #3d3000;
	font-size: 15px;
	text-align: center;
}

.vx-bf-preview a {
	color: inherit;
	font-weight: 700;
}

/* ---------- Hero ---------- */

.vx-bf-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(420px, 62vh, 680px);
	padding: clamp(3rem, 8vw, 6rem) var(--vx-gutter, 1.25rem);
	overflow: hidden;
	background:
		radial-gradient(60% 50% at 50% 0%, rgba(234, 80, 14, 0.28), transparent 70%),
		radial-gradient(40% 40% at 85% 100%, rgba(234, 80, 14, 0.12), transparent 70%),
		var(--vx-bf-bg);
	text-align: center;
	isolation: isolate;
}

.vx-bf-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vx-bf-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(11, 11, 12, 0.55), rgba(11, 11, 12, 0.85));
}

.vx-bf-hero__inner {
	max-width: 980px;
}

.vx-bf-hero__badge {
	display: inline-block;
	margin: 0 0 1.25rem;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--vx-bf-brand);
	border-radius: 999px;
	color: var(--vx-bf-brand-hi);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vx-bf-hero__title {
	margin: 0;
	color: #fff;
	font-family: "Raleway", Arial, sans-serif;
	font-size: clamp(2.8rem, 10vw, 7.5rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 0.92;
	text-transform: uppercase;
	text-wrap: balance;
}

.vx-bf-hero__subtitle {
	margin: 1.25rem auto 0;
	max-width: 36ch;
	color: var(--vx-bf-text);
	font-size: clamp(1.15rem, 2.4vw, 1.6rem);
	font-weight: 600;
	line-height: 1.3;
	text-wrap: balance;
}

.vx-bf-hero__note {
	margin: 1.75rem auto 0;
	max-width: 46ch;
	color: var(--vx-bf-muted);
	font-size: 17px;
}

.vx-bf-hero__intro {
	margin: 1.75rem auto 0;
	max-width: 60ch;
	color: var(--vx-bf-muted);
	font-size: 17px;
	line-height: 1.6;
}

.vx-bf-hero__intro p:last-child {
	margin-bottom: 0;
}

.vx-bf-hero__intro a {
	color: var(--vx-bf-brand-hi);
}

/* Countdown */

.vx-bf-count {
	margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.vx-bf-count__label {
	margin: 0 0 0.75rem;
	color: var(--vx-bf-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vx-bf-count__units {
	display: inline-flex;
	gap: clamp(0.4rem, 1.5vw, 0.75rem);
}

.vx-bf-count__units span {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: clamp(64px, 14vw, 92px);
	padding: 0.7rem 0.5rem 0.55rem;
	border: 1px solid var(--vx-bf-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
}

.vx-bf-count__units b {
	color: #fff;
	font-family: "Raleway", Arial, sans-serif;
	font-size: clamp(1.8rem, 5vw, 2.75rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1;
}

.vx-bf-count__units small {
	margin-top: 0.35rem;
	color: var(--vx-bf-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Section links ---------- */

.vx-bf-nav {
	position: sticky;
	top: var(--vx-head-h, 75px);
	z-index: 20;
	border-block: 1px solid var(--vx-bf-line);
	background: rgba(11, 11, 12, 0.92);
	backdrop-filter: blur(10px);
}

html.vx-has-banner .vx-bf-nav {
	top: calc(var(--vx-banner-h, 0px) + var(--vx-head-h, 75px));
}

.vx-bf-nav ul {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 auto;
	padding: 0.75rem var(--vx-gutter, 1.25rem);
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.vx-bf-nav ul::-webkit-scrollbar {
	display: none;
}

.vx-bf-nav a {
	display: block;
	padding: 0.5rem 1rem;
	border: 1px solid var(--vx-bf-line);
	border-radius: 999px;
	color: var(--vx-bf-text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vx-bf-nav a:hover,
.vx-bf-nav a:focus-visible,
.vx-bf-nav a.is-current {
	border-color: var(--vx-bf-brand);
	background: var(--vx-bf-brand);
	color: #fff;
}

@media (max-width: 767px) {
	.vx-bf-nav {
		position: relative;
		top: auto;
	}

	html.vx-has-banner .vx-bf-nav {
		top: auto;
	}

	.vx-bf-nav ul {
		justify-content: flex-start;
	}
}

/* ---------- Sections ---------- */

.vx-bf-section,
.vx-bf-footer {
	box-sizing: border-box;
	max-width: calc(1240px + 2 * var(--vx-gutter, 1.25rem));
	margin-inline: auto;
	padding-inline: var(--vx-gutter, 1.25rem);
}

.vx-bf-section {
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	scroll-margin-top: calc(var(--vx-head-h, 75px) + 64px);
}

.vx-bf-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--vx-bf-line);
}

.vx-bf .vx-bf-section__title {
	margin: 0;
	color: #fff;
	font-family: "Raleway", Arial, sans-serif;
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	font-weight: 900;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.vx-bf-section__count {
	flex: none;
	color: var(--vx-bf-muted);
	font-size: 15px;
	font-weight: 600;
}

/* ---------- Product cards ---------- */

.vx-bf ul.products li.product {
	display: flex;
	flex-direction: column;
	position: relative;
	padding: 0.6rem 0.6rem 0.9rem;
	border: 1px solid var(--vx-bf-line);
	border-radius: 16px;
	background: var(--vx-bf-surface);
	text-align: left;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.vx-bf ul.products li.product:hover {
	border-color: rgba(234, 80, 14, 0.6);
	transform: translateY(-2px);
}

.vx-bf ul.products li.product .woocommerce-loop-product__link {
	color: var(--vx-bf-text);
	text-decoration: none;
}

.vx-bf ul.products li.product img {
	margin: 0 0 0.85rem;
	border-radius: 11px;
	background: #fff;
}

.vx-bf ul.products li.product .onsale {
	position: absolute;
	top: 1rem;
	right: auto;
	left: 1rem;
	z-index: 2;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.35rem 0.65rem;
	border: 0;
	border-radius: 999px;
	line-height: 1.1;
	white-space: nowrap;
	background: var(--vx-bf-brand);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 6px 16px rgba(234, 80, 14, 0.35);
}

.vx-bf-body .woocommerce-breadcrumb,
.vx-bf-body .storefront-breadcrumb {
	display: none;
}

.vx-bf ul.products li.product h2.woocommerce-loop-product__title {
	margin: 0 0.25rem 0.4rem;
	padding: 0;
	border: 0;
	color: var(--vx-bf-text);
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.vx-bf ul.products li.product .star-rating {
	margin: 0 0.25rem 0.3rem;
	color: #f5b301;
	font-size: 0.8em;
}

.vx-bf ul.products li.product .star-rating::before {
	color: rgba(255, 255, 255, 0.18);
}

.vx-bf ul.products li.product .price {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: baseline;
	gap: 0.15rem 0.5rem;
	margin: 0 0.25rem 0.75rem;
	padding: 0.6rem 0 0;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 800;
}

.vx-bf ul.products li.product .price del {
	order: 2;
	color: var(--vx-bf-muted);
	font-size: 0.72em;
	font-weight: 600;
	opacity: 1;
}

.vx-bf ul.products li.product .price ins {
	order: 1;
	color: var(--vx-bf-brand-hi);
	font-weight: 800;
	text-decoration: none;
}

.vx-bf ul.products li.product .button {
	display: block;
	width: auto;
	max-width: none;
	margin: auto 0.25rem 0;
	padding: 0.75rem 0.75rem;
	border: 0;
	border-radius: 10px;
	background: var(--vx-bf-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	transition: background 0.2s ease;
}

.vx-bf ul.products li.product .button:hover,
.vx-bf ul.products li.product .button:focus-visible {
	background: var(--vx-bf-brand-hi);
	color: #fff;
}

.vx-bf ul.products li.product .added_to_cart {
	display: block;
	margin: 0.5rem 0.25rem 0;
	color: var(--vx-bf-text);
	font-size: 14px;
	text-align: center;
}

.vx-bf ul.products li.product.outofstock img {
	opacity: 0.45;
}

@media (max-width: 767px) {
	.vx-bf ul.products li.product {
		padding: 0.45rem 0.45rem 0.7rem;
		border-radius: 13px;
	}

	.vx-bf ul.products li.product h2.woocommerce-loop-product__title {
		font-size: 14.5px;
	}

	.vx-bf ul.products li.product .price {
		font-size: 1.1rem;
	}

	.vx-bf ul.products li.product .button {
		padding: 0.65rem 0.4rem;
		font-size: 14px;
	}

	.vx-bf ul.products li.product .onsale {
		top: 0.75rem;
		left: 0.75rem;
		font-size: 13px;
	}
}

/* ---------- Footer text ---------- */

.vx-bf-footer {
	max-width: 760px;
	margin: clamp(3.5rem, 8vw, 6rem) auto 0;
	padding-top: clamp(2rem, 5vw, 3rem);
	border-top: 1px solid var(--vx-bf-line);
	color: var(--vx-bf-muted);
	font-size: 17px;
	line-height: 1.65;
	text-align: center;
}

.vx-bf-footer h2,
.vx-bf-footer h3 {
	color: #fff;
	font-family: "Raleway", Arial, sans-serif;
	font-weight: 900;
	text-transform: uppercase;
}

.vx-bf-footer a {
	color: var(--vx-bf-brand-hi);
}

.vx-bf-footer img {
	display: block;
	margin: 1.5rem auto 0;
	max-width: 220px;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.vx-bf ul.products li.product,
	.vx-bf-nav a {
		transition: none;
	}

	.vx-bf ul.products li.product:hover {
		transform: none;
	}
}
