/* Splash */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* 🔽 antes era background: #ff6600; */
  background: linear-gradient(-45deg, #ff6600, #ff9248, #ff4500, #ffb347);
  background-size: 400% 400%;
  animation: gradient-move 8s ease infinite;
  
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: transform 1s ease-in-out, opacity 0.5s ease;
}

@keyframes gradient-move {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

#splash img {
  width: 25vw;
  max-width: 150px;
  min-width: 90px;
  margin-bottom: 20px;
  animation: bounce 1.5s ease;
}

#splash h1 {
  font-family: Arial, sans-serif;
  font-size: clamp(1.5rem, 6vw, 3rem);
  color: white;
  animation: zoomIn 1s ease;
  margin-bottom: 15px;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-top: 4rem;
}

/* Animações */
@keyframes zoomIn {0%{transform:scale(0.5);opacity:0;}100%{transform:scale(1);opacity:1;}}
@keyframes bounce {0%,100%{transform:translateY(0);}50%{transform:translateY(-15px);}}
@keyframes spin {0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}

/* Estado final da splash */
.slide-up {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}

/* ===== LOGO "Achei Aqui Delivery" ===== */

.logo-aa {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 18px;
  background: rgba(0,0,0,0.15);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  animation: logo-pop 0.9s ease-out;
}

/* Ícone (pin + sacola) */
.logo-icon {
  position: relative;
  width: 60px;
  height: 60px;
}

/* Pin de localização */
.logo-pin {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: float 2.4s ease-in-out infinite;
}

.pin-head {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: radial-gradient(circle at 30% 30%, #ffe4cc, #ff6600);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  position: relative;
}

.pin-head::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

.pin-body {
  width: 6px;
  height: 10px;
  margin-top: -2px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
}

/* Sacola de delivery */
.logo-bag {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 32px;
  height: 32px;
  animation: bag-bounce 1.8s ease-in-out infinite;
}

.bag-body {
  display: block;
  width: 100%;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #ffe1cc);
  border: 2px solid rgba(255, 102, 0, 0.7);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.bag-handle {
  display: block;
  width: 16px;
  height: 10px;
  margin: 0 auto 2px auto;
  border-radius: 999px;
  border: 2px solid #ff6600;
  border-bottom: transparent;
}

/* Textos */
.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #ffe4cc, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(0,0,0,0.4);
  animation: shine 2.5s linear infinite;
}

.logo-sub {
  font-size: clamp(0.8rem, 3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
  animation: fade-up 0.9s ease-out 0.2s both;
}

/* ===== Animações ===== */

@keyframes logo-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-4px); 
  }
}

@keyframes bag-bounce {
  0%, 100% { 
    transform: translateY(0) scale(1); 
  }
  50% { 
    transform: translateY(-3px) scale(1.03); 
  }
}

@keyframes shine {
  0% {
    filter: drop-shadow(0 0 0 rgba(255,255,255,0.5));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.9));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(255,255,255,0.5));
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: deixa menorzinho */
@media (max-width: 480px) {
  .logo-aa {
    padding: 8px 14px;
    gap: 10px;
  }

  .logo-icon {
    width: 48px;
    height: 48px;
  }
}


/* Lista de lojas */
#lista-lojas {
  display: none;
  text-align: center;
}

.loja-card {
  background: #fff;
  
  margin: 10px auto;
  border-radius: 12px;
  
  height: 5rem;
  max-width: 30rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  
  border: 2px solid orangered;
}

.loja-card:hover {
  transform: scale(1.02);
}

.loja-logo {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0 url('https://placehold.co/80x80?text=Logo') center/50% no-repeat;
}
.loja-logo {
  opacity: 0;
  transition: opacity 0.3s;
}
.loja-logo.loaded {
  opacity: 1;
}

.placeholder-loja {
  width: 100%;
  height: 90px;
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  border-radius: 12px;
  margin: 10px 0;
  animation: shine 1.2s infinite linear;
}

@keyframes shine {
  to {
    background-position-x: -400%;
  }
}


