
.menu-section {
  background-color: #F9F0D5;
  padding: 15px clamp(20px, 8vw, 200px);
}

.menu-categories {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* controla o espaçamento */
  flex-wrap: nowwrap; /* evita estourar */
}

.menu-category {
  background: none;
  border: none;
  cursor: pointer;
  color: #92402D;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: color 0.35s ease, transform 0.35s ease;
}

.menu-category img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(24%) sepia(34%) saturate(1061%) hue-rotate(332deg) brightness(93%) contrast(88%);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.menu-category span {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
}

.menu-category:hover {
  color: #50281F;
}

.menu-category:hover img {
  transform: translateY(-3px);
  filter: brightness(0) saturate(100%) invert(13%) sepia(24%) saturate(1162%) hue-rotate(334deg) brightness(93%) contrast(92%);
}

.menu-category.is-active {
  color: #EF381A;
  pointer-events: none;
}

.menu-category.is-active img {
  filter: brightness(0) saturate(100%) invert(31%) sepia(97%) saturate(2861%) hue-rotate(352deg) brightness(101%) contrast(94%);
}

/* Container dos cards no desktop */
.menu-products {
  max-width: 1320px;      /* mais largo pra cards respirarem */
  padding-top: 20px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  min-height: 420px;
  padding: 44px 36px 38px;
  background: linear-gradient(to top, #F4E3AE 0%, #F9F0D5 100%);
  display: none;
  text-align: center;
  position: relative;
  overflow: visible; /* garante que o conteúdo suba sem sumir */
  transition: box-shadow 0.35s ease, border-radius 0.35s ease;
}

.product-card .card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%; /* preenche o card pra empurrar a CTA pro rodape */
}
/* empurra o botao SAIBA MAIS pra base do card (alinhamento uniforme) */
.product-card .card-inner > .card-more-btn {
  margin-top: auto;
}

.product-card {
  /* permite que o hot-dog "salte" pra fora do card sem ser cortado */
  overflow: visible;
  /* card NÃO muda no hover — sem border, sem shadow, sem lift */
}

/* SOMENTE o hot-dog reage ao hover do card (igual ao protótipo XD) */
.product-card img {
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center 60%;
  position: relative;
  z-index: 2;
}

.product-card:hover img {
  transform: scale(1.12) translateY(-18px) rotate(-3deg);
  filter: drop-shadow(0 22px 18px rgba(146, 64, 45, 0.42));
}

/* card inteiro clicavel — cursor pointer + SAIBA MAIS muda no hover */
.product-card { cursor: pointer; }
.product-card:hover .card-more-btn {
  background: #92402D;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(239, 56, 26, 0.55);
}

/* botão SAIBA MAIS injetado pelo JS */
.card-more-btn {
  margin-top: 24px;
  padding: 11px 32px;
  background: #EF381A;
  color: #F9F0D5;
  font-family: var(--font-primary);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s,
    box-shadow 0.35s;
}
.card-more-btn:hover {
  background: #92402D;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(239, 56, 26, 0.55);
}
.card-more-btn:active {
  transform: translateY(0);
}

