/* Tailwind via CDN used. Add custom CSS here if needed. */
/* --- Custom Theme Styles --- */

/* Header nav animation styles */
@media (max-width: 767px) {
  #mainNav {
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    transform: translateY(-24px) scale(0.98);
  }
  #mainNav:not(.hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  #mainNav.nav-animate-in {
    animation: navIn 0.4s cubic-bezier(.4,0,.2,1);
  }
  #mainNav.nav-animate-out {
    animation: navOut 0.35s cubic-bezier(.4,0,.2,1);
  }
  @keyframes navIn {
    0% { opacity: 0; transform: translateY(-32px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes navOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-24px) scale(0.98); }
}

/* Smooth scroll for thumb clicks */
html { scroll-behavior: smooth; }
/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Image zoom */
.zoomable img { transition: transform .3s ease; }
.zoomable:hover img { transform: scale(1.08); }

/* Sticky add-to-cart shadow */
.sticky-atc.show { transform: translateY(0); }

/* Hero carousel dots */
.hero-dot.active {
  background: linear-gradient(90deg,#22d3ee,#22c55e);
  box-shadow: 0 0 0 1px #fff;
  border-radius: 0.5rem;
  height: 0.3rem;
  width: 1.5rem;
  transition: all 0.3s;
}
.hero-dot.inactive {
  background: #e5e7eb;
  border-radius: 9999px;
  width: 0.3rem;
  height: 0.3rem;
  border: 1px solid #fff;
  transition: all 0.3s;
}
#hero-carousel-root .flex {
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
#hero-carousel-root img {
  aspect-ratio: 16/7;
  object-fit: contain;
  width: 100vw;
  max-width: 100%;
  height: auto;
  background: #f8fafc;
}
@media (max-width: 640px) {
  #hero-carousel-root img { aspect-ratio: 16/10; }
  .hero-dot.active {
    height: 0.1rem;
    width: 1.3rem;
    border-radius: 0.75rem;
  }
}

/* Marquee animation */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: inline-flex;
  min-width: 200%;
  animation: marquee 15s linear infinite;
  font-size: 1.8rem;
  will-change: transform; /* smooth GPU rendering */
}
@media screen and (max-width: 756px) {
  .animate-marquee span { font-size: 1.5rem; }
}
/* Normalize across Chrome/Edge */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* prevents Chrome vs Edge scrollbar jump */
  /* overflow-y: scroll;  */
  scroll-behavior: smooth;
  background-color: #fff;
}
/* Ensure consistent box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Custom beautiful scrollbar for FAQ modal */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #60a5fa #e5e7eb;
}
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #60a5fa 40%, #38bdf8 100%);
  border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 8px;
}

/* Animation for success/error messages in FAQ modal */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fade-in 0.5s ease;
}
}
.clip-path-ribbon {
    clip-path: polygon(100% 0, 90% 20%, 100% 38%, 90% 63%, 100% 85%, 91% 100%, 0 100%, 0 0);
    ;
}