/* Nezamart refined responsive header — V1.4 */
:root {
	--nez-green: #174b2b;
	--nez-green-deep: #123d22;
	--nez-cream: #fbf7f2;
	--nez-gold: #c99b55;
	--nez-text: #242424;
	--nez-muted: #747474;
	--nez-border: #e9e4dd;
	--nez-white: #fff;
}

/* Remove GeneratePress header wrapper constraints around the custom header. */
#masthead, .site-header { background: var(--nez-white); }
#masthead .inside-header, .site-header .inside-header {
	display: block;
	max-width: none;
	padding: 0;
}
.nez-site-header-wrap {
	position: relative;
	z-index: 100;
	width: 100%;
	background: var(--nez-white);
	color: var(--nez-text);
}
.nez-header-container {
	width: min(100% - 64px, 1360px);
	margin-inline: auto;
}

/* Slim, high-contrast announcement strip: restrained green, not a green-heavy header. */
.nez-announcement {
	min-height: 29px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nez-green-deep);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .025em;
}
.nez-announcement__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 4px 14px;
	text-align: center;
}
.nez-announcement__separator {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--nez-gold);
}

/* Desktop: exactly three columns — logo, search, actions. */
.nez-header { background: var(--nez-white); border-bottom: 1px solid var(--nez-border); }
.nez-header__main {
	min-height: 76px;
	display: grid;
	grid-template-columns: minmax(190px, 250px) minmax(300px, 1fr) minmax(210px, 260px);
	grid-template-areas: "brand search actions";
	align-items: center;
	column-gap: clamp(24px, 4vw, 64px);
}
.nez-menu-toggle { display: none !important; }
.nez-brand { grid-area: brand; display: inline-flex; align-items: center; justify-self: start; min-width: 0; text-decoration: none; }
.nez-brand .custom-logo-link { display: inline-flex; align-items: center; }
.nez-brand img.custom-logo { display: block; width: auto; max-width: 220px; max-height: 56px; object-fit: contain; }
.nez-brand--fallback { color: var(--nez-green-deep); font-family: Georgia,serif; font-size: 34px; font-weight: 700; letter-spacing: -1.5px; }
.nez-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	height: 42px;
	border: 1px solid #dedbd6;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.nez-search--desktop { grid-area: search; }
.nez-search:focus-within { border-color: var(--nez-green); box-shadow: 0 0 0 3px rgba(23,75,43,.07); }
.nez-search__icon { width: 18px; height: 18px; flex: 0 0 auto; margin-left: 13px; fill: none; stroke: #777; stroke-width: 1.8; stroke-linecap: round; }
.nez-search input[type="search"] {
	width: 100%; min-width: 0; height: 100%; padding: 0 12px;
	border: 0 !important; outline: 0 !important; box-shadow: none !important;
	background: transparent !important; color: var(--nez-text); font-size: 14px;
}
.nez-search button {
	width: 44px; height: 42px; flex: 0 0 44px; display: grid; place-items: center;
	padding: 0; border: 0; border-radius: 0; background: var(--nez-green);
	color: #fff; cursor: pointer;
}
.nez-search button:hover { background: var(--nez-green-deep); }
.nez-search button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nez-header-actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(18px, 2vw, 30px);
}
.nez-header-action {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 4px; min-width: 48px; color: var(--nez-text); text-decoration: none; font-size: 11px; line-height: 1.2;
}
.nez-header-action:hover { color: var(--nez-green); }
.nez-header-action > svg, .nez-cart-icon-wrap > svg {
	width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65;
	stroke-linecap: round; stroke-linejoin: round;
}
.nez-cart-icon-wrap { position: relative; display: inline-flex; }
.nez-cart-count {
	position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
	display: grid; place-items: center; border-radius: 20px; background: var(--nez-green);
	color: #fff; font-size: 10px; font-weight: 700;
}

