@keyframes fade-in {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

@keyframes fade-out {
    from {
        background-color: rgba(0, 0, 0, 0.8);
    }
    to {
        background-color: rgba(0, 0, 0, 0);
    }
}

@keyframes slide-in {
    from {
        transform: translateX(500px);
    }
    to {
        transform: translateX(0px);
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0px);
    }
    to {
        transform: translateX(500px);
    }
}

@layer base {
}

#cart-drawer[data-state="open"] {
    animation: fade-in 0.4s forwards;
}

#cart-drawer[data-state="closed"] {
    animation: fade-out 0.4s forwards;
}

#cart-drawer[data-state="open"] > div {
    animation: slide-in 0.4s forwards;
}

#cart-drawer[data-state="closed"] > div {
    animation: slide-out 0.4s forwards;
}

.dialog[data-state="open"] {
    animation: fade-in 0.4s forwards;
}

.dialog[data-state="closed"] {
    animation: fade-out 0.4s forwards;
}

.dialog[data-state="open"] > div {
    animation: dialog-in 0.2s forwards;
}

.dialog[data-state="closed"] > div {
    animation: dialog-out 0.2s forwards;
}

@keyframes dialog-in {
    from {
        opacity: 0;
        scale: 50%;
    }
    to {
        opacity: 1;
        scale: 100%;
    }
}

@keyframes dialog-out {
    from {
        opacity: 1;
        scale: 100%;
    }
    to {
        opacity: 0;
        scale: 50%;
    }
}

#category-section,
#category #products-list {
    scroll-margin-top: 100px;
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

#category-section.visible,
#category #products-list.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes loading {
    0% {
        left: -50%;
    }

    to {
        left: 100%;
    }
}





#categoria-stories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 8px;
    background: transparent;
    z-index: 1;
    position: relative;
}

.categoria-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px;
    color: #ffffff;
    text-decoration: none;
    max-width: 72px;
    transition: transform 0.2s ease-in-out;
}

.story-border {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(45deg, #4bff7a, #4bff7a);
    animation: pulseStory 1.5s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categoria-item img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.05);
}

.categoria-item span {
    margin-top: 6px;
}

.categoria-item:hover {
    transform: scale(1.05);
}

@keyframes pulseStory {
    0% {
        box-shadow: 0 0 0 0 rgba(17, 255, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 247, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 247, 255, 0);
    }
}

@media (max-width: 600px) {
    #categoria-stories {
        justify-content: flex-start;
        padding: 12px 12px;
        gap: 2px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .categoria-item {
        font-size: 8px;
        max-width: 64px;
        flex-shrink: 0;
        word-break: break-word;
        white-space: normal;
    }

    .categoria-item span {
        margin-top: 4px;
        line-height: 1.1;
    }

    .story-border {
        width: 54px;
        height: 54px;
    }

    .categoria-item img {
        width: 48px;
        height: 48px;
    }
}





#popup-notify {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #4bff7a, #000000);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    border: 2px solid #4bff7a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    max-width: 320px;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

#popup-notify.show {
    opacity: 1;
}

#popup-notify i {
    font-size: 20px;
    flex-shrink: 0;
}





#alert-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#alert-popup.fade-out {
    opacity: 0;
}

.popup-content {
    background-color: #0a0a0a;
    border: 2px solid #4bff7a;
    color: #ffffff;
    padding: 2rem;
    max-width: 50%;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 0 20px #ffd15240;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-icon {
    font-size: 2.5rem;
    color: #4bff7a;
    display: block;
    margin-bottom: 1rem;
}

#close-popup {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #4bff7a;
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

#close-popup:hover {
    background-color: #21c985;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}



/* STYLES TAG HOT PRODUTOS  */

/* Estilos personalizados para o botão shine-effect */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  50% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

/* Pulsar suave no hover */
.shine-effect:hover {
  animation: pulseScale 1.5s ease-in-out infinite;
}

@keyframes pulseScale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Estilos personalizados para a tag hot-icon */
.hot-icon {
  position: relative;
  width: 40px; /* Reduzido de 100px */
  height: 56px; /* Reduzido de 140px */
  transform: scale(0.9); /* Reduz um pouco o tamanho geral para melhor ajuste */
  transform-origin: top right;
}

.hot-icon .ball {
  position: absolute;
  bottom: 0;
  width: 32px; /* Reduzido de 80px */
  height: 32px; /* Reduzido de 80px */
  background: radial-gradient(circle at center, #39ff14, #0b0b0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: sans-serif;
  color: black;
  font-size: 8px; /* Reduzido de 18px, ajustado para legibilidade */
  text-shadow: 0 0 2px #39ff14, 0 0 4px #39ff14; /* Reduzido */
  box-shadow: 0 0 10px #39ff14; /* Reduzido */
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
}

.hot-icon .flame-layer {
  position: absolute;
  bottom: 12px; /* Reduzido de 30px */
  width: 100%;
  height: 100px; /* Mantém a altura original para o range da animação, mas as chamas serão menores */
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hot-icon .flame {
  position: absolute;
  bottom: 0;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.8), rgba(0, 255, 100, 0.2), transparent);
  filter: blur(1.2px); /* Reduzido de 3px */
  border-radius: 40% 40% 60% 60%;
  transform-origin: bottom center;
  opacity: 0.6;
}

.hot-icon .flame1 {
  width: 8px; /* Reduzido de 20px */
  height: 32px; /* Reduzido de 80px */
  left: 4px; /* Reduzido de 10px */
  animation: flameMove1 1s infinite ease-in-out;
}

