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);
  }
}

body.cart-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.flex-site {
  display: block;
}

main {
  width: 100%;
  overflow-x: clip;
  position: relative;
  z-index: 1;
}

#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%;
  }
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: var(--delay, 0s);
}

/* Hero home: visível no HTML para LCP (antes do main.js defer) */
.hero-steam--home .reveal-fade-up,
.hero-steam--home .hero-cards-wrap {
  opacity: 1;
  transform: none;
}

.reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-fade-up,
  .reveal-fade-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.scroll-reveal-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 380ms ease,
    transform 430ms cubic-bezier(0.22, 0.75, 0.25, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal-enabled .scroll-reveal-card:not(.is-revealed) {
  opacity: 0;
  transform: translateY(28px);
}

.scroll-reveal-enabled .scroll-reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .scroll-reveal-card {
    transition:
      opacity 300ms ease,
      transform 320ms cubic-bezier(0.22, 0.75, 0.25, 1);
  }

  .scroll-reveal-enabled .scroll-reveal-card:not(.is-revealed) {
    transform: translateY(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .package-page-entry,
  .scroll-reveal-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.centralcart-content iframe {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

/* -- Fundo liso (CSS puro) -- */
html {
  background-color: #09090b;
  margin: 0;
  padding: 0 !important;
  height: auto;
  min-height: 0 !important;
}

body {
  position: relative;
  margin: 0;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  background-color: #09090b;
}

body > footer.footer-dock ~ div:not(#fb-lightbox):not(#kaysto-review-overlay):not(#kaysto-overlay-root):not(.fb-confetti-layer):not(#mobile-bottom-nav),
body > footer.footer-dock ~ iframe,
body > footer.footer-dock ~ link,
body > footer.footer-dock ~ style,
body > .site-shell ~ div:not(#fb-lightbox):not(#kaysto-review-overlay):not(#kaysto-overlay-root):not(.fb-confetti-layer):not(#mobile-bottom-nav),
body > .site-shell ~ iframe,
body > .site-shell ~ link,
body > .site-shell ~ style {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  pointer-events: none !important;
}

body.min-h-screen,
body.flex.flex-col {
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
}

.site-shell {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-page-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-glow-viewport {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
  background-color: transparent;
  background-image:
    radial-gradient(
      ellipse 88% 72% at 100% 0%,
      rgba(142, 197, 255, 0.13) 0%,
      rgba(142, 197, 255, 0.062) 26%,
      rgba(142, 197, 255, 0.024) 50%,
      rgba(142, 197, 255, 0.008) 66%,
      transparent 80%
    ),
    radial-gradient(
      ellipse 52% 46% at 100% 0%,
      rgba(142, 197, 255, 0.045) 0%,
      transparent 70%
    );
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.site-grid-bg,
.grid-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #09090b;
}

@media (max-width: 639px) {
  .site-glow-viewport {
    background-image:
      radial-gradient(
        ellipse 96% 82% at 100% 0%,
        rgba(142, 197, 255, 0.11) 0%,
        rgba(142, 197, 255, 0.052) 28%,
        rgba(142, 197, 255, 0.018) 52%,
        transparent 78%
      ),
      radial-gradient(
        ellipse 58% 50% at 100% 0%,
        rgba(142, 197, 255, 0.038) 0%,
        transparent 72%
      );
  }

  .site-grid-bg,
  .grid-background {
    background-color: #09090b;
  }
}

.custom-bg-mask {
  mask-image: linear-gradient(#09090b, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

@keyframes loading {
  0% {
      left: -50%;
  }

  to {
      left: 100%;
  }
}

/* Top donators shine */
.top-donators-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
  transition: left 0.5s ease-in;
}

.top-donators-pill:hover::after {
  left: 120%;
  transition: left 0.6s ease-out;
}

/* -- Site header: fixo no topo em todas as paginas -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-top-announce {
  background: hsl(var(--primary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.site-header-search-shell {
  position: relative;
  --site-search-accent: #8ec5ff;
  --site-search-bg: #09090b;
  --site-search-bg-hover: #09090b;
}

@media (max-width: 1023px) {
  .site-header-mobile-search {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    pointer-events: none;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition:
      grid-template-rows 0.44s cubic-bezier(0.16, 1, 0.3, 1),
      margin-top 0.44s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.44s;
  }

  .site-header-mobile-search.is-open:not(.is-closing) {
    grid-template-rows: 1fr;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
    z-index: 30;
    margin-top: 0.625rem;
    transition:
      grid-template-rows 0.44s cubic-bezier(0.16, 1, 0.3, 1),
      margin-top 0.44s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0s;
  }

  .site-header-mobile-search.is-closing {
    grid-template-rows: 0fr;
    visibility: visible;
    pointer-events: none;
    overflow: hidden;
    z-index: 30;
    margin-top: 0;
    transition:
      grid-template-rows 0.44s cubic-bezier(0.16, 1, 0.3, 1),
      margin-top 0.44s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.44s;
  }

  .site-header-mobile-search-inner {
    min-height: 0;
    position: relative;
    padding-bottom: 0.125rem;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-header-mobile-search.is-open:not(.is-closing) .site-header-mobile-search-inner {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .site-header-mobile-search {
    transition: none;
  }

  .site-header-mobile-search-inner {
    transition: none;
  }
}

/* Home: navbar não desliza no scroll. */
.site-header-scroll-track {
  position: relative;
}

body[data-home-navbar-scroll] .site-header-scroll-track {
  transform: none !important;
  pointer-events: auto !important;
}

.site-header-search-icon-wrap {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.site-header-search-field {
  position: relative;
  display: block;
  width: 11.25rem;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header-search-field--mobile {
  width: 100%;
  transition: none;
}

@media (min-width: 1024px) {
  .site-header-search-field:not(.site-header-search-field--mobile) {
    width: 13.75rem;
  }
}

.site-header-search-shell:focus-within .site-header-search-field:not(.site-header-search-field--mobile) {
  width: 16.25rem;
}

.site-header-search-shell:focus-within .site-header-search-results {
  max-width: 16.25rem;
}

.site-header-search-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 9999px;
  background: var(--site-search-bg, #000000);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transition: box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header-search-field:hover .site-header-search-bg {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.site-header-search-field:focus-within .site-header-search-bg {
  box-shadow:
    inset 0 0 0 1.5px var(--site-search-accent, #8ec5ff),
    0 0 0 3px rgba(142, 197, 255, 0.14);
}

.site-header-search-icon,
.site-header-search-icon-wrap svg {
  display: block;
  width: 1.15rem !important;
  height: 1.15rem !important;
  color: rgba(142, 197, 255, 0.55);
}

.site-header-search-input,
.site-header-search-shell > input[type='search'] {
  position: relative;
  z-index: 2;
  width: 100%;
}

.site-header-search-input {
  display: block;
  height: 2.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25;
  color: #f4f4f5;
  background: transparent;
  border: none;
  box-shadow: none;
  caret-color: #f4f4f5;
}

.site-header-search-input:placeholder-shown,
.site-header-mobile-search:not(.has-search-value) .site-header-search-input {
  caret-color: transparent;
}

.site-header-search-input::placeholder {
  color: transparent;
}

.site-header-search-fake-ph {
  position: absolute;
  left: 2.5rem;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  pointer-events: none;
  max-width: calc(100% - 3.25rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25;
  color: rgba(212, 212, 216, 0.82);
}

.site-header-search-fake-ph--desktop {
  left: 2.25rem;
  max-width: calc(100% - 2.75rem);
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .site-header-search-fake-ph--desktop {
    font-size: 0.875rem;
  }
}

.site-header-search-caret {
  display: inline-block;
  margin-left: 1px;
  color: #8ec5ff;
  font-weight: 300;
  animation: siteHeaderSearchCaret 0.95s steps(1, end) infinite;
}

@keyframes siteHeaderSearchCaret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.site-header-mobile-search:has(.site-header-search-input:not(:placeholder-shown)) .site-header-search-fake-ph,
.site-header-search-shell:has(input:not(:placeholder-shown)) .site-header-search-fake-ph,
.site-header-mobile-search.has-search-value .site-header-search-fake-ph,
.site-header-search-shell.has-search-value .site-header-search-fake-ph {
  opacity: 0;
  visibility: hidden;
}

.site-header-search-shell input:placeholder-shown,
.site-header-search-shell:not(.has-search-value) input[type='search'] {
  caret-color: transparent;
}

.site-header-search-shell input:not(:placeholder-shown),
.site-header-search-shell.has-search-value input[type='search'] {
  caret-color: #f4f4f5;
}

@media (prefers-reduced-motion: reduce) {
  .site-header-search-caret {
    animation: none;
    opacity: 1;
  }

  .site-header-search-field:not(.site-header-search-field--mobile) {
    transition: none;
  }
}

.site-header-search-input:focus,
.site-header-search-input:focus-visible {
  outline: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  background: transparent;
  box-shadow: none;
}

.hero-home-mobile-search:focus-within .site-header-search-icon,
.site-header-search-shell:focus-within .site-header-search-icon,
.site-header-mobile-search:focus-within .site-header-search-icon,
.hero-home-mobile-search:focus-within .site-header-search-icon-wrap svg,
.site-header-search-shell:focus-within .site-header-search-icon-wrap svg,
.site-header-mobile-search:focus-within .site-header-search-icon-wrap svg {
  color: #8ec5ff;
}

.site-header-search-results {
  z-index: 40;
  background: rgb(var(--background));
  border: 1px solid rgba(142, 197, 255, 0.14);
  border-radius: 0.875rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.site-header-donators {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(142, 197, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius, 0.6rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgb(var(--foreground));
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.site-header-icon-btn:hover {
  background: rgba(142, 197, 255, 0.1);
  border-color: rgba(142, 197, 255, 0.25);
}

.site-header-icon-btn:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .site-header-search-input,
  .site-header-icon-btn {
    transition-duration: 0.01ms;
  }

  .site-header-icon-btn:active {
    transform: none;
  }
}

.detail-dash {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 50%, transparent 0%);
  background-position: center bottom;
  background-size: 16px;
  background-repeat: repeat-x;
  width: 100%;
  height: 1px;
}

/* Sidebar categories */
.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;
}

.cat-dropdown {
  transition:
    opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.2s ease,
    border-color 0.2s ease;
  transform-origin: top;
}

.cat-dropdown:not(.hidden) {
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

#mobile-categories-dropdown:not(.hidden) {
  animation: slideInMobile 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInMobile {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-subcategories:not(.hidden) {
  animation: slideInSub 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInSub {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
