/* Adicionando animação de fundo para a parte preta */
body {
  background: radial-gradient(circle, #252525 0%, #000000 100%);
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: blur(150px);
  pointer-events: none; /* garante que não interfira com cliques */
}

/* Otimização para Mobile */
@media (max-width: 768px) {
  body::before {
    animation: none;
    background-size: 200% 200%;
    filter: blur(30px);
    background-position: center;
    background: radial-gradient(circle, #252525 0%, #000000 100%); /* cor fixa parecida */
  }
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: #000;
}

/* Animação de movimento */
@keyframes lavaFlow {
  0% {
    background-position: 100% 50%;
  }
  25% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}


.header img {
  height: 80px;
  margin: 30px auto;
  display: block;
  filter: drop-shadow(0 0 40px #ffffff);
}
.header {
  background: linear-gradient(145deg, #5d00ff, #884dff, #5d00ff);
  padding: 20px;
  text-align: center;
  font-size: 2em;
  color: #a678ff;
  font-weight: bold;
  border: 0; /* Remove qualquer borda existente */
  position: relative; /* Necessário para o pseudo-elemento */
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 9px; /* Define a altura da borda */
  background: linear-gradient(145deg, #0f003a, #6200ff, #0f003a); /* Gradiente para o "border" */
   box-shadow: -1px 10px 13px rgba(0, 0, 0, 0.2); /* Sombra suave abaixo da borda */
}
    .main {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      padding: 30px;
    }

    .product:hover {
  box-shadow: 0 0 15px #8243ff42;
  transform: scale(1.02);
  transition: 0.3s ease;
}
    .product {
      background: linear-gradient(to bottom, #202020, #0f0f0f);
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 0 5px #2c2c2c;
      text-align: center;
    }
    .product img {
      width: 90%;
      height: 200px;
      object-fit: cover;
      transition: transform 0.3s ease;
      border-radius: 12px;
    }

    .product h2 {
      font-size: 1.2em;
      margin: 10px 0;
      color: #fff;
    }
    .description {
      font-size: 1em;
      color: #ccc;
      margin-bottom: 10px;
    }
    select {
      margin-bottom: 10px;
      padding: 5px;
      border-radius: 5px;
      background: #1b1b1b;
      color: #ffffff;
      border: none;
    }
    .btn-add {
  background: linear-gradient(145deg, #5500ff, #9456ff);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}
.btn-add:hover {
  filter: brightness(1.2);
}

.cart-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
#alerta-personalizado {
  display: none; /* Começa escondido */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #080311, #090313, #0e041f);
  color: #fff;
  font-weight: bolder;
  padding: 100px;
  border-radius: 15px;
  box-shadow: 0 0 20px #a678ff80;
  font-size: 1.2em;
  text-align: center;
  z-index: 2000;
  animation: fadeInAlert 1 ease;
  animation: fadeOutAlert 1 ease;
}

/* Animação suave */
@keyframes fadeInAlert {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 2;
    transform: translate(-50%, -50%);
  }
}
@keyframes fadeOutAlert {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 2;
    transform: translate(-50%, -50%);
  }
}
/* Ícone flutuante redondo */
.cart-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: #1a1a1a;
  color: white;
  font-size: 30px;
  border-radius: 50%;
  border: 2px solid #5500ff;
  box-shadow: 0 0 15px #6b21ff80;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease;
}
.cart-count {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff0033;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 7px;
  border-radius: 50%;
  box-shadow: 0 0 5px #000;
}


.cart-icon:hover {
  transform: scale(1.1);
}

/* Painel lateral do carrinho */
.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #1a1a1a;
  padding: 20px;
  box-shadow: -5px 0 15px #000000;
  z-index: 999;
  transition: right 0.4s ease;
  overflow-y: auto;
}

/* Painel visível */
.cart-panel.aberto {
  right: 0;
}
.cart-box {
  width: 320px;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px #a678ff80;
  transform: translateY(120%);
  transition: transform 0.4s ease;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.cart-box.ativo {
  transform: translateY(0%);
}

.toggle-cart-btn {
  position: absolute;
  top: -50px;
  right: 0;
  background: #5500ff;
  color: white;
  border: none;
  border-radius: 15px 15px 0 0;
  padding: 10px 16px;
  font-size: 1.4em;
  cursor: pointer;
  box-shadow: 0 0 10px #a678ff60;
}

.toggle-cart-btn:hover {
  background: #8a54e5;
}

@media (max-width: 768px) {
  .cart-container {
    right: 0;
    left: 0;
    bottom: 0;
  }

  .cart-box {
    width: 100%;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .cart-box.ativo {
    transform: translateY(0);
  }

  .toggle-cart-btn {
    top: -50px;
    right: 20px;
  }
}

    .cart-title {
      font-size: 1.4em;
      margin-bottom: 10px;
      color: hsl(0, 0%, 65%);
    }
    .cart-item {
      background: #222;
      padding: 10px;
      margin-bottom: 10px;
      border-radius: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .cart-item span {
      font-size: 0.95em;
    }
    .controls {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .btn-qty {
      width: 28px;
      height: 28px;
      border: none;
      border-radius: 50%;
      font-weight: bold;
      background-color: #5500ff;
      color: white;
      cursor: pointer;
      font-size: 1.1em;
      transition: 0.2s;
    }
    .btn-qty:hover {
      background-color: #360092;
    }
    .total {
      font-weight: bold;
      font-size: 1.2em;
      margin-top: 10px;
      text-align: right;
    }
    .btn-finalizar {
      margin-top: 15px;
      padding: 12px 24px;
      background: #25d366;
      color: #fff;
      border: none;
      border-radius: 30px;
      font-size: 16px;
      cursor: pointer;
      width: 100%;
    }

    #cart-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1f1f1f;
  border: 2px solid #a678ff;
  color: white;
  padding: 15px 20px;
  border-radius: 15px;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 0 15px #a678ff80;
}

#cart-popup .popup-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: column;
}

#cart-popup button {
  background: #a678ff;
  border: none;
  padding: 8px 16px;
  color: white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
}

#cart-popup button:hover {
  filter: brightness(1.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 200px;
}

.carousel-images {
display: flex;
transition: transform 0.5s ease;
width: 300%; /* ou calc(100% * número de imagens) se quiser automatizar depois */
}

.carousel-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #5500ff98;
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1.2em;
  border-radius: 5px;
  z-index: 1;
}

.carousel-btn.prev {
  left: 5px;
}

.carousel-btn.next {
  right: 5px;
}


/* Ícone do menu */
.menu-icon {
  font-size: 32px;
  cursor: pointer;
  padding: 15px;
  z-index: 1001;
  position: fixed;
  top: 20px;
  left: 20px;
}

.side-menu h5{
  text-align: center;
}
/* Menu lateral escondido */
.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(145deg, #120035, #240066, #5d00ff);
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  z-index: 1002;
}

/* Itens do menu */
.side-menu ul {
  list-style-type: none;
  padding: 0;
}

.side-menu li {
  padding: 16px;
  text-align: center;
}

.side-menu a {
  text-decoration: none;
  font-size: 24px;
  color: var(--primary-text);
  display: block;
  transition: 0.3s;
}

.side-menu a:hover {
  color: var(--accent-color);
}

/* Botão de fechar */
.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-text);
}

/* Fundo escurecido */
.overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--overlay-bg);
  z-index: 1000;
  transition: 0.3s;
}

.menu-content {
  padding: 20px;
  color: var(--primary-text);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
} 
.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons i {
  font-size: 40px;
  width: 30px;
  height: 30px;
  margin: 10px;
  filter: brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(500%) hue-rotate(var(--primary-hue)) brightness(90%);
  transition: transform 0.3s, filter 0.3s;
}

.social-icons i:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
  color:#5d00ff;
  transition: .5s;
}
/* Animações de fade */
.menu-content {
  opacity: 0;
  transition: opacity 0.5s ease;
  height: auto;
}

.menu-content.show {
  opacity: 1;
}

