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;
}

/* Floating navbar shell */
.navbar-shell {
  width: 75%;
  position: relative;
  background: linear-gradient(180deg, hsl(var(--background) / 0.6) 0%, hsl(var(--background) / 0.85) 100%);
  border: none;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
  transition:
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  will-change: width;
}

.navbar-shell.is-scrolled {
  width: 80%;
  background: linear-gradient(180deg, hsl(var(--background) / 0.75) 0%, hsl(var(--background) / 0.92) 100%);
  border-color: transparent;
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .navbar-shell,
  .navbar-shell.is-scrolled {
    width: 92%;
  }
}

/* Category section title */
.category-title {
  background:
    radial-gradient(ellipse at center, hsl(var(--primary) / 0.18), transparent 75%),
    linear-gradient(180deg, hsl(var(--primary) / 0.12) 0%, hsl(var(--primary) / 0.04) 100%);
  border: 1px solid hsl(var(--primary) / 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 0 24px -6px hsl(var(--primary) / 0.55),
    inset 0 1px 0 hsl(var(--foreground) / 0.08);
  text-shadow: 0 0 18px hsl(var(--primary) / 0.45);
  white-space: nowrap;
}

.category-title::before,
.category-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary));
  transform: translateY(-50%);
}

.category-title::before { left: -2px; }
.category-title::after  { right: -2px; }

/* Hero banner glow + sparkles */
.hero-banner-wrapper {
  isolation: isolate;
}

/* Hero search bar — glassmorphism overlay on banner */
.hero-search-wrapper {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80%);
  z-index: 20;
}

@media (max-width: 640px) {
  .hero-search-wrapper {
    bottom: -22px;
    width: 88%;
  }
}

.hero-search-glow {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, hsl(var(--primary) / 0.55), transparent 70%);
  filter: blur(18px);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
  animation: hero-search-pulse 4s ease-in-out infinite;
}

@keyframes hero-search-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.04); }
}

.hero-search-inner {
  position: relative;
  border-radius: 9999px;
  padding: 2px;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.6), rgba(255, 255, 255, 0.15) 50%, hsl(var(--primary) / 0.55));
  box-shadow:
    0 18px 40px -10px rgba(0, 0, 0, 0.55),
    0 0 30px -6px hsl(var(--primary) / 0.55);
}

.hero-search-input {
  width: 100%;
  height: 52px;
  padding: 0 1.25rem 0 3rem;
  border-radius: 9999px;
  background: rgba(15, 15, 20, 0.35);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  outline: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 4px hsl(var(--primary) / 0.55));
}

.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-search-input:focus {
  background: rgba(15, 15, 20, 0.55);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.6);
}

@media (max-width: 640px) {
  .hero-search-input {
    height: 46px;
    font-size: 0.9rem;
  }
}

.hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.hero-glow-1 {
  top: -20%;
  left: -8%;
  width: 45%;
  height: 140%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.9), transparent 70%);
  animation: hero-glow-pulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  top: -25%;
  right: -8%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.75), transparent 70%);
  animation: hero-glow-pulse 7s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes hero-glow-pulse {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.15) translate(2%, -2%);
    opacity: 0.7;
  }
}

.hero-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 8px 2px #fff, 0 0 18px 4px hsl(var(--primary) / 0.9);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-sparkle-1 { top: 12%;  left: 4%;   animation: hero-sparkle 3.4s ease-in-out infinite;            animation-delay: 0s;    }
.hero-sparkle-2 { top: 70%;  left: 10%;  animation: hero-sparkle 4.2s ease-in-out infinite;            animation-delay: 0.8s;  }
.hero-sparkle-3 { top: 30%;  left: 95%;  animation: hero-sparkle 3.8s ease-in-out infinite;            animation-delay: 1.4s;  width: 8px; height: 8px; }
.hero-sparkle-4 { top: 85%;  left: 92%;  animation: hero-sparkle 3.2s ease-in-out infinite;            animation-delay: 2s;    }
.hero-sparkle-5 { top: -4%;  left: 50%;  animation: hero-sparkle 4.6s ease-in-out infinite;            animation-delay: 2.6s;  width: 5px; height: 5px; }
.hero-sparkle-6 { top: 100%; left: 45%;  animation: hero-sparkle 3.6s ease-in-out infinite;            animation-delay: 3.2s;  width: 7px; height: 7px; }

@keyframes hero-sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 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);
  }
}

.shine-effect {
  position: relative;
}

.shine-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 25%,
    rgba(255, 255, 255, 0.02) 38%,
    rgba(255, 255, 255, 0.11) 50%,
    rgba(255, 255, 255, 0.02) 62%,
    transparent 75%,
    transparent 100%
  );
  transform: translateX(-100%) skewX(-18deg);
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
  will-change: transform;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) skewX(-18deg);
  }
  40% {
    transform: translateX(320%) skewX(-18deg);
  }
  50% {
    transform: translateX(320%) skewX(-18deg);
  }
  90% {
    transform: translateX(-100%) skewX(-18deg);
  }
  100% {
    transform: translateX(-100%) skewX(-18deg);
  }
}
/* Sidebar categories */
