/* 로우쿠 - Custom Styles */

/* Skeleton loading animation */
@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.skeleton {
  animation: skeleton-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  border-radius: 0.5rem;
}

/* Hide scrollbar for category tabs */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Price bar slide-in animation */
@keyframes price-bar-slide {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.price-bar {
  animation: price-bar-slide 0.3s ease-out;
  transform-origin: left;
}

/* Price dot pulse animation */
@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.price-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Product card transitions */
.product-card {
  transition: all 0.2s ease-out;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card:active {
  transform: scale(0.98);
}

/* Star rating color */
.star-rating {
  color: #f59e0b;
}

/* Smooth page transitions */
[x-cloak] {
  display: none !important;
}

/* Custom scrollbar for desktop */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f5f9;
  }

  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading state for images */
img {
  background-color: #f9fafb;
}
