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

.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.3s ease, transform 0.3s ease;
  transition-delay: var(--delay, 0s);
}

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

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

.grid-background {
  background-image: linear-gradient(to right,hsla(0,0%,100%,.03) 1px,transparent 1px),linear-gradient(to bottom,hsla(0,0%,100%,.03) 1px,transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 85% at 40% 30%, #000 0%, #fff0 110%)
}

@keyframes hero-fps-up {
  from { transform: translateY(0); }
  to { transform: translateY(-33.333%); }
}

@keyframes hero-fps-down {
  from { transform: translateY(-33.333%); }
  to { transform: translateY(0); }
}

@keyframes hero-mobile-left {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

@keyframes hero-mobile-right {
  from { transform: translateX(-33.333%); }
  to { transform: translateX(0); }
}

@keyframes hero-fps-shine {
  0% { transform: translateX(-140%); opacity: 0; }
  18% { opacity: .55; }
  55%, 100% { transform: translateX(140%); opacity: 0; }
}

@keyframes hero-button-shine {
  0% { transform: translateX(-140%); opacity: 0; }
  18% { opacity: .55; }
  55%, 100% { transform: translateX(140%); opacity: 0; }
}

.hero-fps-dots {
  background-image: radial-gradient(hsl(var(--primary) / .7) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .12;
}

.hero-fps-track, .hero-marquee-track, .hero-mobile-track {
  will-change: transform;
  animation: hero-fps-up 28s linear infinite;
}

.hero-fps-track-down, .hero-marquee-track-down { animation-name: hero-fps-down; animation-duration: 30s; }
.hero-fps-track-up, .hero-marquee-track-up { animation-duration: 26s; }
.hero-mobile-track-left { animation-name: hero-mobile-left; animation-duration: 20s; }
.hero-mobile-track-right { animation-name: hero-mobile-right; animation-duration: 22s; }
.hero-fps-track:hover, .hero-marquee-column:hover .hero-marquee-track, .hero-mobile-row:hover .hero-mobile-track { animation-play-state: paused; }

.hero-fps-primary {
  position: relative;
  display: inline-flex;
  height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  overflow: hidden;
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  background: hsl(var(--primary));
  padding: 0 1.5rem;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  box-shadow: 0 16px 40px hsl(var(--primary) / .28);
  transition: transform .3s, background-color .3s;
}

.hero-fps-primary:hover { transform: translateY(-.125rem); background-color: hsl(var(--primary) / .85); }
.hero-fps-shine { position: absolute; inset-block: 0; left: 0; width: 50%; transform: translateX(-140%); background: linear-gradient(90deg, transparent, hsl(var(--primary) / .38), transparent); filter: blur(8px); animation: hero-fps-shine 3s ease-in-out infinite; }

.pulse-dot { box-shadow: 0 0 8px rgba(74, 222, 128, .6); }

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

/* 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;
}

.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;
}

/* 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: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  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);
  }
}
/* Sidebar categories */

/* Phosphor Web (@phosphor-icons/web): glyph is on ::before; needs explicit font-size + flex alignment */
i.ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  font-style: normal;
  line-height: 1;
  box-sizing: border-box;
}

/* :where() keeps this at zero specificity so a text-* color utility on the
   same element (e.g. text-primary) always wins instead of losing to the
   tag+class selector above. */
:where(i.ph) {
  color: inherit;
}

.ph.size-3 {
  font-size: 0.75rem;
}
.ph.size-3\.5 {
  font-size: 0.875rem;
}
.ph.size-4 {
  font-size: 1rem;
}
.ph.size-5 {
  font-size: 1.25rem;
}
.ph.size-6 {
  font-size: 1.5rem;
}
.ph.size-7 {
  font-size: 1.75rem;
}
.ph.size-8 {
  font-size: 2rem;
}
.ph.size-10 {
  font-size: 2.5rem;
}
.ph.size-12 {
  font-size: 3rem;
}
.ph.text-3xl {
  font-size: 1.875rem;
  line-height: 1;
}

.ph.size-\[14px\] {
  font-size: 14px;
}

.ph.w-4.ph.h-4,
.ph.h-4.ph.w-4 {
  font-size: 1rem;
  line-height: 1;
}

.ph.w-5.ph.h-5,
.ph.h-5.ph.w-5 {
  font-size: 1.25rem;
  line-height: 1;
}

.ph.w-10.ph.h-10,
.ph.h-10.ph.w-10 {
  font-size: 2.5rem;
  line-height: 1;
}

/* --- Product page: image carousel & info cards --- */
.package-image-carousel {
  position: relative;
}

.package-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.package-image-nav.is-nav-visible {
  opacity: 0.92;
}

.package-image-carousel:hover .package-image-nav.is-nav-visible,
.package-image-carousel:focus-within .package-image-nav.is-nav-visible {
  opacity: 1;
}

.package-image-nav--prev {
  left: 0.75rem;
}

.package-image-nav--next {
  right: 0.75rem;
}

.package-image-nav:hover {
  background: rgba(0, 0, 0, 0.78);
}

.package-image-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  pointer-events: none;
}

.package-product-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.package-info-block {
  border: 1px solid rgb(var(--border));
  background: transparent;
  backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
}

.package-info-block + .package-info-block {
  margin-top: 0;
}

.package-info-block__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.package-info-block__body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-wrap;
}

