.overflow-x-clip {
  overflow-x: clip;
}

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,
body.nav-menu-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

/* Nav menu overlay */
#nav-menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#nav-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
/* Nav menu drawer */
#nav-menu-drawer {
  transform: translateX(-100%);
  transition: transform 0.28s ease-out;
}
#nav-menu-drawer.is-open {
  transform: translateX(0);
}

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

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

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

/* ── CTGames: badge "OFERTA" piscante estilo arcade (sutil, sem exagero) ── */
@keyframes ctg-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.ctg-oferta-badge {
  animation: ctg-blink 1.8s steps(2, jump-none) infinite;
}

/* ── Botão com "aperto" de botão de arcade ── */
.btn-primary:active,
.btn-outline:active,
.btn-secondary:active {
  transform: translateY(1px);
}

/* ── Divisor tracejado verde estilo HUD ── */
.ctg-dash-divider {
  height: 1px;
  background-image: repeating-linear-gradient(to right, hsl(var(--primary)/.5) 0, hsl(var(--primary)/.5) 6px, transparent 6px, transparent 12px);
}

/* ── Foco com glow neon (acessibilidade + identidade) ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid hsl(var(--primary)/.7);
  outline-offset: 2px;
}

/* ── Cards de produto: glow verde discreto no hover (retrô arcade) ── */
.package:hover {
  box-shadow: 0 0 0 1px hsl(var(--primary)/.35), 0 10px 32px -8px hsl(var(--primary)/.28);
}

/* ── Read more / Ler mais: clamp de texto ── */
.ctg-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}
.ctg-clamp.ctg-clamp-open {
  -webkit-line-clamp: unset;
}

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

#hero-swiper {
  overflow: hidden;
}

#hero-swiper .swiper-pagination {
  position: relative;
  margin-top: 12px;
  bottom: auto;
}

#hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

#hero-swiper .swiper-pagination-bullet-active {
  background: hsl(var(--primary));
  width: 24px;
  border-radius: 4px;
}

#popular-products-swiper .swiper-wrapper,
#action-products-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

#popular-products-swiper .swiper-wrapper,
#action-products-swiper .swiper-wrapper {
  align-items: stretch;
}

#popular-products-swiper .swiper-slide,
#action-products-swiper .swiper-slide {
  width: 240px !important;
  flex-shrink: 0;
  height: auto !important;
}

#popular-products-swiper .swiper-slide > a,
#action-products-swiper .swiper-slide > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#popular-products-swiper .swiper-slide > a > div:first-child img,
#action-products-swiper .swiper-slide > a > div:first-child img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

#feedbacks-swiper .swiper-slide {
  height: auto;
}
#feedbacks-swiper .feedback-card {
  min-height: 240px;
}

.fb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.fb-dot-active {
  background: hsl(var(--primary));
  width: 20px;
  border-radius: 3px;
}

.stats-hub {
  animation: statsHubFadeIn 0.5s ease-out;
}

@keyframes statsHubFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .stats-hub .grid.divide-x {
    border-style: none;
  }
  .stats-hub .grid.divide-x > .stat-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  .stats-hub .grid.divide-x > .stat-card:nth-child(1),
  .stats-hub .grid.divide-x > .stat-card:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* --- Purchase notification toast --- */
@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(-110%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-slide-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-110%); }
}
#purchase-toast.toast-show { animation: toast-slide-in 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
#purchase-toast.toast-hide { animation: toast-slide-out 0.35s ease forwards; }
#purchase-toast { transform: translateX(-110%); opacity: 0; }

/* --- Scrollbar hide utility --- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* --- Hero bullet dots customizados --- */
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot-active {
  width: 24px;
  background: hsl(var(--primary));
}
.hero-dot:hover:not(.hero-dot-active) {
  background: rgba(255,255,255,0.5);
}

/* --- Package card image zoom on hover --- */
.package:hover .package-img {
  transform: scale(1.05);
}

/* --- Feedback cards min-height override --- */
#feedbacks-swiper .feedback-card {
  min-height: 200px;
}

/* --- FAQ open state highlight --- */
.faq-item.faq-open {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.02);
}

/* --- Trust bar card subtle glow on hover --- */
.trust-card:hover {
  box-shadow: 0 0 20px hsl(var(--primary) / 0.08);
}

/* --- How it works connector line --- */
@media (min-width: 640px) {
  .how-step-connector {
    display: block;
  }
}

/* --- Stat card count-up number --- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* --- Search result dropdown items --- */
#search-result-desktop a,
#search-result-mobile a,
#stats-search-result a {
  transition: background-color 0.15s ease;
}

/* --- Pay button pulse --- */
@keyframes pulse-primary {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--primary) / 0.4); }
  50% { box-shadow: 0 0 0 8px hsl(var(--primary) / 0); }
}
#pay-button {
  animation: pulse-primary 2.5s ease-in-out infinite;
}
#pay-button:hover, #pay-button:focus {
  animation: none;
}

/* --- Checkout progress step --- */
.checkout-step-active {
  color: hsl(var(--primary));
}

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

/* --- Feedbacks auto-scroll marquee --- */
@keyframes fb-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
#fb-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: fb-scroll 24s linear infinite;
}
#fb-track:hover {
  animation-play-state: paused;
}

/* --- Hero games grid scroll --- */
@keyframes hg-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes hg-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}
.hg-col { display: flex; flex-direction: column; gap: 0.5rem; }
.hg-col-up   { animation: hg-up   22s linear infinite; }
.hg-col-down { animation: hg-down 22s linear infinite; }

