/* ==========================================================
   Fourstyle – Animations layer
   Safe add-on: content stays visible if JS fails.
   ========================================================== */

/* ---------- Hero entrance ---------- */
@keyframes fs-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fs-gold-sweep {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes fs-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(18px, -14px) scale(1.06); }
}
@keyframes fs-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(201, 162, 39, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}
@keyframes fs-cart-bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.45); }
  60% { transform: scale(.9); }
  100% { transform: scale(1); }
}
@keyframes fs-star-pop {
  from { opacity: 0; transform: scale(.4) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.hero .hero-badge,
.hero h1,
.hero .hero-tagline,
.hero .hero-desc,
.hero .hero-buttons,
.hero .hero-features {
  animation: fs-fade-up .8s cubic-bezier(.2, .7, .2, 1) both;
}
.hero .hero-badge    { animation-delay: .05s; }
.hero h1             { animation-delay: .18s; }
.hero .hero-tagline  { animation-delay: .32s; }
.hero .hero-desc     { animation-delay: .44s; }
.hero .hero-buttons  { animation-delay: .56s; }
.hero .hero-features { animation-delay: .70s; }

/* Gold shimmer across the FOURSTYLE title */
.hero h1 {
  background: linear-gradient(90deg, #fff 0%, #fff 38%, #e9c75a 50%, #fff 62%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fs-fade-up .8s cubic-bezier(.2, .7, .2, 1) .18s both,
             fs-gold-sweep 5s linear 1.2s infinite;
}

/* Floating gold glow orbs in hero background */
.hero .fs-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  opacity: .55;
  animation: fs-float 9s ease-in-out infinite;
}
.hero .fs-orb.o1 { width: 220px; height: 220px; left: 8%;  top: 10%; background: rgba(201,162,39,.35); }
.hero .fs-orb.o2 { width: 160px; height: 160px; right: 10%; bottom: 8%; background: rgba(233,199,90,.28); animation-duration: 11s; animation-delay: -3s; }
.hero .fs-orb.o3 { width: 110px; height: 110px; left: 55%; top: 6%; background: rgba(255,255,255,.08); animation-duration: 13s; animation-delay: -6s; }

/* Shop Now button: shine + soft pulse */
.hero .btn-primary {
  position: relative;
  overflow: hidden;
  animation: fs-pulse-ring 2.4s ease-out 1.6s infinite;
}
.btn { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.btn-primary:hover::after { left: 130%; }

.hero-feature i { transition: transform .4s ease; }
.hero-feature:hover i { transform: rotateY(360deg) scale(1.15); }

/* ---------- Scroll reveal ---------- */
.fs-anim-ready .fs-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--fs-delay, 0s);
  will-change: opacity, transform;
}
.fs-anim-ready .fs-reveal.fs-zoom { transform: scale(.92); }
.fs-anim-ready .fs-reveal.fs-left { transform: translateX(-40px); }
.fs-anim-ready .fs-reveal.fs-right { transform: translateX(40px); }
.fs-anim-ready .fs-reveal.fs-in {
  opacity: 1;
  transform: none;
}

/* Section title gold underline that draws in */
.section-title { position: relative; }
.fs-anim-ready .section-title.fs-reveal::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #c9a227, #e9c75a);
  transition: width .9s cubic-bezier(.2,.7,.2,1) .3s;
}
.fs-anim-ready .section-head-left .section-title.fs-reveal::after { margin-left: 0; }
.fs-anim-ready .section-title.fs-reveal.fs-in::after { width: 60px; }

/* ---------- Product & category card hover ---------- */
.product-card,
.category-card,
.why-card,
.testimonial-card {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, opacity .7s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.product-card .product-img { overflow: hidden; }
.product-card .product-img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-img img { transform: scale(1.08); }

.category-card .category-img img { transition: transform .5s ease; }
.category-card:hover .category-img img { transform: scale(1.12) rotate(-3deg); }

.why-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.10); }
.why-card i { transition: transform .5s ease, color .3s ease; display: inline-block; }
.why-card:hover i { transform: translateY(-4px) rotate(-8deg) scale(1.15); }

.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card.fs-in .stars { display: inline-block; animation: fs-star-pop .6s cubic-bezier(.3,1.6,.5,1) .25s both; }

/* ---------- FAQ smooth chevron ---------- */
.faq-question i { transition: transform .35s ease; }

/* ---------- Cart count bump ---------- */
.cart-count.fs-bump { animation: fs-cart-bump .5s ease; }

/* ---------- Header logo ---------- */
.logo-img { transition: transform .4s ease; }
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.05); }

/* ---------- Scroll progress bar ---------- */
.fs-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #c9a227, #e9c75a);
  z-index: 10000;
  pointer-events: none;
}

/* ---------- Back to top ---------- */
.fs-top {
  position: fixed;
  right: 18px; bottom: 90px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #e9c75a;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, background .25s;
  z-index: 900;
}
.fs-top.show { opacity: 1; transform: none; pointer-events: auto; }
.fs-top:hover { background: #c9a227; color: #111; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .fs-anim-ready .fs-reveal { opacity: 1; transform: none; }
  .hero .fs-orb { display: none; }
}
/* ===== Category cards: final ===== */
.categories .category-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 220px) !important;
  justify-content: center !important;
  gap: 20px !important;
  max-width: none !important;
}

.categories .category-card {
  width: 220px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 20px 12px 16px !important;
  gap: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.categories .category-card .category-img {
  display: block !important;
  box-sizing: border-box !important;
  width: 150px !important;
  height: 150px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  flex: none !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.categories .category-card .category-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.categories .category-card h3 {
  font-size: 18px !important;
  margin: 0 0 4px !important;
}

.categories .category-card .category-count {
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 1000px) {
  .categories .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    gap: 14px !important;
  }
  .categories .category-card {
    width: 100% !important;
    padding: 16px 8px 14px !important;
  }
  .categories .category-card .category-img {
    width: 110px !important;
    height: 110px !important;
  }
}
.mobile-nav {
  position: relative;
  z-index: 999;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 14px 0 4px;
}

@media (min-width: 993px) {
  .mobile-nav { display: none !important; }
}
