* {
  margin:0;
  color:var(--black);
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  text-decoration: none;
  font-style: normal;
}
html  {
  scroll-behavior: smooth;
}
body {
  background-color: var(--background);
  
  
  
  box-sizing: border-box;
}
/* width */
::-webkit-scrollbar {
  width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
  background-color: #1b1d22;

}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--red_default);
  border-radius: 100vmax;

}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #b30000;
}

nav {
    position: fixed;
    display: flex;
    top:0;
    width: 100%;
    height: var(--nav_height);
    padding: 0.5em;
    background-color: var(--brand_clr);
    align-items: center;
    gap:0.5em;
    z-index: 7;

}
#nav_logo {
    height: 95%;
    
}
#searchbar_container {
    display: flex;
    align-items: center;
    width: 20rem;
    position: relative;
}
#searchbar_container > img {
    position: absolute;
    height: 85%;
    right: 0.7em;
    opacity: 0.5;
}

#searchbar {
    background-color: rgb(19, 18, 18);
    border: 1px solid rgb(73, 73, 73);
    height: 1.8rem;
    border-radius: 100vw;
    color: beige;
    padding-left: 0.7rem;
    
    width: 100%;
}
#nav_links {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    width: 5em;
    gap: 0.5em;
}
#nav_links > a {
    position: relative;
}
#nav_links > a::after {
    
    content: "";
    position: absolute;
    border-radius: 100vw;
    height: 4px;
    width: 0;
    display: block;
    background-color: var(--red_default);
    transition: 0.4s;
}
#nav_links > a:hover::after {    
    width: 100%;   
}
#nav_cart_container {
    position: absolute;
    right: 7em;
    height: 2rem;

}
#nav_cart_container > img {
    height: 100%;
}
#nav_cart_container > p {
    position: absolute;
    display: flex;
    justify-content: center;
    right:-1.2em; 
    bottom: -1em;
    
    padding: 0.4em;

    background-color:  var(--red_default);
    border-radius: 100vw;
}



  #nav_menu_bt {
    position: absolute;
    right: 1rem;
    height: 5em;
    width: 5em;
    background:transparent;
    border:none; 
    border-radius: 1rem;
    z-index: 2;
    
  }
  #nav_menu_bt > svg {
    height: 100%;
    width: 100%;
  }
  
  #nav_menu_bt .line {
    transition: y 300ms ease-in 300ms, rotate 300ms ease-in, opacity 0ms 300ms;
    -webkit-transition: y 300ms ease-in 300ms, rotate 300ms ease-in, opacity 0ms 300ms;
    transform-origin: center;
  }
  
  #nav_menu_bt[aria-expanded="true"] .line {
    transition: y 200ms ease-in, rotate 200ms ease-in 200ms, opacity 0ms 200ms;
    -webkit-transition: y 200ms ease-in, rotate 200ms ease-in 200ms, opacity 0ms 200ms;
  }
  
  #nav_menu_bt[aria-expanded="true"] :is(.top, .bottom) {
    y: 45;
  }
  
  #nav_menu_bt[aria-expanded="true"] .top {
    rotate: 45deg;
  }
  
  #nav_menu_bt[aria-expanded="true"] .middle {
    opacity: 0;
  }
  
  #nav_menu_bt[aria-expanded="true"] .bottom {
    rotate: -45deg;
  }
  #search_results {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 5rem; 
    display:none;
    z-index: 6;
    justify-content: center;
    
  } 
  .searchbar_main_container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    
  } 
  .search_result {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
    background-color: var(--white   );
    min-width: 20em;
    
    border-radius: 0.5rem;
  }
  .search_result > img {
    height: 3rem;
    padding: 0.3em;
    background-color: var(--brand);
  }
  .search_result_name {
    display: flex;
    flex-direction: column;
  }



  


@media (max-width: 850px) {
    #nav_links {
        display: none;
    }
    #searchbar_container {
        max-width: 20rem;
    }
    #invisible {
        width: 28rem;
    }
    
}