:root {
  --marrom-cafe: #9877af;
  --bege-card: #fff8f3;
  --fundo-creme: #ffffff;
  --verde-finalizar: #00c853;
  --texto-escuro: #4e342e;
  --vermelho-remover: #d32f2f;
  --cinza-esgotado: #ccc;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Segoe UI', sans-serif;
  background-image: linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)), url('https://king-assets.yampi.me/dooki/69e930e1659a6/69e930e1659a8.png');
  background-attachment: fixed;
  background-position: center;
  background-size: contain;
  background-repeat: repeat;
  margin: 0;
  padding-bottom: 180px; 
  color: var(--texto-escuro);
}

/* TELA DE CARREGAMENTO */
#loading-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: #000; display: flex; flex-direction: column; justify-content: center; align-items: center;
  z-index: 9999; transition: opacity 0.5s ease;
}
.coracoes-loader { display: flex; gap: 10px; font-size: 30px; }
.coracao { opacity: 0; animation: aparecerCoracao 1.5s infinite; color: white; }
.coracao:nth-child(2) { animation-delay: 0.3s; }
.coracao:nth-child(3) { animation-delay: 0.6s; }
@keyframes aparecerCoracao { 0%, 100% { opacity: 0; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
.carregando-texto { color: white; margin-top: 20px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: bold; }

/* CABEÇALHO */
header { 
  background-color: var(--marrom-cafe); 
  color: white; 
  text-align: center; 
  padding: 1px 10px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-header { max-width: 180px; height: auto; display: block; }

.barra-movimento { background-color: #080808; color: #ffffff; white-space: nowrap; padding: 6px 0; font-size: 10px; font-weight: bold; overflow: hidden; display: flex; }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.status-delivery { 
    text-align: center; 
    padding: 12px; 
    font-size: 12px; 
    background: transparent; 
    border-bottom: none; /* Linha removida */
    min-height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: bold;   /* Texto em Negrito */
    font-style: italic;  /* Texto em Itálico */
}

/* CARROSSEL BANNERS */
.banner-promocional { 
  width: 100%; 
  margin: 0; 
  padding: 0; 
  position: relative; 
  overflow: hidden; 
}
.banner-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}
.banner-container img { 
  width: 100%; 
  flex-shrink: 0; 
  display: block; 
  height: auto; 
}
#banner-trufas {
  width: 100%;
  overflow: visible;
}
#banner-trufas img {
  width: 100%;
  height: auto;
  display: block;
}

.container { padding: 15px; max-width: 450px; margin: auto; }
.titulo-secao { font-size: 16px; color: var(--marrom-cafe); margin: 25px 0 10px 0; text-transform: uppercase; font-weight: 900; text-align: center; }

