/**
 * Synex professional responsive header.
 * Scoped to #synex-site-header so Woodmart and Elementor content remain intact.
 */

body:has(#synex-site-header) .whb-header,
body.synex-header-ready .whb-header {
	display: none !important;
}

body.synex-mobile-menu-open {
	overflow: hidden;
}

.synex-site-header {
	--synex-header-amber: #ffbf00;
	--synex-header-orange: #ff8000;
	--synex-header-ink: #202124;
	--synex-header-copy: #484b50;
	--synex-header-muted: #767a80;
	--synex-header-line: #e7e8eb;
	--synex-header-soft: #f6f6f7;
	--synex-header-white: #fff;
	position: sticky;
	top: 0;
	z-index: 9990;
	width: 100%;
	background: var(--synex-header-white);
	color: var(--synex-header-ink);
	box-shadow: 0 8px 28px rgba(25, 26, 29, 0.07);
	font-family: var(--wd-text-font, inherit);
}

body.admin-bar .synex-site-header {
	top: 32px;
}

.synex-site-header,
.synex-site-header *,
.synex-site-header *::before,
.synex-site-header *::after {
	box-sizing: border-box;
}

.synex-site-header a {
	color: inherit;
	text-decoration: none;
}

.synex-site-header button,
.synex-site-header input {
	font: inherit;
}

.synex-site-header button,
.synex-site-header a {
	-webkit-tap-highlight-color: transparent;
}

.synex-site-header button:focus-visible,
.synex-site-header a:focus-visible,
.synex-site-header input:focus-visible {
	outline: 3px solid rgba(255, 191, 0, 0.58);
	outline-offset: 2px;
}

.synex-header-container {
	width: min(1220px, calc(100% - 40px));
	margin-inline: auto;
}

.synex-header-icon {
	display: block;
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
}

.synex-utility-bar {
	min-height: 34px;
	border-bottom: 1px solid var(--synex-header-line);
	background: var(--synex-header-soft);
	color: var(--synex-header-copy);
	font-size: 12.5px;
}

.synex-utility-bar-inner {
	min-height: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.synex-delivery-note {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	white-space: nowrap;
}

.synex-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--synex-header-amber);
	box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.18);
}

.synex-utility-links {
	display: flex;
	align-items: center;
	gap: 22px;
}

.synex-utility-links a {
	transition: color 160ms ease;
}

.synex-utility-links a:hover {
	color: var(--synex-header-ink);
}

.synex-desktop-header-inner {
	min-height: 82px;
	display: grid;
	grid-template-columns: minmax(180px, 225px) minmax(280px, 1fr) auto;
	align-items: center;
	gap: 30px;
}

.synex-header-logo,
.synex-mobile-logo {
	display: inline-flex;
	align-items: center;
}

.synex-header-logo-image {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 45px;
	object-fit: contain;
}

.synex-logo-fallback {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.synex-product-search {
	width: 100%;
	height: 46px;
	margin: 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	padding: 5px 6px 5px 15px;
	border: 1px solid #d7d9dd;
	border-radius: 12px;
	background: var(--synex-header-white);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.synex-product-search:focus-within {
	border-color: #c79400;
	box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.14);
}

.synex-product-search input[type="search"] {
	width: 100%;
	min-width: 0;
	height: 34px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--synex-header-ink);
	box-shadow: none;
	font-size: 14px;
}

.synex-product-search input[type="search"]::placeholder {
	color: var(--synex-header-muted);
	opacity: 1;
}

