html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

canvas {
  touch-action: none;
}

/* Hero text + founder photo entrance */
.fade-up {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.fallback-fade {
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
  animation: fallbackFade 1.5s ease-out forwards;
}
@keyframes fallbackFade {
  to { opacity: 0.4; transform: scale(1) rotate(0); }
}

.founder-photo {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out 0.3s forwards;
}

/* Promo discount badge gentle float */
.floating {
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hover scale helper to mimic motion's whileHover/Tap */
.hover-grow { transition: transform 200ms ease; }
.hover-grow:hover { transform: scale(1.02); }
.hover-grow:active { transform: scale(0.98); }

/* Modal animation */
.modal-backdrop {
  opacity: 0;
  animation: fadeIn 0.2s ease-out forwards;
}
.modal-card {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes modalIn { to { opacity: 1; transform: scale(1) translateY(0); } }

/* Custom scrollbar inside modal right column */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.4); border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.7); }

/* Product card hover lift */
.product-card { transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease; }
.product-card:hover { transform: translateY(-10px); }

.product-card img { transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.product-card:hover img { transform: translateY(-12px) scale(1.15); }
.product-card:active img { transform: scale(1.25) rotate(2deg); }

/* Accordion thumb active state */
.accordion-thumb { transition: all 300ms ease; }
.accordion-thumb.active {
  border-color: #10b981 !important;
  transform: scale(1.10);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  opacity: 1 !important;
  z-index: 10;
}

/* Category card animation when category opens */
.category-card { animation: cardIn 0.5s ease-out both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Reveal on scroll for sections */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Body lock when modal open */
body.modal-open { overflow: hidden; }
