/* =================================================================
   Navsattvakriti – Unified Site Header  v2.1.0
   Row 1 : Top announcement bar   (#f4f8f5, thin)
   Row 2 : Logo | Search | Actions  (white)
   Row 3 : Primary navigation       (white + bottom border)
   Row 4 : Green category strip     (#1D6A36)
   ================================================================= */

/* ── Reset & base ─────────────────────────────────────────── */
.agrios-amazon-header,
.agrios-amazon-header * {
	box-sizing: border-box;
}

.agrios-amazon-header {
	display: block;
	width: 100%;
	background: #fff;
	font-family: "Manrope", "Segoe UI", Arial, sans-serif;
	position: sticky;
	top: 0;
	z-index: 9990;
}

/* ── Hide original Elementor / classic theme header ───────
   Our 4-row Amazon toolbar replaces it entirely.
   The top nav lives in Elementor element 6789887 (Canvas page).
   ────────────────────────────────────────────────────────── */
.elementor-location-header,
#site-header-wrap,
.elementor-element-6789887 {
	display: none !important;
}

/* ── Elementor nav dropdown — nuclear z-index fix ─────────
   Our sticky toolbar is z-index 9990.
   Every possible Elementor dropdown element is forced to
   z-index 999999 so it is ALWAYS above our toolbar.
   ────────────────────────────────────────────────────────── */

/* Lift the whole Elementor TB header above our toolbar */
.elementor-location-header {
	position: relative !important;
	z-index: 999999 !important;
	overflow: visible !important;
}

/* Every Elementor nav-menu dropdown variant */
.elementor-nav-menu .sub-menu,
.elementor-nav-menu--main .sub-menu,
.elementor-nav-menu--dropdown,
.elementor-nav-menu__container.elementor-nav-menu--dropdown,
.elementor-widget-nav-menu .elementor-nav-menu--dropdown,
.e-n-dropdown,
.e-n-menu-toggle~.e-n-dropdown,
[class*="elementor-nav-menu"] .sub-menu,
[class*="elementor-nav-menu"] .elementor-nav-menu--dropdown {
	z-index: 999999 !important;
	position: absolute !important;
}

/* Ensure no ancestor clips or traps the dropdown —
   covers BOTH old Elementor sections AND new Flexbox Containers (.e-con) */
.elementor-section,
.elementor-container,
.elementor-widget-wrap,
.elementor-widget-container,
.e-con,
.e-con-inner,
.e-child,
.e-parent {
	overflow: visible !important;
}

/* Lower our own toolbar z-index just enough to let the
   Elementor dropdown paint above it on hover */
.agrios-amazon-header {
	z-index: 900 !important;
}

/* ── Pointer-events pass-through fix ──────────────────────
   When the user moves the mouse from a nav item downward to
   its open dropdown, the mouse crosses our search / strip
   rows. Those rows must NOT fire mouseleave on the Elementor
   nav item (which would close the dropdown via SmartMenus).
   Setting pointer-events: none on the rows lets mouse events
   fall through to the Elementor layer underneath.
   Interactive children explicitly restore pointer-events.
   ────────────────────────────────────────────────────────── */
.aah-search-row,
.aah-cat-strip {
	pointer-events: none;
}

.aah-search-row a,
.aah-search-row button,
.aah-search-row input,
.aah-search-row select,
.aah-search-row label,
.aah-cat-strip a,
.aah-cat-strip button {
	pointer-events: auto;
}

/* Shared inner container */
.agrios-amazon-header .aah-inner {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
}


/* =================================================================
   ROW 1 — Top announcement bar
   ================================================================= */
.aah-top-bar {
	background: #f4f8f5;
	border-bottom: 1px solid #e0ece4;
	padding: 6px 0;
}

.aah-top-bar .aah-inner {
	justify-content: space-between;
	gap: 12px;
}

.aah-top-msg {
	font-size: 12px;
	color: #444;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aah-top-links {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.aah-top-link {
	font-size: 12px;
	color: #333;
	text-decoration: none;
	padding: 0 12px;
	white-space: nowrap;
	transition: color 0.15s;
}

.aah-top-link:hover {
	color: #C97441;
}

.aah-top-link+.aah-top-link {
	border-left: 1px solid #ccc;
}


/* =================================================================
   ROW 2 — Logo + Search + Actions
   ================================================================= */