.loja-info {
  text-align: left;
  display:flex;
  flex-direction: row;
  width: 100%;
  margin-left: 0.5rem;
  
}

.loja-info h3 {
  width: 10rem;
  font-size: 0.9rem;
  color: #333;
  margin-left: 1.2rem;
  margin:0;
}

#entregaContainer {
  display: flex;
  flex-direction: column;   /* um embaixo do outro */
  justify-content: center;  /* centraliza vertical dentro do container */
  align-items: end;      /* centraliza horizontal */
  width: 100%;
}

.loja-info h4 {
  margin: 0;
  font-size: 0.8rem;
  color: #333;
  width: 100%;
  text-align: end;
  margin-right: 0.4rem;
}

#lojaContainer {
  width:100%;
  width: 40px;
 
  
 

}

#trocarsenha {
  background-color: white;
  cursor: pointer;
  color: orangered;
  border-radius: 10px;
  
  margin-right: 8rem;
}

#salvarperfil {
  background-color: white;
  cursor: pointer;
  color: orangered;
  border-radius: 10px;
  margin-bottom: 3rem!important;
}

.loja-info p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: #555;
}

/* Loja fechada */
.loja-fechada {
  background: #e0e0e0;
  color: #777;
  cursor: not-allowed;
}

.loja-fechada .loja-info h3,
.loja-fechada .loja-info p {
  color: #777;
}

.loja-fechada::after {
  content: "FECHADO";
  position: absolute;
  top: 27px;
  left: -10px;
  background: #c62828;
  color: white;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  transform: rotate(45deg); /* 🔹 deixa na diagonal */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  letter-spacing: 1px;
  z-index: 10;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-left: 10px;
}

a[data-section] {
  display: block;
  margin: 5px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

a[data-section].ativo {
  color: #ff6600;
  font-weight: bold;
}









html, body {
  margin: 0;
  padding: 0;
  overscroll-behavior-x: none;
  max-width: 100%;
  overflow-x: hidden; /* 🔑 não deixa nada vazar */
}

:root {
  --app-height: 100%;
}

body {
  min-height: var(--app-height);
  padding-bottom: 2.5rem; /* espaço pro rodapé fixo */
}



/* ---------------- ENTRAR / SAIR ---------------- */
#entrar {
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  background-color: white;
  max-width: 220px;      /* limite máximo que ele pode ocupar */
  overflow: hidden;      /* esconde o que passar */
  text-overflow: ellipsis; /* adiciona "..." */
  white-space: nowrap;   /* impede quebrar em 2 linhas */
}

#sair {
  height: 2rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  margin: 0.2rem 0 0.5rem;
  border: 0;
  background-color: white;
}

#containerentrar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 100%;
}

/* ---------------- LOGIN MODAL ---------------- */
.modal-overlay2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#btnPerfil {
  width: 5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  border-radius: 10px;
  color: orangered;
  background-color: white;
  cursor: pointer;
}

.modal-content2 {
  background: #fff;
  border-radius: 15px;
  padding: 0.5rem;
  width: clamp(320px, 90vw, 900px);
  height: auto;
  margin: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  box-sizing: border-box;
  overflow-y: auto;
}

#container-atribuicao {
  padding-left: 0.5rem;
  cursor: pointer;
}

#btnExcluir {
  cursor: pointer;
}

#cashbackInput.copiado {
  outline: 2px solid #28a745;
  transition: outline 0.3s;
}


#label1 {
  font-size: 2rem;
  display: block;
  text-align: center;
  margin-top: 2rem;
}

#email, #senha {
  margin: 0.5rem auto;
  display: block;
  width: 13rem;
  height: 1.7rem;
  font-size: 1rem;
}

#entrar2 {
  margin: 1rem auto 0.9rem;
  display: block;
  width: 4rem;
  height: 2rem;
  font-size: 1rem;
  border-radius: 10px;
  color: orangered;
  background-color: white;
  cursor: pointer;
}

#esqueceusenha {
  width: 9rem;
  height: 2.5rem;
  font-size: 0.8rem;
  border-radius: 10px;
  color: black;
  margin-right: 1rem;
  margin-top: 3rem;
  cursor: pointer;
}

