/*.custom-search-bar {
      display: flex;
      max-width: 750px; 
      width: 100%;
      margin: 1px auto;  
      border: 2px solid #ccc;
      border-radius: 8px;
      overflow: hidden;
      background-color: white;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      position: relative;
    }*/
    .custom-search-bar {
      position: relative; /* 🟢 Clave para que #results se posicione respecto a este */
      display: flex;
      max-width: 750px;
      width: 100%;
      margin: 1px auto;
      border: 2px solid #ccc;
      border-radius: 8px;
      overflow: visible; /* 🟢 importante para que el dropdown se vea */
      background-color: white;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .search-category {
      border: none;
      background: #e3e3e3;
      padding: 6px 10px; /* ✅ menos alto */
      font-size: 14px;
      font-weight: 500;
      color: #333;
      cursor: pointer;
      min-width: 140px;
    }
    
    .search-input {
      flex: 1 !important;
      border: none !important;
      padding: 6px 12px  !important;  /* ✅ menos padding vertical */
      font-size: 14px !important; 
      outline: none !important;
      font-weight: 500 !important;
    }
    
    .search-btn {
      background-color: #3f45f4;
      border: none;
      padding: 0 16px; /* ✅ vertical reducido */
      font-size: 18px;
      font-weight: bold;
      color: #111;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s ease;
    }
    
    .search-btn:hover {
      background-color: #2f34c8;
    }

    #menuBtn{
      display: none;
    }
 

    .submenu-wrapper {
      width: 100%;
      
    }
    
    .submenu-wrapper ul.nav {
      list-style: none;
      display: flex;
      justify-content: left;
      gap: 20px;
      padding: 0;
       margin-left: 50px;
      
    }

    
    .submenu-wrapper ul.nav li {
      font-weight: bold;
      cursor: pointer;
      padding: 5px 10px;
      color: #f5f5f5;
    }
    
    .submenu-wrapper .nav li a {
      text-decoration: none !important;
    }


  


    /* SUBMENU 
    .side-submenu {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .side-submenu.active {
      opacity: 1;
      visibility: visible;
    }
    */



    .side-submenu {
      position: fixed;
      top: 0;
      left: -300px;
      width: 300px;
      height: 100%;
      background-color: white;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
      transition: left 0.3s ease;
      z-index: 1001;
      padding: 20px;
      
    }

    #side-submenu {
      max-height: 150vh;
      overflow-y: auto;
      overflow-x: visible; /* <-- AÑADE ESTO */
      
    }

    
    .side-submenu ul {
      list-style: none;
      padding: 0;
    }
    
    .side-submenu li a {
      display: block;
      padding: 10px 0;
      text-decoration: none;
      color: #333;
    }
    
    .side-submenu li a:hover {
      background-color: #f0f0f0;
    }
    
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      z-index: 1000;
    }

    
    /* TERMINA SUBMENU */


/* MENU NESTED*/



    /* Flechita a la derecha */
    .arrow {
      float: right;
      font-size: 18px;
    }
    
    .nested-submenu {
      display: none;
      position: absolute;
      top: 0;
      left: 100%; /* Se despliega hacia la derecha */
      min-width: 220px;
      background: white;
      border-left: 1px solid #ddd;
      box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
      z-index: 10;
      padding: 0;
      height: 100%;
    }
    
    .nested-submenu li {
      padding: 10px;
    }
    .nested-submenu li {
      padding: 10px;
      white-space: nowrap;
    }
    
    .nested-submenu li:hover {
      background: #f5f5f5;
    }
    
    /* Mostrar el submenu al pasar el mouse */
    .has-submenu {
      position: relative;
      height: 100%;
    }
    
    /*.has-submenu:hover > .nested-submenu {
     
      display: block;
    }*/
    
    .nested-submenu {
      z-index: 1100;
    }
    

    /*TERMINA MENU NESTED*/


    body, html {
      overflow-x: visible;
    }



 /* NEW CSS FOR THE  NEW MODEL */

 .menu-view {
  display: none;
}

.menu-view.active {
  display: block;
}

.back-button {
  display: block;
  padding: 10px;
  cursor: pointer;
  color: blue;
}
/* HERE CLOSED*/


/* MY DESIGN START HERE*/

.cat-submenu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
  z-index: 1001;
  padding: 20px;
  
}

#cat-submenu {
  max-height: 150vh;
  overflow-y: auto;
  overflow-x: visible; 
  
}


.cat-submenu ul {
  list-style: none;
  padding: 0;
}

.cat-submenu li a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
}

.cat-submenu li a:hover {
  background-color: #f0f0f0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}


/* MY DESIGN FINISH HERE*/

/*
#results {
  position: absolute;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  top: 100%;
}*/
#results {
  position: absolute;
  top: 100%;           /* justo debajo del input */
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  color: #000;         /* ✅ texto visible */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.result-item {
  padding: 10px;
  cursor: pointer;
  color: #000; /* ✅ texto negro visible */
}

.result-item:hover {
  background: #f0f0f0;
}



    @media(max-width: 768px){
   
      #smAcc{
        display: block;
      }
      #dkAcc{
        display: none;
      }
      .custom-search-bar {
        display: none;
      }
      
      .nav-wrapper{
        display: block;
      }
      .kv-ee-menu {
        display: none;
      }
      #menuBtn{
        display: block;
      }
    
    }