/* ----------------------- */
/*       VARIÁVEIS         */
/* ----------------------- */
:root {
  --cor-primaria: #F8BBD0;  /* Rosa pastel principal */
  --cor-secundaria: #FFE0EC; /* Rosa ainda mais claro */
  --cor-texto: #333;
  --cor-fundo: #FFF5F7;  
}

/* ----------------------- */
/*      RESET & BASE       */
/* ----------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--cor-texto);
  background-color: var(--cor-fundo);
}

/* ----------------------- */
/*     CABEÇALHO/HEADER    */
/* ----------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-container { 
  background-color: #F9F5F2;  
  padding: 10px;  
  border-radius: 8px;  
  display: flex;
  justify-content: center;
  align-items: center;
}

.animate-logo { 
  animation: fadeInLogo 3s ease forwards;  
  width: 250px;
}

@keyframes fadeInLogo {
  0% { transform: translateY(-15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--cor-primaria);
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ec407a;
}

.nav-burger {
  display: none;
}

/* ----------------------- */
/*        PRODUTOS         */
/* ----------------------- */
.produtos {
  padding: 4rem 10%;
  text-align: center;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.produto {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Garante que o conteúdo dentro do card fique organizado */
  height: 100%; /* Garante que todos os cards tenham a mesma altura */
}

.produto:hover {
  transform: scale(1.05);
}

.produto img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.produto-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.produto button {
  background-color: var(--cor-primaria);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Isso faz o botão "grudar" na parte inferior do card */
}

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

/* ----------------------- */
/*   BOTÃO FIXO CARRINHO   */
/* ----------------------- */
.cart-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--cor-primaria);
  color: #fff;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  z-index: 1500;
}

.cart-button:hover {
  background: #ec407a;
}

/* ----------------------- */
/*       MODAL CARRINHO    */
/* ----------------------- */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  z-index: 2000;
}
.cart-modal.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  animation: slideDown 0.4s ease;
}
@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
}
.close-modal:hover {
  color: #333;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}
.cart-item p {
  margin: 0;
  font-size: 14px;
}
.remove-item {
  background: #e74c3c;
  border: none;
  color: #fff;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}
#checkout {
  background-color: var(--cor-primaria);
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 60px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}
#checkout:hover {
  background-color: #ec407a;
}

/* ----------------------- */
/*    BOTÃO WHATSAPP FIXO  */
/* ----------------------- */
.whatsapp-fixed-button {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1500;
}

.fab.fa-whatsapp {
  font-size: 35px;
}

.whatsapp-fixed-button a {
  background-color: #F8BBD0;
  color: #fff;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  position: relative;
  animation: slide-in 0.5s ease-out forwards;
}

@keyframes slide-in {
  0% {
    transform: translateX(-100%); /* Começa fora da tela à esquerda */
  }
  100% {
    transform: translateX(0); /* Posiciona o botão na sua posição original */
  }
}

.whatsapp-fixed-button a:hover {
  transform: scale(1.1);
}

/* ----------------------- */
/*         RODAPÉ          */
/* ----------------------- */
footer {
  background-color: var(--cor-primaria);
  color: #fff;
  padding: 3rem 10%;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-height: 100px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-links a,
.footer-social a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--cor-secundaria);
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* ----------------------- */
/*       RESPONSIVO        */
/* ----------------------- */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
