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

/* === 1. Título Hunters (Grande e Dourado) === */
.text-gradient-gold {
    background: linear-gradient(110deg, #73581c 0%, #a68138 30%, #d9b36c 50%, #a68138 70%, #73581c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    display: inline-block;
}

/* === 2. Botões Dourados Específicos (Ver Planos, Compra, etc) === */
/* Aqui listamos apenas quem deve ser dourado 3D */
.btn-gold, 
.plan-buy-btn, 
.bg-gradient-gold {
    background: linear-gradient(110deg, #73581c 0%, #a68138 30%, #d9b36c 50%, #a68138 70%, #73581c 100%) !important;
    color: #000000 !important;
    
    /* Tamanho Compacto */
    padding: 8px 18px !important; 
    font-size: 13px !important;    
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    
    /* Formato */
    border: none !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espaço entre o raio (ícone) e o texto */
    
    /* Efeito 3D Realista */
    box-shadow: 
        0 3px 0 #3d2e08, 
        0 6px 15px rgba(0, 0, 0, 0.5), 
        inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    
    position: relative !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

/* Ajuste para o ícone (raio) dentro do botão dourado não sumir */
.btn-gold svg, .plan-buy-btn svg {
    stroke: #000 !important; /* Deixa o ícone preto como o texto */
}

/* Hover apenas nos botões dourados */
.btn-gold:hover, .plan-buy-btn:hover, .bg-gradient-gold:hover {
    filter: brightness(1.1) !important;
    transform: translateY(1px) !important;
    box-shadow: 
        0 2px 0 #3d2e08, 
        0 4px 10px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

/* Clique (Afundar) */
.btn-gold:active, .plan-buy-btn:active, .bg-gradient-gold:active {
    transform: translateY(3px) !important;
    box-shadow: 0 0 0 #3d2e08, 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* Plan cards: botão sempre visível (evita CDN sem gerar gradientes com /opacity) */
.plan-buy-btn {
  background-image: linear-gradient(135deg, hsl(40 80% 50%), hsl(40 60% 58%));
  color: #0c0c0c;
}

.plan-buy-btn:hover {
  opacity: 0.92;
}

/* Cards de plano: overlay link + conteúdo com pointer-events-none (clique não fica preso em SVG/div) */
a.plan-card {
  outline: none;
}

.plan-card-shell:focus-within {
  box-shadow: 0 0 0 2px hsl(40 75% 45% / 0.55), 0 0 0 4px hsl(240 10% 6%);
}

.bg-glass {
  background: hsl(240 8% 10% / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(240 6% 18% / 0.6);
}

.glow-gold {
  box-shadow: 0 0 40px hsl(40 80% 50% / 0.15), 0 0 80px hsl(40 80% 50% / 0.05);
}

.glow-gold-sm {
  box-shadow: 0 0 20px hsl(40 80% 50% / 0.1);
}

/* === Background effects === */

body {
  background-attachment: fixed;
}

/* === Gold Nuggets Animation === */

@keyframes gold-fall {
  0% {
    transform: translateY(-5vh) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(50vh) translateX(var(--swing, 20px)) rotate(180deg);
  }
  100% {
    transform: translateY(105vh) translateX(calc(var(--swing, 20px) * -1)) rotate(360deg);
  }
}

.animate-gold-fall {
  animation: gold-fall linear infinite;
}

/* === Cart Drawer === */

@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 === */

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

/* === Scroll Reveal === */

.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

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

/* === Misc === */

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

/* === Animated Counter === */

.counter-animate {
  display: inline-block;
}

/* === FAQ Accordion === */

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item[data-open="true"] .faq-content {
  max-height: 300px;
  padding-bottom: 1rem;
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
}

/* === Product card hover === */

.product-card-gold {
  transition: all 0.3s ease;
}

.product-card-gold:hover {
  box-shadow: 0 0 40px hsl(40 80% 50% / 0.15), 0 0 80px hsl(40 80% 50% / 0.05);
}
