/* ==========================================================================
   Aletto - menu lateral do celular
   ========================================================================== */

/* Botao hamburguer: so existe no celular. */
.aletto-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.aletto-burger:hover,
.aletto-burger:focus {
  background: none;
  transform: none;
  filter: none;
}

.aletto-burger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
}

/* --------------------------------------------------------------------------
   Gaveta
   -------------------------------------------------------------------------- */

.aletto-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.aletto-drawer[hidden] {
  display: none;
}

.aletto-drawer__fundo {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.aletto-drawer.is-aberta .aletto-drawer__fundo {
  opacity: 1;
}

.aletto-drawer__painel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86%, 340px);
  background-color: #fff;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.aletto-drawer.is-aberta .aletto-drawer__painel {
  transform: translateX(0);
}

/* Topo da gaveta: fica fixo, visivel em qualquer nivel do menu. */
.aletto-drawer__topo {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-shrink: 0;
  background-color: var(--aletto-turquesa, #40e0d0);
  padding: 1.1em 1.2em;
}

.aletto-drawer__fechar {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aletto-drawer__fechar:hover {
  background: none;
  transform: none;
  filter: none;
  opacity: 0.8;
}

.aletto-drawer__fechar svg {
  width: 22px;
  height: 22px;
}

.aletto-drawer__marca {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.aletto-drawer__marca img {
  max-width: 120px;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Navegacao em paineis empilhados ("push"): cada nivel do menu ocupa o
   espaco inteiro abaixo do topo e desliza por cima do nivel anterior, que
   fica estruturalmente atras (nao removido, so fora da area visivel).
   Referencia: snippets/mobile-menu.liquid do tema Shopify original.
   -------------------------------------------------------------------------- */

.aletto-drawer__niveis {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.aletto-drawer__nivel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #fff;
}

.aletto-drawer__nivel--aninhado {
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
  z-index: 1;
}

.aletto-drawer__nivel--aninhado.is-aberto {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.28s ease;
}

/* Botao "Voltar": mesmo padrao de bloco/separador dos titulos existentes. */
.aletto-drawer__voltar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  flex-shrink: 0;
  padding: 1.1em 1.3em;
  border: none;
  border-bottom: 1px solid var(--aletto-borda, #e7e7e7);
  background-color: #fafbfc;
  color: var(--aletto-heading, #737b97);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.aletto-drawer__voltar:hover {
  color: var(--aletto-verde-agua, #24c7b8);
  background-color: #fafbfc;
}

.aletto-drawer__voltar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Menu */
.aletto-drawer__nav {
  padding: 0.6em 0;
}

.aletto-drawer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aletto-drawer__menu li {
  margin: 0;
  border-bottom: 1px solid var(--aletto-borda, #e7e7e7);
}

.aletto-drawer__menu .aletto-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  width: 100%;
  padding: 1.05em 1.3em;
  border: none;
  background: none;
  color: var(--aletto-texto, #000);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.aletto-drawer__menu .aletto-drawer__link:hover {
  color: var(--aletto-verde-agua, #24c7b8);
  background-color: #f6fdfc;
  text-decoration: none;
}

.aletto-drawer__link--abre svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.55;
}

.aletto-drawer__link--titulo {
  font-weight: 700;
}

/* Blocos de contato e redes */
.aletto-drawer__bloco {
  padding: 1.3em;
  border-top: 1px solid var(--aletto-borda, #e7e7e7);
}

.aletto-drawer__titulo {
  color: var(--aletto-heading, #737b97);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1em;
  padding: 0;
}

.aletto-drawer__titulo::after {
  display: none;
}

.aletto-drawer__contato {
  display: flex;
  align-items: center;
  gap: 0.85em;
  color: var(--aletto-texto, #000);
  font-size: 15px;
  text-decoration: none;
  padding: 0.45em 0;
}

.aletto-drawer__contato:hover {
  color: var(--aletto-verde-agua, #24c7b8);
  text-decoration: none;
}

.aletto-drawer__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f0f2f7;
  color: var(--aletto-verde-agua, #24c7b8);
  flex-shrink: 0;
}

.aletto-drawer__icone svg {
  width: 18px;
  height: 18px;
}

/* Trava a rolagem do fundo com a gaveta aberta. */
body.aletto-drawer-aberta {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Cabecalho compacto no celular
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {

  .aletto-burger {
    display: flex;
  }

  /* A barra branca de navegacao nao existe no celular. */
  .aletto-nav {
    display: none !important;
  }

  .site-header {
    padding-top: 0.9em !important;
    padding-bottom: 0.9em !important;
  }

  .site-content {
    padding-top: 1em !important;
  }

  .aletto-header__inner {
    gap: 0.8em;
    align-items: center;
  }

  .aletto-header__logo {
    flex: 1 1 auto;
    max-width: none;
  }

  .aletto-header__logo .site-title,
  .aletto-header__logo .site-title a {
    font-size: 1.35em;
  }

  .aletto-header__actions {
    gap: 0.9em;
    margin-left: 0;
  }
}

@media (min-width: 769px) {
  .aletto-drawer {
    display: none !important;
  }
}
