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;
}

/* ============================================
   Hero Promo — Card Stack
   ============================================ */

:root {
  --card-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 520px;
}

@media (max-width: 768px) {
  .hero-promo-grid {
    grid-template-columns: 1fr;
  }
  .hero-cards-wrap {
    display: none;
  }
}

.hero-promo-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-promo-title {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-price-highlight {
  color: hsl(var(--primary));
}

.hero-promo-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 400px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-coupon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.875rem;
}

.hero-coupon:hover {
  background: hsl(var(--secondary) / 0.7);
}

.hero-coupon-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
}

.hero-coupon-code {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust-value {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.hero-trust-label {
  font-size: 0.68rem;
  color: hsl(var(--muted-foreground));
  line-height: 1;
  margin-top: 2px;
}

.hero-trust-divider {
  width: 1px;
  height: 28px;
  background: hsl(var(--border));
  flex-shrink: 0;
}

/* Entry animation */
.hero-cards-wrap {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero-cards-wrap.visible {
  opacity: 1;
  transform: translateX(0);
}

.hero-cards-stage {
  position: relative;
  height: 480px;
  width: 100%;
}

/* Base card */
.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transition: transform 0.45s var(--card-ease), box-shadow 0.45s ease, opacity 0.5s ease;
  will-change: transform;
  cursor: pointer;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--card-ease);
}

.hero-card:hover img {
  transform: scale(1.08);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 60%);
  pointer-events: none;
}

.hero-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-card-badge {
  display: inline-flex;
  width: fit-content;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 2px;
}

.hero-card-name {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.25;
}

.hero-card-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 3px 9px;
  color: #fff;
  width: fit-content;
  margin-top: 4px;
  pointer-events: auto;
}

/* Card central */
.hero-card--center {
  width: 310px;
  height: 455px;
  border-radius: 22px;
  z-index: 5;
  transform: translate(-50%, -50%);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 80px hsl(var(--primary) / 0.15);
}

.hero-card--center:hover {
  transform: translate(-50%, calc(-50% - 12px)) scale(1.04);
  box-shadow:
    0 36px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.13),
    0 0 100px hsl(var(--primary) / 0.28);
}

/* Card esquerdo */
.hero-card--left {
  width: 255px;
  height: 375px;
  border-radius: 18px;
  opacity: 0.7;
  z-index: 2;
  transform: translate(calc(-50% - 168px), -50%) rotate(-8deg) scale(0.93);
}

.hero-card--left:hover {
  transform: translate(calc(-50% - 218px), calc(-50% - 14px)) rotate(-15deg) scale(0.93);
  opacity: 0.95;
}

/* Card direito */
.hero-card--right {
  width: 255px;
  height: 375px;
  border-radius: 18px;
  opacity: 0.7;
  z-index: 2;
  transform: translate(calc(-50% + 168px), -50%) rotate(8deg) scale(0.93);
}

.hero-card--right:hover {
  transform: translate(calc(-50% + 218px), calc(-50% - 14px)) rotate(15deg) scale(0.93);
  opacity: 0.95;
}

/* 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 */
