* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #F5E6C8;
  font-family: 'Inter', sans-serif;
  color: #3E2723;
  line-height: 1.4;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

/* --------------------------- Cabeçalho -------------------------*/
header {
  background-color: #8B4513;
  border-bottom: 3px solid #daa520;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 85px;
    width: auto;
}

.nav-opcoes ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-opcoes a, 
#btn-sobre, #btn-contato, #btn-inicio,
#area-usuario span {
  background: #D2B48C;
  border: none;
  color: #000;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
}

.btn-logout, 
.btn-login {
    font-weight: bold;
}

.nav-opcoes a:hover,
#btn-sobre:hover, #btn-contato:hover, #btn-inicio:hover,
#area-usuario span:hover {
  background: #e66e00;
  color: #fff;
}

.btn-log-desconto {
    width: 100%;
    background: #e2f81f;
    color: black;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-log-desconto:hover {
    background: #fbff2c;
}

.btn-finalizar,
.btn-entrar {
    width: 100%;
    background: #16ca43;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-finalizar:hover,
.btn-entrar:hover {
    background: #118f2f;
}

.btn-voltar {
    width: 100%;
    background: #f1635ee8;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-voltar:hover {
  background: #ec2c1ee8;
}

/*---------------- Tela 1 - Lista de unidades e Mapa --------------------------*/
.container {
    flex: 1;
    display: flex;
    flex-direction: column; 
    width: 100%;
}

#home {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    align-items: flex-start;
}

#lista {
  width: 35%;
  height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 15px;
  border-right: 2px solid #D2B48C;
}

.moldura-mapa {
  flex: 1;
  margin: 20px;
  height: 500px; 
  border: 6px solid #8B4513; 
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  margin-top: 10px;
}

#mapa {
  width: 100%;
  height: 100%;
}

/*----------------- tela login e criar conta ------------------*/
#area-usuario {
    display: flex;
    gap: 10px; 
    align-items: center;
}

/*----------------- responsividade da tela --------------------*/
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .nav-opcoes ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  #btn-sobre, #btn-contato, #btn-inicio {
    padding: 8px 12px;
    font-size: 14px;
    width: auto;
  }

  .logo-link img {
    height: 60px;
  }

  .container {
    display: flex;
    flex-direction: column;
  }

  #home {
    display: flex;
    flex-direction: column;
    min-height: auto; 
  }

  #lista {
    width: 100%;
    max-height: 300px;
    border-right: none;
    border-bottom: 2px solid #D2B48C;
  }

  .moldura-mapa {
    width: 95%;
    height: 350px;
    margin: 20px auto;
    flex: none;
  }

  #mapa {
    height: 100%;
    width: 100%;
  }
  
}

/*-------------------- Card matriz e filiais -----------------------*/
.card-unidade {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: #A0522D;
  color: #FFF;
  border-left: 5px solid #DAA520;

  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;

  cursor: pointer;
  transition: 0.2s;
}

.card-unidade:hover {
  transform: translateX(5px);   
  background-color: #8B4513;
  border-left: 5px solid #F5E6C8;
}

.card-unidade .info {
  width: 70%;
}

.card-unidade h3 {
  font-size: 14px;
  margin: 0;
}

.card-unidade p {
  font-size: 12px;
  margin: 5px 0 0;
}

.card-unidade .foto {
  width: 150px;
  height: 80px;
  background: #D2B48C;
  border-radius: 5px;
  overflow: hidden;
}

.card-unidade .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  margin-top: 8px;
  margin-left: 8px;
  padding: 5px 10px;
  border: none;
  background: #D2B48C;
  color: #3E2723;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
    background-color: #3E2723;
    color: #D2B48C;
}

/*--------------------------- informações sobre, contato -----------------------*/
.informacoes {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    line-height: 1.6;
    color: #3E2723;
}