.aah-logo-row {
	background: #fff;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.aah-logo-row .aah-inner {
	gap: 20px;
}

/* ── Logo ── */
.aah-logo-wrap {
	flex: 0 0 auto;
	min-width: 150px;
	max-width: 200px;
}

.aah-logo-link {
	display: block;
	text-decoration: none;
}

.aah-logo-img {
	display: block;
	max-height: 60px;
	width: auto;
	max-width: 100%;
}

.aah-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.aah-logo-name {
	font-size: 18px;
	font-weight: 800;
	color: #1D6A36;
}

.aah-logo-tagline {
	font-size: 10px;
	color: #888;
	font-weight: 400;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* ── Search form — pushed 100px right of the logo gap ── */
.aah-search-form {
	flex: 1 1 auto;
	max-width: 791px;
	min-width: 0;
	margin-left: 85px;
	/* shift right from the logo (125 - 40) */
}

.aah-search-shell {
	display: flex;
	align-items: stretch;
	height: 44px;
	border-radius: 6px;
	border: 1px solid #d0d0d0;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.aah-search-shell:focus-within {
	border-color: #1D6A36;
	box-shadow: 0 0 0 2px rgba(29, 106, 54, 0.10);
}

/* Category dropdown */
.aah-cat-wrap {
	position: relative;
	flex: 0 0 auto;
	background: #f5f5f5;
	border-right: 1px solid #d0d0d0;
	display: flex;
	align-items: center;
	max-width: 120px;
}

.aah-cat-select {
	height: 100%;
	width: 100%;
	border: 0;
	background: transparent;
	padding: 3px 16px 0 10px;
	margin-top: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #444;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	text-align: center;
	text-align-last: center;
}

.aah-cat-arrow {
	pointer-events: none;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #666;
}

/* Search text input */
.aah-search-input {
	flex: 1 1 auto;
	height: 100%;
	border: 0;
	padding: 0 8px;
	font-size: 14px;
	color: #333;
	outline: none;
	background: #fff;
	min-width: 0;
}

.aah-search-input::placeholder {
	color: #aaa;
	font-weight: 400;
}

/* Search button */
.aah-search-btn {
	flex: 0 0 50px;
	height: 100%;
	border: 0;
	background: #1D6A36;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	padding: 0;
}

.aah-search-btn:hover {
	background: #155a2c;
}

.aah-search-btn svg {
	width: 20px;
	height: 20px;
	color: #fff;
	display: block;
}

/* ── Right-side actions ── */
.aah-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.aah-action-item,
.aah-cart-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	text-decoration: none;
	color: #222;
	border: 1px solid transparent;
	border-radius: 6px;
	transition: border-color 0.15s, background 0.15s;
	white-space: nowrap;
}

.aah-action-item:hover,
.aah-cart-item:hover {
	border-color: #C97441;
	background: #fdf6f1;
}

.aah-action-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #eef6f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aah-action-icon svg {
	width: 16px;
	height: 16px;
	color: #1D6A36;
}