#cadastrarperfil {
  margin-top: 3rem;
  width: 9rem;
  height: 2.5rem;
  font-size: 1rem;
  border-radius: 10px;
  color: black;
  cursor: pointer;
}

#container2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#mensagem {
  text-align: center;
  display: block;
}

#voltar2 {
  width: 4rem;
  height: 2rem;
  font-size: 1rem;
  border-radius: 10px;
  color: orangered;
  margin-top: 1.5rem;
  margin-bottom: 1.5;
  cursor: pointer;
}

#voltar {
   
  font-size: 1rem;
  border-radius: 10px;
  color: orangered;
  margin-top: 1.5rem;
  margin-bottom: 1.5;
  cursor: pointer;
}



#ocultarrecuperacao {
  display: none;
}

#containerrecuperacao {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#labelrecuperacao {
  text-align: center;
  display: block;
  margin-top: 1.5rem;
}

/* ---------------- CADASTRO ---------------- */
#containercadastro {
  background-color: white;
  width: 100%;
  display: none;
  z-index: 1051;
  position: fixed;
  top: 0;
  height: 100%;
  box-sizing: border-box;
}

#nomereferencia {
  margin-left: 5rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.1rem;
}
#cpfreferencia{
  margin-left: 6rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.1rem;
}
#telefonereferencia{
  margin-left: 4rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.3rem;
}
#enderecoreferencia{
  margin-left: 3.6rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.1rem;
}
#atribuiend{
  margin-left: 4.2rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.1rem;
}
#complreferencia{
  margin-left: 4.65rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.1rem;
}
#refreferencia{
  margin-left: 3rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.3rem;
}
#emailreferencia{
  margin-left: 5.1rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.1rem;
}
#senhareferencia{
  margin-left: 5.0rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.1rem;
}
#confirmereferencia{
  margin-left: 0.4rem;
  border: 0.2px solid rgb(202, 200, 200);
  margin-bottom: 0.3rem;
  
}

#criarconta {
  font-size: 1.2rem;
  margin: 1rem auto 3rem;
  display: block;
  font-weight: bold;
  border: 3px solid orangered;
  border-radius: 8px;
  color: black;
}

/* ---------------- PERFIL ---------------- */
#perfilwrap {
  display: none;            /* começa escondido */
  position: fixed;
  inset: 0;                 /* cobre a tela toda */
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

#perfilcontainer {
  background: #fff;
  max-width: 600px;
  margin: 5vh auto;
  padding: 1rem;
  border-radius: 15px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ---------------- RODAPÉ FIXO ---------------- */
#containerfixo {
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0; left: 0;
  width: 98%;
  background-color: orangered;
  padding: 0.3rem;
  z-index: 1001;
  height: 2.3rem;
}

#containerfixo button {
  flex: 1;
  max-width: 350px;
  height: 2.2rem;
  margin: 0 0.3rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: white;
  color: black;
}

#containerfixo button:hover {
  background-color: rgb(243, 106, 56);
  color: white;
}

#containerfixo button:focus {
  outline: none;
}

/* ---------------- CATEGORIAS E PRODUTOS ---------------- */
#categorias {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  box-sizing: border-box;
  width: 100%;
  border: 3px solid rgb(201, 198, 198);
  border-right: 0;
  border-left: 0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  height: 35px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior: none;
}

#categorias::-webkit-scrollbar {
  display: none;
}

#categoriacontainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.linha-produtos {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

.linha-produtos::-webkit-scrollbar {
  display: none;
}

@media (min-width: 690px) {
  .linha-produtos {
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
  }
}

.produtovisual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  margin: 2px;
  padding: 4px;
  gap: 2px;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.foto-produto {
  width: 5rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
  flex-shrink: 0;
}

