/* Menu Header Lightbox - Start */
.menu-header-wrapper {
	display: flex;
	flex-direction: column;
	padding: 0;
	height: 100dvh;
	overflow-y: auto;
	background: var(--white);
	position: fixed;
	top: 0;
	left: -120vw;
	width: 360px;
	max-width: 100%;
	z-index: 99999;
	box-shadow: 0 0 20px rgb(0 0 0 / 15%);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: all 0.5s ease;
}
.menu-header-wrapper.active {
	left: 0vw;
	pointer-events: all;
	opacity: 1;
	visibility: visible;
}
.menu-header-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100dvh;
	z-index: 10;
	background: rgba(33, 33, 33, 0.20);
}
.menu-header {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	position: relative;
	top: 0px;
	z-index: 30;
	box-sizing: border-box;
	min-height: 0;
	background: var(--white);
}
.side-menu-close {
	width: 26px;
	height: 26px;
	cursor: pointer;
	z-index: 30;
}
.menu-block-top {
	display: flex;
	margin: 0;
}

.menu-block-middle {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow-y: auto;
	padding: 0;
}
.menu-block-middle-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}
.side-menu nav ul {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	list-style: none;
	font-family: var(--font-family-1);
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	color: var(--black);
}
.side-menu nav ul li {
	width: 100%;
	border-bottom: 1px solid #EFEFEF;
}
.side-menu nav ul li a {
	display: block;
	padding: 15px 20px;
}
/* Menu Header Lightbox - End */


/* Tab Switcher - Start */
.menu-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 55px;
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 18px;
	font-weight: 500;
	color: var(--black);
	background: var(--light-gray);
	cursor: pointer;
	position: relative;
	transition: color 0.3s ease, background 0.3s ease;
}
.menu-tab::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--border);
	transition: background 0.3s ease;
}
.menu-tab.active {
	color: var(--primary);
	background: var(--light-blue);
}
.menu-tab.active::after {
	background: var(--primary);
}
/* Tab Switcher - End */

/* Tab Content - Start */
.menu-tab-content {
	display: none;
	flex-direction: column;
	flex: 1;
}
.menu-tab-content.active {
	display: flex;
}
.menu-tab-title {
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 18px;
	font-weight: 500;
	color: var(--black);
	padding: 25px 20px 15px;
}
/* Tab Content - End */

/* Tab: Меню - Start */
.tab-menu {
	justify-content: space-between;
}
.tab-menu-nav {
	padding-top: 17px;
}
.tab-menu-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 20px;
}
.btn-cabinet {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px;
	background: var(--light-gray);
	border-radius: var(--radius-small);
	text-decoration: none;
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 18px;
	font-weight: 500;
	color: var(--black);
	cursor: pointer;
	position: relative;
	transition: background 0.3s ease;
}
.btn-cabinet:hover {
	background: var(--light-blue);
}
.btn-cabinet.dropdown-simple .dropdown-box {
	top: initial;
	bottom: calc(100% + 10px);
	width: 100%;
	text-align: center;
}
.btn-cabinet .icon-user {
	width: 22px;
	height: 24px;
	object-fit: contain;
}
.language-switcher {
	display: flex;
	align-items: center;
	gap: 10px;
}
.language-switcher .lang-link {
	font-family: var(--font-family-1);
	font-size: 15px;
	line-height: 18px;
	text-decoration: none;
	color: var(--dark-gray);
	transition: color 0.3s ease;
}
.language-switcher .lang-link.active {
	color: var(--primary);
}
.language-switcher .lang-link:not(:last-child)::after {
	content: '';
	display: inline-block;
	width: 1px;
	height: 18px;
	background: var(--dark-gray);
	vertical-align: middle;
	margin-left: 10px;
}
/* Tab: Меню - End */

