input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  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);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite;
}


#cart-drawer[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

body.cart-open,
body.dialog-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#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"] {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  animation: fade-in 0.4s forwards;
}

.dialog[data-state="closed"] {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  animation: fade-out 0.4s forwards;
}

.dialog[data-state="open"] > div {
  animation: dialog-in 0.15s forwards;
}

.dialog[data-state="closed"] > div {
  animation: dialog-out 0.15s forwards;
}

@keyframes dialog-in {
  from {
      opacity: 0;
      transform: translateY(-24px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes dialog-out {
  from {
      opacity: 1;
      transform: translateY(0);
  }
  to {
      opacity: 0;
      transform: translateY(-24px);
  }
}

.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;
}

@keyframes loading {
  0% {
      left: -50%;
  }

  to {
      left: 100%;
  }
}

.detail-dash {
  background-image: linear-gradient(to right, rgb(var(--foreground) / 0.15) 50%, transparent 0%);
  background-position: center bottom;
  background-size: 16px;
  background-repeat: repeat-x;
  width: 100%;
  height: 1px;
}

.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;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Mega menu sidebar */
.mega-sidebar-item {
  border-left: 3px solid transparent;
  color: rgb(var(--muted-foreground));
}

.mega-sidebar-item:hover,
.mega-sidebar-item.mega-sidebar-active {
  background-color: rgb(var(--muted));
  color: rgb(var(--foreground));
  border-left-color: hsl(var(--primary));
}

.mega-sidebar-item:hover .mega-sidebar-chevron,
.mega-sidebar-item.mega-sidebar-active .mega-sidebar-chevron {
  opacity: 1;
}

.mega-content-panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mega-content-panel.mega-panel-active {
  opacity: 1;
  visibility: visible;
}

.faq-item .faq-content {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:not([open]) .faq-content {
  height: 0;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

/* Product card */
.product-card {
  border: 1px solid rgb(var(--border));
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04), 0 1px 2px rgb(0 0 0 / 0.02);
}
.product-card:hover {
  border-color: rgb(var(--foreground) / 0.2);
}