.foto-produto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nome-produto {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.descricaoproduto {
  width: 8rem;
  white-space: normal;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.1em;
  text-align: center;
  min-height: 2.4rem;
  max-height: 2.4rem;
}

/* ---------------- BANNER ---------------- */
.banner {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
  background-color: rgba(255, 68, 0, 0.918);
  flex-wrap: wrap;
}

.banner img {
  height: auto;
  border-radius: 15px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.banner img:nth-child(1) {
  width: 12%;
  margin-left: 12rem;
  border: 3px solid rgb(240, 121, 24);
  background: white;
}

.banner img:nth-child(2) {
  width: 25%;
}

.banner img:nth-child(3) {
  width: 25%;
  margin-right: 5rem;
  border: 3px solid rgb(240, 121, 24);
  background: white;
}

/* Mobile */
@media (max-width: 768px) {
  .banner {
    justify-content: center;
  }
  .banner img:nth-child(1),
  .banner img:nth-child(2) {
    display: none;
  }
  .banner img:nth-child(3) {
    display: block;
    width: 60%;
    margin: auto;
  }
}

@media (min-width: 1200px) {
  .modal-content2 {
    height: auto;
    overflow-y: auto;
     }

    #label1 {
      font-size: 2.5rem;
    }  

    #email, #senha {
      width: 19rem!important;
      height: 2rem!important;
      font-size: 1.2rem!important;
    }

    #entrar2 {
      width: 6rem!important;
      height: 2.5rem!important;
      font-size: 1.4rem!important;
    }

    #voltar2 {
      width: 6rem!important;
      height: 2.5rem!important;
      font-size: 1.4rem!important;
    }

    #esqueceusenha {
      width: 15rem!important;
      height: 2.5rem!important;
      font-size: 1.1rem!important;
      margin-top: 1rem!important;
    }

    #cadastrarperfil {
      width: 15rem!important;
      height: 2.5rem!important;
      font-size: 1.1rem!important;
      margin-top: 1rem!important;
    }

    #labelrecuperacao {
      font-size: 1.5rem;
    }

#containercadastro {
  width: auto;
  max-width: 90vw;       /* para caber em telas menores */
  max-height: 90vh;      /* evita estourar a altura da tela */
  overflow-y: auto;      /* rolagem interna se passar do limite */
  position: fixed;       /* em relação à tela */
  top: 50%!important;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 15px;
  padding: 3rem!important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;         /* garante que fique acima */
  display: none;         /* começa escondido */
   /* recorte real dos cantos: */
  clip-path: inset(0 round 15px);
  /* Safari/WebKit: ativa “clipping” do raio */
  -webkit-mask-image: -webkit-radial-gradient(white, black);

  /* opcional: evita “pulo” quando surge a barra */
  scrollbar-gutter: stable both-edges;
  /* opcional: evita a cor “vazar” sob a borda arredondada */
  background-clip: padding-box;
}

#apelido-novo {
  width: 10rem;
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

#endereco-novo {
  width: 14rem;
  margin-left: 0.65rem;
}

#compl-novo {
  width: 14rem;
  margin-left: 1.7rem;
}

#ref-novo {
  width: 14rem;
  margin-left: 0.1rem;
}

#voltar-perfil{
  margin-top: 1.5rem;
  margin-left: 2rem;
  margin-right: 4.5rem;
  background-color: white;
  color: orangered;
  border-radius: 10px;
}

#salvar-endereco-novo{
  background-color: white;
  color: orangered;
  border-radius: 10px;
}

#endereco-cadastro-novo {
  background-color: white;
  width: 90%;            /* usa 90% da largura da tela */
  max-width: 400px;      /* limita para não ficar gigante em telas grandes */
  display: none;
  z-index: 1051;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centraliza */
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


}

#nomereferencia2 {
  margin-left: 2.6rem;
  width: 54%;
  height: 2.5%;
}

#cpfreferencia2 {
  margin-left: 3.55rem;
  width: 34%;
  height: 2.5%;
}

@media (max-width:330px) {
  #cpfreferencia2 {
  margin-left: 3.9rem;}
  #complreferencia2 {
  margin-left: 2.50rem;}
}

#telefonereferencia2 {
  margin-left: 1.55rem;
  width: 34%;
  height: 2.5%;
  margin-bottom: 1.5rem;
}