.hot-icon .flame2 {
  width: 10px; /* Reduzido de 25px */
  height: 40px; /* Reduzido de 100px */
  left: 12px; /* Reduzido de 30px */
  animation: flameMove2 1.1s infinite ease-in-out;
}

.hot-icon .flame3 {
  width: 8.8px; /* Reduzido de 22px */
  height: 36px; /* Reduzido de 90px */
  right: 12px; /* Reduzido de 30px */
  animation: flameMove3 1.05s infinite ease-in-out;
}

.hot-icon .flame4 {
  width: 7.2px; /* Reduzido de 18px */
  height: 28px; /* Reduzido de 70px */
  right: 4px; /* Reduzido de 10px */
  animation: flameMove4 0.9s infinite ease-in-out;
}

@keyframes flameMove1 {
  0% {
    transform: translateY(0px) scaleY(1) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-4px) scaleY(1.2) rotate(2deg); /* Y escalado */
    opacity: 1;
  }
  100% {
    transform: translateY(0px) scaleY(1) rotate(-1deg);
    opacity: 0.7;
  }
}

@keyframes flameMove2 {
  0% {
    transform: translateY(0px) scaleY(1) rotate(1deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-6px) scaleY(1.3) rotate(-1deg); /* Y escalado */
    opacity: 1;
  }
  100% {
    transform: translateY(0px) scaleY(1) rotate(2deg);
    opacity: 0.6;
  }
}

@keyframes flameMove3 {
  0% {
    transform: translateY(0px) scaleY(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-5px) scaleY(1.25) rotate(1deg); /* Y escalado */
    opacity: 1;
  }
  100% {
    transform: translateY(0px) scaleY(1) rotate(-2deg);
    opacity: 0.5;
  }
}

@keyframes flameMove4 {
  0% {
    transform: translateY(0px) scaleY(1) rotate(-1deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-3px) scaleY(1.15) rotate(1deg); /* Y escalado */
    opacity: 0.9;
  }
  100% {
    transform: translateY(0px) scaleY(1) rotate(-1deg);
    opacity: 0.6;
  }
}

 /* Ajustes para telas menores (mobile) */
  @media (max-width: 640px) { /* Corresponde ao breakpoint 'sm' do Tailwind */
    .hot-icon {
      width: 30px; /* Ainda menor para mobile */
      height: 42px; /* Ainda menor para mobile */
      transform: scale(0.8); /* Reduz um pouco mais o tamanho geral */
    }

    .hot-icon .ball {
      width: 24px; /* Reduzido */
      height: 24px; /* Reduzido */
      font-size: 6px; /* Reduzido para caber */
      text-shadow: 0 0 1.5px #39ff14, 0 0 3px #39ff14; /* Reduzido */
      box-shadow: 0 0 7.5px #39ff14; /* Reduzido */
    }

    .hot-icon .flame-layer {
      bottom: 9px; /* Ajustado */
    }

    .hot-icon .flame {
      filter: blur(0.9px); /* Reduzido */
    }

    .hot-icon .flame1 {
      width: 6px; /* Reduzido */
      height: 24px; /* Reduzido */
      left: 3px; /* Reduzido */
    }

    .hot-icon .flame2 {
      width: 7.5px; /* Reduzido */
      height: 30px; /* Reduzido */
      left: 9px; /* Reduzido */
    }

    .hot-icon .flame3 {
      width: 6.6px; /* Reduzido */
      height: 27px; /* Reduzido */
      right: 9px; /* Reduzido */
    }

    .hot-icon .flame4 {
      width: 5.4px; /* Reduzido */
      height: 21px; /* Reduzido */
      right: 3px; /* Reduzido */
    }

    /* Ajuste as animações para os novos tamanhos, se necessário */
    @keyframes flameMove1 {
      0% { transform: translateY(0px) scaleY(1) rotate(0deg); opacity: 0.7; }
      50% { transform: translateY(-3px) scaleY(1.1) rotate(2deg); opacity: 1; } /* Ajustado Y */
      100% { transform: translateY(0px) scaleY(1) rotate(-1deg); opacity: 0.7; }
    }
    @keyframes flameMove2 {
      0% { transform: translateY(0px) scaleY(1) rotate(1deg); opacity: 0.6; }
      50% { transform: translateY(-4.5px) scaleY(1.15) rotate(-1deg); opacity: 1; } /* Ajustado Y */
      100% { transform: translateY(0px) scaleY(1) rotate(2deg); opacity: 0.6; }
    }
    @keyframes flameMove3 {
      0% { transform: translateY(0px) scaleY(1) rotate(0deg); opacity: 0.5; }
      50% { transform: translateY(-3.75px) scaleY(1.125) rotate(1deg); opacity: 1; } /* Ajustado Y */
      100% { transform: translateY(0px) scaleY(1) rotate(-2deg); opacity: 0.5; }
    }
    @keyframes flameMove4 {
      0% { transform: translateY(0px) scaleY(1) rotate(-1deg); opacity: 0.6; }
      50% { transform: translateY(-2.4px) scaleY(1.075) rotate(1deg); opacity: 0.9; } /* Ajustado Y */
      100% { transform: translateY(0px) scaleY(1) rotate(-1deg); opacity: 0.6; }
    }

    /* NOVO: Ajuste de posicionamento para mobile */
/* NOVO: Ajuste de posicionamento para mobile */
.hot-tag-wrapper {
  top: -7px !important;   /* Força a mover ainda mais para cima */
  right: 0px !important; /* Força a manter na direita */
}
  }