.synex-product-search button {
	display: inline-flex;
	align-self: center;
	align-items: center;
	justify-content: center;
	min-width: 76px;
	height: 34px;
	min-height: 34px;
	padding: 0 14px;
	line-height: 1;
	border: 0;
	border-radius: 9px;
	background: var(--synex-header-amber);
	color: var(--synex-header-ink);
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.synex-product-search button:hover {
	background: #f5b900;
}

.synex-product-search button:active {
	transform: translateY(1px);
}

.synex-header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.synex-header-action {
	position: relative;
	min-width: 72px;
	min-height: 54px;
	padding: 7px 9px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border-radius: 11px;
	color: var(--synex-header-ink);
	font-size: 12px;
	font-weight: 600;
	transition: background 160ms ease;
}

.synex-header-action:hover {
	background: var(--synex-header-soft);
}

.synex-cart-icon-wrap {
	position: relative;
	display: inline-flex;
}

.synex-cart-count {
	position: absolute;
	top: -10px;
	right: -12px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: inline-grid;
	place-items: center;
	border: 2px solid var(--synex-header-white);
	border-radius: 10px;
	background: var(--synex-header-amber);
	color: var(--synex-header-ink);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.synex-desktop-navigation {
	position: relative;
	border-top: 1px solid var(--synex-header-line);
	border-bottom: 1px solid var(--synex-header-line);
	background: var(--synex-header-white);
}

.synex-desktop-navigation-inner {
	position: relative;
	min-height: 52px;
	display: flex;
	align-items: stretch;
	gap: 2px;
}

.synex-desktop-menu-item {
	position: relative;
	display: flex;
	align-items: stretch;
}

.synex-desktop-nav-link {
	min-height: 51px;
	padding: 0 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 0;
	background: transparent;
	color: var(--synex-header-copy);
	font-size: 13.5px;
	font-weight: 700;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: inset 0 0 0 transparent;
	transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.synex-desktop-nav-link:hover,
.synex-desktop-menu-item.is-open > .synex-desktop-nav-link,
.synex-desktop-menu-item:focus-within > .synex-desktop-nav-link {
	color: var(--synex-header-ink);
	box-shadow: inset 0 -3px 0 var(--synex-header-amber);
}

.synex-desktop-menu-item--catalog {
	align-items: center;
	margin-right: 5px;
}

.synex-desktop-menu-item--catalog .synex-desktop-nav-link {
	min-height: 38px;
	padding-inline: 16px;
	border-radius: 10px;
	background: var(--synex-header-ink);
	color: var(--synex-header-white);
	box-shadow: none;
}

.synex-desktop-menu-item--catalog .synex-desktop-nav-link:hover {
	background: #303238;
	color: var(--synex-header-white);
	box-shadow: none;
}

.synex-desktop-menu-item--sale .synex-desktop-nav-link {
	color: #9a4c00;
}

.synex-desktop-dropdown-toggle .synex-header-icon {
	width: 15px;
	height: 15px;
	transition: transform 160ms ease;
}

.synex-desktop-menu-item.is-open .synex-desktop-dropdown-toggle .synex-header-icon {
	transform: rotate(180deg);
}

.synex-desktop-dropdown {
	position: absolute;
	top: calc(100% + 1px);
	left: 0;
	z-index: 100;
	width: 285px;
	padding: 20px;
	border: 1px solid var(--synex-header-line);
	border-top: 0;
	border-radius: 0 0 14px 14px;
	background: var(--synex-header-white);
	box-shadow: 0 22px 48px rgba(28, 29, 32, 0.16);
}

.synex-desktop-dropdown[hidden] {
	display: none;
}

.synex-desktop-dropdown--mega {
	width: min(760px, calc(100vw - 42px));
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(210px, 0.9fr);
	gap: 26px;
	padding: 24px;
}

.synex-dropdown-heading {
	margin: 0 0 10px;
	color: var(--synex-header-ink);
	font-size: 14px;
	font-weight: 700;
}

.synex-dropdown-links {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
	list-style: none;
}

.synex-dropdown-links li {
	margin: 0;
}

.synex-dropdown-links a,
.synex-dropdown-all-link {
	min-height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--synex-header-copy);
	font-size: 13.5px;
	transition: color 160ms ease, transform 160ms ease;
}

.synex-dropdown-links a:hover,
.synex-dropdown-all-link:hover {
	color: var(--synex-header-ink);
	transform: translateX(2px);
}

.synex-dropdown-links .synex-header-icon,
.synex-dropdown-all-link .synex-header-icon {
	width: 15px;
	height: 15px;
}

.synex-dropdown-all-link {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--synex-header-line);
	color: #7f5c00;
	font-weight: 700;
}

.synex-mega-offer {
	min-height: 150px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	border-radius: 14px;
	background: linear-gradient(145deg, #fff9e4, #fff2ba);
	color: var(--synex-header-ink);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.synex-mega-offer:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(167, 119, 0, 0.12);
}

.synex-mega-offer strong,
.synex-mega-offer small {
	display: block;
}

.synex-mega-offer strong {
	margin-bottom: 7px;
	font-size: 15px;
}

.synex-mega-offer small {
	color: #6c5a26;
	font-size: 12.5px;
	line-height: 1.45;
}

.synex-mega-offer-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
}

.synex-mega-offer-link .synex-header-icon {
	width: 15px;
	height: 15px;
}

.synex-mobile-header,
.synex-mobile-drawer,
.synex-mobile-overlay {
	display: none;
}

@media (max-width: 1120px) and (min-width: 1025px) {
	.synex-header-container {
		width: min(1080px, calc(100% - 28px));
	}

	.synex-desktop-header-inner {
		grid-template-columns: 180px minmax(240px, 1fr) auto;
		gap: 18px;
	}

	.synex-header-logo-image {
		max-width: 178px;
	}

	.synex-desktop-nav-link {
		padding-inline: 10px;
		font-size: 12.5px;
	}
}

@media (max-width: 1024px) {
	body.admin-bar .synex-site-header {
		top: 32px;
	}

	.synex-utility-bar,
	.synex-desktop-header {
		display: none;
	}

	.synex-mobile-header {
		display: block;
		background: var(--synex-header-white);
	}

	.synex-mobile-header-main {
		min-height: 62px;
		padding: 8px 12px;
		display: grid;
		grid-template-columns: 44px minmax(90px, 1fr) auto;
		align-items: center;
		gap: 8px;
		border-bottom: 1px solid var(--synex-header-line);
	}

	.synex-mobile-icon-button {
		position: relative;
		width: 44px;
		height: 44px;
		padding: 0;
		display: inline-grid;
		place-items: center;
		border: 0;
		border-radius: 11px;
		background: transparent;
		color: var(--synex-header-ink);
		cursor: pointer;
		transition: background 160ms ease;
	}

	.synex-mobile-icon-button:hover,
	.synex-mobile-icon-button[aria-expanded="true"] {
		background: var(--synex-header-soft);
	}

	.synex-mobile-logo {
		justify-self: center;
		min-width: 0;
	}

	.synex-mobile-logo .synex-header-logo-image {
		max-width: min(170px, 40vw);
		max-height: 35px;
	}

	.synex-mobile-header-actions {
		display: flex;
		align-items: center;
	}

	.synex-mobile-search-row {
		padding: 8px 12px 10px;
		border-bottom: 1px solid var(--synex-header-line);
	}

	.synex-product-search--mobile {
		height: 42px;
		padding-left: 13px;
		background: var(--synex-header-soft);
		border-color: transparent;
	}

	.synex-product-search--mobile input[type="search"] {
		height: 32px;
		font-size: 16px;
	}

	.synex-product-search--mobile button {
		height: 32px;
		min-width: 70px;
		padding-inline: 11px;
	}

	.synex-mobile-overlay {
		position: fixed;
		inset: 0;
		z-index: 9997;
		display: block;
		background: rgba(20, 21, 24, 0.44);
		opacity: 0;
		transition: opacity 200ms ease;
	}

	.synex-mobile-overlay[hidden] {
		display: none;
	}

	.synex-mobile-overlay.is-open {
		opacity: 1;
	}

	.synex-mobile-drawer {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 9998;
		width: min(86vw, 360px);
		display: flex;
		flex-direction: column;
		background: var(--synex-header-white);
		color: var(--synex-header-ink);
		box-shadow: 24px 0 54px rgba(20, 21, 24, 0.22);
		transform: translateX(-104%);
		visibility: hidden;
		pointer-events: none;
		transition: transform 220ms ease, visibility 220ms ease;
	}

	body.admin-bar .synex-mobile-drawer {
		top: 32px;
	}

	.synex-mobile-drawer.is-open {
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
	}

	.synex-mobile-drawer-head {
		min-height: 66px;
		padding: 10px 13px 10px 18px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		border-bottom: 1px solid var(--synex-header-line);
	}

	.synex-drawer-account {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		font-weight: 700;
	}

	.synex-mobile-drawer-scroll {
		flex: 1 1 auto;
		min-height: 0;
		padding: 10px 15px 22px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.synex-mobile-menu-list,
	.synex-mobile-submenu {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.synex-mobile-menu-list > li {
		margin: 0;
		border-bottom: 1px solid var(--synex-header-line);
	}

	.synex-mobile-menu-list > li > a,
	.synex-mobile-accordion-toggle {
		width: 100%;
		min-height: 51px;
		padding: 0 4px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		border: 0;
		background: transparent;
		color: var(--synex-header-ink);
		font-size: 14px;
		font-weight: 700;
		text-transform: none;
		text-align: left;
		cursor: pointer;
	}

	.synex-mobile-accordion-toggle .synex-header-icon {
		width: 16px;
		height: 16px;
		transition: transform 170ms ease;
	}

	.synex-mobile-accordion-toggle[aria-expanded="true"] .synex-header-icon {
		transform: rotate(180deg);
	}

	.synex-mobile-sale-link {
		color: #985000 !important;
	}

	.synex-mobile-submenu {
		margin: 0 0 12px 4px;
		padding: 4px 0 5px 14px;
		border-left: 3px solid var(--synex-header-amber);
	}

	.synex-mobile-submenu[hidden] {
		display: none;
	}

	.synex-mobile-submenu li {
		margin: 0;
	}

	.synex-mobile-submenu a {
		min-height: 40px;
		display: flex;
		align-items: center;
		color: var(--synex-header-copy);
		font-size: 13.5px;
	}

	.synex-mobile-help-links {
		margin-top: 20px;
		padding: 14px;
		display: grid;
		gap: 5px;
		border-radius: 14px;
		background: var(--synex-header-soft);
	}

	.synex-mobile-help-links a {
		min-height: 39px;
		display: flex;
		align-items: center;
		gap: 10px;
		color: var(--synex-header-copy);
		font-size: 13px;
	}

	.synex-mobile-help-links .synex-header-icon {
		width: 17px;
		height: 17px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .synex-site-header {
		top: 46px;
	}

	body.admin-bar .synex-mobile-drawer {
		top: 46px;
	}
}

@media (max-width: 390px) {
	.synex-mobile-header-main {
		grid-template-columns: 42px minmax(72px, 1fr) auto;
		padding-inline: 8px;
	}

	.synex-mobile-icon-button {
		width: 42px;
		height: 42px;
	}

	.synex-mobile-logo .synex-header-logo-image {
		max-width: 134px;
	}

	.synex-mobile-search-row {
		padding-inline: 9px;
	}

	.synex-product-search--mobile {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 8px;
	}

	.synex-product-search--mobile button {
		min-width: 62px;
		padding-inline: 8px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.synex-site-header *,
	.synex-site-header *::before,
	.synex-site-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