#enderecoreferencia2 {
  margin-left: 1.1rem;
  width: 54%;
  height: 2.5%;
}

#complreferencia2 {
  margin-left: 2.15rem;
  width: 54%;
  height: 2.5%;
}

#refreferencia2 {
  margin-left: 0.54rem;
  width: 54%;
  height: 2.5%;
  margin-bottom: 2rem;
}

#emailreferencia2 {
  margin-left: 2.6rem;
  width: 54%;
  margin-bottom: 1rem;
  height: 2.5%;
}

#lista-enderecos {
  position: absolute;          /* ficará ancorado no input */
  display: none;
  z-index: 999;
  background: #fff;
  border: 1px solid orangered;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  max-height: 260px;
  overflow-y: auto;
  box-sizing: border-box;
}

#lista-enderecos .item-endereco {
  padding: 10px 12px;
  cursor: pointer;
}
#lista-enderecos .item-endereco:hover {
  border: orangered;
}


#fecharPerfil {
  
  width: 4rem;
  border-radius: 10px;
  color: orangered;
  cursor: pointer;
  background-color: white;
}

#criarendereco {
  color:#d35400;
  cursor: pointer;
  background-color: white;
  
}


#criarendereco {
  border: 0;
  color:#d35400;
  cursor: pointer;

}

#novo-endereco {
  margin-left: 1.5rem;
}

#apelido-novo {
  width: 10rem;
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

#endereco-novo {
  width: 12rem;
  margin-left: 0.65rem;
}

#compl-novo {
  width: 12rem;
  margin-left: 1.7rem;
}

#ref-novo {
  width: 12rem;
  margin-left: 0.1rem;
}

#voltar-perfil{
  margin-top: 1.5rem;
  margin-left: 2rem;
  margin-right: 4.5rem;
  cursor: pointer;
  background-color: white;
  color: orangered;
  border-radius: 10px;
  
    
}

#salvar-endereco-novo{
  color: #d35400;
  cursor: pointer;
  background-color: white;
  border-radius: 10px;
  
}

#endereco-cadastro-novo {
  background-color: white;
  width: 90%;            /* usa 90% da largura da tela */
  max-width: 400px;      /* limita para não ficar gigante em telas grandes */
  display: none;
  z-index: 1051;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centraliza */
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


#enderecoWrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* fundo escuro */
  display: none; /* inicia oculto */
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.item-endereco:hover {
  background-color: orangered;
  color: white;
}

* {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

.opcao.desativado .texto {
  filter: grayscale(100%);
  opacity: 0.6;
}

/* Cadeado colorido (sem filtro) */
.cadeado {
  font-size: 1em; /* mesmo tamanho da fonte */
  filter: none;
  opacity: 1;
}



/* ====== Formulário Perfil - Layout Responsivo ====== */
#perfilcadastro {
  --label-w: 130px;          /* largura dos rótulos */
  --gap-x: 12px;             /* espaço entre label e input */
  max-width: 780px;
  margin: 0 auto;
  padding: 12px;
  line-height: 1.25;
  font-size: 14px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Pares label + input (lado a lado) */
#perfilcadastro label {
  display: inline-block;
  width: var(--label-w);      /* largura fixa garante alinhamento */
  --label-w: 80px; /* antes: 130px */
  margin: 8px 0;
  margin-right: var(--gap-x); /* gap igual ao do grid */
  vertical-align: middle;
  font-weight: 600;
  white-space: nowrap;
}
#perfilcadastro input[type="text"],
#perfilcadastro input[type="tel"],
#perfilcadastro input[type="email"] {
  display: inline-block;
  width: calc(100% - var(--label-w) - var(--gap-x));
  --label-w: 80px; /* antes: 130px */
  max-width: 100%;
  padding: 8px 10px;
  margin: 6px 0;
  box-sizing: border-box;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
}

/* Títulos */
#perfilcadastro h3 { margin: 16px 0 8px; }

/* Botão "Criar Novo" ao lado do h3 */
#perfilcadastro #criarendereco {
  display: inline-block;
  margin-left: 0px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #f6f6f6;
  border-radius: 8px;
  cursor: pointer;
  vertical-align: middle;
}

