/**
 * Grexpo Black Friday - Frontend Visual Styles
 * Matches Blackfriday/grexpo-bf-prove.pdf using the site's native font stack.
 */

:root {
	--grexpo-bf-font: var(--font-display, "Futura Std Book", "FuturaStd-Book", Futura, "Trebuchet MS", sans-serif);
	--grexpo-bf-dark: #211108;
	--grexpo-bf-darker: #180c05;
	--grexpo-bf-ribbon-bg: #211108;
	--grexpo-bf-ribbon-border: rgba(239, 230, 206, 0.52);
	--grexpo-bf-cream: #efe6ce;
	--grexpo-bf-muted: rgba(239, 230, 206, 0.82);
	--grexpo-bf-orange: var(--color-accent, #f49820);
	--grexpo-bf-orange-hover: var(--color-accent-hover, #d97f08);
}

/* ==========================================================================
   1. TOP BAR MARQUEE & HEADER OFFSET (PDF PAGES 3, 4, 5, 6)
   ========================================================================== */
body.is-black-friday-active [data-site-main] {
	padding-top: 7.375rem !important;
}

body.home.is-black-friday-active [data-site-main] {
	padding-top: 6.5rem !important;
}

@media (min-width: 1024px) {
	body.is-black-friday-active [data-site-main] {
		padding-top: 9.375rem !important;
	}

	body.home.is-black-friday-active [data-site-main] {
		padding-top: 8.025rem !important;
	}

	body.is-black-friday-active .site-header-overlay-panel {
		top: calc(9.375rem + 0.75rem) !important;
	}
}

.grexpo-bf-topbar {
	position: relative;
	display: block;
	width: 100%;
	height: 2.125rem;
	background-color: var(--grexpo-bf-dark);
	color: var(--grexpo-bf-cream);
	font-family: var(--grexpo-bf-font);
	overflow: hidden;
	border-bottom: 1px solid rgba(239, 230, 206, 0.1);
	z-index: 60;
	user-select: none;
}

.grexpo-bf-topbar__track {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: max-content;
	min-width: max-content;
	height: 100%;
	animation: grexpoBfMarquee 48s linear infinite;
	will-change: transform;
}

.grexpo-bf-topbar:hover .grexpo-bf-topbar__track {
	animation-play-state: paused;
}

.grexpo-bf-topbar__sequence {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: max-content;
	height: 100%;
}

.grexpo-bf-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 1.85rem;
	padding-right: 1.85rem;
	font-family: var(--grexpo-bf-font);
	font-size: 0.84rem;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.grexpo-bf-topbar__brand {
	font-weight: 300;
	letter-spacing: 0.04em;
	color: rgba(239, 230, 206, 0.86);
}

.grexpo-bf-topbar__event {
	font-weight: 400;
	letter-spacing: 0.05em;
	color: var(--grexpo-bf-cream);
}

.grexpo-bf-topbar__offer {
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--grexpo-bf-cream);
}

@keyframes grexpoBfMarquee {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

/* ==========================================================================
   2. HOMEPAGE BLACK FRIDAY HERO BANNER (PDF PAGES 3 & 6)
   ========================================================================== */
.home-atf__hero-slide--bf.grexpo-bf-hero {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: #21130a;
	font-family: var(--grexpo-bf-font);
	overflow: hidden;
	z-index: 2;
}

.home-atf__hero-slide--bf.grexpo-bf-hero.is-active {
	pointer-events: auto;
}

.home-atf__hero.has-bf-hero-slide:has(.home-atf__hero-slide--bf.is-active) .home-atf__hero-inner--standard,
.home-atf__hero.has-bf-hero-slide:has(.home-atf__hero-slide--bf.is-active) .home-atf__hero-shade {
	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms ease;
}

.home-atf__hero.has-bf-hero-slide .home-atf__hero-inner--standard,
.home-atf__hero.has-bf-hero-slide .home-atf__hero-shade {
	transition: opacity 400ms ease;
}

.grexpo-bf-hero__custom-bg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.grexpo-bf-hero__custom-bg img.grexpo-bf-hero__img,
.grexpo-bf-hero__custom-bg img.grexpo-bf-hero__desktop-img,
.grexpo-bf-hero__custom-bg img.grexpo-bf-hero__mobile-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center !important;
	transform: none !important;
	transition: none !important;
}

.grexpo-bf-hero__custom-bg img.grexpo-bf-hero__mobile-img {
	display: none;
}

.home-atf__hero-inner.grexpo-bf-hero__inner {
	position: relative;
	z-index: 3;
	display: flex !important;
	height: 100%;
	min-height: 100% !important;
	align-items: flex-end !important;
	justify-content: center !important;
	text-align: center;
	padding-top: 0 !important;
	padding-bottom: clamp(4.6rem, 9.5vh, 6.4rem) !important;
}

.grexpo-bf-hero__copy {
	max-width: 56rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	padding: 0 1rem;
}

.grexpo-bf-hero__actions {
	margin-top: 0;
	display: flex;
	justify-content: center;
}

.grexpo-bf-hero__cta {
	width: auto !important;
	min-height: 3.1rem !important;
	padding: 0 1.8rem !important;
	font-family: var(--grexpo-bf-font) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	background-color: var(--grexpo-bf-orange) !important;
	border-color: var(--grexpo-bf-orange) !important;
	color: #171514 !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.grexpo-bf-hero__cta:hover,
.grexpo-bf-hero__cta:focus-visible {
	background-color: #ffffff !important;
	border-color: #ffffff !important;
	color: #171514 !important;
}

.grexpo-bf-hero__dots {
	z-index: 4;
}

@media (max-width: 767px) {
	.home-atf__hero.has-bf-hero-slide,
	.home-atf__hero.has-bf-hero-slide .home-atf__hero-inner--standard {
		min-height: calc(100vw * 1333 / 841) !important;
	}

	.home-atf__hero.has-bf-hero-slide .home-atf__hero-inner--standard {
		padding-block: 1.5rem 3.25rem !important;
	}

	.grexpo-bf-hero__custom-bg img.grexpo-bf-hero__desktop-img {
		display: none !important;
	}

	.grexpo-bf-hero__custom-bg img.grexpo-bf-hero__mobile-img {
		display: block !important;
		object-fit: cover;
		object-position: center center !important;
	}

	.grexpo-bf-hero__custom-bg img.grexpo-bf-hero__img {
		object-fit: contain;
		object-position: center center !important;
	}

	.home-atf__hero-inner.grexpo-bf-hero__inner {
		position: absolute !important;
		inset: 0 !important;
		min-height: 0 !important;
		padding: 0 !important;
		display: block !important;
	}

	.grexpo-bf-hero__copy {
		position: absolute;
		top: 62.5%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 100%;
	}

	.grexpo-bf-hero__cta {
		min-height: 2.85rem !important;
		padding: 0 1.55rem !important;
		font-size: 0.9rem !important;
	}
}

/* ==========================================================================
   4. PRODUCT CARDS IN BLACK FRIDAY PROMO (PDF PAGES 4 & 7)
   ========================================================================== */
.catalog-product-card.is-bf-promo {
	border: 4px solid var(--grexpo-bf-dark) !important;
}

.catalog-product-card.is-bf-promo .catalog-product-card__info > div {
	display: flex;
	flex-direction: column;
	padding-top: 0.8rem;
	padding-bottom: 0;
}

.catalog-product-card.is-bf-promo .catalog-product-card__meta-row {
	margin-bottom: 0.35rem;
}

.catalog-product-card__bf-tag {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin: auto 0 0 -1.25rem;
	padding: 0.42rem 0.78rem;
	background-color: var(--grexpo-bf-dark);
	color: var(--grexpo-bf-cream);
	font-family: var(--grexpo-bf-font);
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.catalog-product-card.is-bf-promo .catalog-product-card__actions {
	margin-top: 0;
	border-top-width: 0;
}

.catalog-product-card.is-bf-promo:is(:hover, :focus-within, .is-touch-active) .catalog-product-card__info > div {
	padding-bottom: 1rem;
}

.catalog-product-card.is-bf-promo:is(:hover, :focus-within, .is-touch-active) .catalog-product-card__actions {
	margin-top: 0.75rem;
	border-top-width: 1px;
}

/* ==========================================================================
   5. SINGLE PRODUCT PAGE IN BLACK FRIDAY PROMO (PDF PAGES 5 & 8)
   ========================================================================== */
.agota-single-product__stage.is-bf-promo {
	position: relative;
	min-height: 0 !important;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
}

.agota-single-product__stage.is-bf-promo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 20;
	border: 6px solid var(--grexpo-bf-dark);
	box-sizing: border-box;
	pointer-events: none;
}

.agota-single-product__stage.is-bf-promo .slick-slide > div {
	font-size: 0;
	line-height: 0;
}

.agota-single-product__stage.is-bf-promo.slick-initialized .agota-single-product__slide,
.agota-single-product__stage.is-bf-promo .agota-single-product__slide.is-active {
	display: block !important;
	min-height: 0 !important;
	height: auto !important;
}

.agota-single-product__stage.is-bf-promo .agota-single-product__slide a {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
}

.agota-single-product__stage.is-bf-promo .agota-single-product__slide img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	object-position: center !important;
}

.agota-single-product__stage.is-bf-promo[data-bf-badge]::after {
	content: attr(data-bf-badge);
	position: absolute;
	top: 0;
	right: 0;
	z-index: 25;
	background-color: var(--grexpo-bf-dark);
	color: var(--grexpo-bf-cream);
	font-family: var(--grexpo-bf-font);
	font-size: clamp(1.45rem, 2.2vw, 2.05rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	padding: 0.48rem 0.95rem 0.52rem 1rem;
	pointer-events: none;
}

.grexpo-bf-product-banner {
	position: relative;
	width: 100%;
	aspect-ratio: 704 / 135;
	margin-bottom: 1.15rem;
	background-color: var(--grexpo-bf-dark);
	overflow: hidden;
}

.grexpo-bf-product-banner__custom-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
