/* CABEÇALHO */

.topo {
  background-color: #25452b;
  padding: 20px 8%;
  border-bottom: 4px solid #e9a52b;
}

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

/* LOGO */

.logo {
  color: #e9a52b;
  font-size: 26px;
  font-weight: bold;
}

/* MENU */

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  color: #f3d28c;
  font-size: 16px;
  transition: 0.3s;
}

.menu a:hover {
  color: #e9a52b;
}

/* CARRINHO */

.btn-carrinho {
  background-color: #8e2418;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
}

/* SEÇÃO INICIAL */

.inicio {
  min-height: 500px;
  background-image:
    linear-gradient(to right, rgba(35, 15, 8, 0.95), rgba(35, 15, 8, 0.35)),
    url("img/pizza-hero.jpg");

  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  padding: 80px 8%;
}

.conteudo-inicio {
  max-width: 650px;
}

.subtitulo {
  color: #e9a52b;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.inicio h1 {
  color: #f3d28c;
  font-size: 48px;
  margin-bottom: 20px;
}

.descricao-inicio {
  color: white;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-cardapio {
  display: inline-block;
  background-color: #e9a52b;
  color: #43251b;
  padding: 15px 25px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-cardapio:hover {
  background-color: #f3d28c;
  transform: translateY(-3px);
}

/* SEÇÃO DO CARDÁPIO */

.cardapio {
  background-color: #f3d28c;
  padding: 80px 8%;
}

/* TÍTULO DO CARDÁPIO */

.titulo-cardapio {
  text-align: center;
  margin-bottom: 50px;
}

.titulo-cardapio p {
  color: #8e2418;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.titulo-cardapio h2 {
  color: #43251b;
  font-size: 36px;
  margin-bottom: 15px;
}

.titulo-cardapio span {
  color: #65452f;
  font-size: 17px;
}

/* LISTA DE PIZZAS */

.lista-pizzas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* CARD DA PIZZA */

.pizza {
  display: flex;
  flex-direction: row-reverse;
  background-color: #fff8e8;
  border: 1px solid #d6b779;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(67, 37, 27, 0.1);
  min-width: 0;
}

.pizza img {
  width: 38%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.informacoes-pizza {
  flex: 1;
  min-width: 0;
  padding: 16px;
}

.informacoes-pizza h3 {
  color: #8e2418;
  font-size: 19px;
  margin-bottom: 8px;
}

.informacoes-pizza p {
  color: #65452f;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.precos-pizza {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #43251b;
  margin-bottom: 14px;
}

/* BOTÃO DE ADICIONAR */

.btn-adicionar {
  width: 100%;
  padding: 10px;
  background-color: #25452b;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-adicionar:hover {
  background-color: #8e2418;
}

/* TABLETS */

@media (max-width: 1000px) {
  .lista-pizzas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* CELULARES */

@media (max-width: 600px) {
  .lista-pizzas {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pizza img {
    width: 30%;
    min-height: 180px;
  }

  .informacoes-pizza {
    padding: 12px;
  }

  .informacoes-pizza h3 {
    font-size: 17px;
  }

  .informacoes-pizza p {
    font-size: 13px;
  }

  .precos-pizza {
    font-size: 13px;
  }
}

.titulo-categoria {
  color: #8e2418;
  font-size: 25px;
  margin: 35px 0 20px;
  border-bottom: 2px solid #d6b779;
  padding-bottom: 10px;
}

.sobre {
  background-color: #25452b;
  color: #f3d28c;
  padding: 80px 8%;
  text-align: center;
}

.conteudo-sobre {
  max-width: 750px;
  margin: auto;
}

.conteudo-sobre h2 {
  color: #e9a52b;
  font-size: 32px;
  margin-bottom: 20px;
}

.conteudo-sobre p {
  line-height: 1.7;
  font-size: 16px;
}

.contato {
  background-color: #f3d28c;
  padding: 70px 8%;
  text-align: center;
}

.titulo-contato {
  margin-bottom: 30px;
}

.titulo-contato p {
  color: #8e2418;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.titulo-contato h2 {
  color: #43251b;
  font-size: 32px;
  margin-bottom: 12px;
}

.informacoes-contato {
  line-height: 2;
  color: #43251b;
}

.rodape {
  background-color: #25452b;
  color: #f3d28c;
  text-align: center;
  padding: 25px;
  line-height: 1.8;
}

.fundo-carrinho {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;

  display: flex;
  justify-content: flex-end;

  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.fundo-carrinho.ativo {
  visibility: visible;
  opacity: 1;
}

.painel-carrinho {
  background-color: #fff8e8;
  width: 320px;
  max-width: 85%;
  height: 100%;
  padding: 16px;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topo-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #d6b779;
}

.topo-carrinho h2 {
  color: #43251b;
}

#fechar-carrinho {
  border: none;
  background: none;
  font-size: 24px;
  color: #8e2418;
}

#itens-carrinho {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 0;
}

.resumo-carrinho {
  flex-shrink: 0;
  border-top: 1px solid #d6b779;
  padding-top: 12px;
}

.resumo-carrinho h3 {
  display: flex;
  justify-content: space-between;
  color: #43251b;
  margin-bottom: 12px;
  font-size: 15px;
}

#finalizar-pedido {
  width: 100%;
  padding: 11px;
  background-color: #25452b;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
}

.painel-carrinho {
  box-sizing: border-box;
  height: 100vh;
}

.resumo-carrinho {
  flex-shrink: 0;
  padding: 10px 0 12px;
}

.resumo-carrinho h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

#finalizar-pedido {
  display: block;
  width: 100%;
  padding: 10px;
  line-height: 1.2;
  margin-bottom: 0;
}

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

.item-carrinho p {
  color: #43251b;
  font-size: 14px;
}

.remover-produto {
  background-color: #8e2418;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 12px;
  flex-shrink: 0;
}

.controles-quantidade {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controles-quantidade button {
  width: 27px;
  height: 27px;
  border: none;
  border-radius: 5px;
  background-color: #25452b;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.controles-quantidade span {
  font-weight: bold;
  color: #43251b;
}

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

.modal-personalizacao {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1100;

  display: flex;
  justify-content: center;
  align-items: center;

  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  padding: 15px;
}

.modal-personalizacao.ativo {
  visibility: visible;
  opacity: 1;
}

.painel-personalizacao {
  background-color: #fff8e8;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  border-radius: 12px;
}

.topo-personalizacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.topo-personalizacao h2 {
  color: #43251b;
  font-size: 21px;
}

#fechar-personalizacao {
  border: none;
  background: none;
  color: #8e2418;
  font-size: 23px;
  cursor: pointer;
}

#nome-pizza-modal {
  color: #8e2418;
  margin-bottom: 20px;
}

.painel-personalizacao label {
  display: block;
  color: #43251b;
  font-weight: bold;
  margin: 15px 0 8px;
}

.painel-personalizacao select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d6b779;
  border-radius: 6px;
  background-color: white;
  color: #43251b;
  font-size: 14px;
}