/* ===== Grupo “Selecione / Excluir” em GRID ===== */
#perfilcadastro .grupo-input {
  display: grid;
  grid-template-columns: var(--label-w) 1fr auto;  /* label | input | Excluir */
  column-gap: var(--gap-x);    
  --label-w: 80px;                    /* gap entre label e input */
  row-gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
  position: relative;          /* <- IMPORTANTE */
}
/* evita quebra dentro do grid por causa do <br> no HTML */
#perfilcadastro .grupo-input br { display: none; }

#perfilcadastro .grupo-input > label {
  grid-column: 1;
  font-weight: 600;
  margin-right: 0; /* no grid já tem column-gap */
}
#perfilcadastro .grupo-input > input#container-atribuicao {
  grid-column: 2;
  width: 100%;      /* sem calc() */
  padding: 8px 10px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  margin: 0;
  box-sizing: border-box;
}
#perfilcadastro .grupo-input > button#btnExcluir {
  grid-column: 3;
  padding: 8px 10px;
  border: 1px solid #ccc;
  background: #f6f6f6;
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
}
/* Lista de endereços ocupa a largura toda abaixo */
#perfilcadastro #lista-enderecos {
  grid-column: 1 / -1;
  margin: 6px 0 0 0;
}

/* Botões finais */
#perfilcadastro #trocarsenha,
#perfilcadastro #salvarperfil,
#perfilcadastro #fecharPerfil {
  display: inline-block;
  padding: 10px 14px;
  margin: 8px 6px 0 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

/* ====== Mobile / telas estreitas ====== */
/* Mantém lado a lado; só ajusta a largura do label e o gap */
@media (max-width: 600px) {
  #perfilcadastro {
    --label-w: clamp(90px, 36vw, 130px);
    --gap-x: 8px;
    padding: 10px;
  }

  #perfilcadastro label {
    width: var(--label-w);
    margin: 8px 0;
    margin-right: var(--gap-x);
    vertical-align: middle;
    white-space: nowrap;
  }
  #perfilcadastro input[type="text"],
  #perfilcadastro input[type="tel"],
  #perfilcadastro input[type="email"] {
    width: calc(100% - var(--label-w) - var(--gap-x));
    margin: 6px 0;
  }

  /* Grid do grupo no mobile (label | input | Excluir) */
  #perfilcadastro .grupo-input {
    grid-template-columns: var(--label-w) 1fr auto;
    align-items: start;
  }
  #perfilcadastro .grupo-input > input#container-atribuicao { grid-column: 2; }
  #perfilcadastro .grupo-input > button#btnExcluir { grid-column: 3; grid-row: 1; }

  #perfilcadastro #lista-enderecos { grid-column: 1 / -1; }
  #perfilcadastro #criarendereco { margin-left: 0px; }
}


/* ====== Novo Endereço - Layout Responsivo ====== */
#endereco-cadastro-novo {
  --label-w: 112px;   /* ajuste fino do tamanho do label (desktop) */
  --gap-x: 12px;      /* espaço entre label e input */
  max-width: 780px;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
  line-height: 1.25;
  font-size: 14px;
}

/* títulos ocupam a linha toda */
#endereco-cadastro-novo h3 {
  margin: 16px 0 8px;
}

/* evita quebra causada pelos <br> do HTML */
#endereco-cadastro-novo br { display: none; }

/* pares label + input (lado a lado) */
#endereco-cadastro-novo > label {
  display: inline-block;
  width: var(--label-w);       /* largura fixa = alinhamento */
  margin: 8px 0;
  margin-right: var(--gap-x);  /* mesmo gap dos inputs */
  vertical-align: middle;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;           /* opcional: deixa mais clean */
  overflow: hidden;
  text-overflow: ellipsis;
}
#endereco-cadastro-novo > input[type="text"],
#endereco-cadastro-novo > input {
  display: inline-block;
  width: calc(100% - var(--label-w) - var(--gap-x));
  max-width: 100%;
  padding: 8px 10px;
  margin: 6px 0;
  box-sizing: border-box;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
}

