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);
}

#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%;
  }
}

/* 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 */


/* Galeria de miniaturas mais compacta */
#image-gallery {
  gap: 0.25rem !important;
  padding: 0.5rem !important;
  display: flex !important;
}

#image-gallery .gallery-thumb {
  flex: 1 1 auto !important;
  min-width: 100px !important;
  max-width: 150px !important;
  height: 75px !important;
}

/* ========================================
   GALERIA DE PRODUTOS
   ======================================== */

.gallery-thumb {
  transition: all 0.3s ease;
  position: relative;
}

.gallery-thumb:hover {
  transform: scale(1.05);
  border-color: var(--primary) !important;
}

.gallery-thumb.active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary-foreground);
}

#package-gallery-viewer {
  position: relative;
}

#package-gallery-viewer button {
  transition: all 0.2s ease;
}

#package-gallery-viewer:hover button {
  opacity: 1 !important;
}

#package-video-container iframe {
  border: none;
  display: block;
}

/* Scrollbar customizada para galeria */
#image-gallery::-webkit-scrollbar {
  height: 6px;
}

#image-gallery::-webkit-scrollbar-track {
  background: transparent;
}

#image-gallery::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

#image-gallery::-webkit-scrollbar-thumb:hover {
  background: var(--primary-foreground);
}

/* Requisitos do sistema - Estilo colapsável */
#system-requirements-section {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(6, 182, 212, 0.3) !important; /* Cyan border */
}

#requirements-toggle {
  cursor: pointer;
  user-select: none;
  padding: 1rem 1.5rem !important; /* Padding menor */
}

#requirements-toggle:hover {
  background: rgba(6, 182, 212, 0.05); /* Cyan hover */
}

#requirements-chevron {
  transition: transform 0.3s ease;
}

#requirements-toggle[aria-expanded="true"] #requirements-chevron {
  transform: rotate(180deg);
}

/* Animação ao expandir */
#requirements-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

#requirements-content-wrapper:not(.hidden) {
  max-height: 1000px;
  opacity: 1;
}

#system-requirements-content {
  padding: 1rem 1.5rem 1.5rem !important; /* Padding menor */
}

#system-requirements-content i {
  flex-shrink: 0;
  color: var(--primary);
}

#system-requirements-content p {
  line-height: 1.5; /* Mais compacto */
  font-size: 0.875rem; /* Texto menor */
}

#system-requirements-content h5 {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem; /* Título menor */
  margin-bottom: 0.75rem !important; /* Menos espaço */
}

/* Itens dos requisitos mais compactos */
#system-requirements-content .flex.items-start {
  padding: 0.5rem 0 !important; /* Menos padding vertical */
}

/* Ícone do header menor */
#requirements-toggle .w-10.h-10 {
  width: 2rem !important;
  height: 2rem !important;
}

#requirements-toggle h4 {
  font-size: 1rem !important; /* Título menor */
}

/* Animação suave para transições */
#package-image,
#package-video-container {
  transition: opacity 0.3s ease;
}

/* Barra de progresso CYAN */
#gallery-progress-bar {
  background: #06b6d4 !important; /* Cyan */
  transition: width 0.1s linear;
}

/* Ícones cyan nos requisitos */
#system-requirements-section .text-cyan-500,
#requirements-toggle .text-cyan-500 {
  color: #06b6d4 !important; /* Cyan */
}

#system-requirements-section .bg-cyan-500\/20 {
  background-color: rgba(6, 182, 212, 0.2) !important;
}

#system-requirements-content i {
  color: #06b6d4 !important; /* Cyan para todos os ícones dentro dos requisitos */
}

/* Cards arredondados */
.rounded-2xl {
  border-radius: 1rem !important;
}

/* Background fixo */
#package-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

#package-background > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.50) 0%,
    rgba(0, 0, 0, 0.60) 50%,
    rgba(0, 0, 0, 0.70) 100%
  );
}

.package-wrapper {
  position: relative;
  z-index: 1;
}

/* Responsivo */
@media (max-width: 768px) {
  .gallery-thumb {
    min-width: 70px !important;
    height: 50px !important;
  }
  
  #gallery-prev,
  #gallery-next {
    opacity: 1 !important;
  }
  
  #system-requirements-content {
    grid-template-columns: 1fr;
  }
}

/* Preço do produto - Fonte mais grossa */
#package-price {
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}