/* Desktop navigation with taxonomy-backed hover/focus dropdowns. */
.nez-desktop-nav { position: relative; z-index: 101; border-bottom: 1px solid var(--nez-border); background: #fff; }
.nez-desktop-nav__inner {
	min-height: 44px; display: flex; align-items: stretch; justify-content: center;
	gap: clamp(18px, 2.7vw, 40px); padding: 0; margin-top: 0; margin-bottom: 0; list-style: none;
}
.nez-nav-item { position: relative; display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.nez-nav-item > a {
	position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
	color: var(--nez-text); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.nez-nav-item > a:hover, .nez-nav-item > a:focus-visible { color: var(--nez-green); }
.nez-nav-item:first-child > a::after {
	position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--nez-green); content: "";
}
.nez-nav-chevron { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nez-nav-submenu {
	position: absolute; top: 100%; left: -16px; z-index: 200; min-width: 210px; max-width: 280px;
	display: block; margin: 0; padding: 8px 0; list-style: none; background: #fff;
	border: 1px solid var(--nez-border); border-top: 2px solid var(--nez-gold);
	border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(0,0,0,.10);
	opacity: 0; visibility: hidden; transform: translateY(7px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.nez-nav-item:hover > .nez-nav-submenu,
.nez-nav-item:focus-within > .nez-nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nez-nav-submenu li { margin: 0; padding: 0; list-style: none; }
.nez-nav-submenu a { display: block; padding: 9px 16px; color: var(--nez-text); text-decoration: none; font-size: 13px; white-space: normal; }
.nez-nav-submenu a:hover, .nez-nav-submenu a:focus-visible { background: var(--nez-cream); color: var(--nez-green); }
.nez-nav-offers > a { color: #a13a3a; font-weight: 600; }

/* Mobile drawer. */
.nez-mobile-search-row, .nez-mobile-drawer, .nez-drawer-backdrop { display: none; }
.nez-icon-button {
	width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
	border: 0; border-radius: 8px; background: transparent; color: var(--nez-text); cursor: pointer;
}
.nez-icon-button:hover { background: var(--nez-cream); }
.nez-icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nez-drawer-backdrop {
	position: fixed; inset: 0; z-index: 9998; display: block; background: rgba(0,0,0,.42);
	opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.nez-mobile-drawer {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 9999; display: block;
	width: min(360px, 88vw); padding: 20px; overflow-y: auto; background: #fff;
	transform: translateX(-102%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0,0,0,.12);
}
body.nez-drawer-open { overflow: hidden; }
body.nez-drawer-open .nez-drawer-backdrop { opacity: 1; visibility: visible; }
body.nez-drawer-open .nez-mobile-drawer { transform: translateX(0); }
.nez-drawer__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--nez-border); color: var(--nez-green); font-size: 18px; }
.nez-drawer__links { display: flex; flex-direction: column; padding-top: 8px; }
.nez-drawer__links a { padding: 14px 4px; border-bottom: 1px solid #f0ece8; color: var(--nez-text); text-decoration: none; font-size: 15px; }
.nez-drawer__links a:hover { color: var(--nez-green); }
.screen-reader-text { 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; }

@media (max-width: 1024px) and (min-width: 768px) {
	.nez-header-container { width: calc(100% - 40px); }
	.nez-header__main { grid-template-columns: minmax(150px, 190px) minmax(220px, 1fr) minmax(185px, 220px); column-gap: 20px; }
	.nez-brand img.custom-logo { max-width: 180px; }
	.nez-header-actions { gap: 14px; }
	.nez-desktop-nav__inner { gap: 16px; }
	.nez-nav-item > a { font-size: 12px; }
}
@media (max-width: 767px) {
	.nez-header-container { width: 100%; }
	.nez-announcement { min-height: 27px; font-size: 10px; }
	.nez-announcement__inner { gap: 10px; padding: 4px 10px; }
	.nez-announcement__inner span:last-child { display: none; }
	.nez-announcement__separator { display: none; }
	.nez-header__main {
		min-height: 58px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 76px;
		grid-template-areas: "menu brand actions"; column-gap: 8px; padding: 0 14px;
	}
	.nez-menu-toggle { grid-area: menu; display: grid !important; }
	.nez-brand { grid-area: brand; justify-self: center; }
	.nez-brand img.custom-logo { max-width: 156px; max-height: 42px; }
	.nez-brand--fallback { font-size: 26px; }
	.nez-search--desktop { display: none !important; }
	.nez-header-actions { grid-area: actions; display: flex; justify-content: flex-end; gap: 13px; }
	.nez-header-action { min-width: 27px; }
	.nez-header-action > svg, .nez-cart-icon-wrap > svg { width: 22px; height: 22px; }
	.nez-header-action > span:not(.nez-cart-icon-wrap) { display: none; }
	.nez-account-action { display: none; }
	.nez-mobile-search-row { display: block; padding: 0 0 10px; background: #fff; }
	.nez-search--mobile { width: calc(100% - 28px); height: 41px; margin: 0 14px; }
	.nez-search--mobile button { width: 42px; height: 41px; flex-basis: 42px; }
	.nez-category-chips {
		display: flex; align-items: center; justify-content: space-between; gap: 7px;
		width: 100%; box-sizing: border-box; margin: 0; padding: 10px 14px 0;
		overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.nez-category-chips::-webkit-scrollbar { display: none; }
	.nez-category-chips a {
		flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center;
		min-height: 31px; padding: 6px 12px; border: 1px solid #e8e1d8; border-radius: 999px;
		background: #fbf7f2; color: var(--nez-green-deep); text-decoration: none;
		font-size: 11px; font-weight: 600; white-space: nowrap;
	}
	.nez-desktop-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.nez-nav-submenu, .nez-drawer-backdrop, .nez-mobile-drawer { transition: none; }
}
