.show-mobile {}
.show-desktop {
  display: none;
}

.header-content-mobile {
  display: flex;
  justify-content: space-between;
}

.header-hamburger-button {
  border: none;
  background: none;
  padding: 0px;
}

.header-logo {
  border: none;
  background: none;
  padding: 0px;
}

.header-search-button {
  border: none;
  background: none;
  padding: 0px;

  img {
    width: 24px;
    height: 24px;
  }
}


 /* --------------- Menu mobile --------------- */
 .menu-mobile {
  width: 100vw;
  height: 100vh;
  position: fixed;
  background-color: #0054A6;
  z-index: 2000;
  padding: 0px 20px;

  top: 0px;
  left: 0px;
}

.menu-mobile-close {
  display: none !important;
}


.menu-mobile-header-buttons-bar {
  display: flex;
  justify-content: flex-end;

  width: 100%;
  height: 56px;
  min-height: 56px;

  button {
    border: none;
    background: none;
    padding: 0px;
  }

  .menu-mobile-close-button {
    img {
      width: 24px;
      height: 24px;
    }
  }
}


.menu-mobile-content {
  width: 100%;
}

.menu-mobile-search-bar-container {
  padding-top: 16px;
  padding-bottom: 24px;
}

.menu-mobile-search-input {
  width: 100%;
  height: 48px;

  background-color: #054887;
  background-image: url("../img/search1.svg");
  background-repeat: no-repeat;
  background-position: 16px center;
  border: none;
  border-radius: 8px;

  padding-left: 50px;


  font-family: 'ff2';
  font-size: 14px;
  color: white;
}

.menu-mobile-search-input::placeholder {
  font-size: 12px;
  color: #B0BFC9;
}

.menu-mobile-option-container {
  display: flex;
  flex-direction: column;

  height: calc(100vh - 350px);

  row-gap: 16px;
}

.menu-mobile-option {
  border: none;
  background-color: #0062C0;
  color: white;

  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  height: 64px;
  border-radius: 8px;

  font-family: 'ff3';
  font-size: 20px;

  text-align: left;
  padding: 0px 24px;
}

.menu-mobile-social-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 15px;

  margin-bottom: 43px;

  h3 {
    font-family: 'ff3';
    font-size: 14px;
    color: white;
  }
}

.menu-mobile-footer {
  height: 96px;

  display: flex;
  align-items: center;
}


 /* --------------- Mega menu --------------- */
.mega-menu-bg {
  display: none;

  width: 100vw;
  height: 100vh;
  position: fixed;
  bottom: 0px;
  left: 0px;
  z-index: 1000;
}

#mega-menu {
  display: none;
}

.mega-menu {
  width: 100vw;
  height: 100vh;
  background-color: #054887;

  padding: 0px 20px;

  overflow: hidden;
  overflow-y: auto;
}

.mega-menu-header {
  color: white;
  font-family: 'ff3';
  h2 {
    font-size: 24px;

    padding-top: 17px;
    padding-bottom: 24px;
  }
}

.mega-menu-header-buttons-bar {
  display: flex;
  justify-content: space-between;

  height: 56px;
  min-height: 56px;

  button {
    border: none;
    background: none;
    padding: 0px;
  }

  .mega-menu-close-button {
    img {
      width: 24px;
      height: 24px;
    }
  }
}

.mega-menu-content {
  display: flex;
  flex-direction: column-reverse;
}

.mega-menu-header-produtos {
  color: white;
  
  display: flex;
  justify-content: space-between;
  width: 100%;

  padding-top: 22px;
  padding-bottom: 22px;

  border-top: 1px solid #0054A6;

  h2 {
    font-family: 'ff3';
    font-size: 24px;
  }

  button {
    border: none;
    background: none;

    font-family: 'ff3';
    font-size: 16px;
    color: white;

    display: flex;
    align-items: center;
    column-gap: 12px;
    span {
      display: none;
    }
  }
}

.mega-menu-title-desktop {
  display: none;
}