.aah-action-text,
.aah-cart-text-wrap {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.aah-action-label {
	font-size: 13px;
	font-weight: 700;
	color: #111;
}

.aah-action-sub {
	font-size: 11px;
	color: #666;
	font-weight: 400;
}

.aah-cart-icon-wrap {
	position: relative;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef6f0;
	border-radius: 50%;
}

.aah-cart-icon-wrap svg {
	width: 16px;
	height: 16px;
	color: #1D6A36;
}

.aah-cart-badge {
	position: absolute;
	top: -3px;
	right: -4px;
	background: #1D6A36;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 2px;
	border: 1.5px solid #fff;
	line-height: 1;
}

.aah-cart-total {
	color: #1D6A36;
	font-weight: 600;
}


/* =================================================================
   ROW 3 — Primary navigation
   ================================================================= */
.aah-nav-row {
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	overflow: visible;
	/* must not clip dropdown sub-menus */
}

.aah-nav-row .aah-inner {
	padding-top: 0;
	padding-bottom: 0;
	overflow: visible;
}

.aah-nav {
	width: 100%;
	overflow: visible;
}

/* Nav menu list */
.aah-nav-menu,
.aah-nav-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aah-nav-menu {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	/* overflow-x: auto was removed — setting any overflow value forces
	   overflow-y to auto as well, which clips the dropdown sub-menus */
	overflow: visible;
}

/* Top-level items */
.aah-nav-menu>li {
	position: relative;
	flex-shrink: 0;
}

.aah-nav-menu>li>a {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 14px 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: #222;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.aah-nav-menu>li>a:hover,
.aah-nav-menu>li.current-menu-item>a,
.aah-nav-menu>li.current-menu-ancestor>a {
	color: #C97441;
	border-bottom-color: #C97441;
}

/* Nav icons */
.aah-nav-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.aah-nav-icon svg {
	width: 15px;
	height: 15px;
	color: #1D6A36;
}

.aah-nav-arrow svg {
	width: 10px;
	height: 10px;
	color: #888;
	margin-left: 2px;
}

/* ── Dropdown sub-menu ── */
.aah-nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-top: 2px solid #1D6A36;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
	z-index: 99999;
	padding: 6px 0;
	pointer-events: auto;
}

/* Show on hover (desktop) */
.aah-nav-menu li:hover>.sub-menu {
	display: block;
}

/* Show when JS adds .aah-open class (click / touch) */
.aah-nav-menu li.aah-open>.sub-menu {
	display: block !important;
}

.aah-nav-menu .sub-menu li a {
	display: block;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	transition: background 0.12s, color 0.12s;
}

.aah-nav-menu .sub-menu li a:hover {
	background: #fdf6f1;
	color: #C97441;
}

/* nested sub-menu */
.aah-nav-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	border-top: 1px solid #e5e5e5;
}


/* =================================================================
   ROW 4 — Green product-category strip
   ================================================================= */
.aah-cat-strip {
	background: #1D6A36;
	padding: 0;
}

.aah-cat-strip .aah-inner {
	height: 44px;
	justify-content: space-between;
	gap: 4px;
}

.aah-strip-links {
	display: flex;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: none;
	flex: 1 1 auto;
}

.aah-strip-links::-webkit-scrollbar {
	display: none;
}

.aah-strip-link {
	display: inline-flex;
	align-items: center;
	padding: 0 14px;
	height: 44px;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	border-right: 1px solid rgba(255, 255, 255, 0.18);
	transition: background 0.15s;
}

.aah-strip-link:first-child {
	padding-left: 0;
}

.aah-strip-link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.aah-expert-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 18px;
	background: #fff;
	color: #1D6A36;
	border: 2px solid #fff;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
	margin-left: 8px;
}

.aah-expert-btn:hover {
	background: transparent;
	color: #fff;
}


/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1100px) {
	.aah-actions {
		gap: 2px;
	}

	.aah-action-item,
	.aah-cart-item {
		padding: 5px 7px;
		gap: 6px;
	}

	.aah-nav-menu>li>a {
		padding: 14px 10px;
		font-size: 13px;
	}

	.aah-search-form {
		margin-left: 40px;
	}
}

@media (max-width: 991px) {
	.aah-top-bar .aah-inner {
		flex-wrap: wrap;
	}

	.aah-top-msg {
		font-size: 11px;
	}

	.aah-logo-row .aah-inner {
		flex-wrap: wrap;
		gap: 10px;
	}

	.aah-search-form {
		order: 3;
		flex: 1 1 100%;
		max-width: 100%;
		margin-left: 0;
	}

	.aah-actions {
		order: 2;
		margin-left: auto;
	}

	.aah-logo-wrap {
		order: 1;
	}
}

@media (max-width: 767px) {
	.agrios-amazon-header .aah-inner {
		padding: 0 12px;
	}

	.aah-top-bar {
		display: none;
	}

	.aah-action-item:not(.aah-cart-item) {
		display: none;
	}

	.aah-cat-wrap {
		min-width: 0;
		width: 30%;
		flex: 0 0 30%;
		max-width: 30%;
	}

	.aah-cat-select {
		padding: 0 14px 0 6px;
		/* Reduced padding for mobile */
	}

	.aah-search-shell {
		height: 40px;
	}

	.aah-search-btn {
		flex: 0 0 44px;
	}

	.aah-cat-strip .aah-inner {
		height: 40px;
	}

	.aah-strip-link {
		height: 40px;
		padding: 0 10px;
		font-size: 12px;
	}

	.aah-expert-btn {
		padding: 6px 12px;
		font-size: 12px;
	}

	.aah-nav-row {
		display: none;
	}
}