/* Reset e estilos gerais */
*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
  transition: all 0.3s ease;
}

body{
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
}

/* HEADER */
.header{
  position: relative;
  height: 220px;
  background: url("imagem/capa.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
}

.logo-area{
  position: relative;
  text-align: center;
  color: white;
  z-index: 2;
}

.logo-area img{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid white;
  background: white;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.logo-area img:hover{
  transform: scale(1.1);
}

.nome-restaurante{
  font-size: 24px;
  font-weight: bold;
}

.slogan{
  font-size: 14px;
  opacity: 0.9;
}

/* CATEGORIAS */
.categorias{
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #eee;
  z-index: 999;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.categorias::-webkit-scrollbar{
  display: none;
}

.categorias button{
  background: transparent;
  border: none;
  color: #333;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  min-width: 78px;
  padding: 6px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.categorias button:hover{
  background: transparent;
}

.categorias button span{
  margin-top: 6px;
}

/* Destaque do botão ativo */
.categorias button.active .cat-img,
.categorias button.ativo-clique .cat-img{
  border: 3px solid #ff7a00;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255,122,0,0.5);
  animation: pulse 0.4s ease;
}

/* Pulse contínuo para categoria ativa no scroll */
.categorias button.active .cat-img {
  animation: pulse-continuo 1.2s ease-in-out infinite;
}

@keyframes pulse-continuo {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes pulse{
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1.1); }
}

.cat-img{
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

/* PRODUTOS */
.container{
  padding: 15px;
}

.produto{
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s forwards;
}

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

.produto img{
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 12px;
}

.nome{
  font-weight: bold;
  font-size: 16px;
}

.desc{
  font-size: 13px;
  color: #777;
}

.preco{
  margin-top: 6px;
  color: #ff7a00;
  font-weight: bold;
}

.categoria-label{
  font-size: 12px;
  color: #999;
  margin-bottom: 3px;
}

/* MODAL */
.modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content{
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content{
  transform: scale(1);
  opacity: 1;
}

.modal img{
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.fechar{
  margin-top: 15px;
  background: #ff7a00;
  border: none;
  padding: 12px 22px;
  color: white;
  cursor: pointer;
  border-radius: 8px;
}

@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

/* RODAPÉ */
.footer{
  text-align: center;
  padding: 15px;
  color: #777;
  font-size: 12px;
  background: #f5f5f5;
}