@import url("m3-refinements.css?v=20260815-1");
@import url("home-footer-trim.css?v=20260815-1");
@import url("nav-icon-human-hair.css?v=20260815-1");
@import url("m3-tablet-fix.css?v=20260815-1");
@import url("ux-followup.css?v=20260815-1");
@import url("ux-current-fixes.css?v=20260815-2");

/* Produtos — refinamento mobile 2026-08-15
   Mantém a identidade, reduz a primeira dobra e corrige a navegação inferior. */

.vit-app-intro {
  background: #fff;
}

.vit-app-search {
  background: #f2f2f2;
  border-color: rgba(28, 27, 26, 0.08);
}

.vit-app-search:hover {
  background: #ebebeb;
}

@media (max-width: 640px) {
  .vit-app-intro {
    margin-bottom: 6px;
    padding-top: 14px;
    padding-bottom: 8px;
    border-radius: 0;
  }

  .vit-app-heading h2 {
    margin-top: 2px;
    font-size: 28px;
    line-height: .98;
  }

  .vit-app-heading .vit-product-count {
    min-height: 30px;
    padding: 5px 9px;
  }

  .vit-app-search {
    min-height: 46px;
    margin-top: 10px;
    padding-inline: 15px;
  }

  .vit-app-categories {
    margin-top: 13px;
  }

  .vit-app-categories-head {
    margin-bottom: 5px;
  }

  .vit-app-category-track {
    gap: 6px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .vit-app-category {
    flex-basis: 68px;
    gap: 4px;
    font-size: 11px;
    line-height: 1.12;
  }

  .vit-app-category-media {
    width: 60px;
    height: 60px;
    border-width: 2px;
  }

  #produtos-mais-pedidos {
    padding-top: 16px;
  }

  #produtos-mais-pedidos .aisle-head {
    margin-bottom: 14px;
  }

  .mobile-bottom-nav > a:last-child > span:last-child {
    white-space: nowrap;
    font-size: 9.5px;
    letter-spacing: -0.025em;
  }
}

@media (max-width: 720px) {
  .mobile-bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 2px 4px env(safe-area-inset-bottom);
  }

  .mobile-bottom-nav > a,
  .mobile-bottom-nav > button {
    min-height: 64px;
    justify-content: flex-start;
    gap: 1px;
    padding-top: 4px;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .foot {
    padding-bottom: calc(28px + 68px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .mobile-bottom-nav > a:last-child > span:last-child {
    font-size: 9px;
  }
}

@media (max-width: 1099px) {
  .mobile-bottom-nav {
    inset-inline: 0 !important;
    bottom: 0 !important;
    box-sizing: border-box;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  /* Evita a linha clara de 1px que pode aparecer na composição entre o
     scroller e a camada fixa da barra inferior no Firefox Android. */
  .mobile-bottom-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: #1a1a1a;
    pointer-events: none;
  }
}

@media (max-width: 720px) {
  .mobile-bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom)) !important;
    min-height: calc(68px + env(safe-area-inset-bottom));
    max-height: calc(68px + env(safe-area-inset-bottom));
  }
}

/*
  Firefox Android / toolbar no topo.

  O documento não rola, então a toolbar dinâmica do Fenix não desloca o
  GeckoView. O scroller passa a ser somente <main>, enquanto cabeçalho e bottom
  nav ficam fora dele. No Firefox Android o viewport do conteúdo já termina
  acima da navegação nativa do sistema; por isso NÃO somamos safe-area aqui —
  fazê-lo criava exatamente o grande espaço preto visto no aparelho real.
*/
@media (max-width: 1099px) {
  html.firefox-android-stable-scroll,
  html.firefox-android-stable-scroll body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
  }

  html.firefox-android-stable-scroll body {
    padding-bottom: 0 !important;
  }

  html.firefox-android-stable-scroll #root {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  html.firefox-android-stable-scroll .nav {
    position: relative !important;
    top: auto !important;
    flex: 0 0 auto;
  }

  html.firefox-android-stable-scroll #conteudo {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 68px;
    scroll-padding-bottom: 68px;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  html.firefox-android-stable-scroll #conteudo [id] {
    scroll-margin-top: 0;
  }

  html.firefox-android-stable-scroll .mobile-bottom-nav {
    position: fixed !important;
    inset-inline: 0 !important;
    bottom: 0 !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 2px 4px 0 !important;
    transform: none !important;
  }

  html.firefox-android-stable-scroll .foot {
    padding-bottom: 28px !important;
  }
}
