/* Fansidea-style site header */

.fi-site-header {
	--fi-h-bg: #1a1a1b;
	--fi-h-bg2: #2c2c2e;
	--fi-h-orange: #f37021;
	--fi-h-cart: #e44d3a;
	font-family: "Outfit", system-ui, sans-serif;
	color: #fff;
	position: relative;
	z-index: 10000;
}

.fi-site-header.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	transform: translateY(0);
	transition: transform 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
	will-change: transform;
}

.fi-site-header.is-fixed.is-hidden {
	transform: translateY(-100%);
	pointer-events: none;
}

.fi-site-header.is-scrolled {
	background: rgba(26, 26, 27, 0.78);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.fi-site-header.is-scrolled .fi-announcement {
	background: rgba(255, 255, 255, 0.88);
}

.fi-site-header.is-scrolled .fi-topbar,
.fi-site-header.is-scrolled .fi-mainnav {
	background: transparent;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.fi-header-spacer {
	width: 100%;
	pointer-events: none;
	visibility: hidden;
}

.fi-announcement {
	background: #fff;
	color: #111;
	text-align: center;
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
}

.fi-announcement p {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fi-topbar {
	background: var(--fi-h-bg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fi-topbar__inner,
.fi-mainnav__inner {
	width: min(100% - 24px, 1400px);
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 52px;
}

/* Full-bleed topbar so left/right can actually separate. */
.fi-topbar__inner {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding-inline: 20px;
	margin-inline: 0;
	justify-content: space-between;
	gap: 0;
}

/* Left: social + email + utility links stay together. */
.fi-topbar__start {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 1 auto;
	min-width: 0;
}

.fi-topbar__left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	min-width: 0;
}

/* Absorbs leftover width = clear split before phone/search/cart. */
.fi-topbar__gap {
	flex: 1 0 80px;
	min-width: 80px;
	height: 1px;
	align-self: center;
}

.fi-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.fi-social li {
	flex: 0 0 auto;
	line-height: 0;
}

.fi-social__link {
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	opacity: 0.95;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.fi-social__link svg,
.fi-social__svg {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	flex: 0 0 16px !important;
}

.fi-social__link:hover {
	opacity: 1;
	transform: translateY(-1px);
	color: #fff;
}

.fi-topbar__email {
	color: #fff;
	text-decoration: none;
	font-size: 11px;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.fi-topbar__links {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 16px;
	justify-content: flex-start;
	flex: 0 1 auto;
	min-width: 0;
}

.fi-topbar__links a {
	color: #fff;
	text-decoration: none;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.fi-topbar__links a:hover,
.fi-topbar__email:hover,
.fi-account:hover {
	opacity: 0.85;
}

.fi-topbar__right {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: 0;
	padding-left: 0;
	flex: 0 0 auto;
}

.fi-search {
	display: flex;
	align-items: center;
	background: #2a2a2c;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 2px;
	overflow: hidden;
	height: 32px;
}

.fi-search input {
	width: 110px;
	border: 0;
	background: transparent;
	color: #fff;
	padding: 0 10px;
	font-size: 12px;
	outline: none;
}

.fi-search input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.fi-search button {
	border: 0;
	background: transparent;
	color: #fff;
	width: 32px;
	height: 32px;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.fi-header-wc {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.fi-header-wc > .elementor-widget,
.fi-header-wc > .elementor-element {
	margin: 0 !important;
	width: auto !important;
}

/* Style only the topbar toggle — never the off-canvas drawer content. */
.fi-header-wc .etheme-elementor-off-canvas__toggle .elementor-button,
.fi-header-wc .etheme-elementor-off-canvas__toggle .et-element-label,
.fi-header-wc .etheme-elementor-off-canvas__toggle .elementor-button-text,
.fi-header-wc .etheme-elementor-off-canvas__toggle .et-cart-quantity,
.fi-header-wc .etheme-elementor-off-canvas__toggle .elementor-button-icon-qty,
.fi-header-wc .etheme-elementor-off-canvas__toggle .et-icon,
.fi-header-wc .etheme-elementor-off-canvas__toggle i {
	color: #fff !important;
}

.fi-header-wc .etheme-elementor-off-canvas__toggle .etheme-elementor-off-canvas__toggle_button,
.fi-header-wc .etheme-elementor-off-canvas__toggle .elementor-button {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	min-height: 0 !important;
}

/* Drawer must not inherit dark header text color (white-on-white). */
.fi-site-header .etheme-elementor-off-canvas__container,
.fi-site-header .etheme-elementor-off-canvas__main,
.fi-header-wc .etheme-elementor-off-canvas__container,
.fi-header-wc .etheme-elementor-off-canvas__main {
	color: #111;
}

/* Never leave mini-cart list invisible after Elementor "processing" refresh. */
body.fi-custom-header .fi-header-wc .etheme-elementor-off-canvas.processing .etheme-elementor-off-canvas_content,
body.fi-custom-header .fi-header-wc .etheme-elementor-off-canvas.processing .etheme-elementor-off-canvas_content ~ *,
body.fi-custom-header .fi-header-wc .etheme-elementor-off-canvas.elementor-loading .etheme-elementor-off-canvas_content,
body.fi-custom-header .fi-header-wc .etheme-elementor-off-canvas.elementor-loading .etheme-elementor-off-canvas_content ~ * {
	opacity: 1 !important;
	visibility: visible !important;
}

/* Hide original Elementor demo header chrome after widgets are relocated. */
body.fi-custom-header .elementor-location-header.fi-etheme-header-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	pointer-events: none !important;
}

/* Until JS moves widgets, keep Elementor header off-screen but initialized. */
body.fi-custom-header .elementor-location-header:not(.fi-etheme-header-hidden) {
	position: absolute !important;
	left: -9999px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.fi-mainnav {
	background: var(--fi-h-bg2);
}

.fi-mainnav__inner {
	min-height: 58px;
	gap: 18px;
}

.fi-logo {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.fi-logo img {
	display: block;
	height: 32px;
	width: auto;
}

.fi-logo-text {
	display: inline-block;
	font-family: "Bebas Neue", "Outfit", system-ui, sans-serif;
	font-size: 28px;
	letter-spacing: 0.06em;
	color: #fff;
	line-height: 1;
}

.fi-nav-toggle {
	display: none;
	width: 40px;
	height: 36px;
	margin-left: auto;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 0 8px;
}

.fi-nav-toggle span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 1px;
}

.fi-catnav {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.fi-catnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2px 10px;
	overflow-x: auto;
	scrollbar-width: none;
}

.fi-catnav ul::-webkit-scrollbar {
	display: none;
}

.fi-catnav a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	white-space: nowrap;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
}

.fi-catnav a:hover,
.fi-catnav li.is-active a {
	border-bottom-color: #fff;
}

.fi-catnav__caret {
	width: 0;
	height: 0;
	border-left: 3.5px solid transparent;
	border-right: 3.5px solid transparent;
	border-top: 4px solid #fff;
	opacity: 0.85;
	margin-top: 2px;
}

/* Bulk phone sits in dark topbar — keep white text */
.fi-site-header .fi-bulk-phone__title,
.fi-site-header .fi-bulk-phone__line,
.fi-site-header .fi-bulk-phone__num,
.fi-site-header .fi-bulk-phone__icon {
	color: #fff;
}

.fi-site-header .fi-bulk-phone__tip {
	z-index: 200;
}

/* Hide leftover Elementor header if any plugin still prints it */
body.fi-custom-header .elementor-location-header {
	display: none !important;
}

@media (max-width: 1200px) {
	.fi-topbar__links {
		display: none;
	}

	.fi-topbar__email {
		display: none;
	}

	.fi-topbar__gap {
		min-width: 40px;
		flex-basis: 40px;
	}
}

@media (max-width: 900px) {
	.fi-topbar__inner {
		flex-wrap: wrap;
		padding: 8px 0;
		min-height: 0;
		gap: 8px;
	}

	.fi-topbar__start {
		order: 1;
		width: 100%;
		justify-content: center;
	}

	.fi-topbar__left {
		width: 100%;
		justify-content: center;
	}

	.fi-topbar__gap {
		display: none;
	}

	.fi-topbar__right {
		order: 2;
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		margin-left: 0;
		padding-left: 0;
	}

	.fi-nav-toggle {
		display: inline-flex;
	}

	.fi-catnav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #1f1f21;
		padding: 10px 16px 18px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		max-height: 70vh;
		overflow: auto;
	}

	.fi-site-header.is-nav-open .fi-catnav {
		display: block;
	}

	.fi-catnav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.fi-catnav a {
		width: 100%;
		padding: 10px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.fi-mainnav {
		position: relative;
	}
}