#package-carousel-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 0.5rem;
}

#package-carousel-video.is-active {
  display: flex;
}

#package-carousel-video .package-video-embed {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 100%;
  flex-shrink: 0;
  border: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #000;
}

#package-carousel-video .package-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.package-info-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius, 0.6rem);
  padding: 1rem 1.25rem;
}

.package-info-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.package-info-card__body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-wrap;
}

.package-video-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.package-video-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.package-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.package-video-embed--free {
  max-width: 100%;
}

.package-video-embed--free iframe {
  position: relative;
  inset: auto;
  height: 56vw;
  max-height: 420px;
  min-height: 200px;
}

.package-video-embed--1-1 {
  max-width: 320px;
  aspect-ratio: 1 / 1;
}

.package-video-embed--4-3 {
  max-width: 480px;
  aspect-ratio: 4 / 3;
}

.package-video-embed--16-9 {
  max-width: 560px;
  aspect-ratio: 16 / 9;
}

.package-video-embed--21-9 {
  max-width: 640px;
  aspect-ratio: 21 / 9;
}

.package-info-block__body.nerix-content {
  white-space: normal;
}

.order-instructions-card {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius, 0.6rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.order-instructions-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.order-instructions-card__body {
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Skeleton de carregamento — mesmo shimmer visual usado no painel admin
   (classe .nerix-skeleton), reaproduzido aqui pra ficar consistente entre
   painel e loja. */
@keyframes nerix-skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.nerix-skeleton {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 75%
  );
  background-size: 200% 100%;
  animation: nerix-skeleton-shimmer 1.6s ease-in-out infinite;
}

/* Coração de favoritos — estado preenchido em vermelho (universal pra
   "favoritado", independente da cor primária do tema da loja) + uma pulsada
   sutil no toque pra dar feedback de que registrou. */
.wishlist-heart-btn i {
  transition: transform 0.18s ease;
}
.wishlist-heart-btn.is-favorited {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}
.wishlist-heart-btn.is-favorited:hover {
  color: #f87171;
}
.wishlist-heart-btn:active i {
  transform: scale(0.8);
}
@keyframes wishlist-heart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.wishlist-heart-btn.is-favorited i {
  animation: wishlist-heart-pop 0.28s ease;
}
.wishlist-heart-btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Acordeão de Perguntas Frequentes (FAQ) do produto. */
.package-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.package-faq-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  padding: 0;
  overflow: hidden;
}

.package-faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  color: rgba(255, 255, 255, 0.92);
}

.package-faq-item__question::-webkit-details-marker {
  display: none;
}

.package-faq-item__caret {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.45);
}

.package-faq-item[open] .package-faq-item__caret {
  transform: rotate(180deg);
}

.package-faq-item__answer {
  padding: 0 1rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}
