:root {
	--mecha-bg: #030508;
	--mecha-bg-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.78) 0%, rgba(3, 5, 8, 0.72) 55%, rgba(0, 0, 0, 0.78) 100%);
	--mecha-cyan: #00e5ff;
	--mecha-cyan-dim: #00b8d4;
	--mecha-pink: #ff2d95;
	--mecha-pink-dark: #e91e7a;
	--mecha-text: #e8f4ff;
	--mecha-muted: #7a8fa6;
	--mecha-border: rgba(0, 229, 255, 0.45);
	--mecha-glow-cyan: 0 0 20px rgba(0, 229, 255, 0.35), 0 0 40px rgba(0, 229, 255, 0.15);
	--mecha-glow-pink: 0 0 16px rgba(255, 45, 149, 0.5);
	--mecha-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.mecha-x-site {
	background: var(--mecha-bg) !important;
	color: var(--mecha-text);
	font-family: var(--mecha-font);
}

body.mecha-x-site #page,
body.mecha-x-site .site-content,
body.mecha-x-site .ast-container {
	background: transparent !important;
}

body.mecha-x-site a:not(.mecha-btn):not(.mecha-channel):not(.mecha-card__image-wrap):not(.mecha-card__title a) {
	color: var(--mecha-cyan);
}

body.mecha-x-site .entry-header {
	background: transparent;
}

body.mecha-x-site .site-footer {
	background: rgba(3, 5, 8, 0.95);
	border-top: 1px solid rgba(0, 229, 255, 0.12);
}

/* ── MECHA HEADER ───────────────────────────────── */

body.mecha-x-site #masthead,
body.mecha-x-site .ast-primary-header-bar,
body.mecha-x-site .ast-main-header-wrap,
body.mecha-x-site .main-header-bar {
	background: rgba(3, 5, 8, 0.96) !important;
	background-image: none !important;
	border-bottom: 1px solid rgba(0, 229, 255, 0.18) !important;
	box-shadow: 0 2px 24px rgba(0, 229, 255, 0.07) !important;
}

