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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #fefefe;
  color: #333;
}
body>div:nth-child(2){
  display: none;
}
/*  LOADING */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #6D0600;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.logo-splash {
  width: 120px;
  animation: fadeIn 1s ease-in-out infinite alternate;
}

@keyframes fadeIn {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}


header {
  background-color: #ffb347;
  background-image: linear-gradient(to bottom right, #F2BE2A, #6D0600, #0F0101);
  padding: 10px 20px;
  border-bottom: 2px solid #e48e00;
  width: 100vw;
  position: fixed;
  z-index: 999;
}



.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  height: 60px;
}

.titulo h1 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ed741b;
}

.titulo h2 {
  text-align: center;
  font-size: .8em;
  color: #fff;
  font-weight: normal;
}

.redes-sociais a {
  color: #ed741b;
  font-size: 1.5rem;
  margin-left: 15px;
  transition: transform 0.3s;
}

.redes-sociais a:hover {
  transform: scale(1.2);
}

#botao-carrinho {
  background-color: #d96e00;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  position: fixed;
  bottom: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

@keyframes pulinho {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.3);
  }

  60% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

#botao-carrinho #contador-carrinho {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #6D0600;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  display: inline-block;
  min-width: 20px;
  text-align: center;
  animation: none;
  transition: transform 0.2s ease;
}

#botao-carrinho #contador-carrinho.animando {
  animation: pulinho 0.3s ease;
}

.quantidade-controles{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 70% !important;
}
.filtros {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filtros button {
  background-color: #fff;
  border: 2px solid #e48e00;
  color: #e48e00;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filtros button:hover {
  background-color: #e48e00;
  color: #fff;
}

main {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
  justify-content: center;
  position: relative;
  top: var(--header-height, 150px);
  /* valor padrão */
}

.grid-produtos {
  /* flex: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; */
  width: 100%;
}

.produto {
  background-color: #fff8ec;
  border: 1px solid #ffd28c;
  border-radius: 10px;
  padding: 10px;
  width: 45%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  position: relative;
}

.produto div:nth-child(2) {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.produto div:nth-child(3) {
  width: 70%;
}
.info-quantidade {
  font-size: 0.9rem;
  font-weight: bold;
  color: #d96e00;
  margin-bottom: 10px;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-title {
  font-size: 22px;
  font-weight: bold;
  color: #6D0600;
  margin-bottom: 10px;
}

.modal-message {
  font-size: 16px;
  margin-bottom: 20px;
}

.modal-button {
  background-color: #6D0600;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.modal-button:hover {
  background-color: #6D0600;
}


/* recheio */
.modal-select {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.custom-modal {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  width: 400px;
  font-family: sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.custom-modal h2 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.custom-modal input,
.custom-modal select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.custom-modal button {
  padding: 10px 20px;
  background: #28a745;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

.custom-modal button:hover {
  background: #218838;
}

#dataHorarioModal .modal-input {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 16px;
}


.highlight-dia {
  color: #6D0600; /* paleta de cores */
  font-weight: bold;
  border-radius: 4px;
  padding: 4px 8px;
}


.card-header {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.info-icon {
  color: #007bff;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.3s;
}

.info-icon:hover {
  color: #0056b3;
}

.produto img {
  width: 50%;
  height: 85%;
  border-radius: 8px;
  margin: auto;
}

.produto h3 {
  font-size: 1.1rem;
  color: #d96e00;
  margin-bottom: 5px;
  width: 92%;
}

.produto p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.produto button {
  background-color: #d96e00;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.produto button:hover {
  background-color: #ff8c00;
}

.categoria-bloco {
  width: 100%;
  margin-bottom: 30px;
}

.titulo-categoria {
  font-size: 1.5em;
  margin: 20px 10px 10px;
  color: #6D0600;
  text-transform: uppercase;
  border-bottom: 1px solid #ddd;
}

.grupo-categoria {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0px 20px;
}

/* #pedido {
  flex: 1;
  background-color: #fff7e0;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
} */


#pedido {
  /* display: none; */
  position: fixed;
  top: 60px;
  /* ajuste conforme seu header */
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #ffffff;
  border-left: 1px solid #ccc;
  overflow: scroll;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

#pedido.mostrar {
  transform: translateX(0);
}

#pedido h2 {
  margin-bottom: 15px;
  color: #d96e00;
  text-align: center;
}

#lista-pedido {
  list-style: none;
  margin-bottom: 10px;
}

#lista-pedido li {
  display: flex;
  padding: 5px 0;
  border-bottom: 1px dashed #ccc;
  width: 100%;
}

#lista-pedido li div {
  width: 100%;
}

#lista-pedido li span {
  display: inherit;
  font-weight: bold;
}

#lista-pedido li input {
  width: 30%;
  line-height: 30px;
  border: none;
  border-bottom: solid 1px #6D060099;
  text-align: center;
  font-weight: bold;
}

#lista-pedido li button {
  width: 20%;
}

#valor-total {
  font-weight: bold;
  font-size: 1.2rem;
}

#pedido button {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#pedido li button {
  background-color: #6D0600 !important;
}

#pedido button:first-of-type {
  background-color: #d96e00;
}

#pedido #limpar-carrinho {
  background-color: red;
}

#pedido button:hover {
  opacity: 0.9;
}

#btn-enviar-whatsapp {
  margin-bottom: 100px;
}

#fechar-pedido {
  width: 50px !important;
}

#pedido h3 {
  min-width: 130px;
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #6D0600;
  color: #fefefe;
  font-size: 10px;
  z-index: 9999;
}

footer img {
  width: 30px;
  height: 30px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.fechar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay .fechar-modal{
  position: static;
  margin-top: -15px;
}

.modal-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-button {
  background-color: #f08a24;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}





/* Responsivo */
@media (max-width: 1024px) {}

@media (max-width: 768px) {

  .topo {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .grid-produtos {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .produto {
    width: 90%;
  }

  .produto img {
    width: 80%;
    height: auto;
  }

  .titulo {
    opacity: 1;
    max-height: 200px;
    /* altura suficiente pro conteúdo */
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.6s ease;
  }

  header.oculto .titulo {
    opacity: 0;
    max-height: 0;
  }
}