/* =====================================================
   ESTILO BASE DO SITE
===================================================== */

/* Corpo da página */
body {
  min-height: 100vh;
  margin: 0;
  background: #e61f93;
}

/* Rodapé */
footer {
  background-color: #e61f93;
}

/* Cabeçalho */
header,
#navbar {
  background-color: #e61f93;
}

/* =====================================================
   BOTÕES PADRÃO
===================================================== */

.btn-default {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #fff;

  border-radius: 12px;
  padding: 10px 14px;

  font-weight: 600;

  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.1);

  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-default:hover {
  background-color: #e61f93;
}

/* =====================================================
   IMAGENS DOS PRATOS
===================================================== */

.dish-image {
  width: 230px;
  height: 230px;
  object-fit: cover;

  border-radius: 12px;

  cursor: pointer;

  transition: transform 0.3s;
}

.dish-image:hover {
  transform: scale(1.05);
}

/* Ícone coração */
.dish-heart {
  background-color: #e61f93;
}

.dish-heart i {
  color: white;
}

/* =====================================================
   MODAL DE IMAGEM (AMPLIAR FOTO)
===================================================== */

#modalImagem {
  display: none;

  position: fixed;
  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.9);

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* Imagem ampliada */
#imgGrande {
  max-width: 90%;
  max-height: 90%;

  border-radius: 12px;

  transition: transform 0.4s;
  cursor: zoom-in;
}

/* Zoom forte ao clicar */
#imgGrande.zoom {
  transform: scale(2.5);
  cursor: zoom-out;
}

/* =====================================================
   ANIMAÇÃO ZOOM DA IMAGEM
===================================================== */

@keyframes zoomIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =====================================================
   INTRO / TELA DE CARREGAMENTO
===================================================== */

#intro {
  position: fixed;

  width: 100%;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;

  /* gradiente animado */
  background: linear-gradient(270deg, #e61f93, #f5a2d2, #e76db4);
  background-size: 400% 400%;

  animation: gradientMove 6s ease infinite;
}

/* Conteúdo central */
.intro-content {
  text-align: center;
  animation: introFade 1.5s ease;
}

/* Ícone da intro */
.intro-icon {
  font-size: 90px;
  color: #1d1d1d;
}

/* Título */
.intro-title {
  font-size: 48px;
  margin-top: 10px;
}

/* Texto */
.intro-text {
  margin-top: 5px;
  font-size: 18px;
}

/* Barra de loading */
.intro-loader {
  width: 220px;
  height: 6px;

  background: #ffffff70;

  border-radius: 10px;

  margin: 20px auto 0;

  overflow: hidden;
}

.intro-loader::after {
  content: "";

  display: block;

  height: 100%;
  width: 0%;

  background: #1d1d1d;

  animation: loadingBar 2.5s forwards;
}

/* Intro desaparecendo */
#intro.hide {
  opacity: 0;
  visibility: hidden;
  transition: 1s;
}

/* Animações */
@keyframes loadingBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes introFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* =====================================================
   CARROSSEL DE FOTOS
===================================================== */

.carrossel-fotos {
  background-color: #e61f93;
  padding: 40px 0;
  overflow: hidden;
}

