/* Site header — mobile first */

.axtron-header {
	position: relative;
	z-index: 50;
	font-family: "Montserrat", system-ui, sans-serif;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

body.axtron-header-sticky .axtron-header {
	position: sticky;
	top: 0;
}

.axtron-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.axtron-header__brand {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.axtron-header__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.axtron-header__brand .custom-logo {
	max-height: 3rem;
	width: auto;
	height: auto;
}

.axtron-header__home {
	font-weight: 700;
	font-size: 1.125rem;
	color: #1a202c;
	text-decoration: none;
}

.axtron-header__home:hover,
.axtron-header__home:focus-visible {
	color: #1a73e8;
}

.axtron-header__toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid #cbd5e1;
	border-radius: 0.5rem;
	background: #fff;
	cursor: pointer;
}

.axtron-header__toggle-bar {
	display: block;
	height: 2px;
	width: 1.25rem;
	margin: 0 auto;
	background: #1a202c;
	border-radius: 2px;
}

.axtron-header__toggle:focus-visible {
	outline: 2px solid #1a73e8;
	outline-offset: 2px;
}

.axtron-header__panel {
	display: none;
	flex-direction: column;
	width: 100%;
	gap: 1rem;
	padding-bottom: 0.75rem;
}

.axtron-header.is-open .axtron-header__panel {
	display: flex;
}

.axtron-header__nav {
	width: 100%;
}

.axtron-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.axtron-nav__list a {
	display: block;
	padding: 0.55rem 0.35rem;
	color: #1a202c;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	border-radius: 0.35rem;
}

.axtron-nav__list a:hover,
.axtron-nav__list a:focus-visible {
	color: #1a73e8;
	background: #f1f6ff;
}

.axtron-nav__list .sub-menu {
	list-style: none;
	margin: 0.15rem 0 0;
	padding: 0 0 0 0.75rem;
	border-left: 2px solid #e2e8f0;
}

.axtron-nav__list .sub-menu a {
	font-weight: 500;
	color: #4a5568;
}

.axtron-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.axtron-header__action {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.65rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
}

.axtron-header__action--phone {
	color: #1a73e8;
	background: #eef5ff;
	border-color: #cfe3ff;
}

.axtron-header__action--phone:hover,
.axtron-header__action--phone:focus-visible {
	background: #e3edff;
}

.axtron-header__action--static {
	cursor: default;
}

.axtron-header__action--whatsapp {
	color: #fff;
	background: #25d366;
	border-color: #1ebe5b;
}

.axtron-header__action--whatsapp:hover,
.axtron-header__action--whatsapp:focus-visible {
	filter: brightness(0.95);
}

.axtron-header__action-icon {
	display: flex;
	line-height: 0;
}

.axtron-header__action--icon {
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	justify-content: center;
	border-radius: 999px;
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #334155;
}

.axtron-header__action--icon:hover,
.axtron-header__action--icon:focus-visible {
	background: #eaf1ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

.axtron-header__searchWrap {
	position: relative;
}

.axtron-header__searchToggle {
	cursor: pointer;
}

/* Cart Icon */
.axtron-header__cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.axtron-header__cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 700;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
	animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
	}
	50% {
		transform: scale(1.1);
		box-shadow: 0 4px 12px rgba(0, 102, 204, 0.5);
	}
}

.axtron-header__cart-link:hover .axtron-header__action-icon {
	color: #0066cc;
	animation: bounce-cart 0.6s ease-in-out;
}

@keyframes bounce-cart {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-4px);
	}
}

.axtron-header__searchForm {
	position: absolute;
	top: calc(100% + 0.45rem);
	right: 0;
	display: none;
	align-items: center;
	gap: 0.45rem;
	background: #ffffff;
	border: 1px solid #dbe3ef;
	border-radius: 0.7rem;
	padding: 0.45rem;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
	min-width: min(90vw, 18rem);
	z-index: 70;
}

.axtron-header__searchWrap.is-open .axtron-header__searchForm {
	display: flex;
}

.axtron-header__searchInput {
	flex: 1 1 auto;
	min-width: 8rem;
	height: 2rem;
	border: 1px solid #d1d9e6;
	border-radius: 0.5rem;
	padding: 0 0.65rem;
	font-size: 0.82rem;
	outline: none;
}

.axtron-header__searchInput:focus {
	border-color: #93c5fd;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.axtron-header__searchSubmit {
	height: 2rem;
	border: 0;
	border-radius: 0.5rem;
	padding: 0 0.7rem;
	background: #1d4ed8;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.axtron-header__searchSubmit:hover {
	filter: brightness(1.05);
}

.axtron-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	background: #1a73e8;
	border: 1px solid #155fcc;
}

.axtron-header__cta:hover,
.axtron-header__cta:focus-visible {
	filter: brightness(1.05);
}

@media (min-width: 62rem) {
	.axtron-header__toggle {
		display: none;
	}

	.axtron-header__inner {
		flex-wrap: nowrap;
		padding-top: 0.85rem;
		padding-bottom: 0.85rem;
	}

	.axtron-header__brand {
		flex: 0 0 auto;
	}

	.axtron-header__panel {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
		flex: 1 1 auto;
		width: auto;
		padding-bottom: 0;
		gap: 1.5rem;
	}

	.axtron-header__nav {
		width: auto;
		flex: 1 1 auto;
		display: flex;
		justify-content: center;
	}

	.axtron-nav__list {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 0.15rem 0.35rem;
	}

	.axtron-nav__list .menu-item {
		position: relative;
	}

	.axtron-nav__list .sub-menu {
		display: none;
		position: absolute;
		left: 0;
		top: 100%;
		min-width: 12rem;
		margin: 0.35rem 0 0;
		padding: 0.35rem 0;
		background: #fff;
		border: 1px solid #e2e8f0;
		border-radius: 0.5rem;
		box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
		z-index: 60;
	}

	.axtron-nav__list .menu-item.is-open > .sub-menu {
		display: block;
	}

	.axtron-nav__list .sub-menu a {
		padding: 0.45rem 0.75rem;
		border-radius: 0.25rem;
	}

	/* Nested submenus (third level) */
	.axtron-nav__list .sub-menu .menu-item {
		position: relative;
	}

	.axtron-nav__list .sub-menu .sub-menu {
		display: none;
		position: absolute;
		left: 100%;
		top: 0;
		min-width: 12rem;
		margin: 0 0 0 0.35rem;
		padding: 0.35rem 0;
		background: #fff;
		border: 1px solid #e2e8f0;
		border-radius: 0.5rem;
		box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
		z-index: 70;
	}

	.axtron-nav__list .sub-menu .menu-item:hover > .sub-menu {
		display: block;
	}

	.axtron-nav__list .sub-menu .sub-menu a {
		padding: 0.45rem 0.75rem;
		border-radius: 0.25rem;
	}

	.axtron-header__actions {
		flex: 0 0 auto;
		justify-content: flex-end;
	}
}
