/* ================= CARDÁPIO ================= */
.cardapio {
  width: 100%;
  background: #ffffff;
  padding: 60px 0;
  position: relative; /* necessário para o divisor */
}

.cardapio-inner {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
}

/* TOPO */
.cardapio-top {
  text-align: center;
  margin-bottom: 50px;
}

.cardapio-top h2 {
  font-size: 46px;
  font-weight: 800;
  color: #000;
  margin: 18px 0;
}

.cardapio-top p {
  font-size: 18px;
  color: #444;
}

/* ================= CATEGORIAS ================= */
.cardapio-categorias {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 80px;
}

.cat-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

.cat-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #ffcc66;
  transition: width 0.3s ease;
}

.cat-btn.active {
  color: #000;
}

.cat-btn.active::after {
  width: 100%;
}

/* ================= PRODUTOS ================= */
.cardapio-produtos {
  position: relative;
}

.produtos-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  animation: fadeUp 0.5s ease both;
}

.produtos-grid.active {
  display: grid;
}

/* CARD */
.produto-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.produto-img {
  overflow: hidden;
}

.produto-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.produto-card:hover .produto-img img {
  transform: scale(1.1);
}

.produto-info {
  padding: 22px;
}

.produto-cod {
  font-size: 12px;
  letter-spacing: 2px;
  color: #999;
  display: block;
  margin-bottom: 6px;
}

.produto-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #000;
}

.ingredientes {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* ================= ANIMAÇÃO ================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVO ================= */
@media (max-width: 1200px) {
  .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .produtos-grid {
    grid-template-columns: 1fr;
  }

  .cardapio-categorias {
    gap: 25px;
  }
}


.cardapio::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;
  background: rgba(0,0,0,0.08);
}



/* ================= MODAL PRODUTO ================= */
.modal-produto {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.modal-produto.active {
  display: block;
}

/* overlay */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  animation: fadeIn 0.4s ease;
}

/* conteúdo */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  height: 480px;

  margin: auto;
  top: 50%;
  transform: translateY(-50%) scale(0.95);

  background: #000;
  border-radius: 14px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  animation: zoomIn 0.4s ease forwards;
}

/* imagem */
.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* TODAS IGUAIS */
}

/* botão fechar */
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 34px;
  color: #000000; /* X PRETO */
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.25s ease;
}

.modal-close:hover {
  opacity: 0.6;
}

/* animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: translateY(-50%) scale(0.9); opacity: 0; }
  to   { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* responsivo */
@media (max-width: 600px) {
  .modal-content {
    height: 360px;
  }
}
