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(26, 26, 26, 0.78);
  }
}

@keyframes fade-out {
  from {
      background-color: rgba(26, 26, 26, 0.78);
  }
  to {
      background-color: rgba(0, 0, 0, 0);
  }
}

@keyframes slide-in {
  from {
      transform: translateX(100%);
  }
  to {
      transform: translateX(0px);
  }
}

@keyframes slide-out {
  from {
      transform: translateX(0px);
  }
  to {
      transform: translateX(100%);
  }
}

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

/* AI assistant */
.ps-ai-assistant {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
}

.ps-ai-assistant__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 0, 0.45);
  background: linear-gradient(135deg, #ffc800 0%, #e6b400 100%);
  color: #111;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 200, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ps-ai-assistant__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 32px rgba(255, 200, 0, 0.32);
}

.ps-ai-assistant__toggle-label {
  letter-spacing: 0.04em;
}

.ps-ai-assistant__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(94vw, 24.5rem);
  height: min(78vh, 36rem);
  max-height: min(78vh, 36rem);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(255, 200, 0, 0.28);
  background: rgba(26, 26, 26, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 200, 0, 0.12);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.ps-ai-assistant__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 200, 0, 0.08);
}

.ps-ai-assistant__header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ps-ai-assistant__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 200, 0, 0.18);
  color: #ffc800;
}

.ps-ai-assistant__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.ps-ai-assistant__status {
  margin: 0.1rem 0 0;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.58);
}

.ps-ai-assistant__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.15s ease, color 0.15s ease;
}

.ps-ai-assistant__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ps-ai-assistant__messages {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overscroll-behavior: contain;
}

.ps-ai-assistant__message {
  max-width: 92%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.ps-ai-assistant__message p {
  margin: 0;
}

.ps-ai-assistant__message--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.ps-ai-assistant__message--user {
  align-self: flex-end;
  background: rgba(255, 200, 0, 0.16);
  border: 1px solid rgba(255, 200, 0, 0.28);
  color: #fff;
}

.ps-ai-assistant__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(1.75rem, auto);
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.55rem 0.75rem 0.65rem;
  max-height: 9.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 200, 0, 0.35) transparent;
}

.ps-ai-assistant__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.75rem;
  max-height: 2.35rem;
  padding: 0.25rem 0.3rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 200, 0, 0.42);
  background: linear-gradient(145deg, rgba(255, 200, 0, 0.2) 0%, rgba(255, 200, 0, 0.1) 100%);
  color: #ffd633;
  font-size: 0.5625rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  word-break: break-word;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ps-ai-assistant__chip:hover {
  background: linear-gradient(145deg, rgba(255, 200, 0, 0.32) 0%, rgba(255, 200, 0, 0.18) 100%);
  border-color: rgba(255, 200, 0, 0.62);
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.16);
}

.ps-ai-assistant__form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.ps-ai-assistant__input {
  flex: 1;
  min-width: 0;
  height: 2.35rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.8125rem;
}

.ps-ai-assistant__input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.ps-ai-assistant__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #ffc800;
  color: #111;
  transition: background 0.15s ease;
}

.ps-ai-assistant__send:hover {
  background: #e6b400;
}

@media (max-width: 480px) {
  .ps-ai-assistant {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .ps-ai-assistant__panel {
    position: fixed;
    right: 0.75rem;
    left: 0.75rem;
    bottom: 4.75rem;
    width: auto;
    max-width: none;
    height: min(72vh, 34rem);
    max-height: min(72vh, 34rem);
  }

  .ps-ai-assistant__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 10.5rem;
    gap: 0.4rem;
  }

  .ps-ai-assistant__chip {
    min-height: 2rem;
    max-height: none;
    padding: 0.35rem 0.45rem;
    font-size: 0.6875rem;
    line-height: 1.2;
    word-break: normal;
  }
}

/* Sidebar categories */