.webdy-category-menu[hidden],
.webdy-category-menu__source[hidden],
.webdy-category-menu__panel[hidden] {
	display: none !important;
}

body.webdy-category-menu-open {
	overflow: hidden !important;
}

#btnHeaderMenu.webdy-category-menu-toggle {
	min-height: 36px;
	margin: 0 10px 0 0;
	border: 0;
	text-transform: none;
	cursor: pointer;
}

.webdy-category-menu {
	position: fixed;
	z-index: 100000;
	inset: 0;
	padding: 70px 18px 18px;
	opacity: 0;
	transition: opacity .2s ease;
}

.webdy-category-menu.is-open {
	opacity: 1;
}

.webdy-category-menu__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(15 23 42 / 48%);
	cursor: default;
}

.webdy-category-menu__shell {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1180px, 100%);
	height: min(730px, calc(100vh - 88px));
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 24px 70px rgb(15 23 42 / 28%);
	transform: translateY(-8px);
	transition: transform .2s ease;
}

.webdy-category-menu.is-open .webdy-category-menu__shell {
	transform: translateY(0);
}

.webdy-category-menu__header {
	display: grid;
	grid-template-columns: 190px minmax(220px, 620px) 40px;
	align-items: center;
	gap: 16px;
	min-height: 68px;
	padding: 10px 16px;
	border-bottom: 1px solid #e2e8f0;
	background: #dda5f5;
}

.webdy-category-menu__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.webdy-category-menu__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.webdy-category-menu__brand img {
	width: auto;
	max-width: 180px;
	height: auto;
	max-height: 45px;
}

.webdy-category-menu__brand > a:not(.custom-logo-link) {
	color: #111827;
	font-size: 18px;
	font-weight: 700;
}

.webdy-category-menu__search {
	min-width: 0;
}

.webdy-category-menu__search form,
.webdy-category-menu__search .searchform {
	width: 100%;
	margin: 0;
}

.webdy-category-menu__search input[type="search"] {
	height: 42px;
	margin: 0;
	border: 0;
	border-radius: 9px 0 0 9px;
	background: #fff;
	box-shadow: none;
	font-size: 15px;
}

.webdy-category-menu__search button,
.webdy-category-menu__search input[type="submit"] {
	height: 42px;
	min-height: 42px;
	margin: 0;
	border: 0;
	border-radius: 0 9px 9px 0;
	background: #fff !important;
	color: #111827 !important;
	box-shadow: none;
}

.webdy-category-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 82%);
	color: #111827;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.webdy-category-menu__body,
.webdy-category-menu__nav,
.webdy-category-menu__layout {
	min-height: 0;
	height: 100%;
}

.webdy-category-menu__body {
	flex: 1 1 auto;
	overflow: hidden;
}

.webdy-category-menu__layout {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	background: #fff;
}

.webdy-category-menu__rail {
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	border-right: 1px solid #e2e8f0;
	background: #f8fafc;
	scrollbar-width: thin;
}

.webdy-category-menu__tab,
.webdy-category-menu__rail-link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-bottom: 1px solid rgb(15 23 42 / 7%);
	border-radius: 0;
	background: #fff;
	color: #0f172a;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.webdy-category-menu__tab:nth-child(8n + 1) { background: #fee2e2; }