/* Контент каталога - Start */
.catalog-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 20px;
}
.catalog-category:last-child {
	border-bottom: none;
}
.category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s ease;
}
.catalog-category.has-children:hover .category-header {
	background: var(--light-gray);
}
.catalog-category.has-children.expanded .category-header {
	background: var(--light-gray);
}
.category-link {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	text-decoration: none;
	color: var(--black);
}
.catalog-category .category-image {
	width: 39px;
	height: 39px;
	object-fit: contain;
	padding: 5px;
	border-radius: 10px;
	background: var(--primary);
}
.catalog-category .category-name {
	font-family: var(--font-family-1);
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	color: var(--black);
}
.catalog-category .category-expand {
	width: 16px;
	height: 16px;
	object-fit: contain;
	filter: brightness(0);
	transition: transform 0.3s ease;
}
.catalog-category.expanded .category-expand {
	transform: rotate(90deg);
}

/* Підкатегорії - Start */
.subcategories {
	display: none;
	flex-direction: column;
	background: #fafafa;
	padding: 10px 20px 15px 20px;
	border-left: 3px solid var(--primary);
}
.catalog-category.expanded .subcategories {
	display: flex;
}

/* Стили для подкатегорий второго уровня */
.subcategory-level-2 {
	font-family: var(--font-family-2);
	font-size: 15px;
	line-height: 20px;
	font-weight: 500;
	text-decoration: none;
	color: var(--black);
	padding: 8px 0;
	transition: all 0.3s ease;
}
.subcategory-level-2:hover {
	color: var(--primary);
}

/* Обертка для подкатегорий второго уровня с детьми */
.subcategory-level-2-wrapper {
	display: flex;
	flex-direction: column;
}
.subcategory-level-2-wrapper.has-children {
	margin: 4px 0;
}
.subcategory-level-2-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}
.subcategory-level-2-wrapper.has-children .subcategory-level-2 {
	flex: 1;
	padding-right: 10px;
}
.subcategory-level-2-wrapper.has-children:hover .subcategory-level-2-header {
	background: var(--light-gray);
	padding: 0 8px;
	margin: 0 -8px;
	border-radius: 4px;
}
.subcategory-level-2-wrapper.has-children.expanded .subcategory-level-2-header {
	background: #e8e8e8;
	padding: 0 8px;
	margin: 0 -8px;
	border-radius: 4px 4px 0 0;
}

/* Стрелка для подкатегорий второго уровня */
.subcategory-expand {
	width: 14px;
	height: 14px;
	object-fit: contain;
	filter: brightness(0);
	transition: transform 0.3s ease;
	opacity: 0.6;
	flex-shrink: 0;
}
.subcategory-level-2-wrapper.expanded .subcategory-expand {
	transform: rotate(90deg);
	opacity: 1;
}

/* Контейнер для подкатегорий третьего уровня */
.subcategories-level-3 {
	display: none;
	flex-direction: column;
	padding-left: 25px;
	padding-top: 5px;
	background: #f5f5f5;
	margin: 0 -8px 5px -8px;
	padding-right: 8px;
	padding-bottom: 8px;
	border-radius: 0 0 4px 4px;
	border-left: 2px solid var(--primary);
}
.subcategory-level-2-wrapper.expanded .subcategories-level-3 {
	display: flex;
}

/* Стили для подкатегорий третьего уровня */
.subcategory-level-3 {
	font-family: var(--font-family-1);
	font-size: 14px;
	line-height: 18px;
	font-weight: 400;
	color: #666;
	text-decoration: none;
	padding: 6px 8px;
	transition: all 0.3s ease;
	border-radius: 3px;
}
.subcategory-level-3:hover {
	color: var(--black);
	background: rgba(0,0,0,0.05);
}

/* Стиль для "Показать все" первого уровня */
.subcategory-level-2.show-all {
	color: var(--primary);
	border-bottom: 1px solid var(--border);
	margin-bottom: 5px;
	padding-bottom: 12px;
	font-weight: 500;
}
.subcategory-level-2.show-all:hover {
	color: var(--primary-hover);
	opacity: 0.8;
}

/* Стиль для "Показать все" третьего уровня */
.subcategory-level-3.show-all-level-3 {
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 5px;
    padding-bottom: 8px;
    font-weight: 500;
}
.subcategory-level-3.show-all-level-3:hover {
    color: var(--primary-hover);
    background: transparent;
}
/* Підкатегорії - End */

/* Контент каталога - End */

/* Адаптив - Start */
@media (max-width: 360px) {
	.menu-header-wrapper {
		width: 95vw;
	}
}
/* Адаптив - End */