/* Custom Styles for Dita Cosmetics Store Kudus */

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

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.7);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-float-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-bounce-subtle {
  animation: bounceSubtle 3.5s ease-in-out infinite;
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Smooth Category Pill transitions */
.filter-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn.active {
  background-color: #C75640 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(199, 86, 64, 0.25);
}

/* Card hover lift effect */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #E49887;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C75640;
}

/* Hide scrollbar for category tabs on mobile */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* FAQ transitions */
.faq-item {
  transition: all 0.25s ease-in-out;
}

.faq-item.active {
  background-color: #FFFFFF !important;
  border-color: #EEBCB0 !important;
  box-shadow: 0 4px 15px -3px rgba(217, 115, 93, 0.08);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #C75640;
}

/* Mobile polish */
html { -webkit-text-size-adjust: 100%; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (hover: none) {
  .product-card:hover { transform: none; }
  .category-card:active { transform: scale(0.98); }
}