.mega-menu-lista-produtos {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.mega-menu-card-produto {
  border: none;
  background: none;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  padding: 0px;
  padding-left: 0px;
  padding-right: 12px;

  background-color: #0054A6;

  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;

  button {
    border: none;
    background: none;
  }
}

.mega-menu-card-produto-content {
  display: flex;
  align-items: center;
  column-gap: 16px;

  height: 100%;
  max-height: 100%;
}

.mega-menu-card-produto:hover {
  background-color: #0054A68F;
}

.mega-menu-imagem-produto {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background-color: white;
}

.mega-menu-nome-produto {
  font-family: 'ff2';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  color: white;

  word-break: break-word;
  white-space: normal;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Lista marcas */
.mega-menu-container-marcas {
  box-sizing: border-box;
  margin-bottom: 24px;
}

.mega-menu-header-marcas {
  color: white;

  display: flex;
  justify-content: space-between;
  width: 100%;

  padding-top: 20px;
  padding-bottom: 20px;

  border-top: 1px solid #0054A6;

  h2 {
    font-family: 'ff3';
    font-size: 24px;
  }

  button {
    border: none;
    background: none;

    font-family: 'ff3';
    font-size: 16px;
    color: white;

    display: flex;
    align-items: center;
    column-gap: 12px;

    span {
      display: none;
    }

    .mega-menu-show-all-blue-arrow {
      display: none;
    }
  }
}

.mega-menu-lista-marcas {
  display: flex;
  column-gap: 8px;
  row-gap: 12px;
  overflow: hidden;
  overflow-y: auto;
  width: 100vw;

  .mega-menu-lista-vazia {
    font-family: 'ff4';
    font-size: 28px;
    color: #23262A;

    width: 100%;
    min-width: 100%;

    margin-top: 40px;

    text-align: center;
  }
}

.mega-menu-card-marca {
  border: none;
  background-color: white;

  display: flex;
  align-items: center;

  width: 80px;
  max-width: 80px;
  height: 80px;
  min-height: 80px;

  border-radius: 6px;
  padding: 0px;

  .mega-menu-imagem-esquerda {
    display: none;
  }

  .mega-menu-logo-marca {
    width: 80px;
    min-width: 80px;
    height: 80px;
    padding: 15px;

    object-fit: contain;
  }

  .mega-menu-descricao-marca {
    display: none;    
    font-family: 'ff1';
    font-size: 12px;
    color: white;
    font-weight: 400;
    line-height: 14.4px;
    letter-spacing: 0.02em;
    text-align: left;
    
    text-overflow: ellipsis;
    max-height:92px;
    overflow:hidden;

    word-break: break-word;
    white-space: normal;        

  }
}



.mega-menu-footer {
  height: 96px;

  display: flex;
  align-items: center;
}

.fale-conosco-button {
  width: 100%;
  height: 48px;

  border-radius: 8px;

  border: none;

  font-family: 'ff4';
  font-size: 16px;

  color: #0054A6;
}

@media screen and (min-width: 992px) {
  .show-mobile {
    display: none;
  }
  .show-desktop {
    display: initial;
  }

  .menu-mobile {
    display: none !important;
  }

  #menu-mobile {
    position: relative;
    z-index: 100;
  }

  .mega-menu-bg {
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 1000;

    backdrop-filter: blur(10px);
    width: 100vw;
    height: calc(100% - 130px);
    min-width: 100vw;
    min-height: calc(100% - 130px);

    padding: 16px 0px 190px 0px;
    
  }

  .mega-menu {
    top: 0;
    left: 0;
    background-color: #0A3C70;
    width: 95vw;
    height: 100vh;
    max-height: calc(100vh - 170px);
    overflow: hidden;
    border-radius: 40px;
    margin: auto;
    padding: 8px;

    overflow: hidden;
  : 2px solid red; */
  }

  #mega-menu {
    display: initial !important;
    transition: all 0.25s ease-in-out !important;
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
  }

  #mega-menu.show {
    top: unset;
    bottom: 0px;
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
  }

  .mega-menu-header {
    display: none;
  }

  .mega-menu-content {
    display: flex;
    flex-direction: row;

    height: 100%;
  }

  .mega-menu-container-produtos {
    border-radius: 32px;
    width: 60%;
    height: 100%;
    min-height: 100%;
    padding: 32px;
    box-sizing: border-box;

    overflow: hidden;
  }

  .mega-menu-header-produtos {
    color: white;

    display: flex;
    justify-content: space-between;
    width: 100%;

    padding-bottom: 35px;

    border-top: none;
    border-bottom: 1px solid #0054A6;

    h2 {
      font-family: 'ff4';
      font-size: 24px;
    }

    button {
      border: none;
      background: none;

      font-family: 'ff4';
      font-size: 16px;
      color: white;

      display: flex;
      align-items: center;
      column-gap: 12px;

      span {
        display: initial;
      }
    }
  }

  .mega-menu-title-desktop {
    display: initial;
  }

  .mega-menu-title-mobile {
    display: none;
  }

  .mega-menu-lista-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100%);
    grid-template-rows: repeat(auto-fill, 64px);
    justify-content: space-between;

    width: 100%;
    min-width: 100%;

    height: calc(100% - 80px);
    padding-bottom: 10px;
    row-gap: 14px;

    margin-top: 24px;

    overflow: hidden;
    overflow-y: auto;
  }

  .mega-menu-card-produto {
    height: 64px;
    border-radius: 12px;
    padding: 8px;

    display: flex;
    align-items: center;
    column-gap: 16px;
    background-color: transparent;
    .mega-menu-produto-icon {
      display: none;
    }
  }

  .mega-menu-card-produto:hover {
    background-color: #0054A68F;
  }

  .mega-menu-imagem-produto {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background-color: white;
  }

  .mega-menu-nome-produto {
    font-family: 'ff2';
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: white;

    height: 100%;
    max-height: 100%;

    position: relative;
  }

  // Ellipsis do texto das caixas de produto do mega menu
  .mega-menu-nome-produto::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 24px;
    background: none;
  }

  /* Lista marcas */
  .mega-menu-container-marcas {
    box-sizing: border-box;
    background-color: #F0F7FF;
    border-radius: 32px;
    width: 70%;
    height: 100%;
    min-height: 100%;
    padding: 32px;
    overflow: hidden;
  }

  .mega-menu-header-marcas {
    color: #23262A;

    display: flex;
    justify-content: space-between;
    width: 100%;

    padding-top: 0px;
    padding-bottom: 35px;

    border-top: none;

    h2 {
      font-family: 'ff4';
      font-size: 24px;
    }

    button {
      border: none;
      background: none;

      font-family: 'ff4';
      font-size: 16px;
      color: #0054A6;

      display: flex;
      align-items: center;
      column-gap: 12px;

      span {
        display: initial;
      }

      .mega-menu-show-all-blue-arrow {
        display: initial;
      }

      .mega-menu-show-all-white-arrow {
        display: none;
      }
    }
  }

  .mega-menu-lista-marcas {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, 100%);
    grid-template-rows: repeat(auto-fill, 112px);
    column-gap: 12px;
    row-gap: 12px;
    overflow: hidden;
    overflow-y: auto;
    width: 100%;
    height: calc(100% - 80px); */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    grid-template-rows: repeat(auto-fill, 112px);
    column-gap: 12px;
    row-gap: 12px;
    overflow: hidden;
    overflow-y: auto;
    width: 100%;
    height: calc(100% - 80px);
  

    .mega-menu-lista-vazia {
      font-family: 'ff4';
      font-size: 28px;
      color: #23262A;
      width: 100%;
      min-width: 100%;
      margin-top: 40px;
      text-align: center;
    }
  }

  .mega-menu-card-marca {
    border: none;
    background-color: white;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 100%;
    height: 112px;
    min-height: 112px;

    border-radius: 20px;
    padding: 8px;

    .mega-menu-imagem-esquerda {
      display: initial;

      width: 144px;
      height: 96px;
      border-radius: 12px;

      object-fit: cover;
    }

    .mega-menu-logo-marca {
      width: 138px;
      min-width: 138px;
      height: 92px;

      object-fit: contain;
    }

    .mega-menu-descricao-marca {
      display: none;
      font-family: 'ff1';
      font-size: 12px;
      color: white;
      font-weight: 400;
      line-height: 14.4px;
      letter-spacing: 0.02em;
      text-align: left;
      
      
      text-overflow: ellipsis;
      max-height:92px;
      overflow:hidden;
   

    }
  }

  .mega-menu-card-marca:hover {
    background-color: #0A3C70;
    column-gap: 12px;

    .mega-menu-imagem-esquerda {
      display: none;
    }

    .mega-menu-descricao-marca {
      display: initial;

      text-overflow: ellipsis;
      max-height:92px;
      overflow:hidden;
    }

    .mega-menu-logo-marca {
      width: 138px;
      min-width: 138px;
      height: 92px;
      padding: 10px;

      background-color: white;

      border-radius: 12px;
    }
  }
}

@media screen and (min-width: 1600px) {
  .mega-menu-lista-produtos {
    padding-right: unset;
  }

  .mega-menu-container-produtos {
    width: 50%;
  }

  .mega-menu-container-marcas {
    width: 50%;
    min-width: 700px;
  }

  .mega-menu-lista-marcas {
    /* overflow-y: hidden; */
    /* height: unset; */
  }

  .mega-menu-lista-marcas {
    grid-template-columns: repeat(2, minmax(312px, 1fr));
  }
}

@media screen and (min-width: 1270px) {
  .mega-menu-lista-produtos {
    grid-template-columns: repeat(auto-fill, 214px);

    /* height: unset; */
  }

  .mega-menu-card-produto {
    width: 214px;
  }
}

@media screen and (min-width: 1400px) {
  .mega-menu {
    width: 90vw;
  }
}

.blue-text {
  color: #0054A6 !important;
}