.total-personalizacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 18px;
  padding-top: 15px;
  border-top: 1px solid #d6b779;
  color: #43251b;
}

#preco-personalizacao {
  font-size: 21px;
  color: #25452b;
}

#confirmar-personalizacao {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background-color: #25452b;
  color: white;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}

#confirmar-personalizacao:hover {
  background-color: #8e2418;
}

/* =====================================
   INGREDIENTES EXTRAS NO MODAL
===================================== */

.adicionais-personalizacao {
  margin-top: 25px;
}

.adicionais-personalizacao h3 {
  color: #43251b;
  font-size: 17px;
  margin-bottom: 6px;
}

.adicionais-personalizacao > p {
  color: #765c48;
  font-size: 13px;
  margin-bottom: 15px;
}

.adicionais-personalizacao label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  margin: 0 0 8px;
  background-color: #f8ebd0;
  border: 1px solid #d6b779;
  border-radius: 7px;
  color: #43251b;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.adicionais-personalizacao label:hover {
  background-color: #f3d28c;
}

.adicionais-personalizacao label:has(input:checked) {
  background-color: #e9d6a9;
  border-color: #25452b;
}

.adicionais-personalizacao input {
  width: 17px;
  height: 17px;
  accent-color: #25452b;
  cursor: pointer;
  flex-shrink: 0;
}

.adicionais-personalizacao label span {
  margin-left: auto;
  color: #25452b;
  font-weight: bold;
  white-space: nowrap;
  font-size: 13px;
}

/* ==========================================
   MODAL DE FINALIZAÇÃO DO PEDIDO
========================================== */

.modal-checkout {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  padding: 15px;
}

.modal-checkout.ativo {
  visibility: visible;
  opacity: 1;
}

/* PAINEL PRINCIPAL */

.painel-checkout {
  background-color: #fff8e8;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  border-radius: 12px;
  box-sizing: border-box;
}

/* CABEÇALHO */

.topo-checkout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.topo-checkout h2 {
  color: #8e2418;
  font-size: 22px;
}

#fechar-checkout {
  border: none;
  background: none;
  color: #8e2418;
  font-size: 23px;
  cursor: pointer;
}

/* SEÇÕES */

.checkout-secao {
  margin-bottom: 25px;
}

.checkout-secao h3,
#campos-endereco h3 {
  color: #8e2418;
  font-size: 17px;
  margin-bottom: 15px;
}

/* CAMPOS E RÓTULOS */

.painel-checkout label {
  display: block;
  color: #43251b;
  font-weight: bold;
  font-size: 14px;
  margin: 12px 0 7px;
}

.painel-checkout input:not([type="radio"]):not([type="checkbox"]),
.painel-checkout select,
.painel-checkout textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d6b779;
  border-radius: 6px;
  background-color: white;
  color: #43251b;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.painel-checkout input:focus,
.painel-checkout select:focus,
.painel-checkout textarea:focus {
  border-color: #25452b;
}

.painel-checkout textarea {
  resize: vertical;
}

/* OPÇÕES DE ENTREGA E PAGAMENTO */

.painel-checkout .opcao-checkout {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  margin: 7px 0;
  background-color: #f8ebd0;
  border: 1px solid #d6b779;
  border-radius: 7px;
  cursor: pointer;
}

