/* ================================
   Leowh Homepage - Custom Styles
   ================================ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ================================
   Header scroll state
   ================================ */
#header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

#header.scrolled a:not(.flex) {
  color: #1E293B;
}

/* ================================
   Filter buttons
   ================================ */
.filter-btn {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.filter-btn:hover {
  color: #4F46E5;
  border-color: #4F46E5;
}

.filter-btn.active {
  background: linear-gradient(135deg, #4F46E5, #EC4899);
  color: white;
  border-color: #4F46E5;
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}

/* ================================
   Product cards transition
   ================================ */
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.hidden-card {
  opacity: 0;
  transform: scale(0.9);
  position: absolute;
  pointer-events: none;
}

/* ================================
   AOS-like scroll animations
   ================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Selection color
   ================================ */
::selection {
  background: rgba(79,70,229,0.2);
  color: #1E293B;
}

/* ================================
   Custom scrollbar
   ================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #A5B4FC;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4F46E5;
}

/* ================================
   Mobile menu
   ================================ */
#mobileMenu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

#mobileMenu.open {
  max-height: 300px;
  opacity: 1;
}

/* ================================
   DM Serif Display + Inter for logo
   ================================ */
.font-logo-leo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: italic;
}
.font-logo-wh {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 250;
}

/* ================================
   Hero subtle dot pattern
   ================================ */
.hero-dot-pattern {
  background-image: radial-gradient(circle, rgba(79,70,229,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ================================
   Category cards
   ================================ */
.category-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  background: linear-gradient(135deg, rgba(79,70,229,0.02) 0%, rgba(249,115,22,0.02) 100%);
}

/* ================================
   Hero decorative lines
   ================================ */
.hero-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #CBD5E1, transparent);
}

/* ================================
   Chip tags (Hero hot links)
   ================================ */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 13px;
  color: #6B7280;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.chip:hover {
  color: #4F46E5;
  border-color: #4F46E5;
  background: #EEF2FF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79,70,229,0.12);
}

/* ================================
   Search input placeholder
   ================================ */
#searchInput::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

/* ================================
   Enhanced focus ring for inputs
   ================================ */
input:focus-visible {
  outline: none;
}

/* ================================
   Skeleton / loading states
   ================================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 37%, #F3F4F6 63%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
