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;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #111827;
}

.product-rating__stars {
  display: inline-flex;
  gap: 0.12rem;
  align-items: center;
}

.product-rating__star {
  display: inline-flex;
  position: relative;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
}

.product-rating__star img {
  width: 1rem;
  height: 1rem;
  display: block;
  filter: sepia(1) saturate(8) hue-rotate(-10deg) brightness(1.1);
}

.product-rating__star--empty img {
  filter: grayscale(1) brightness(0.75);
  opacity: 0.65;
}

.product-rating__star--half {
  position: relative;
  width: 1rem;
  height: 1rem;
  overflow: hidden;
}

.product-rating__star-half,
.product-rating__star-empty {
  position: absolute;
  top: 0;
  left: 0;
  width: 1rem;
  height: 1rem;
}

.product-rating__star-half {
  overflow: hidden;
  width: 50%;
}

.product-rating__star-half img,
.product-rating__star-empty img {
  width: 1rem;
  height: 1rem;
}

.product-rating__text {
  color: #6b7280;
  white-space: nowrap;
}

@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%;
  }
}

.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);
  }
}

.category-section-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: center !important;
  margin: 30px 0 !important;
  position: relative !important;
}

.category-section-header::before {
  content: '' !important;
  flex: 1 !important;
  height: 5px !important;
  background: #a020f0 !important;
  position: relative !important;
}

.category-section-header::after {
  content: '' !important;
  flex: 1 !important;
  height: 5px !important;
  background: #a020f0 !important;
  position: relative !important;
}

.category-pill {
  color: #a020f0 !important;
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: auto !important;
  border-radius: 0 !important;
}

.category-pill::before {
  display: none !important;
}

.category-sparkle {
  display: none !important;
}

.category-divider {
  display: none !important;
}

@media (max-width: 768px) {
  .category-section-header {
    gap: 10px !important;
    margin: 20px 0 !important;
  }

  .category-pill {
    font-size: 1.5rem !important;
  }
}

.category-pill-text {
  display: inline-flex;
  align-items: center;
}

.category-page-title {
  display: inline-flex;
  justify-content: center;
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}

.category-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sidebar categories */

