/* Needlic main menu: tidy product dropdowns (desktop) + "View all" links. */

@media (min-width: 850px) {
	.header-nav > li > .nav-dropdown {
		border-radius: 14px;
		padding: 14px 18px;
		box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .28);
		border: 1px solid var(--nd-line);
	}
	.header-nav > li > .nav-dropdown > li > a {
		padding: 9px 4px;
		font-size: 14.5px;
		line-height: 1.35;
		color: #1f2937;
		border-radius: 8px;
		transition: color .15s ease, background-color .15s ease, padding .15s ease;
	}
	.header-nav > li > .nav-dropdown > li > a:hover {
		color: var(--nd-primary-600);
		background: #f3f6ff;
		padding-left: 10px;
	}

	/* Long lists in columns (Flatsome uses display:table, which cannot hold columns) */
	.header-nav > li.ndl-cols-2 > .nav-dropdown,
	.header-nav > li.ndl-cols-3 > .nav-dropdown { display: block; }
	.header-nav > li.ndl-cols-2 > .nav-dropdown { column-count: 2; column-gap: 26px; min-width: 500px; }
	.header-nav > li.ndl-cols-3 > .nav-dropdown { column-count: 3; column-gap: 26px; min-width: 840px; }
	.header-nav > li.ndl-cols-2 > .nav-dropdown > li,
	.header-nav > li.ndl-cols-3 > .nav-dropdown > li { break-inside: avoid; }

	/* "All ... software →" closing link */
	.header-nav .nav-dropdown > li.ndl-view-all {
		column-span: all;
		border-top: 1px solid var(--nd-line);
		margin-top: 8px;
		padding-top: 6px;
	}
	.header-nav .nav-dropdown > li.ndl-view-all > a { font-weight: 700; color: var(--nd-primary-600); border-bottom: 0; }
}

/* ---------- Header polish (all pages): same palette as the homepage ---------- */
.header-wrapper .header-bg-color { background-color: rgba(255, 255, 255, .97) !important; }
.header-wrapper .header-main { border-bottom: 1px solid #eef0f5; }
.header-wrapper .header-bottom { border-bottom: 1px solid #eef0f5; }
.header-main .header-search-form .search-field {
	height: 44px;
	border: 1px solid #e2e8f0;
	border-right: 0;
	border-radius: 12px 0 0 12px;
	background: #f8fafc;
	box-shadow: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.header-main .header-search-form .search-field:focus { background: #fff; border-color: var(--nd-sky); }
.header-main .header-search-form .ux-search-submit {
	height: 44px;
	min-height: 44px;
	border-radius: 0 12px 12px 0;
	background: linear-gradient(180deg, var(--nd-primary-400) 0%, var(--nd-primary) 45%, var(--nd-primary-600) 100%) !important;
	box-shadow: none;
}
.header-bottom-nav > li > a { font-weight: 600 !important; color: #1f2937 !important; transition: color .15s ease; }
.header-bottom-nav > li > a:hover,
.header-bottom-nav > li.active > a,
.header-bottom-nav > li.current-dropdown > a { color: var(--nd-primary-600) !important; }

/* ---------- Mobile sidebar (Flatsome off-canvas menu) ---------- */
.mobile-sidebar { background: #fff; }
.mobile-sidebar .sidebar-menu { padding: 58px 0 24px; }
.mobile-sidebar .nav-sidebar { text-transform: none; }
.mobile-sidebar .nav-sidebar > li.header-search-form { padding: 0 16px 14px; border-bottom: 1px solid #eef0f5; }
.mobile-sidebar .searchform .search-field {
	height: 46px;
	border: 1px solid #e2e8f0;
	border-right: 0;
	border-radius: 12px 0 0 12px;
	background: #f8fafc;
	box-shadow: none;
	font-size: 15px;
}
.mobile-sidebar .searchform .ux-search-submit {
	height: 46px;
	min-height: 46px;
	border-radius: 0 12px 12px 0;
	background: var(--nd-primary) !important;
}
.mobile-sidebar .nav-sidebar > li.menu-item { border-bottom: 1px solid #f1f3f8; }
.mobile-sidebar .nav-sidebar li > a {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--nd-ink);
	text-transform: none;
	letter-spacing: 0;
	transition: background-color .15s ease, color .15s ease;
}
.mobile-sidebar .nav-sidebar li > a:hover,
.mobile-sidebar .nav-sidebar li > a:focus-visible { background: var(--nd-soft); color: var(--nd-primary-600); }
.mobile-sidebar .nav-sidebar .sub-menu li > a {
	padding: 13px 20px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--nd-text) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.mobile-sidebar .nav-sidebar .sub-menu li > a:hover { color: var(--nd-primary-600) !important; }
.mobile-sidebar .nav-sidebar .sub-menu li.ndl-view-all > a { color: var(--nd-primary-600) !important; font-weight: 700 !important; }
/* Slide-panel heading ("< Embroidery") */
.mobile-sidebar .nav-slide-header .toggle,
.mobile-sidebar .nav-slide-header a { text-transform: none !important; font-size: 15px !important; font-weight: 700 !important; color: var(--nd-ink) !important; letter-spacing: 0 !important; }
.mobile-sidebar .nav-sidebar .sub-menu li { border-bottom: 1px solid #f4f6fa; }
.mobile-sidebar .nav-sidebar .toggle { color: #94a3b8; }
.mobile-sidebar .nav-sidebar > li.account-item { border-bottom: 0; padding: 18px 16px 0; }
.mobile-sidebar .nav-sidebar > li.account-item > a {
	justify-content: center;
	padding: 13px 16px;
	border-radius: 12px;
	border: 1px solid var(--nd-primary-200);
	background: var(--nd-primary-50);
	color: var(--nd-primary-800);
}
.mobile-sidebar .nav-sidebar > li.account-item > a:hover { background: var(--nd-primary-100); color: var(--nd-primary-800); }

/* Mobile off-canvas menu */
.nav-sidebar li.ndl-view-all > a { font-weight: 700; color: var(--nd-primary-600) !important; }
