/* ==========================================================================
   The Flip Shop — atmosphere layer
   Ambient depth for the warm cream ground: soft organic shapes, a few drifting
   accents, refined section and heading treatments.

   Three rules this layer keeps to:
     1. Decoration never sits above content. Everything here is
        pointer-events:none and below the content's stacking context, so it
        cannot cover text, a button or a product.
     2. Checkout and cart get none of it. A payment form should be quiet.
     3. All of it animates with transform/opacity only, and stands down
        entirely under prefers-reduced-motion.
   ========================================================================== */

/* ==========================================================================
   1. Ambient grounds
   Very low-contrast radial washes that give the cream somewhere to go. Pure
   CSS gradients — no image requests, no layout cost.
   ========================================================================== */

.fs-sec,
.fs-hero{ position:relative; isolation:isolate; }

/* Content sits above the ambient layer. Absolutely-positioned decoration and
   chips are excluded so their own placement survives. */
.fs-sec > *:not(.fs-orb):not(.fs-spark),
.fs-hero > *:not(.fs-orb):not(.fs-spark){ position:relative; z-index:1; }

.fs-atmos-wash::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(42% 38% at 88% 6%,  rgba(226,80,59,.045), transparent 70%),
    radial-gradient(38% 42% at 6%  88%, rgba(47,99,84,.040),  transparent 72%);
}
.fs-atmos-wash--blush::before{
  background:
    radial-gradient(46% 40% at 10% 10%, rgba(248,230,223,.80), transparent 70%),
    radial-gradient(40% 44% at 92% 82%, rgba(226,239,231,.65), transparent 72%);
}

/* ==========================================================================
   2. Organic shapes
   Two or three soft blobs per section at most, drifting slowly. Deliberately
   large and faint — they read as light, not as objects.
   ========================================================================== */

.fs-orb{
  position:absolute;z-index:0;pointer-events:none;
  border-radius:50%;filter:blur(42px);opacity:.5;
  will-change:transform;
}
.fs-orb--blush{ background:radial-gradient(circle at 35% 35%, #F8E6DF, rgba(248,230,223,0)); }
.fs-orb--mint { background:radial-gradient(circle at 35% 35%, #E2EFE7, rgba(226,239,231,0)); }
.fs-orb--sand { background:radial-gradient(circle at 35% 35%, #EFE6D4, rgba(239,230,212,0)); }
.fs-orb--sky  { background:radial-gradient(circle at 35% 35%, #E4EBF2, rgba(228,235,242,0)); }

@media (prefers-reduced-motion:no-preference){
  .fs-orb{ animation:fs-float 26s ease-in-out infinite; }
  .fs-orb:nth-of-type(2){ animation-duration:34s; animation-delay:-8s; }
  .fs-orb:nth-of-type(3){ animation-duration:30s; animation-delay:-16s; }
  @keyframes fs-float{
    0%,100%{ transform:translate3d(0,0,0) scale(1); }
    50%    { transform:translate3d(14px,-18px,0) scale(1.06); }
  }
}

/* ==========================================================================
   3. Sparkles
   A handful of tiny four-point stars. Drawn in CSS, not images. Used only in
   the hero and one band further down — any more and it reads as novelty.
   ========================================================================== */

.fs-spark{
  position:absolute;z-index:0;pointer-events:none;
  width:var(--s,10px);height:var(--s,10px);opacity:.42;
  background:var(--c,var(--fs-coral));
  /* four-point star */
  clip-path:polygon(50% 0%,58% 42%,100% 50%,58% 58%,50% 100%,42% 58%,0% 50%,42% 42%);
}
@media (prefers-reduced-motion:no-preference){
  .fs-spark{ animation:fs-twinkle 5.5s ease-in-out infinite; }
  .fs-spark:nth-of-type(even){ animation-duration:7s; animation-delay:-2.5s; }
  @keyframes fs-twinkle{
    0%,100%{ opacity:.18; transform:scale(.82) rotate(0deg); }
    50%    { opacity:.62; transform:scale(1.08) rotate(22deg); }
  }
}

/* ==========================================================================
   4. Hero composition
   ========================================================================== */

.fs-hero__copy .fs-eyebrow{ margin-bottom:18px; }
.fs-hero__copy .fs-display{ margin-bottom:6px; }
.fs-hero__copy .fs-lede{ margin-top:18px; }
.fs-hero__actions{ margin-top:34px; }

/* A soft halo behind the rotator so the card lifts off the ground. */
.fs-hero__stage::before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  inset:6% -6% 10% -6%;
  background:radial-gradient(52% 48% at 50% 50%, rgba(255,255,255,.92), rgba(255,255,255,0) 72%);
}
/* Lift the stage's children above the halo — but NOT the chips, which are
   absolutely positioned against the stage and lose their placement if this
   rule forces them back into flow. */
.fs-hero__stage > *:not(.fs-chip){ position:relative; z-index:1; }
.fs-hero__stage > .fs-chip{ z-index:4; }

/* ==========================================================================
   5. Headings
   A short rule under section headings, drawn in the accent. Small touch, but
   it gives each section a deliberate opening.
   ========================================================================== */

.fs-sec__head .fs-h2{ position:relative; padding-bottom:4px; }
.fs-sec__head .fs-h2::after{
  content:"";position:absolute;left:0;bottom:-6px;
  width:46px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--fs-coral-dark),rgba(226,80,59,0));
}

/* ==========================================================================
   6. Cards
   Slightly warmer lift on hover. Transform and shadow only.
   ========================================================================== */

@media (prefers-reduced-motion:no-preference) and (hover:hover){
  .fs-card__mediawrap{
    transition:transform 420ms var(--fs-ease), box-shadow 420ms var(--fs-ease);
  }
  .fs-card:hover .fs-card__mediawrap{
    transform:translateY(-6px);
    box-shadow:0 10px 26px rgba(26,23,19,.10), 0 2px 6px rgba(26,23,19,.06);
  }
  .fs-cat{ transition:transform var(--fs-med) var(--fs-ease), box-shadow var(--fs-med) var(--fs-ease); }
}

/* Category tiles get a faint inner highlight so the colour reads as material. */
.fs-cat::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(160deg, rgba(255,255,255,.34), rgba(255,255,255,0) 46%);
}

/* ==========================================================================
   7. Quiet zones — cart, checkout, account
   No orbs, no sparkles, no washes. A payment form should be calm.
   ========================================================================== */

.woocommerce-cart .fs-orb,
.woocommerce-checkout .fs-orb,
.woocommerce-account .fs-orb,
.woocommerce-cart .fs-spark,
.woocommerce-checkout .fs-spark,
.woocommerce-account .fs-spark{ display:none!important; }

.woocommerce-cart .fs-atmos-wash::before,
.woocommerce-checkout .fs-atmos-wash::before,
.woocommerce-account .fs-atmos-wash::before{ display:none; }

/* ==========================================================================
   8. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion:reduce){
  .fs-orb,.fs-spark{ animation:none!important; }
  .fs-spark{ opacity:.3; }
}
