html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Header scroll state */
#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(28, 26, 23, 0.06);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInDown {
  animation: fadeInDown 0.3s ease-out;
}

/* Wishlist button active state */
.wishlist-btn.active i,
.wishlist-btn-detail.active i {
  color: #b08d63;
  font-weight: 900;
}
.wishlist-btn.active i::before,
.wishlist-btn-detail.active i::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f004';
}

/* Search result item */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover {
  background: #eae5db;
}

/* Card hover lift */
.artwork-card {
  transition: transform 0.3s ease;
}

/* Gallery grid item transitions when filtering */
.gallery-hidden {
  display: none !important;
}

/* Toast visible state */
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Scrollbar for drawers */
#wishlist-items::-webkit-scrollbar,
#search-results::-webkit-scrollbar {
  width: 6px;
}
#wishlist-items::-webkit-scrollbar-thumb,
#search-results::-webkit-scrollbar-thumb {
  background: #d8d2c4;
  border-radius: 3px;
}

/* Skeleton pulse for lazy content (unused hook, safe to keep) */
.skeleton {
  background: linear-gradient(90deg, #eae5db 25%, #f4f1ea 37%, #eae5db 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* File upload drag state */
#upload-drop.dragover {
  border-color: #b08d63;
  background: #eae5db;
}

.prose-legal h2:first-child {
  padding-top: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