.webdy-category-menu__tab:nth-child(8n + 2) { background: #ffedd5; }
.webdy-category-menu__tab:nth-child(8n + 3) { background: #fef9c3; }
.webdy-category-menu__tab:nth-child(8n + 4) { background: #ecfccb; }
.webdy-category-menu__tab:nth-child(8n + 5) { background: #ccfbf1; }
.webdy-category-menu__tab:nth-child(8n + 6) { background: #e0f2fe; }
.webdy-category-menu__tab:nth-child(8n + 7) { background: #ede9fe; }
.webdy-category-menu__tab:nth-child(8n) { background: #fce7f3; }

.webdy-category-menu__tab:hover,
.webdy-category-menu__tab.is-active,
.webdy-category-menu__rail-link:hover {
	color: #111827;
	filter: saturate(1.1) brightness(.97);
	box-shadow: inset 4px 0 0 #ec4899;
}

.webdy-category-menu__tab img,
.webdy-category-menu__rail-link img {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	margin: 0;
	object-fit: contain;
}

.webdy-category-menu__panels {
	position: relative;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	background: #fff;
}

.webdy-category-menu__panel {
	position: static !important;
	display: grid !important;
	visibility: visible !important;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	align-content: start;
	gap: 12px;
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 16px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	background: #fff !important;
	opacity: 1 !important;
	box-shadow: none !important;
	transform: none !important;
	box-sizing: border-box !important;
	scrollbar-width: thin;
}

/* Flatsome's .nav-dropdown rules can otherwise collapse the active panel. */
.webdy-category-menu__panels > .webdy-category-menu__panel {
	height: 100% !important;
	min-height: 100% !important;
	max-height: none !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	box-sizing: border-box !important;
}

.webdy-category-menu__panel > li {
	position: static !important;
	min-width: 0;
	margin: 0 !important;
	padding: 12px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px;
	background: #fff;
	list-style: none;
	box-shadow: none !important;
}

.webdy-category-menu__panel > li.menu-item-has-children {
	grid-column: span 2;
}

.webdy-category-menu .menu-item-has-children::after,
.webdy-category-menu .toggle,
.webdy-category-menu .icon-angle-down {
	display: none !important;
}

.webdy-category-menu__panel a {
	color: #0f172a !important;
	text-decoration: none;
}

.webdy-category-menu__panel > li > a {
	display: flex !important;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	margin: 0;
	padding: 0 0 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.3;
}

.webdy-category-menu__panel > li:not(.menu-item-has-children) > a {
	padding-bottom: 0 !important;
}

.webdy-category-menu__panel > li > a img {
	width: 42px;
	height: 42px;
	margin: 0;
	object-fit: contain;
}

.webdy-category-menu__panel > li > .sub-menu {
	position: static !important;
	display: grid !important;
	visibility: visible !important;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 10px;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	opacity: 1 !important;
	box-shadow: none !important;
	transform: none !important;
}

.webdy-category-menu__panel > li > .sub-menu > li {
	position: static !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none;
}

.webdy-category-menu__panel > li > .sub-menu > li > a {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	min-height: 66px;
	padding: 4px !important;
	border-radius: 7px;
	font-size: 11px !important;
	font-weight: 600 !important;
	line-height: 1.2;
	text-align: center;
}

.webdy-category-menu__panel > li > .sub-menu > li > a:hover {
	background: #f8fafc;
}

.webdy-category-menu__panel > li > .sub-menu > li > a img {
	width: 38px;
	height: 38px;
	margin: 0;
	object-fit: contain;
}

@media (max-width: 849px) {
	.webdy-category-menu {
		padding: 0;
	}

	.webdy-category-menu__shell {
		width: 100%;
		height: 100%;
		max-height: none;
		border: 0;
		border-radius: 0;
		transform: translateY(0);
	}

	.webdy-category-menu__header {
		grid-template-columns: 44px minmax(0, 1fr) 36px;
		gap: 8px;
		min-height: 54px;
		padding: 6px 8px;
	}

	.webdy-category-menu__brand img {
		max-width: 42px;
		max-height: 38px;
		object-fit: contain;
	}

	.webdy-category-menu__brand > a:not(.custom-logo-link) {
		max-width: 44px;
		overflow: hidden;
		font-size: 0;
	}

	.webdy-category-menu__search input[type="search"],
	.webdy-category-menu__search button,
	.webdy-category-menu__search input[type="submit"] {
		height: 38px;
		min-height: 38px;
	}

	.webdy-category-menu__close {
		width: 34px;
		height: 34px;
		min-height: 34px;
		font-size: 24px;
	}

	.webdy-category-menu__layout {
		grid-template-columns: 70px minmax(0, 1fr);
	}

	.webdy-category-menu__tab,
	.webdy-category-menu__rail-link {
		flex-direction: column;
		justify-content: center;
		gap: 3px;
		min-height: 71px;
		padding: 5px 3px;
		font-size: 11px;
		line-height: 1.15;
		text-align: center;
	}

	.webdy-category-menu__tab img,
	.webdy-category-menu__rail-link img {
		width: 34px;
		height: 34px;
	}

	.webdy-category-menu__panel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
		padding: 10px !important;
	}

	.webdy-category-menu__panel > li {
		padding: 10px !important;
		border-radius: 9px;
	}

	.webdy-category-menu__panel > li.menu-item-has-children {
		grid-column: 1 / -1;
	}

	.webdy-category-menu__panel > li > a {
		font-size: 12px !important;
	}

	.webdy-category-menu__panel > li > a img {
		width: 36px;
		height: 36px;
	}

	.webdy-category-menu__panel > li > .sub-menu {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
	}

	.webdy-category-menu__panel > li > .sub-menu > li > a {
		padding: 3px 1px !important;
		font-size: 10px !important;
	}

	.webdy-category-menu__panel > li > .sub-menu > li > a img {
		width: 32px;
		height: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.webdy-category-menu,
	.webdy-category-menu__shell {
		transition: none;
	}
}