.carrossel-premium { display: flex; overflow-x: auto; gap: 15px; padding: 15px 5px; width: 100%; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.carrossel-premium::-webkit-scrollbar { display: none; }

.card-premium { min-width: 160px; max-width: 180px; flex: 0 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; scroll-snap-align: start; background: white; padding: 10px; border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.img-premium { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.card-premium h3 { font-size: 13px; margin: 12px 0 3px; color: #000; text-transform: uppercase; font-weight: 900; }
.ingredientes-premium { font-size: 9px; color: #333; text-transform: uppercase; line-height: 1.1; height: 30px; margin-bottom: 5px; }
.preco-premium { font-weight: 900; font-size: 16px; margin: 5px 0 10px; color: #000; }
.btn-comprar-premium { background-color: var(--marrom-cafe); color: white; border: none; padding: 6px 15px; border-radius: 50px; font-weight: bold; text-transform: uppercase; font-size: 10px; cursor: pointer; }
.btn-comprar-premium:disabled { background-color: var(--cinza-esgotado) !important; cursor: not-allowed; }

.card-produto { display: flex; align-items: center; margin-bottom: 25px; position: relative; }
.foto-container { position: relative; width: 90px; height: 90px; flex-shrink: 0; z-index: 2; cursor: pointer; }
.foto-trufa { width: 100%; height: 100%; border-radius: 50%; border: 3px solid white; background-size: cover; background-position: center; box-shadow: 3px 3px 10px rgba(0,0,0,0.1); }
.lupa-zoom { position: absolute; bottom: 0; right: 0; background: var(--marrom-cafe); color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid white; }

.info-card { background-color: var(--bege-card); border-radius: 10px; padding: 10px 15px 10px 50px; margin-left: -45px; flex: 1; display: flex; justify-content: space-between; align-items: center; min-height: 80px; box-shadow: 2px 2px 5px rgba(0,0,0,0.05); }
.detalhes h3 { margin: 0; font-size: 13px; text-transform: uppercase; color: var(--marrom-cafe); font-weight: 800; }
.ingredientes { font-size: 10px; color: #5d4037; font-style: italic; }
.preco-un { font-size: 10px; font-weight: bold; margin-top: 5px; display: block; }
.estoque-label { font-size: 9px; color: #7e5e94; display: block; font-weight: bold; }

.controles { display: flex; align-items: center; gap: 8px; }
.qtd-numero { font-weight: bold; color: var(--marrom-cafe); min-width: 15px; text-align: center; }
.btn-qtd { background: var(--marrom-cafe); color: white; border: none; width: 28px; height: 28px; border-radius: 5px; font-weight: bold; cursor: pointer; }
.btn-qtd:disabled { background: var(--cinza-esgotado) !important; opacity: 0.5; }

.rodape-fixo { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; z-index: 100; border-top: 1px solid #eee; padding: 15px 0 10px 0; display: flex; flex-direction: column; align-items: center; box-shadow: 0 -5px 15px rgba(0,0,0,0.08); }
.barra-finalizar { background: var(--marrom-cafe); width: 90%; max-width: 400px; border-radius: 50px; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; color: white; margin-bottom: 15px; }
.btn-verde-final { background: var(--verde-finalizar); color: white; border: none; padding: 10px 20px; border-radius: 20px; font-weight: bold; font-size: 11px; text-transform: uppercase; cursor: pointer; }
.btn-verde-final:disabled { background: var(--cinza-esgotado) !important; cursor: not-allowed; }

.area-oferta { width: 90%; text-align: center; }
.barra-bg { background: #ccc; height: 8px; border-radius: 10px; overflow: hidden; margin: 5px auto; width: 100%; }
.barra-fill { background: var(--verde-finalizar); width: 0%; height: 100%; transition: width 0.4s ease; }

#popup-sabores { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.box-sabores { background: white; width: 100%; max-width: 350px; border-radius: 20px; padding: 20px; text-align: center; }
.item-sabor { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid #eee; font-size: 14px; font-weight: bold; }
.btn-sel { background: var(--marrom-cafe); color: white; border: none; padding: 5px 12px; border-radius: 5px; font-size: 11px; }

#modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1001; align-items: flex-end; overflow-y: auto; }
.modal-body { background: white; padding: 20px; width: 100%; border-radius: 25px 25px 0 0; min-height: 70vh; max-height: 95vh; overflow-y: auto; }
.resumo-pedido { background: #f9f9f9; padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 1px dashed #ddd; }
.linha-resumo { display: flex; justify-content: space-between; margin-bottom: 8px; align-items: center; font-size: 14px; }
.btn-remover-texto { color: var(--vermelho-remover); background: none; border: none; font-size: 9px; font-weight: bold; text-transform: uppercase; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 8px; }
input, select { width: 100%; padding: 14px; margin-bottom: 10px; border-radius: 10px; border: 1px solid #ddd; font-size: 14px; }

#modal-img { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1002; align-items: center; justify-content: center; }
.pergunta-insta { font-size: 12px; font-weight: bold; color: var(--marrom-cafe); margin-bottom: 5px; display: block; text-align: center;}

#alerta-cartao { 
  display: none; 
  background: #9877af; 
  color: #ffffff; 
  padding: 10px; 
  border-radius: 10px; 
  font-size: 11px; 
  border: 1px solid #7e5e94; 
  margin-bottom: 10px; 
  text-align: center; 
  font-weight: bold;
}
/* Estilo Stories Instagram */
.stories-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 15px 10px;
  scrollbar-width: none; /* Esconde barra no Firefox */
}

.stories-container::-webkit-scrollbar {
  display: none; /* Esconde barra no Chrome/Safari */
}

.story-item {
  flex: 0 0 auto;
  text-align: center;
  width: 85px;
}

.story-foto-wrapper {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  padding: 3px;
  /* Degradê Lilás personalizado */
  background: linear-gradient(45deg, #9877af 0%, #c1a3d6 50%, #7e5e94 100%);
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-foto {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid white;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.story-nome {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-combo-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-combo-content {
  background: white;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  animation: subirModal 0.3s ease-out;
}

@keyframes subirModal {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-combo-content img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.modal-combo-info {
  padding: 20px;
}

.modal-combo-info h2 {
  margin: 0;
  color: #9877af;
  font-size: 20px;
}

.modal-combo-info p {
  font-size: 14px;
  color: #666;
  margin: 10px 0 20px;
  line-height: 1.4;
}

.modal-combo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

#combo-detalhe-preco {
  font-weight: bold;
  font-size: 20px;
  color: #4e342e;
}

.btn-fechar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

/* ==========================================================================
   ESTILOS EXCLUSIVOS PARA O BOTÃO DE CAPTURA DE LOCALIZAÇÃO AO VIVO (GPS)
   ========================================================================== */
#btn-localizacao {
  width: 100%;
  padding: 14px;
  background-color: var(--marrom-cafe);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
  margin-bottom: 15px;
  box-shadow: 0 4px 6px rgba(152, 119, 175, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#btn-localizacao:active {
  transform: scale(0.98);
}

/* Estado: Capturando Sinal do Satélite */
#btn-localizacao.carregando {
  background-color: #f39c12 !important; /* Cor Laranja de Alerta */
  cursor: wait;
  box-shadow: 0 4px 6px rgba(243, 156, 18, 0.2);
}

/* Estado: Localização salva com sucesso */
#btn-localizacao.btn-sucesso {
  background-color: var(--verde-finalizar) !important; /* Cor Verde Sucesso */
  cursor: default;
  box-shadow: 0 4px 6px rgba(0, 200, 83, 0.2);
}

/* Estado: Erro de Permissão ou GPS Desligado */
#btn-localizacao.btn-erro {
  background-color: var(--vermelho-remover) !important; /* Cor Vermelha Alerta */
  box-shadow: 0 4px 6px rgba(211, 47, 47, 0.2);
}