/* ==========================================================================
   INERGIX – header (top bar, main bar, mega menu)
   ========================================================================== */

.ix-header {
	position: relative;
	z-index: 100;
	background: #fff;
}

/* Top bar ---------------------------------------------------------------- */
.ix-topbar {
	background: var(--ix-bg);
	border-bottom: 1px solid var(--ix-border);
}

.ix-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	gap: 20px;
}

.ix-topbar-text {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--ix-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ix-topbar-text strong {
	font-weight: 600;
}

.ix-topbar-nav {
	margin-left: auto;
}

.ix-topbar-nav ul {
	display: flex;
	align-items: center;
	margin-right: -10px;
}

.ix-topbar-nav li + li {
	margin-left: 1px;
}

.ix-topbar-nav a {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--ix-text);
	transition: color 0.2s ease;
}

.ix-topbar-nav a:hover {
	color: var(--ix-primary-ink);
}

/* Main bar --------------------------------------------------------------- */
.ix-mainbar {
	background: var(--ix-bg);
}

.ix-mainbar-inner {
	display: flex;
	align-items: center;
	height: 90px;
}

.ix-brand {
	flex: 0 0 270px;
	display: flex;
	align-items: center;
	min-width: 0;
}

.ix-logo {
	display: inline-flex;
	align-items: center;
}

.ix-logo img {
	width: 250px;
	height: 40px;
	object-fit: contain;
}

.ix-catnav {
	flex: 0 0 auto;
	margin-left: -10px;
	padding: 0 10px;
}

.ix-catbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 126.9px;
	height: 42px;
	padding: 5px 12px;
	border: 0;
	border-radius: 40px;
	background: var(--ix-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 19.6px;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ix-catbtn:hover,
.ix-catbtn[aria-expanded="true"] {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
}

.ix-catbtn .ix-icon {
	width: 14px;
	height: 14px;
}

/* Search ----------------------------------------------------------------- */
.ix-search {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 10px;
}

.ix-searchform {
	position: relative;
	display: flex;
	align-items: center;
}

/* Three classes deep on purpose: Astra prints `input[type="search"]` and
   `.woocommerce input[type="search"]` rules on WooCommerce pages, which would
   otherwise win over a single-class selector and flatten the pill. */
.ix-mainbar .ix-search .ix-search-input {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	padding: 0 76px 0 15px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 30px;
	background: #fff;
	font-size: 14px;
	line-height: 22.4px;
	color: #767676;
	appearance: none;
	outline: none;
	transition: border-color 0.2s ease;
}

.ix-search-input::placeholder {
	color: #777;
	opacity: 1;
}

.ix-search-input:focus {
	border-color: rgba(0, 174, 239, 0.45);
}

.ix-search-submit {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 30px;
	background: var(--ix-primary);
	color: var(--ix-on-primary);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ix-search-submit:hover {
	background: #0093c9;
}

/* Right side tools ------------------------------------------------------- */
.ix-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
	margin-right: -10px;
}

/* The demo reserves 371.75px for the right column (promo + four tools). Keeping
   that width after dropping the compare icon keeps the search column at the
   demo's exact width instead of letting it swallow the freed space. */
@media (min-width: 1025px) {
	.ix-tools {
		flex: 0 0 371.75px;
		width: 371.75px;
	}
}

/* Promotions is one white pill with Inerboard inside it as a second segment.
   Both links share the same border and radius, so the control reads as a
   single button. It occupies the demo's unused tools-column space, leaving
   the pinned 371.75px column and the search field exactly where they were. */
.ix-promo-wrap {
	display: flex;
	align-items: center;
	margin: 0 10px;
	overflow: hidden;
	height: 42px;
	border: 1px solid var(--ix-border);
	border-radius: 35px;
	background: #fff;
}

.ix-promo-sep {
	flex: 0 0 1px;
	width: 1px;
	height: 18px;
	background: var(--ix-border);
}

.ix-promo-btn,
.ix-inerboard-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 103.75px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ix-navy);
	font-size: 13px;
	font-weight: 600;
	line-height: 15.6px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ix-promo-btn:hover,
.ix-inerboard-btn:hover,
.ix-promo-btn:focus-visible,
.ix-inerboard-btn:focus-visible {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
}