/* MODAL DETALHE DO PRODUTO */
.product-modal {
  position: fixed; inset: 0;
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.product-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0s;
}
.product-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(20, 8, 6, 0.86);
}
.product-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: hidden;
  background: linear-gradient(to top, #F4E3AE 0%, #F9F0D5 100%);
  border-radius: 24px;
  padding: 56px 36px 0;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(40, 16, 12, 0.6);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-modal-strip {
  margin: 32px -36px 0;
  width: calc(100% + 72px);
  height: 38px;
  background-image: url('../img/elements/faixa.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 center;
  animation: stripLoop 18s linear infinite;
}
@media (max-width: 768px) {
  .product-modal-strip { margin: 24px -24px 0; width: calc(100% + 48px); height: 30px; }
}
.product-modal.is-open .product-modal-card {
  transform: scale(1) translateY(0);
}
.product-modal-close {
  position: absolute; top: 14px; right: 18px;
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  color: #EF381A;
  cursor: pointer;
  transition: transform 0.25s, color 0.25s;
}
.product-modal-close:hover {
  transform: rotate(90deg) scale(1.05);
  color: #92402D;
}
.product-modal-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.product-modal-title {
  font-family: 'Yeah', sans-serif;
  font-size: 32px;
  line-height: 1.05;
  color: #92402D;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.product-modal-description {
  font-family: 'Yeah', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: #50281F;
  margin-bottom: 28px;
}
.product-modal-cta {
  display: inline-block;
  padding: 14px 38px;
  background: #EF381A;
  color: #F9F0D5;
  font-family: 'Yeah', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.35s, background-color 0.35s, box-shadow 0.35s;
}
.product-modal-cta:hover {
  background: #92402D;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(239, 56, 26, 0.6);
}

body.modal-open {
  overflow: hidden;
}
/* esconde o botão flutuante "Peça agora" quando o modal está aberto
   pra não cobrir o CTA "Peça o seu agora!" dentro do popup */
body.modal-open .floating-menu-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

@media (max-width: 768px) {
  .product-modal { padding: 16px; }
  .product-modal-card { padding: 52px 24px 0; border-radius: 20px; }
  .product-modal-title { font-size: 26px; }
  .product-modal-description { font-size: 14.5px; }
  .product-modal-cta { font-size: 18px; padding: 12px 28px; }
}


.product-card.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card h3 {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 15px;
  color: #92402D;
  text-align: left;
  margin-bottom: 28px;
  font-family: unset !important;
}

@media (max-width: 768px) {

  .product-card h3 {
    margin-bottom: 10px;
  }

}

.product-card h3 .card-number {
  font-family: 'Cnossus' !important;
  font-size: 45px;
  line-height: 1;
  color: #92402D;
}

.product-card h3 .card-title {
  font-family: 'Yeah', sans-serif !important;
  font-size: 30px;
  line-height: 1;
  color: #92402D;
  text-transform: uppercase;
  font-weight: normal;
  letter-spacing: 0;
}

.product-card img {
  width: auto;
  height: auto;      /* controla o tamanho visual */
  max-width: 100%;      /* controla o tamanho visual */
  object-fit: contain;
  display: block;
  margin: 0 auto 24px;
}

.order-button {
  width: fit-content;
  margin: 70px auto 0;
  padding: 18px 46px;
  background-color: #EF381A;
  color: #F9F0D5;
  font-family: var(--font-primary);
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  border-radius: 999px;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.order-button:hover {
  transform: translateY(-3px);
  background-color: #92402D;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-section {
    padding: 0px 16px;
    overflow-x: hidden;
  }

  .menu-categories {
    justify-content: center;
    align-items: center;
    overflow: visible;
    flex-wrap: wrap;
    gap: 28px;
    padding: 10px 0 20px;
  }

  .menu-category {
    overflow: visible;
  }

  .menu-category img {
    width: 28px;
    height: 28px;
  }

  .menu-category span {
    font-size: 16px;
  }

  .menu-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .product-card {
    min-height: 200px;
    padding: 22px 14px 24px;
    position: relative;
    overflow: visible;       /* permite hot-dog "saltar" no hover */
    transition: box-shadow 0.35s ease, border-radius 0.35s ease;
    min-width: 0; /* permite encolher abaixo do conteudo intrinseco */
  }

  .product-card .card-inner {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    gap: 12px;
    min-width: 0;
  }

  .product-card h3 {
    font-size: 22px;
    word-wrap: break-word;
  }

  .card-more-btn {
    padding: 9px 18px;
    font-size: 13px;
    margin-top: 16px;
  }

  .product-card img {
    width: auto;               /* largura automática */
    max-width: 100%;           /* não ultrapassa o card */
    height: 60px;             /* altura fixa */
    object-fit: contain;       /* mantém proporção, não corta */
    display: block;
    margin: 0 auto 24px;       /* centraliza e espaça do resto do conteúdo */
    transition: transform 0.35s ease; /* caso queira hover na imagem depois */
  }

  .product-card p {
    font-size: 14px;
  }

  .order-button {
    margin-top: 52px;
    font-size: 34px;
  }
}

/* TAMANHO DA IMAGENS */
/* DESKTOP */
.product-card[data-category="dogmas"] img {
  height: 140px;
}

.product-card[data-category="burgers"] img {
  height: 155px;
}

.product-card[data-category="extras"] img {
  height: 155px;
}

.product-card[data-category="doces"] img {
  height: 155px;
}

@media (max-width: 768px) {

  .product-card[data-category="dogmas"] img {
    height: auto;
    width: auto;
    max-width: 100%;
    margin: 0 auto 10px;
    object-fit: contain;
  }

  .product-card[data-category="burgers"] img {
    height: auto;
    width: auto;
    max-width: 100%;
    margin: 0 auto 10px;
    object-fit: contain;
  }

  .product-card[data-category="extras"] img {
    height: auto;
    width: auto;
    max-width: 100%;
    margin: 0 auto 10px;
    object-fit: contain;
  }

  .product-card[data-category="doces"] img {
    height: auto;
    width: auto;
    max-width: 100%;
    margin: 0 auto 10px;
    object-fit: contain;
  }
}
