/* ============================ */
/*         PRODUTOS            */
/* ============================ */
.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 10px;
  gap: 1rem;
}

.product {
  border-radius: 1em;
  width: 25%;
  box-sizing: border-box;
  padding: 10px;
  margin: 1em;
  text-align: center;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #b8c0ff47;
}

.product img {
  width: 70%;
  height: 20em;
  object-fit: cover;
  border-radius: 8px;
}

  .product-description {
    display: none;
    margin-top: 5px;
}

@media (max-width: 768px) {
  .product-container {
      width: 100%;
      font-size: 0.7em;
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    }
  
  .product {
    width:90%;
    margin: 5px;
    padding: 10px;
  }

  .product button {
  margin-top: auto; 
  padding: 8px 1px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
  
  .product img {
    width: 100%;
    height: 18em;
    object-fit: cover;
    border-radius: 8px;
  }

  .price {
    font-weight: bold;
    margin: 8px 0;
  }

  .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.1em;
  }

  .new-price {
    color: #e63946;
    font-size: 1em;
  }

  .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .product-description {
    display: none;
    margin-top: 5px;
  }
}
/* ============================ */
/*       SEÇÃO DE PROMOÇÕES     */
/* ============================ */
#promocoes {
  margin-top: 2em;
}

#promocoes h2 {
  text-align: center;
  margin-bottom: 1.5em;
  position: relative;
  color: #B8C0FF;
}

#promocoes h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background: #B8C0FF;
  margin: 0.1em auto 0 auto;
  border-radius: 2px;
}

/* ESTILOS PARA PREÇOS */
.price {
  margin: 0.8em 0;
  font-size: 1.1em;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
  font-size: 0.9em;
  display: inline-block;
}

.new-price {
  font-weight: bold;
  color: #e53935; /* Vermelho mais vivo */
  font-size: 1.1em;
  display: inline-block;
}

.product.promocao .price {
  margin: 1em 0;
}

/* Container do carrossel */
.carousel-wrapper {
  position: relative;
  width: 90%;
  margin: 0 auto;
}

/* Trilha do carrossel */
.carousel-track {
  display: flex;
  gap: 1.5em;
  padding: 1em 0;

}

.carousel-track::-webkit-scrollbar {
  display: none; /* Esconde a barra de rolagem */
}

/* Estilo dos produtos em promoção */
.product.promocao {
  position: relative;
  min-width: 250px;
  flex: 0 0 auto;
  background-color: #b8c0ff47;
  border-radius: 1em;
  padding: 1em;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  scroll-snap-align: start;
}

.product.promocao:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Círculo de desconto pulsante */
.product.promocao::after {
  content: attr(data-desconto);
  position: absolute;
  top: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  background: #ff6363;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
  animation: pulse 1.5s infinite;
  z-index: 1;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Botões de navegação */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  color: #9abadc;
  border: none;
  width: 1%;
  height: 2%;
  border-radius: 50%;
  font-size: 0.4em;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn:hover {
  background-color: #93beed;
  color: white;
}

/* CARROSSEL MOBILE - VERSÃO OTIMIZADA */
@media (max-width: 768px) {
  .carousel-wrapper {
    width:100%;
    overflow: visible;
    position: relative;
    padding: 0 1.5em;
  }

  .carousel-track {
    display: flex;
    gap: 0.5em; /* Espaço reduzido entre itens */
    padding: 1em 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Esconde scrollbar no Firefox */
  }

  .carousel-track::-webkit-scrollbar {
    display: none; /* Esconde scrollbar no Chrome/Safari */
  }

  .product.promocao {
    min-width: calc(40% - 0.4em); /* 2 itens por linha */
    scroll-snap-align: start;
    transform: scale(0.98);
    transition: transform 0.2s ease;
    flex: 1 0 auto;
  }

  .carousel-btn {
    width: 1%;
    height: 1%;
    font-size: 0.6em;
  }

.carousel-btn.prev {
  left: 1em;
}

.carousel-btn.next {
  right: 1em;
}

}


/* ============================ */
/*         POPUP + MSG         */
/* ============================ */
.popup-container, .chat-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

#popup-btn, .chat-box button {
  font-size: 20px;
  cursor: pointer;
  background-color: #ffc7d1;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s;
}

.popup-content, .content-block {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 280px;
  background-color: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #ccc;
  z-index: 998;
}

.message-content {
  padding: 20px;
}

.greeting {
  font-size: 18px;
  font-weight: bold;
  color: #567dff;
  margin-bottom: 10px;
}

/*NOVIDADES*/

#novidade-exibicao h2 {
  text-align: center;
  font-size: 2rem;
  margin: 2em 0 1em 0;
  color: #B8C0FF;
}

#novidade-exibicao h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background: #B8C0FF;
  margin: 0.1em auto 0 auto;
  border-radius: 2px;
}

#novidade-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

@media (max-width: 768px) {
  #novidade-container {
      width: 100%;
      font-size: 0.5em;
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    }

    #novidade-exibicao img {
    width: 100%;
    height: 18em;
    object-fit: cover;
    border-radius: 8px;
  }
}

/*Parte de facilidades*/
.ajuda-section {
  padding: 2em;
  margin: 2em auto;
  max-width: 100%;
  text-align: center;
  background-color: #BBD0FF;
}

.ajuda-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1em;
  
}

.ajuda-card {
  background-color: #ffffff;
  border: 1px solid #cbe1f5;
  border-radius: 10px;
  padding: 1em;
  width: 220px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ajuda-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ajuda-card img {
  width: 40px;
  margin-bottom: 0.5em;
}

.ajuda-card p {
  font-weight: bold;
  color: #002244;
}

.ajuda {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.ajuda-content {
  padding: 2em;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  background-color: rgba(255, 255, 255, 0.7); /* Fundo mais escuro */
  backdrop-filter: blur(4px); /* Efeito de desfoque no conteúdo de fundo */
}

.ajuda-content h3 {
  color: #045293;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.hidden {
  display: none;
}