.img-sobre {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.informacoes h2 {
    color: #8B4513;
    border-bottom: 2px solid #DAA520;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contato-info i {
    color: #DAA520;
    margin-right: 10px;
    font-size: 1.2rem;
}

/*-------------------------- tela 2 cardapio ---------------------------------*/
.cardapio-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.cardapio-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #DAA520;
}

.cardapio-header h2 {
    color: #8B4513;
    font-size: 28px;
    margin-bottom: 10px;
}

.cardapio-header p {
    color: #666;
    font-size: 14px;
}

.categoria {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categoria-titulo {
    background: #8B4513;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 20px;
    border-left: 5px solid #DAA520;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card-produto {
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.card-produto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #F5E6C8;
}

.card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body strong {
    font-size: 18px;
    color: #8B4513;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.card-body p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.preco {
    font-size: 20px;
    font-weight: bold;
    color: #2e7d32;
    margin: 10px 0;
    display: block;
}

.btn-add {
    background: #8B4513;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    width: 100%;
    margin: 0;
}

.btn-add:hover {
    background: #DAA520;
    color: #3E2723;
    transform: scale(1.02);
}

/*--------------------- Responsividade da tela -------------------- */
@media (max-width: 768px) {
    .cardapio-container {
        padding: 10px;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-produto img {
        height: 150px;
    }
}

/*----------------------------- Tela 2 - Carrinho ---------------------------------*/
.cardapio-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 120px;
    padding: 20px;
    align-items: flex-start;
}

.cardapio-container {
    flex: 2; 
    margin: 0; 
}

.meu-carrinho {
    flex: 1; 
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky; 
    top: 120px;
    border-top: 5px solid #DAA520;
}

.carrinho-header h3 {
    color: #8B4513;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.carrinho-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #D2B48C;
}

.carrinho-footer .total {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.item-carrinho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.item-carrinho .info {
    display: flex;
    flex-direction: column;
}

.item-carrinho .remover {
    display: flex;
    align-items: center;
}

.item-carrinho button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/*---------------------- Responsividade da tela -----------------------*/
@media (max-width: 900px) {
    .cardapio-layout {
        flex-direction: column;
    }
    .meu-carrinho {
        width: 100%;
        position: static;
    }
}

/* ---------------------------- span notificações ----------------------*/
.notificacao {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background-color: #333;
    color: #fff;

    padding: 12px 20px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 4px 12px rgba(0,0,0,0.2);

    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 0.3s ease forwards;
}

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*------------------------- Terceira tela ------------------------------*/
.area-cliente-fidelidade {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.area-cliente-fidelidade h3 {
    color: #8B4513;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DAA520;
    display: inline-block;
}

.total-pontos-box {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.total-pontos-box span {
    font-size: 28px;
    color: #F5E6C8;
    font-weight: bold;
}

.total-pontos-box strong {
    color: #DAA520;
    font-size: 32px;
    margin-left: 10px;
}

.lista-resgate {
    margin-top: 30px;
}

.lista-resgate p {
    font-size: 18px;
    color: #3E2723;
    margin-bottom: 20px;
    font-weight: 500;
}
.login-container-fidelidade {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.login-container-fidelidade h2 {
    color: #8B4513;
    font-size: 28px;
    margin-bottom: 30px;
    border-bottom: 3px solid #DAA520;
    display: inline-block;
    padding-bottom: 10px;
}

.login-container-fidelidade p {
    color: #666;
    margin: 20px 0;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #D2B48C;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 5px rgba(218, 165, 32, 0.3);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3E2723;
    font-weight: 500;
}

/* -------------------- Responsividade da tela -------------------------*/
@media (max-width: 768px) {
    .area-cliente-fidelidade {
        padding: 20px;
        margin: 10px;
    }
    
    .area-cliente-fidelidade h3 {
        font-size: 20px;
    }
    
    .total-pontos-box span {
        font-size: 20px;
    }
    
    .total-pontos-box strong {
        font-size: 24px;
    }
    
    .lista-resgate button {
        width: 95%;
        font-size: 14px;
        padding: 10px;
    }
    
    .login-container-fidelidade {
        padding: 25px;
        margin: 10px;
    }
    
    .login-container-fidelidade h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* -------------------------- Termo LGPD ----------------------------*/
.caixaAlerta-lgpd {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    z-index: 1000;
    width: 300px;
    text-align: center;
}

.aviso-lgpd {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

.btn-aceitar { 
  background: #28a745; 
  color: white; 
  border: none; 
  padding: 10px; 
  cursor: pointer; 
  border-radius: 5px; 
  margin-top: 10px; 
}

/* ------------------------------- Última tela pagto e status --------------*/
.area-pagamento-status {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #F5E6C8;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 1100px;
}

.coluna-pagamento, .coluna-status {
    flex: 1;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #D2B48C;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.coluna-pagamento h3, .coluna-status h3 {
    color: #8B4513;
    border-bottom: 2px solid #DAA520;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.recibo {
    background: #FFF8F0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #DAA520;
    color: #3E2723;
}

.recibo p {
    margin: 8px 0;
    font-size: 14px;
}

.total-checkout {
    font-size: 22px;
    color: #8B4513;
    font-weight: bold;
    text-align: right;
    background: #D2B48C;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
}

.timeline-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
}

.qr-code-img {
    width: 200px;
    height: 200px;

    margin: 15px auto;
    display: block;

    border-radius: 10px;
    padding: 10px;
    background-color: #fff;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.etapa {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.4s;
}

.etapa .icon {
    width: 25px;
    height: 25px;
    background: #D2B48C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #3E2723;
}

.etapa.ativo { 
    color: #2e7d32; 
    transform: translateX(10px);
    background: #E8F5E9;
}

.etapa.ativo .icon { 
    background: #16ca43; 
    color: white; 
    box-shadow: 0 0 10px rgba(22, 202, 67, 0.3);
}

.etapa.completed {
    color: #8B4513;
}

.etapa.completed .icon {
    background: #DAA520;
    color: white;
}

.card-pagamento-info {
    text-align: center;
    padding: 20px;
    border: 2px dashed #daa520;
    margin-top: 15px;
    background: #FFF8F0;
    border-radius: 12px;
}

.card-pagamento-info p {
    color: #3E2723;
    margin: 10px 0;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    color: #3E2723;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.icone-loading {
    width: 20px;
    height: 20px;
    border: 3px solid #D2B48C;
    border-top: 3px solid #daa520;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } 
}

/*-------------------------- Responsividade da tela --------------------------*/
@media (max-width: 768px) {
.area-pagamento-status {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    margin: 10px;
}

.coluna-pagamento, 
.coluna-status {
    width: 100%;
    padding: 20px;
    margin: 0;
}

.coluna-pagamento {
    margin-bottom: 0;
}

.timeline-visual {
    padding-left: 10px;
    gap: 15px;
}

.etapa {
    font-size: 13px;
}

.etapa.ativo {
    transform: translateX(5px);
}

.qr-code-img {
    width: 150px;
    height: 150px;
}

.total-checkout {
    font-size: 18px;
    text-align: center;
}

.recibo p {
    font-size: 13px;
}

.card-pagamento-info {
    padding: 15px;
}
}

@media (max-width: 480px) {
.area-pagamento-status {
    padding: 10px;
    gap: 15px;
}

.coluna-pagamento, 
.coluna-status {
    padding: 15px;
}

.etapa {
    font-size: 12px;
}

.etapa .icon {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.qr-code-img {
    width: 120px;
    height: 120px;
}

.total-checkout {
    font-size: 16px;
}
}

/*----------------------------- Rodapé --------------------------------*/
footer {
  text-align: center;
  padding: 5px;
  background: #3E2723;
  color: #F5E6C8;
}