/* Ecrã de loading — Total Shopping */

html.loader-travado,
html.loader-travado body {
  overflow: hidden;
  height: 100%;
}

.loader-total-shopping {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fundo);
  transition: opacity .5s ease, visibility .5s ease;
}

.loader-total-shopping.loader-escondido {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.loader-logo-wrap {
  position: relative;
  width: min(280px, 78vw);
  height: min(96px, 26.7vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sombra);
}

.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.loader-barra {
  width: min(220px, 60vw);
  height: 4px;
  margin-top: 26px;
  background: var(--borda);
  border-radius: 999px;
  overflow: hidden;
}

.loader-barra-preenchimento {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dourado-escuro), var(--dourado));
  transition: width .25s ease-out;
}

.loader-legenda {
  margin-top: 14px;
  font-family: var(--fonte-corpo);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--texto-suave);
}

@media (prefers-reduced-motion: reduce) {
  .loader-barra-preenchimento {
    transition: none;
  }
}