.ix-promo-btn:focus-visible,
.ix-inerboard-btn:focus-visible {
	outline: 2px solid var(--ix-primary-ink);
	outline-offset: -3px;
}

.ix-tool {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 42px;
}

.ix-tool-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--ix-dark);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ix-tool:hover .ix-tool-icon {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
}

.ix-tool-icon--dark {
	background: var(--ix-dark);
	color: #fff;
}

.ix-tool:hover .ix-tool-icon--dark {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
}

.ix-cart-badge {
	position: absolute;
	top: -3px;
	right: -7px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--ix-primary);
	color: var(--ix-on-primary);
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
}

/* Mega menu -------------------------------------------------------------- */
.ix-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	visibility: hidden;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	pointer-events: none;
}

.ix-mega.is-open {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ix-mega-panel {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 20px;
	margin-top: 10px;
	padding: 20px;
	border-radius: var(--ix-radius);
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.ix-mega-cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 5px;
	align-content: start;
}

.ix-mega-link {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 15px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	line-height: 22.4px;
	color: var(--ix-text);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ix-mega-link:hover {
	background: var(--ix-bg);
	color: var(--ix-primary-ink);
}

.ix-mega-link .ix-icon {
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
}

.ix-mega-all {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
	padding: 12px 15px;
	border-radius: 50px;
	background: #edfafe;
	color: var(--ix-primary-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 22.4px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ix-mega-all:hover {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
}

.ix-mega-promo {
	position: relative;
	display: block;
	height: 278px;
	border-radius: var(--ix-radius);
	overflow: hidden;
	background: var(--ix-bg);
}

.ix-mega-promo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ix-mega-promo-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 25px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
	color: #fff;
}

.ix-mega-promo-sub {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
}

.ix-mega-promo-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.ix-mega-promo-cta {
	margin-top: 6px;
	padding: 7px 15px;
	border-radius: 30px;
	background: #fff;
	color: var(--ix-text);
	font-size: 13px;
	font-weight: 600;
}

/* Inerboard edition of the category-menu promo: the same navy/cyan/white
   stage as the homepage Inerboard design, with a floating interactive screen
   instead of the generic smartphone banner. Charte colours only. */
.ix-mega-promo--inerboard {
	background: var(--ix-navy);
}

.ix-mega-promo--inerboard::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 30%, rgba(0, 174, 239, 0.4), transparent 62%),
		linear-gradient(160deg, var(--ix-navy) 0%, rgba(6, 22, 52, 0.72) 100%);
	pointer-events: none;
}

.ix-mega-promo--inerboard .ix-mega-promo-img {
	position: absolute;
	top: 12px;
	right: auto;
	bottom: auto;
	left: 50%;
	z-index: 0;
	width: auto;
	max-width: calc(100% - 32px);
	height: 140px;
	object-fit: contain;
	transform: translateX(-50%);
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.ix-mega-promo--inerboard .ix-mega-promo-text {
	z-index: 1;
	gap: 4px;
	padding: 16px 20px 20px;
	background: linear-gradient(180deg, rgba(6, 22, 52, 0) 0%, rgba(6, 22, 52, 0.92) 46%);
}

.ix-mega-promo--inerboard .ix-mega-promo-cta {
	background: #fff;
	color: var(--ix-navy);
}

body.ix-mega-open {
	overflow: hidden;
}

@media (max-width: 1200px) {
	/* The demo keeps the 270px brand column and the 250px logo all the way down
	   to 1025px, which is what pins the search field at x=421.89. */
	.ix-mega-panel {
		grid-template-columns: 1fr 280px;
	}
}

@media (max-width: 1024px) {
	.ix-topbar {
		display: none;
	}

	.ix-mainbar-inner {
		height: auto;
		flex-wrap: wrap;
		padding-top: 12px;
	}

	.ix-brand {
		flex: 0 0 170px;
	}

	.ix-logo img {
		width: 170px;
		height: 28px;
	}

	.ix-promo-wrap,
	.ix-tools .ix-tool:not(.ix-tool--cart) {
		display: none;
	}

	.ix-catnav {
		margin-left: 0;
		padding: 0 0 0 15px;
	}

	.ix-catbtn {
		min-width: 0;
		height: 40px;
		padding: 0 16px;
		font-size: 13px;
	}

	.ix-search {
		order: 3;
		flex: 1 0 100%;
		margin: 0 -10px;
		padding: 0 10px 15px;
	}

	.ix-mega-panel {
		grid-template-columns: 1fr;
		max-height: calc(100vh - 140px);
		margin-top: 10px;
		padding: 12px;
		overflow-y: auto;
	}

	.ix-mega-promo {
		display: none;
	}

	.ix-mega-link {
		height: 48px;
	}
}

@media (max-width: 600px) {
	.ix-mainbar-inner {
		padding-top: 10px;
	}

	.ix-brand {
		flex: 1 1 auto;
	}

	.ix-logo img {
		width: 150px;
		height: 24px;
	}

	.ix-catnav {
		margin-left: 0;
	}

	.ix-catbtn {
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
	}

	.ix-catbtn span {
		display: none;
	}

	.ix-catbtn .ix-icon {
		width: 16px;
		height: 16px;
	}

	.ix-search {
		padding-bottom: 12px;
	}

	.ix-mega-panel {
		max-height: calc(100vh - 120px);
		border-radius: 16px;
	}

	.ix-mega-cats {
		grid-template-columns: 1fr;
	}

	.ix-mega-link {
		height: 44px;
		font-size: 15px;
	}

	.ix-mega-link .ix-icon {
		width: 28px;
		height: 28px;
	}
}

/* ==========================================================================
   Icon font (Woodmart glyphs subset)
   ========================================================================== */
@font-face {
	font-family: "ix-arrows";
	src: url("../fonts/ix-arrows.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

.ix-mi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-family: "ix-arrows";
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	speak: none;
}

.ix-mi::before {
	display: block;
}

.ix-mi--menu::before {
	content: "\f15a";
}

.ix-mi--user::before {
	content: "\f124";
}

.ix-mi--search::before {
	content: "\f130";
}

.ix-mi--heart::before {
	content: "\f106";
}

.ix-mi--compare::before {
	content: "\f128";
}

.ix-mi--cart::before {
	content: "\f105";
}

.ix-mi--close::before {
	content: "\f112";
}

/* ==========================================================================
   Mobile header, off-canvas menu and bottom toolbar
   ========================================================================== */
.ix-mobilebar,
.ix-mnav,
.ix-mnav-overlay,
.ix-toolbar {
	display: none;
}

@media (max-width: 1024px) {
	body.inergix-theme {
		padding-bottom: 55px;
	}

	.ix-topbar,
	.ix-mainbar,
	.ix-mega {
		display: none !important;
	}

	.ix-mobilebar {
		display: block;
		background: var(--ix-bg);
	}

	.ix-mobilebar-inner {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 60px;
		padding: 0 5px;
	}

	.ix-mobilebar-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		color: #333;
		cursor: pointer;
		text-decoration: none;
	}

	.ix-mobilebar-btn .ix-mi {
		color: #333;
	}

	.ix-mobilebar-logo {
		position: absolute;
		top: 50%;
		left: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		transform: translate(-50%, -50%);
	}

	.ix-mobilebar-logo img {
		display: block;
		width: 180px;
		max-width: 180px;
		height: auto;
	}

	/* Off-canvas drawer ------------------------------------------------- */
	.ix-mnav {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 500;
		display: block;
		width: min(300px, 100vw);
		max-width: 100vw;
		background: #fff;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translate3d(-100%, 0, 0);
		transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
		outline: none;
	}

	.ix-mnav.is-open {
		transform: translate3d(0, 0, 0);
	}

	.ix-mnav-searchform {
		position: relative;
		box-shadow: 0 -1px 9px rgba(0, 0, 0, 0.17);
	}

	.ix-mnav .ix-mnav-searchform .ix-mnav-input {
		box-sizing: border-box;
		display: block;
		width: 100%;
		height: 70px;
		margin: 0;
		padding: 0 70px 0 20px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: #767676;
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		line-height: 22.4px;
	}

	.ix-mnav-input::placeholder {
		color: #767676;
		opacity: 1;
	}

	.ix-mnav-input:focus {
		border: 0;
		outline: none;
	}

	.ix-mnav-submit {
		position: absolute;
		top: 0;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 70px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		color: #767676;
		cursor: pointer;
	}

	.ix-mnav-submit .ix-mi {
		color: #767676;
	}

	.ix-mnav-tabs {
		display: flex;
		margin: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.106);
	}

	.ix-mnav-tab {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 1 0 50%;
		max-width: 50%;
		min-height: 42px;
		padding: 18px 15px;
		border: 0;
		border-radius: 0;
		background: rgba(0, 0, 0, 0.04);
		color: var(--ix-muted-strong);
		font-family: inherit;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.4;
		text-align: center;
		text-transform: uppercase;
		cursor: pointer;
	}

	.ix-mnav-tab.is-active {
		background: rgba(0, 0, 0, 0.09);
		color: #333;
	}

	.ix-mnav-tab-text {
		position: static;
		display: inline-block;
		padding: 1px 0;
		line-height: 1.2;
	}

	.ix-mnav-tab-text::after {
		content: "";
		position: absolute;
		top: auto;
		bottom: -1px;
		left: 0;
		width: 0;
		height: 2px;
		background: var(--ix-primary);
		transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
	}

	.ix-mnav-tab.is-active .ix-mnav-tab-text::after {
		width: 100%;
	}

	.ix-mnav-panel {
		display: none;
	}

	.ix-mnav-panel.is-active {
		display: block;
	}

	.ix-mnav-link {
		display: flex;
		align-items: center;
		min-height: 50px;
		padding: 5px 20px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.106);
		background: none;
		color: #333;
		font-family: inherit;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.4;
		text-transform: capitalize;
		text-decoration: none;
	}

	.ix-mnav-link:hover {
		color: var(--ix-primary-ink);
	}

	.ix-mnav-link .ix-icon {
		flex: 0 0 auto;
		width: 18px;
		height: 18px;
		max-height: 18px;
		margin-right: 7px;
	}

	.ix-mnav-all {
		justify-content: space-between;
		color: var(--ix-primary-ink);
	}

	/* Same single white pill as the desktop header: Promotions and Inerboard
	   are two segments of one control, never two competing buttons. */
	.ix-mnav-cta {
		display: flex;
		align-items: center;
		gap: 0;
		margin: 12px 16px;
		overflow: hidden;
		height: 40px;
		border: 1px solid var(--ix-border);
		border-radius: 30px;
		background: #fff;
	}

	.ix-mnav-cta-btn {
		display: flex;
		flex: 1 1 0;
		align-items: center;
		justify-content: center;
		min-width: 0;
		height: 38px;
		padding: 6px 4px;
		border: 0;
		background: transparent;
		color: var(--ix-navy);
		font-size: 12px;
		font-weight: 700;
		line-height: 1.2;
		text-align: center;
		text-decoration: none;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.ix-mnav-cta-btn:hover,
	.ix-mnav-cta-btn:focus-visible {
		background: var(--ix-primary);
		color: var(--ix-on-primary);
	}

	.ix-mnav-cta-btn:focus-visible {
		outline: 2px solid var(--ix-primary-ink);
		outline-offset: -3px;
	}

	.ix-mnav-overlay {
		position: fixed;
		top: -150px;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 400;
		display: block;
		background: rgba(0, 0, 0, 0.7);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.5s;
	}

	.ix-mnav-overlay.is-open {
		opacity: 1;
		visibility: visible;
	}

	/* Bottom toolbar ---------------------------------------------------- */
	.ix-toolbar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 350;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 55px;
		padding: 5px;
		background: #fff;
		box-shadow: 0 0 9px rgba(0, 0, 0, 0.12);
	}

	.ix-toolbar-item {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 1 0 20%;
		height: 45px;
		padding: 0 0 15px;
		border: 0;
		border-radius: 0;
		background: none;
		color: #333;
		font-family: inherit;
		cursor: pointer;
		text-decoration: none;
	}

	.ix-toolbar-item .ix-mi {
		color: #333;
	}

	.ix-toolbar-label {
		position: absolute;
		right: 10px;
		bottom: 3px;
		left: 10px;
		display: block;
		overflow: hidden;
		padding: 1px 0;
		color: #333;
		font-size: 11px;
		font-weight: 600;
		line-height: 11px;
		text-align: center;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

body.ix-mnav-open {
	overflow: hidden;
}
