input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

@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);
  }
}


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

body.cart-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#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%;
  }
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Página de categoria: nunca esconder produtos (reveal dependia de JS) */
.page-category .category-product-slot,
.page-category .category-sub-heading {
  opacity: 1;
  transform: none;
}

.centralcart-content iframe {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

/* Avaliações: marquee — keyframes espelham o bloco <style> em feedbacks.html */
.feedback-marquee-track {
  animation: feedback-marquee-infinite 38s linear infinite;
  will-change: transform;
}

.feedback-marquee-wrap:hover .feedback-marquee-track {
  animation-play-state: paused;
}

@keyframes feedback-marquee-infinite {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-marquee-track {
    animation-duration: 65s;
  }
}

/* Home hero — mesma linguagem do body: faixa diagonal + halo suave */
.home-hero-gradient {
  background:
    linear-gradient(
      152deg,
      rgba(95, 0, 255, 0.28) 0%,
      rgba(0, 0, 0, 0.15) 48%,
      rgba(251, 253, 0, 0.1) 100%
    ),
    radial-gradient(ellipse 140% 90% at 50% 20%, rgba(95, 0, 255, 0.12) 0%, transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgb(var(--background)) 100%);
}

.home-stats-card {
  background: linear-gradient(180deg, rgba(25, 5, 45, 0.75) 0%, rgba(0, 0, 0, 0.88) 100%);
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(95, 0, 255, 0.28) inset,
    0 0 50px rgba(95, 0, 255, 0.14),
    0 0 80px rgba(251, 253, 0, 0.06);
}

.home-stats-card--interactive {
  position: relative;
  isolation: isolate;
  pointer-events: auto;
}

button.home-stats-review-btn {
  pointer-events: auto !important;
  -webkit-tap-highlight-color: rgba(95, 0, 255, 0.25);
}

/* FAQ — mesma linguagem do body: diagonal roxo → amarelo + halos suaves */
.faq-shell-bg {
  background-color: #020103;
  background-image:
    linear-gradient(
      152deg,
      rgba(95, 0, 255, 0.22) 0%,
      rgba(60, 0, 120, 0.14) 20%,
      rgba(18, 8, 40, 0.38) 40%,
      rgba(0, 0, 0, 0.28) 54%,
      rgba(35, 32, 0, 0.14) 78%,
      rgba(251, 253, 0, 0.13) 100%
    ),
    radial-gradient(ellipse 130% 90% at 50% -12%, rgba(95, 0, 255, 0.22) 0%, transparent 56%),
    radial-gradient(ellipse 110% 85% at 92% 88%, rgba(251, 253, 0, 0.11) 0%, transparent 52%),
    radial-gradient(ellipse 200% 95% at 50% 118%, rgba(251, 253, 0, 0.09) 0%, transparent 62%);
  box-shadow:
    0 0 50px rgba(95, 0, 255, 0.12),
    0 0 72px rgba(251, 253, 0, 0.05),
    inset 0 0 0 1px rgba(95, 0, 255, 0.12);
}

/* Rodapé — continuação do gradiente do body (sem faixa preta sólida) */
.footer-site-gradient {
  background-color: #020103;
  background-image:
    linear-gradient(
      152deg,
      rgba(95, 0, 255, 0.32) 0%,
      rgba(60, 0, 120, 0.18) 22%,
      rgba(18, 8, 40, 0.32) 42%,
      rgba(0, 0, 0, 0.22) 55%,
      rgba(35, 32, 0, 0.18) 78%,
      rgba(251, 253, 0, 0.2) 100%
    ),
    radial-gradient(
      ellipse 160% 100% at 50% 28%,
      rgba(95, 0, 255, 0.12) 0%,
      rgba(40, 15, 60, 0.08) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 200% 90% at 50% 115%,
      rgba(251, 253, 0, 0.14) 0%,
      rgba(251, 253, 0, 0.05) 45%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 180% 55% at 50% -8%,
      rgba(95, 0, 255, 0.14) 0%,
      transparent 58%
    );
}

/* Decoração atrás do rodapé — transição mais suave com o conteúdo */
.footer-bg {
  height: 380px;
  background: linear-gradient(
    0deg,
    rgba(251, 253, 0, 0.1) 0%,
    rgba(95, 0, 255, 0.14) 38%,
    rgba(40, 0, 75, 0.18) 72%,
    transparent 100%
  );
  filter: blur(3px);
  opacity: 0.95;
}

.custom-bg-mask {
	mask-image: linear-gradient(hsl(var(--background)), rgba(0, 0, 0, 0.3), rgb(0, 0, 0, 0));
}

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

  to {
      left: 100%;
  }
}

.detail-dash {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 50%, hsl(var(--foreground) / 0) 0%);
  background-position: center bottom;
  background-size: 16px;
  background-repeat: repeat-x;
  width: 100%;
  height: 1px;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--primary));
  border-radius: 0.25rem;
}

.animate-float {
  animation: floatRandom 15s ease-in-out infinite;
}

@keyframes floatRandom {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-6px, -10px) rotate(-1deg);
  }
  40% {
    transform: translate(4px, -5px) rotate(1deg);
  }
  60% {
    transform: translate(-4px, -12px) rotate(-1.5deg);
  }
  80% {
    transform: translate(3px, -7px) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.gradient-text {
  background: linear-gradient(
    45deg,
    hsl(var(--primary)),
    hsl(var(--primary) / 0.8),
    hsl(var(--primary) / 0.6),
    hsl(var(--primary) / 0.9),
    hsl(var(--primary)),
    hsl(var(--primary) / 0.7),
    hsl(var(--primary) / 0.5),
    hsl(var(--primary) / 0.8)
  );
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
}


.glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass::after {
  content: "";
  transition: all 850ms cubic-bezier(.19,1,.22,1);
  background-color: white;
  opacity: .2;
  width: 50px;
  height: 200px;
  position: absolute;
  left: -85px;
  top: -80px;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(2px);
}

.glass:hover::after {
  left: 130%;
}

.glass-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass-secondary::after {
  content: "";
  transition: all 850ms cubic-bezier(.19,1,.22,1);
  background: linear-gradient(to right, transparent, hsl(var(--secondary) / 0.15), transparent);
  width: 100%;
  height: 200%;
  position: absolute;
  left: -150%;
  top: -50%;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(10px);
}

.glass-secondary:hover::after {
  left: 150%;
}

.faq-item .faq-content {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:not([open]) .faq-content {
  height: 0;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

/*
  Grid vazio tinha altura 0 → IntersectionObserver não disparava (similares / listas JS).
*/
.package-list {
  min-height: 12rem;
}

/* Entrada suave da página (menos “seco” ao trocar de rota) */
@keyframes page-main-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.page-main {
  animation: page-main-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .page-main {
    animation: none;
  }
}

/* View Transitions API (Chrome / Edge): troca de página mais fluida */
@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.35s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}