/* Site title */
body.mecha-x-site .site-title a,
body.mecha-x-site .site-title a:visited {
	background: linear-gradient(90deg, #00e5ff, #00b8d4, #00e5ff, #ff2d95, #00e5ff);
	background-size: 400% 100%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 900 !important;
	letter-spacing: 0.08em;
	text-shadow: none;
	animation: mecha-gradient-shift 8s ease-in-out infinite;
}

@keyframes mecha-gradient-shift {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

body.mecha-x-site .site-title a:hover {
	animation-duration: 3s;
}

/* Header Search Bar */
.mecha-header-search {
	position: absolute !important;
	left: 770px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 100% !important;
	max-width: 280px !important;
	z-index: 999 !important;
	display: block !important;
}

body.mecha-x-site .main-header-bar,
body.mecha-x-site .main-header-bar-wrap {
	position: relative !important;
}

body.mecha-x-site .main-header-container {
	position: relative !important;
}

.mecha-search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.mecha-search-input {
	width: 100% !important;
	padding: 0.55rem 2.8rem 0.55rem 1rem !important;
	font-size: 0.85rem !important;
	font-family: inherit !important;
	color: #fff !important;
	background: rgba(0, 0, 0, 0.5) !important;
	border: 1px solid rgba(0, 229, 255, 0.4) !important;
	border-radius: 24px !important;
	outline: none !important;
	transition: all 0.3s ease !important;
}

.mecha-search-input::placeholder {
	color: rgba(255, 255, 255, 0.6) !important;
}

.mecha-search-input:focus {
	background: rgba(0, 0, 0, 0.7) !important;
	border-color: var(--mecha-cyan) !important;
	box-shadow: 0 0 20px rgba(0, 229, 255, 0.3) !important;
}

.mecha-search-btn {
	position: absolute !important;
	right: 4px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: linear-gradient(135deg, var(--mecha-cyan), var(--mecha-cyan-dim)) !important;
	border: none !important;
	border-radius: 50% !important;
	color: #000 !important;
	cursor: pointer !important;
	box-shadow: 0 0 12px rgba(0, 229, 255, 0.4) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
	overflow: visible !important;
	line-height: 1 !important;
	font-size: 0 !important;
}

.mecha-search-btn__icon,
.mecha-search-btn svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0 !important;
	pointer-events: none !important;
}

.mecha-search-btn:hover {
	background: linear-gradient(135deg, #33eeff, var(--mecha-cyan)) !important;
	color: #000 !important;
	transform: translateY(-50%) scale(1.08) !important;
	box-shadow: 0 0 18px rgba(0, 229, 255, 0.55) !important;
}

/* Responsive */
@media (max-width: 1200px) {
	.mecha-header-search {
		left: 500px !important;
		max-width: 220px !important;
	}
}

@media (max-width: 1024px) {
	.mecha-header-search {
		left: 400px !important;
		max-width: 180px !important;
	}
}

@media (max-width: 920px) {
	.mecha-header-search {
		display: none !important;
	}
}


/* Nav links */
body.mecha-x-site .ast-nav-menu > .menu-item > .menu-link,
body.mecha-x-site #primary-site-navigation-desktop .menu-link {
	color: #c8e8f8 !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	font-size: 0.92rem !important;
	transition: color 0.2s ease;
}

body.mecha-x-site .ast-nav-menu > .menu-item > .menu-link:hover,
body.mecha-x-site #primary-site-navigation-desktop .menu-link:hover {
	color: var(--mecha-cyan) !important;
	text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

/* Active / current menu item */
body.mecha-x-site .ast-nav-menu > .current-menu-item > .menu-link,
body.mecha-x-site .ast-nav-menu > .current_page_item > .menu-link {
	color: var(--mecha-cyan) !important;
}

/* Cart icon */
body.mecha-x-site .ast-site-header-cart .ast-addon-cart-wrap,
body.mecha-x-site .ast-cart-menu-wrap {
	color: var(--mecha-cyan) !important;
}

body.mecha-x-site .ast-cart-menu-wrap .count {
	background: var(--mecha-cyan) !important;
	color: #030508 !important;
}

/* Hide page title on shop/product archive pages */
body.woocommerce-shop .entry-header,
body.woocommerce-shop .page-title,
body.woocommerce-shop .woocommerce-products-header,
body.woocommerce-shop .woocommerce-products-header__title,
body.woocommerce-shop .ast-archive-description,
body.woocommerce-shop .term-description,
body.post-type-archive-product .entry-header,
body.post-type-archive-product .page-title,
body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .entry-header,
body.tax-product_cat .page-title,
body.tax-product_cat .woocommerce-products-header,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb,
.woocommerce-products-header,
.archive-header,
.page-header,
h1.woocommerce-products-header__title,
h1.page-title,
.ast-archive-entry-banner,
.ast-archive-description,
.ast-archive-title,
section.ast-archive-description {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Hide footer social icons (Facebook, Twitter, Instagram, TikTok) */
.ast-footer-social-1-wrap,
.ast-footer-social-wrap {
	display: none !important;
}

/* Hide the duplicate mobile header bar that shows below the main header on desktop */
#ast-mobile-header {
	display: none !important;
}

/* Show it only on mobile/tablet breakpoint */
@media (max-width: 921px) {
	#ast-mobile-header {
		display: block !important;
	}
}

/* Scroll to Top Button - MECHA-X Style */
#ast-scroll-top,
.ast-scroll-to-top,
button[aria-label*="Scroll to top"],
.scroll-to-top {
	background: linear-gradient(145deg, rgba(0, 229, 255, 0.9) 0%, rgba(0, 180, 200, 0.9) 100%) !important;
	border: 2px solid rgba(0, 229, 255, 0.5) !important;
	border-radius: 8px !important;
	box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
	transition: all 0.3s ease !important;
	width: 50px !important;
	height: 50px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#ast-scroll-top:hover,
.ast-scroll-to-top:hover,
button[aria-label*="Scroll to top"]:hover,
.scroll-to-top:hover {
	background: linear-gradient(145deg, rgba(0, 229, 255, 1) 0%, rgba(0, 200, 220, 1) 100%) !important;
	box-shadow: 0 0 30px rgba(0, 229, 255, 0.6), 0 0 15px rgba(0, 229, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
	transform: translateY(-3px) !important;
	border-color: rgba(0, 229, 255, 0.8) !important;
}

#ast-scroll-top svg,
.ast-scroll-to-top svg,
button[aria-label*="Scroll to top"] svg,
.scroll-to-top svg {
	fill: #000 !important;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

#ast-scroll-top:active,
.ast-scroll-to-top:active,
button[aria-label*="Scroll to top"]:active,
.scroll-to-top:active {
	transform: translateY(-1px) !important;
	box-shadow: 0 0 15px rgba(0, 229, 255, 0.5) !important;
}