.carrossel-container {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.carrossel-track {
  display: flex;
  width: calc(250px * 8);

  animation: scroll 25s linear infinite;
}

.carrossel-track img {
  width: 250px;
  height: 250px;

  object-fit: cover;

  margin-right: 20px;

  border-radius: 10px;

  transition: transform 0.4s ease;
}

/* Efeito zoom */
.carrossel-track img:hover {
  transform: scale(1.2);
}

/* Pausar animação ao passar mouse */
.carrossel-track:hover {
  animation-play-state: paused;
}

/* Animação do carrossel */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =====================================================
   BANNER CARROSSEL
===================================================== */

.banner {
  width: 100%;
  height: 60vh;

  overflow: hidden;
  position: relative;
}

.banner-track {
  display: flex;
  height: 100%;

  animation: scrollBanner 30s linear infinite;
}

.banner-slide {
  min-width: 100vw;
  height: 100%;

  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* Conteúdo do banner */
.banner-content {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  text-align: center;
  color: white;

  z-index: 2;

  width: 90%;
  max-width: 600px;
}

.banner-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.banner-content p {
  font-size: 20px;
  margin-bottom: 25px;
}

/* Botão */
.banner-btn {
  background: #ff4d4d;
  color: white;

  padding: 14px 30px;

  text-decoration: none;

  border-radius: 6px;

  font-size: 18px;

  transition: 0.3s;
}

.banner-btn:hover {
  background: #e63c3c;
  transform: scale(1.05);
}

/* Animação banner */
@keyframes scrollBanner {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* =====================================================
   MENU COM SUBMENU
===================================================== */

#nav_list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-item a:hover {
  transform: scale(1.3);
  color: #fff;
}

/* Item com submenu */
.has-submenu {
  position: relative;
}

/* Submenu */
.submenu {
  position: absolute;

  top: 100%;
  left: 0;

  background: white;

  list-style: none;

  padding: 10px 0;
  margin: 0;

  width: 220px;

  border-radius: 8px;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition: 0.3s;
}

/* Links */
.submenu li a {
  display: block;

  padding: 12px 18px;

  text-decoration: none;

  font-weight: 500;
}

/* Hover link */
.submenu li a:hover {
  background: #e61f93;
  color: #fff;
}

/* Mostrar submenu */
.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =====================================================
   MENU MOBILE
===================================================== */

#mobile_menu {
  display: none;
}

#mobile_menu.active {
  display: block;
  background-color: #54b0fe;
}

@media (max-width: 768px) {
  #nav_list {
    display: none;
  }

  #mobile_btn {
    display: block;
  }

  #mobile_menu {
    width: 100%;
    padding: 20px;
  }

  #mobile_nav_list {
    list-style: none;
  }

  #mobile_nav_list .submenu {
    position: static;
    display: none;
    padding-left: 15px;
  }

  #mobile_nav_list .has-submenu.active .submenu {
    display: block;
  }

  .submenu {
    position: static;
    box-shadow: none;
    width: 100%;

    background: #ffffff; /* cor do fundo */

    padding: 10px 0;
    display: none;
  }

  .submenu li a {
    color: #000; /* cor do texto */
  }
}

/* =====================================================
   BOTÕES REDES SOCIAIS
===================================================== */

.social-media-buttons {
  display: flex;
  gap: 18px;
}

.social-media-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 40px;

  background-color: #e61f93;

  font-size: 1.25rem;

  border-radius: 10px;

  text-decoration: none;

  box-shadow: 0px 0px 12px 4px rgba(0, 0, 0, 0.1);

  transition: box-shadow 0.3s ease;
}

.social-media-buttons a:hover {
  box-shadow: 0px 0px 12px 8px rgba(0, 0, 0, 0.1);
}

/* ============================= */
/* MODAL DE PEDIDO */
/* ============================= */

/* Fundo escuro do modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

/* Caixa do modal */
.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 500px;

  max-height: 90vh;
  overflow-y: auto;

  padding: 25px;
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  animation: modalFade 0.3s ease;
}

/* animação */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* botão fechar */
.modal .close {
  position: absolute;
  right: 25px;
  top: 15px;

  font-size: 28px;
  cursor: pointer;
  color: #999;
}

.modal .close:hover {
  color: #e61f93;
}

/* títulos */
.modal-content h2 {
  margin-bottom: 15px;
  color: #e61f93;
}

.modal-content h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 16px;
}

/* inputs */
.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;

  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* lista de produtos */
#lista-produtos {
  background: #f7f7f7;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* botão remover produto */
#lista-produtos button {
  border: none;
  background: #ff4d4d;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}

/* total */
#total {
  font-size: 18px;
  color: #e61f93;
}

/* botão confirmar pedido */
.modal-content button {
  width: 100%;
  padding: 12px;

  background: #e61f93;
  color: white;

  border: none;
  border-radius: 8px;

  font-weight: bold;
  font-size: 16px;

  cursor: pointer;
  margin-top: 10px;

  transition: 0.3s;
}

.modal-content button:hover {
  background: #c81b7d;
}

/* informações pix */
#pix-info {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* RESPONSIVO */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .modal-content h2 {
    font-size: 20px;
  }
}
