 
.mobil_bottom,
.menu_mobil_btn{
  display: none;
}
.catalogs-main{
    cursor: pointer;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.categories nav {
    border: none;
    min-width: 1px;
    background: none;
    font-weight: bold;
    font-size: 13px;
    color: #fff;
    position: absolute;
    z-index: 999;
    top: 60px;
    left: 0;
    border-radius: 20px 0 0 0;
}



.categories_nav {
    background: #fff;
    /*display: none;*/
    position: absolute;
    top: 100%;
    left: 0;
    transition: .3s;
    width: 255px;
    z-index: 1;
    padding: 20px;
	
	
	
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20%);
}
 
.categories_nav .categories_nav__menu {
    display: block;
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.categories_nav .categories_nav__menu .menu-item  {
    margin: 0;
    padding: 5px;
}
/*
.categories_nav .categories_menu > .menu-item:hover > a, 
.subcategory > .menu-item:hover > a{
    color: blue;
}
 */





.categories_menu:not(.scroll) {
    overflow: hidden;
}

 
.categories_menu li a {
    padding: 6px 10px;
    position: relative;
    transition: .3s;
    text-transform: uppercase;
    text-decoration: none;
    color: #222;
    line-height: 1.2;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.categories_menu__link {
    color: #222;
    text-decoration: none;
    position: relative;
}

.categories_nav .categories_menu__link .categories_menu__icon {
    height: 22px;
    width: 22px;
    margin-right: 8px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 22px;
    -ms-flex: 0 0 22px;
    flex: 0 0 22px;
    max-width: 22px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
}

.categories_nav .categories_menu__link .categories_menu__icon svg {
    max-height: 22px;
    max-width: 22px;
}

.categories_nav .categories_menu__link .categories_menu__icon svg path {
    fill: currentColor!important;
}

.categories_menu__link .categories_menu__name {
    -webkit-flex-basis: 0;
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

.categories_nav__subcategory:not(.level_3) .categories_menu__link .categories_menu__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categories_nav .categories_menu__link .arrow_right {
    position: absolute;
    right: 7px;
    top: calc(50% - 5px);
    -webkit-transform: rotate(0);
    transform: rotate(0);
    transition: .3s;
    width: 12px;
    height: 12px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 15px;
    -ms-flex: 0 0 15px;
    flex: 0 0 15px;
    max-width: 15px;
}

.categories_nav__subcategory.level_3 .categories__no_image .arrow_right {
    width: 50px;
    height: 50px;
    display: block;
    position: relative;
    top: inherit;
    max-width: 50px;
    flex: inherit;
}

.categories_nav .subcategory {
    background: #fff;
    border-left: 1px solid #ebebeb;
}

.categories_nav .subcategory .categories_menu__item {
    background: #fff;
    position: static;
}

.categories_nav .level_3 .subcategory {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    overflow: auto;
}

.categories_nav .level_3 .subcategory .categories_menu__item {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 10px;
    padding-left: 10px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 25%;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    background: #fff;
    min-height: 130px;
    margin-bottom: 10px;
    text-align: center;
}

.categories_nav .level_3 .subcategory .categories_menu__item .categories_menu__link {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 130px;
    background: #fff;
    width: 100%;
}


.categories_nav .level_3 .subcategory .categories_menu__item .categories_menu__image {
    height: 100px;
}

.categories_nav .level_3 .subcategory .categories_menu__item .categories_menu__image svg {
    max-height: 65px;
    max-width: 100%;
}

.categories_nav__subcategory.level_3 .categories_menu__link .categories_menu__name {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100px;
    white-space: inherit;
    overflow: inherit;
    text-overflow: inherit;
}

.categories_nav ul::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.scroll {
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hover_scroll {
    position: absolute;
    left: 0;
    height: 30px;
    width: 100%;
    opacity: 1;
    transition: all 320ms;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(240,240,240,0.7);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    margin: 0;
}



.categories_nav li:hover > .categories_nav__subcategory {
    transform: translateX(250px) translateZ(0px);
    visibility: visible;
    opacity: 1;
}













/*******************************/


.catalogs-main.fn_switch {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

 

/* Анімація гамбургера в хрестик при active */
.catalogs-main.fn_switch.active .top-menu {
  transform: rotate(45deg);
  top: 7px;
  position: absolute;
  width: 24px;
}

.catalogs-main.fn_switch.active .mid-menu {
  opacity: 0;
}

.catalogs-main.fn_switch.active .bottom-menu {
  transform: rotate(-45deg);
  top: 7px;
  position: absolute;
  width: 24px;
}

/* Стилі меню навігації */
.fn_catalog_menu {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 250px;
  /* display: none; приховано за замовчуванням */
  position: absolute; /* або fixed/relative — залежно від верстки */
  z-index: 1000;
  margin-top: 0;
  border-radius: 4px;
}


.categories_nav.active{
	display: block;
	transform: translateY(0);
	opacity: 1; 
    visibility: visible;
}


/* Стилі посилань у меню */
.fn_catalog_menu a {
  color: #363636;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.fn_catalog_menu a:hover {
  color: #945cb4;
}



.catalogs-main.active{
    color: #945cb4;
}