/* ===== Jade & Aura - Custom Styles ===== */

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(8px) translateX(-50%); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50% { box-shadow: 0 0 20px 5px rgba(201, 168, 76, 0.2); }
}

@keyframes particle-float {
  0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(100px) scale(1); opacity: 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-slow-spin {
  animation: slowSpin 30s linear infinite;
}

.animate-bounce-slow {
  animation: bounceSlow 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Hero Particles */
.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  animation: particle-float linear infinite;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Navigation */
nav.scrolled {
  background: rgba(250, 250, 249, 0.98) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

/* Filter Buttons */
.filter-btn {
  background: white;
  color: #57534e;
  border: 1px solid #e7e5e4;
}
.filter-btn:hover {
  border-color: #c9a84c;
  color: #c9a84c;
}
.filter-btn.active {
  background: #1c1917;
  color: #c9a84c;
  border-color: #1c1917;
}

/* Product Cards */
.product-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-card:hover .product-image {
  transform: scale(1.05);
}
.product-card .quick-add {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

/* Badge */
.badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
}
.badge-bestseller {
  background: linear-gradient(135deg, #c9a84c, #b8942e);
}

/* Quiz Option */
.quiz-option {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #e7e5e4;
}
.quiz-option:hover {
  border-color: #c9a84c;
  background: #fefce8;
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: #c9a84c;
  background: linear-gradient(to right, #fefce8, #fef9c3);
  box-shadow: 0 0 0 1px #c9a84c;
}

/* Cart Overlay */
#cart-overlay.show {
  display: block !important;
}
#cart-overlay.show #cart-drawer {
  transform: translateX(0);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1c1917;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

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

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #1c1917;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f5f5f4 25%, #e7e5e4 50%, #f5f5f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Rating stars */
.stars {
  color: #c9a84c;
  letter-spacing: 2px;
}

/* Custom scrollbar for cart */
#cart-items::-webkit-scrollbar {
  width: 4px;
}
#cart-items::-webkit-scrollbar-track {
  background: transparent;
}
#cart-items::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem !important;
  }
}

/* Page transitions */
main {
  animation: fadeInUp 0.5s ease;
}

/* Five element colors for quiz result */
.element-water { background: linear-gradient(135deg, #1e3a5f, #1a365d); }
.element-fire { background: linear-gradient(135deg, #7f1d1d, #991b1b); }
.element-earth { background: linear-gradient(135deg, #78350f, #92400e); }
.element-metal { background: linear-gradient(135deg, #374151, #4b5563); }
.element-wood { background: linear-gradient(135deg, #14532d, #166534); }