/* botões finais */
#endereco-cadastro-novo #voltar-perfil,
#endereco-cadastro-novo #salvar-endereco-novo {
  display: inline-block;
  padding: 10px 14px;
  margin: 10px 6px 0 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

/* ====== Mobile / telas estreitas ====== */
/* Mantém lado a lado; só encolhe label e gap */
@media (max-width: 600px) {
  #endereco-cadastro-novo {
    --label-w: clamp(84px, 32vw, 112px); /* mesmo ajuste do perfil */
    --gap-x: 8px;
    padding: 10px;
  }
  #endereco-cadastro-novo > label {
    width: var(--label-w);
    margin: 8px 0;
    margin-right: var(--gap-x);
    vertical-align: middle;
    white-space: nowrap;
  }
  #endereco-cadastro-novo > input[type="text"],
  #endereco-cadastro-novo > input {
    width: calc(100% - var(--label-w) - var(--gap-x));
    margin: 6px 0;
  }
}


/* ====== Cadastro - Layout Responsivo (lado a lado sempre) ====== */
#containercadastro {
  --label-w: 112px;     /* largura da coluna de labels (desktop) */
  --gap-x: 12px;        /* espaço entre label e input */
  max-width: 780px;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
  line-height: 1.25;
  font-size: 14px;
  overflow-y: auto;
}

/* evita quebra causada pelos <br> */
#containercadastro br { display: none; }

/* títulos ocupam a linha toda */
#containercadastro h3 {
  margin: 16px 0 8px;
}

/* pares label + input */
#containercadastro label {
  display: inline-block;
  width: var(--label-w);      /* largura fixa = alinhamento perfeito */
  margin: 8px 0;
  margin-right: var(--gap-x);
  vertical-align: middle;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;          /* opcional: deixa mais clean */
  overflow: hidden;
  text-overflow: ellipsis;
}

#containercadastro input[type="text"],
#containercadastro input[type="tel"],
#containercadastro input[type="email"],
#containercadastro input[type="password"] {
  display: inline-block;
  width: calc(100% - var(--label-w) - var(--gap-x));
  max-width: 100%;
  padding: 8px 10px;
  margin: 6px 0;
  box-sizing: border-box;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
}

/* botão principal */
#containercadastro #criarconta,
#containercadastro #voltar {
  display: inline-block;
  padding: 10px 14px;
  margin: 10px 6px 0 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

/* ====== Mobile / telas estreitas ====== */
/* mantém lado a lado; só reduz label e gap */
@media (max-width: 600px) {
  #containercadastro {
    --label-w: clamp(84px, 32vw, 112px);
    --gap-x: 8px;
    padding: 10px;
  }

  #containercadastro label {
    width: var(--label-w);
    margin: 8px 0;
    margin-right: var(--gap-x);
    vertical-align: middle;
    white-space: nowrap;
  }

  #containercadastro input[type="text"],
  #containercadastro input[type="tel"],
  #containercadastro input[type="email"],
  #containercadastro input[type="password"] {
    width: calc(100% - var(--label-w) - var(--gap-x));
    margin: 6px 0;
  }
}


@media (max-width: 768px) {
  body {
    padding-top: calc(var(--safe-top) + 8px);
  }
}

/* Safe area para telas com notch (iOS/Android) */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
}

/* Dá um espaço no topo da tela toda */
body {
  padding-top: calc(var(--safe-top) + 8px); /* 8px extra só pra não colar */
}


.input-com-seta {
  position: relative;
  display: inline-block;
  width: 140px        /* opcional, ajuste como quiser */
}

.input-com-seta input {
  width: 100%;
  border-radius: 10px;
  height: 1.4rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  cursor: pointer;
}

/* a setinha */
.input-com-seta::after {
  content: "▼";              /* pode usar "▾" ou "⌄" se preferir */
  position: absolute;
  left: 124px;
  top: 43%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #555;
  pointer-events: none;      /* pra clique passar pro wrapper/input */
}


