.header {
    width: 100%;
    background-color: #fff;
  }
  .headerTopWrapper {
    border-bottom: 1px solid rgba(107, 122, 144, 0.1);
    background-color: #fff;
    z-index: 9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
  .headerTopWrapper > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .headerLogo {
    display: flex;
    align-items: center;
    width: 140px;
    height: 40px;
  }
  .headerLogoSvg svg {
      max-height: 40px;
      max-width: 120px;
  }
  .headerList {
    display: flex;
    align-items: center;
    height: fit-content;
  }
  .headerList li {
    position: relative;
    margin-right: 40px;
    width: 24px;
    height: 24px;
  } 
  .headerList li#cart #count {
    display: flex;
    position: absolute;
    top: -13px;
    right: -21px;
    min-width: 20px;
    min-height: 20px;
    line-height: 1;
    border-radius: 50%;
    background: #BF1B3E;
    cursor: pointer;
    box-shadow: 0 0 0 #BF1B3E;
    animation: pulse 2s infinite;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    color: white;
  }
  .headerList li#cart #count:hover {
      animation: none
  }

  @-webkit-keyframes pulse {
      0% {
          -webkit-box-shadow: 0 0 0 0 #BF1B3E
      }

      70% {
          -webkit-box-shadow: 0 0 0 10px transparent
      }

      100% {
          -webkit-box-shadow: 0 0 0 0 transparent
      }
  }

  @keyframes pulse {
      0% {
          -moz-box-shadow: 0 0 0 0 #BF1B3E;
          box-shadow: 0 0 0 0 #BF1B3E
      }

      70% {
          -moz-box-shadow: 0 0 0 10px transparent;
          box-shadow: 0 0 0 10px transparent
      }

      100% {
          -moz-box-shadow: 0 0 0 0 transparent;
          box-shadow: 0 0 0 0 transparent
      }
  }


  .headerList img,
  .headerList svg {
    width: 24px;
    height: 24px;
  }
  .headerInfo {
    display: flex;
    align-items: center;
  }
  .headerAvatar {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 14px;
  }
  .headerAvatar svg {
    width: 24px;
    height: 24px;
    display: none;
  }
  .headerAvatar div {
    display: flex;
    flex-direction: column;
    align-items: start
  }
  .headerAvatar span {
    font-weight: 500;
  }
  .headerAvatar div :first-child {
    font-size: 12px;
    font-weight: 600;
  }
  .headerAvatar div :last-child {
    font-size: 14px;
  }
  .headerAvatar:hover{
      color: #4b4992;
      background-color: #f4f3f9;
  }

  .modalMenuMobileContent .headerAvatar{
    padding: 0;
  }

  .headerModalMenu {
    margin-right: 20px;
    display: none;
  }
  .headerModalMenu span {
    display: block;
    background-color: #000;
    width: 22px;
    height: 2px;
    margin-bottom: 5px;
  }
  .headerModalMenu span:last-child {
    margin-bottom: 0;
  }
  
  .headerMiddleWrapper {
    background-color: #f0f3f7;
    padding: 18px 0 17px;
    margin-top: 59px;
  }
  .headerNav ul {
    display: flex;
    align-items: center;
  }
  .headerNav ul li {
    margin-right: 40px;
    color: #2e384d;
    font-weight: 600;
  }
  .headerNav ul li:last-child {
    margin-right: 0;
  }
  
  .headerNav ul li button{
      display: flex;
      align-items: center;
  }
  
  .headerNav ul li button svg path{
      stroke: #000;
  }
  .headerNav ul li button svg{
      transform: rotate(90deg);
  }
  .headerNav ul li a,
  .headerNav ul li button {
    color: #2e384d;
    font-weight: 600;
    font-size: 14px;
  }

  .modalMenuMobileContent .headerNav ul{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 25px;
  }
  .modalMenuMobileContent .headerNav ul li{
    margin-right: 0;
  }

  .modalMenuMobileContent .headerNav ul li a{
    font-size: 18px;
  }
  
  .headerBottomWrapper {
    background-color: #fff;
    padding: 12px 0;
    box-shadow: 0 15px 30px 0 rgba(115, 77, 191, 0.2);
  }
  .headerSearchWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* .headerSearchWrapper span {
    font-weight: 600;
    font-size: 12px;
    min-width: 90px;
    text-align: center;
} */
 .headerSearchWrapper span {
    font-weight: 600;
    font-size: 14px;
    min-width: 90px;
    text-align: left;
    display: block;
    background: #bf1b3e;
    padding: 5px 8px;
    color: white;
    border-radius: 7px;
}
  .headerSearchWrapper input {
    border: 1px solid rgba(228, 228, 228, 1);
    border-radius: 20px;
    padding: 10px 20px 10px 20px;
    width: 370px;
    font-size: 14px;
  }
  .headerSearchWrapper button {
      padding: 11px 20px;
      background-color: #f4f3f9;
      border-radius: 20px;
      box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
      font-size: 14px;
      font-weight: 500;
  }
  
  /* Modal */

  .modalMenuMobile{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .modalMenuMobileContent{
    position: relative;
    margin: 60px 20px;
    padding: 20px;
    background: white;
    width: 100%;
    border-radius: 8px;
    text-align: center;
  }
  
  .modalMenuMobileContent .headerNav{
    margin-top: 30px;
  }

  .modalMenuMobileContent > .container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .modalMenuMobileContentHeaderList{
    justify-self: center;
  }
  
  .modalMenuMobileContentHeaderList li, .modalMenuMobileContentHeaderList li svg{
    width: 30px;
    height: 30px;
  }

  .modalMenuMobileContentHeaderList :nth-child(4),
  .modalMenuMobileContentHeaderList :nth-child(5){
    display: none;
  }

  .modalMenuMobileContentHeaderList :nth-child(3){
    margin-right: 0;
  }

  .modalMenuMobileClose{
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 40px;
    cursor: pointer;
    z-index: 1;
  }

  .modalHeader {
      display: none;
      position: absolute;
      top: -71px;
      width: 100%;
      background-color: #fff;
      border: 1px solid #ddd;
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
      z-index: 100;
      flex-wrap: wrap;
  }
  
  #overlay {
      display: none; 
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 10;
  }
  
    
  #modal-trigger:focus + #modalHeader, #modal-trigger:active + #modalHeader {
      display: block;
  }
    
  #modal-trigger:focus + #overlay, #modal-trigger:active + #overlay {
      display: block;
  }
  
  .modalCategoryWrapper{
      padding: 20px;
  }
  .modalCategoryWrapper h2{
      color: #000;
      font-weight: 600;
      font-size: 16px;
      margin-bottom: 10px;
  }
  
  .modalCategoryWrapper ul li{
      margin-bottom: 12px;
  }
  
  .modalCategoryWrapper a{
      color: #000;
      display: flex;
      align-items: center;
      font-size: 13px;
  }
  
  .modalCategoryWrapper svg{
      margin-right: 5px;
  }
  
  .modalCategoryWrapper a:hover{
      color: #1853FC;
  }
  .modalCategoryWrapper a:hover svg path{
      stroke: #1853FC;
  }
  
  #modalAvatarMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    height: 100vh;
    background-color: #fff;
    padding: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 100;
}
  
    #modal-trigger-avatar:focus + #modalAvatarMenu, #modal-trigger-avatar:active + #modalAvatarMenu {
      transform: translateX(0); 
    }
    
    #modal-trigger-avatar:focus + #overlay, #modal-trigger-avatar:active + #overlay {
      opacity: 1;
      visibility: visible;
    }
    
    .show {
      transform: translateX(0) !important;
      opacity: 1;
      visibility: visible;
    }
    
    body.modal-open {
      overflow: hidden;
      width: 101%;
      padding-right: 20px;
    }
  
    .modalAvatarInfo {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
  }

  .modalAvatarInfoWrapper {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      padding: 0 24px 20px 24px;
      align-items: center;
  }
  
    .modalAvatarInfo span{
      font-size: 16px;
      color: #020202;
      font-weight: 600;
      width: 100%;
      margin-bottom: 5px;
    }
    .modalAvatarInfo span:hover{
      color: #1853FC;
      background-color: #f4f3f9;
    }
  
    .modalAvatarInfo p {
        font-weight: 400;
        font-size: 13px;
        color: #2e384d;
    }
    #modalAvatarMenu ul li{
      width: 100%;
      padding: .5rem 1.5rem;
      background-color: transparent;
      border-top: 1px solid #f4f3f9;
      border-bottom: 1px solid #f4f3f9;
    }
  
    #modalAvatarMenu ul li a {
      color: #212529;
      font-size: 14px;
      font-weight: 400;
      display: flex;
      align-items: center;
      gap: 10px;
  } #modalAvatarMenu ul li svg {
      width: 26px;
      height: 28px;
  }
  #search {
    position: relative;
  }
  #search-result {
    position: absolute;
    background: white;
    z-index: 99;
    width: 100%;
    max-height: 385px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  #search-result a {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    line-height: 1.4;
    border-bottom: 1px solid #00000021;
    padding: 11px 7px 12px;
    align-items: center;
    font-size: 14px;
    color: #000;
 }

  #search-result::-webkit-scrollbar {
    height: 10px;
    width: 10px;
  }
  #search-result::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: #DFE9EB;
  }

  #search-result::-webkit-scrollbar-track:hover {
    background-color: #DFE9EB;
  }

  #search-result::-webkit-scrollbar-track:active {
    background-color: #DFE9EB;
  }

  #search-result::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #8B8D8F;
  }

  #search-result::-webkit-scrollbar-thumb:hover {
    background-color: #77797B;
  }

  #search-result::-webkit-scrollbar-thumb:active {
    background-color: #77797B;
  }

  #modalAvatarMenu ul li:hover{
    background-color: #f4f3f9;
  }

  #modalAvatarMenu ul li:hover a{
    color: #BF1B3E;
  }

  #modalAvatarMenu ul li:hover svg path,
  #modalAvatarMenu ul li:hover span:hover ~ svg path {
      stroke: #BF1B3E !important;
  }
  
  /* Media */
  @media (max-width: 1000px) {
    .headerMiddleWrapper {
      display: none;
    }
    .headerModalMenu {
      display: block;
    }
    .headerSearchWrapper input {
      width: 340px;
    }
    .headerBottomWrapper {
      margin-top: 60px;
  }
  }
  @media (max-width: 800px) {
    .headerAvatar div {
      display: none;
    }
    .headerAvatar svg{
      display: block;
    }
    .headerList li:last-child {
      margin-right: 20px;
    }
    .headerSearchWrapper {
      flex-direction: column;
      align-items: start;
    }
    .headerSearchWrapper > div {
      margin-bottom: 10px;
    }
    .headerSearchWrapper > div:last-child {
      margin-bottom: 0;
    }
    .headerSearchWrapper input {
      width: 100%;
    }
    .headerSearchWrapper :nth-child(2) {
      width: 100%;
    }
    .headerBottomWrapper {
      margin-top: 60px;
    }
    .headerTopWrapper{
      padding: 7px 0;
    }
    .headerList :nth-child(4){
      display: none;
    }
    .headerAvatar:hover{
      background-color: transparent;
    }
    .headerSearchWrapper button{
      padding: 5px 8px;
      font-size: 12px;
    }
    .headerSearchWrapper input{
      padding: 6px 20px 6px 6px;
      font-size: 14px;
    }
  }
  @media (max-width: 600px) {
    .headerList > li {
      display: none;
    }
    .headerList :nth-child(5){
      display: block;
    }
    .modalMenuMobileContentHeaderList > li{
      display: block;
    }
    .modalMenuMobileContentHeaderList :nth-child(5){
      display: none;
    }
    .headerLogoSvg svg{
      max-width: 110px;
    }
  }
  @media (max-width: 400px) {
    .headerLogoSvg svg{
      max-width: 100px;
    }
  }