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;
}

/* Theme variables: primary/purple palette */
:root {
  --primary: 262 60% 58%;
  --primary-hex: #7c3aed;
  --cta-bg: #7c3aed;
  --cta-hover: #6d28d9;
}

@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);
}

#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;
}

.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%)
}

.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;
}

/* 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);
  }
}

/* Banner stats hover / click animations */
.banner-stat-card {
  transition: transform 200ms cubic-bezier(.2,.9,.2,1), box-shadow 200ms ease, border-color 160ms ease;
  cursor: pointer;
  will-change: transform, box-shadow;
}

.banner-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(124,58,237,0.12);
  border-color: hsl(var(--primary));
}

.banner-stat-card:active,
.banner-stat-card.clicked {
  transform: translateY(-2px) scale(0.995);
  animation: click-pulse 360ms ease;
}

@keyframes click-pulse {
  0% { box-shadow: 0 12px 34px rgba(124,58,237,0.12); }
  50% { box-shadow: 0 26px 64px rgba(124,58,237,0.18); }
  100% { box-shadow: 0 12px 34px rgba(124,58,237,0.12); }
}

/* CTA buttons */
.btn-cta {
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 120ms ease;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(124,58,237,0.12); }
.btn-cta:active, .btn-cta.clicked { transform: translateY(0) scale(0.99); }

/* Search result dropdown - garantir que apareça acima de tudo */
#search-result,
#search-result-package,
#search-result-mobile {
  position: absolute !important;
  z-index: 99999 !important;
  isolation: isolate;
}

/* Force package images in lists to portrait unless config overrides */
.package img, .package .overflow-hidden img { aspect-ratio: 3 / 4; }

/* Neon green buy button (pill) */
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #34ff55 0%, #00d949 100%);
  color: #07120a;
  font-weight: 800;
  padding: 0.6rem 1.6rem;
  border-radius: 9999px;
  box-shadow: 0 22px 60px rgba(0,217,73,0.22), 0 6px 18px rgba(0,0,0,0.45) inset;
  border: 1px solid rgba(0,0,0,0.12);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 120ms ease;
  -webkit-font-smoothing: antialiased;
}

.btn-buy:hover {
  transform: translateY(-3px);
  filter: brightness(0.98) saturate(1.12);
  box-shadow: 0 28px 80px rgba(0,217,73,0.26), 0 6px 18px rgba(0,0,0,0.45) inset;
}

.btn-buy:active { transform: translateY(0) scale(0.995); }
.btn-buy[disabled] { opacity: 0.6; transform: none; pointer-events: none; }

/* Small dark cart button shown next to the buy pill */
.btn-cart {
  background: rgba(255,255,255,0.02);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 8px 18px rgba(0,0,0,0.6);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 120ms ease;
}

.btn-cart:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.6); }
.btn-cart:active { transform: translateY(0) scale(0.98); }

/* Variations list highlighted style */
.variation-item {
  background: transparent;
  border-color: rgba(255,255,255,0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 120ms ease, background-color 120ms ease;
}

.variation-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }

.variation-item[data-selected="true"] {
  border-color: #00d949;
  background: rgba(0,217,73,0.06);
  box-shadow: 0 8px 30px rgba(0,217,73,0.08) inset, 0 10px 30px rgba(0,217,73,0.06);
}

.variation-item img.size-10 { width: 40px; height: 40px; object-fit: cover; }

.variation-stock, .variation-discount { color: #00d949; }

.variation-price-badge {
  background: linear-gradient(180deg, #34ff55 0%, #00d949 100%);
  color: #07120a;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 6px 18px rgba(0,217,73,0.12);
}

/* Variation radio / indicator: force inner dot and outer border to match buy button green */
.variation-item .w-2.rounded-full {
  background: #00d949 !important;
}

.variation-item[data-selected="true"] .w-4.h-4 {
  border-color: #00d949 !important;
}