.opcao-checkout input {
  accent-color: #25452b;
  width: 17px;
  height: 17px;
  cursor: pointer;
}

/* ENDEREÇO E TROCO */

#campos-endereco {
  margin-bottom: 25px;
}

#campos-troco {
  margin-bottom: 20px;
}

#campos-troco[hidden],
#valor-troco-container[hidden] {
  display: none;
}

/* RESUMO */

#resumo-checkout {
  padding: 15px;
  background-color: #f8ebd0;
  border: 1px solid #d6b779;
  border-radius: 7px;
  color: #43251b;
}

/* BOTÃO DE ENVIO */

#enviar-whatsapp {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background-color: #25452b;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

#enviar-whatsapp:hover {
  background-color: #8e2418;
}

/* AVISO DE TROCO INSUFICIENTE */

.mensagem-erro-troco {
  margin-top: 12px;
  padding: 12px;
  background-color: #fce8e5;
  border: 1px solid #c94a3a;
  border-left: 4px solid #8e2418;
  border-radius: 6px;
  color: #8e2418;
}

.mensagem-erro-troco strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.mensagem-erro-troco p {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.mensagem-erro-troco[hidden] {
  display: none;
}

/* MODAL DE BEBIDAS */

.modal-bebida {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1100;

  display: flex;
  justify-content: center;
  align-items: center;

  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  padding: 15px;
}

.modal-bebida.ativo {
  visibility: visible;
  opacity: 1;
}

.painel-bebida {
  background-color: #fff8e8;
  color: #43251b;
  width: 100%;
  max-width: 420px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.topo-bebida {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.topo-bebida h2 {
  color: #43251b;
  font-size: 22px;
}

.topo-bebida button {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #43251b;
}

.painel-bebida img {
  width: 100%;
  max-width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 10px auto;
}

.painel-bebida h3 {
  color: #43251b;
  font-size: 20px;
  margin: 10px 0;
}

.painel-bebida > p {
  color: #a52a1a;
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 20px;
}

.quantidade-bebida {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.quantidade-bebida button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 6px;
  background-color: #a52a1a;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.quantidade-bebida span {
  font-size: 20px;
  font-weight: bold;
}

#confirmar-bebida {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 6px;
  background-color: #a52a1a;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

#confirmar-bebida:hover,
.quantidade-bebida button:hover {
  background-color: #7f1f14;
}

.botao-remover-item {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  background-color: transparent;
  border: none;
  border-radius: 6px;

  color: #dc2626;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.botao-remover-item svg {
  display: block;
  flex-shrink: 0;
}

.botao-remover-item:hover {
  background-color: #fee2e2;
  color: #991b1b;
}

.botao-remover-item:active {
  transform: scale(0.92);
}

.botao-remover-item:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* ==========================================
   RESPONSIVIDADE - CABEÇALHO E INÍCIO
========================================== */

@media (max-width: 768px) {
  .container-topo {
    flex-direction: column;
    gap: 18px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 22px;
  }

  .inicio {
    min-height: 400px;
    padding: 65px 6%;
    background-position: center;
  }

  .conteudo-inicio {
    max-width: 100%;
  }

  .inicio h1 {
    font-size: 36px;
  }

  .descricao-inicio {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .topo {
    padding: 18px 5%;
  }

  .logo {
    font-size: 23px;
  }

  .menu {
    gap: 12px 18px;
  }

  .menu a {
    font-size: 14px;
  }

  .inicio {
    min-height: 350px;
    padding: 55px 6%;
  }

  .subtitulo {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .inicio h1 {
    font-size: 30px;
  }

  .descricao-inicio {
    font-size: 15px;
  }

  .btn-cardapio {
    padding: 13px 20px;
    font-size: 14px;
  }
}

/* BOTÃO DO MENU MOBILE */
.btn-menu-mobile {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn-menu-mobile span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #F3D28C;
    border-radius: 3px;
}

/* MENU RESPONSIVO */
@media (max-width: 768px) {
  .container-topo {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }

  .btn-menu-mobile {
    display: flex;
    order: -1;
    margin-left: 0;
    margin-right: auto;
    width: 34px;
    height: 34px;
    padding: 5px;
    gap: 4px;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 18px;
    padding: 15px 0;
    text-align: center;
  }

  .menu.aberto {
    display: flex;
  }

  .menu a {
    font-size: 16px;
  }
}









/* CARRINHO FLUTUANTE */
.carrinho-flutuante {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 950;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 15px;
    background: linear-gradient(145deg, #A83225, #781B15);
    color: white;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;

    font-size: 17px;
    font-weight: bold;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.25),
        0 2px 3px rgba(0, 0, 0, 0.15);

    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carrinho-flutuante:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 3px 5px rgba(0, 0, 0, 0.15);
}

.carrinho-flutuante:active {
    transform: scale(0.96);
}

#contador-carrinho-flutuante {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 21px;
    padding: 0 5px;

    background-color: #E9A52B;
    color: #542016;

    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Respeitar o atributo hidden */
.carrinho-flutuante[hidden] {
    display: none !important;
}