:root{
  --cream:#fff8ea;
  --cream-warm:#fff3e6;
  --pink-soft:#ffb5c0;
  --pink:#ff7890;
  --pink-hot:#ff3f68;
  --red:#ef0036;
  --red-deep:#d90029;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  width:100%;
  height:100%;
  background:var(--cream);
  font-family:Arial,sans-serif;
}
body{overflow:hidden}
.page{
  width:100vw;
  height:100dvh;
  margin:0;
  padding:0;
  background:var(--cream);
}
.hero-card{
  position:relative;
  width:100vw;
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
  border-radius:0;
  background:var(--cream);
  box-shadow:none;
}
header{
  position:relative;
  z-index:5;
  height:78px;
  display:flex;
  align-items:center;
  gap:34px;
  padding:12px 28px;
  color:#2a1710;
  font-size:11px;
  font-weight:800;
}
header img{
  width:115px;
  height:54px;
  object-fit:contain;
}
header nav{
  display:flex;
  gap:24px;
}
.mini{
  margin-left:auto;
  border:1px solid #bda98b;
  border-radius:999px;
  padding:9px 15px;
}
.ambient{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:
    linear-gradient(
      180deg,
      var(--cream) 0%,
      var(--cream) 37%,
      #fff6ea 44%,
      #ffe8e7 55%,
      #ffc0ca 66%,
      #ff8297 77%,
      #ff4268 88%,
      var(--red) 100%
    );
}
.ambient::before{
  content:"";
  position:absolute;
  left:-12vw;
  right:-12vw;
  top:39%;
  height:42vh;
  background:
    radial-gradient(
      ellipse 43% 78% at 26% 100%,
      rgba(255,86,113,.92) 0%,
      rgba(255,111,136,.82) 34%,
      rgba(255,151,170,.56) 58%,
      rgba(255,188,200,.20) 72%,
      transparent 84%
    ),
    radial-gradient(
      ellipse 43% 78% at 74% 100%,
      rgba(255,86,113,.92) 0%,
      rgba(255,111,136,.82) 34%,
      rgba(255,151,170,.56) 58%,
      rgba(255,188,200,.20) 72%,
      transparent 84%
    );
  filter:blur(72px);
  opacity:.96;
  pointer-events:none;
}
.ambient::after{
  content:"";
  position:absolute;
  left:50%;
  top:45%;
  width:38vw;
  height:24vh;
  min-width:420px;
  transform:translateX(-50%);
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255,248,234,.99) 0%,
      rgba(255,247,234,.90) 30%,
      rgba(255,240,233,.52) 52%,
      rgba(255,226,224,.16) 70%,
      transparent 84%
    );
  filter:blur(54px);
  pointer-events:none;
}
@media(max-width:700px){
  header{
    padding:10px 16px;
  }
  header nav{
    display:none;
  }
  .ambient::before{
    left:-38vw;
    right:-38vw;
    top:43%;
    height:40vh;
    filter:blur(58px);
  }
  .ambient::after{
    top:49%;
    width:68vw;
    min-width:0;
    height:20vh;
    filter:blur(44px);
  }
}

/* Particle-only motion: preserves approved heart silhouette exactly */
.ambient-motion{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  opacity:.16;
  mix-blend-mode:screen;
}
.ambient-motion::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:33%;
  height:24vh;
  background:
    radial-gradient(circle at 9% 61%,rgba(255,255,255,.60) 0 1px,transparent 2px),
    radial-gradient(circle at 19% 39%,rgba(255,255,255,.42) 0 1px,transparent 2px),
    radial-gradient(circle at 30% 66%,rgba(255,255,255,.48) 0 1.2px,transparent 2.3px),
    radial-gradient(circle at 41% 46%,rgba(255,255,255,.58) 0 1px,transparent 2px),
    radial-gradient(circle at 53% 62%,rgba(255,255,255,.38) 0 1.1px,transparent 2.1px),
    radial-gradient(circle at 64% 40%,rgba(255,255,255,.52) 0 1px,transparent 2px),
    radial-gradient(circle at 76% 65%,rgba(255,255,255,.44) 0 1.2px,transparent 2.2px),
    radial-gradient(circle at 89% 44%,rgba(255,255,255,.56) 0 1px,transparent 2px);
  animation:cookieLuvParticleDrift 20s ease-in-out infinite alternate;
}
.ambient-motion::after{content:none}
@keyframes cookieLuvParticleDrift{
  0%{transform:translate3d(-.8%,2px,0)}
  50%{transform:translate3d(.5%,-4px,0)}
  100%{transform:translate3d(1%,1px,0)}
}
@media(max-width:700px){
  .ambient-motion{opacity:.13}
  .ambient-motion::before{top:37%;height:20vh}
}
@media(prefers-reduced-motion:reduce){
  .ambient-motion::before{animation:none!important}
}

/* Vapor hearts — additive layer only. Approved gradient + particles remain untouched. */
.vapor-hearts{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:1;
}
.vh{
  --size:22px;
  --x:20%;
  --drift:14px;
  --delay:0s;
  --duration:14s;
  position:absolute;
  left:var(--x);
  top:52%;
  width:var(--size);
  height:var(--size);
  opacity:0;
  transform:translate(-50%,0) rotate(45deg) scale(.72);
  border-radius:5px;
  background:linear-gradient(135deg,rgba(255,116,140,.46),rgba(255,54,92,.30));
  filter:blur(2.4px);
  mix-blend-mode:screen;
  animation:vaporHeart var(--duration) ease-out var(--delay) infinite;
}
.vh::before,.vh::after{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  border-radius:50%;
  background:inherit;
}
.vh::before{left:-50%;top:0}
.vh::after{left:0;top:-50%}

.vh1{--x:24%;--size:20px;--drift:-13px;--delay:1s;--duration:15s}
.vh2{--x:71%;--size:17px;--drift:16px;--delay:7s;--duration:17s}
.vh3{--x:46%;--size:13px;--drift:9px;--delay:12s;--duration:18s}

@keyframes vaporHeart{
  0%,8%{
    opacity:0;
    transform:translate(-50%,10px) rotate(45deg) scale(.62);
    filter:blur(2px);
  }
  18%{
    opacity:.20;
  }
  48%{
    opacity:.14;
    transform:translate(calc(-50% + var(--drift)),-52px) rotate(45deg) scale(.9);
    filter:blur(4px);
  }
  72%{
    opacity:.06;
    transform:translate(calc(-50% + var(--drift)),-104px) rotate(45deg) scale(1.08);
    filter:blur(7px);
  }
  82%,100%{
    opacity:0;
    transform:translate(calc(-50% + var(--drift)),-142px) rotate(45deg) scale(1.22);
    filter:blur(11px);
  }
}
@media(max-width:700px){
  .vh{top:55%}
  .vh1{--x:18%;--size:17px}
  .vh2{--x:80%;--size:15px}
  .vh3{--x:48%;--size:11px}
}
@media(prefers-reduced-motion:reduce){
  .vapor-hearts{display:none}
}

/* Random vapor-heart tuning: one at a time, side-only, 25% larger, ~10% clearer */
.vapor-hearts .vh{
  --size:26px;
  --x:20%;
  --drift:14px;
  --duration:16s;
  position:absolute;
  left:var(--x);
  top:52%;
  width:var(--size);
  height:var(--size);
  opacity:0;
  transform:translate(-50%,0) rotate(45deg) scale(.72);
  border-radius:6px;
  background:linear-gradient(135deg,rgba(255,126,148,.60),rgba(255,58,95,.41));
  filter:blur(2.2px);
  mix-blend-mode:screen;
  animation:vaporHeartRandom var(--duration) ease-out forwards;
}
.vapor-hearts .vh::before,.vapor-hearts .vh::after{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  border-radius:50%;
  background:inherit;
}
.vapor-hearts .vh::before{left:-50%;top:0}
.vapor-hearts .vh::after{left:0;top:-50%}

@keyframes vaporHeartRandom{
  0%,8%{
    opacity:0;
    transform:translate(-50%,10px) rotate(45deg) scale(.62);
    filter:blur(2px);
  }
  20%{opacity:.30}
  50%{
    opacity:.216;
    transform:translate(calc(-50% + var(--drift)),-56px) rotate(45deg) scale(.92);
    filter:blur(4px);
  }
  74%{
    opacity:.108;
    transform:translate(calc(-50% + var(--drift)),-112px) rotate(45deg) scale(1.10);
    filter:blur(7px);
  }
  100%{
    opacity:0;
    transform:translate(calc(-50% + var(--drift)),-152px) rotate(45deg) scale(1.24);
    filter:blur(11px);
  }
}
@media(max-width:700px){
  .vapor-hearts .vh{top:55%}
}

/* CookieLuv approved intro overlay — final production implementation 2026-10-03.
   Source: NEW INTRO COOKIE LUV_2.mov -> lossless RGBA WebP frames.
   No filters, no backing matte, no browser video decoding/color conversion. */
.seedance-mascot-stage{
  position:fixed;
  inset:0;
  z-index:2147482000;
  overflow:hidden;
  pointer-events:none;
  background:transparent;
  opacity:1;
  visibility:visible;
}
.full-intro-frame{
  position:absolute;
  inset:0;
  display:block;
  width:100vw;
  height:100vh;
  object-fit:cover;
  object-position:center center;
  image-rendering:auto;
  filter:none;
  opacity:1;
  transform-origin:0 0;
  transform:matrix(1,0,0,1,0,0);
  backface-visibility:hidden;
  will-change:transform;
}
body.intro-header-logo-hidden header img{opacity:0}
header img{
  transition:opacity .144s ease-out,transform .224s cubic-bezier(.18,.9,.25,1.25);
}
body.intro-logo-landed header img{
  opacity:1;
  transform:scale(1);
}
.logo-dust-burst{
  position:fixed;
  left:var(--dust-x,72px);
  top:var(--dust-y,39px);
  width:1px;
  height:1px;
  z-index:2147482500;
  pointer-events:none;
  opacity:0;
}
.logo-dust-burst::before,
.logo-dust-burst::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  border-radius:50%;
  background:#fffdf7;
  filter:drop-shadow(0 1px 1px rgba(190,55,70,.16));
  box-shadow:
    -26px -5px 0 -1px rgba(255,253,247,.98),
    -20px 15px 0 -2px rgba(255,253,247,.92),
    18px -16px 0 -2px rgba(255,253,247,.96),
    27px 5px 0 -1px rgba(255,253,247,.9),
    7px 24px 0 -3px rgba(255,253,247,.88),
    -7px -25px 0 -3px rgba(255,253,247,.9),
    34px -11px 0 -3px rgba(255,253,247,.74),
    -34px 11px 0 -3px rgba(255,253,247,.74),
    17px 25px 0 -4px rgba(255,253,247,.7),
    -17px -26px 0 -4px rgba(255,253,247,.72);
  transform:translate(-50%,-50%) scale(.18);
}
.logo-dust-burst::before{width:11px;height:11px}
.logo-dust-burst::after{width:8px;height:8px}
body.intro-logo-landed .logo-dust-burst{animation:dustBurstFade .656s ease-out both}
body.intro-logo-landed .logo-dust-burst::before{animation:dustBurstA .656s cubic-bezier(.14,.82,.27,1) both}
body.intro-logo-landed .logo-dust-burst::after{animation:dustBurstB .736s cubic-bezier(.14,.82,.27,1) both}
@keyframes dustBurstFade{
  0%{opacity:0}
  6%{opacity:1}
  55%{opacity:.9}
  100%{opacity:0}
}
@keyframes dustBurstA{
  0%{transform:translate(-50%,-50%) scale(.18) rotate(-4deg)}
  55%{transform:translate(-50%,-50%) scale(2.15) rotate(7deg)}
  100%{transform:translate(-50%,-50%) scale(2.65) rotate(12deg)}
}
@keyframes dustBurstB{
  0%{transform:translate(-50%,-50%) scale(.15) rotate(3deg)}
  60%{transform:translate(-50%,-50%) scale(2.55) rotate(-12deg)}
  100%{transform:translate(-50%,-50%) scale(3.05) rotate(-18deg)}
}

/* Cookie rain / product reveal — starts with the approved source-14s logo handoff. */
.cookie-showcase{
  position:absolute;
  z-index:4;
  left:50%;
  top:14vh;
  width:min(92vw,1320px);
  height:72vh;
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:end;
  gap:clamp(10px,1.6vw,28px);
  padding:0 clamp(6px,1vw,18px) 11vh;
  pointer-events:none;
}
.cookie-product{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
  opacity:0;
  transform:translate3d(0,-120vh,0);
  transform-origin:50% 50%;
  will-change:transform,opacity;
}
.cookie-art{
  display:block;
  width:min(100%,220px);
  max-height:31vh;
  object-fit:contain;
  filter:drop-shadow(0 18px 18px rgba(104,18,31,.13));
  user-select:none;
  -webkit-user-drag:none;
}
.cookie-product h2{
  margin:clamp(10px,1.4vh,16px) 0 0;
  max-width:190px;
  min-height:2.5em;
  text-align:center;
  color:#321913;
  font-size:clamp(12px,1.05vw,16px);
  line-height:1.18;
  letter-spacing:-.015em;
  font-weight:800;
  opacity:0;
  transform:translateY(12px);
}
.cookie-classic{margin-bottom:0}
.cookie-triple{margin-bottom:2vh}
.cookie-red{margin-bottom:3.5vh}
.cookie-marshmallow{margin-bottom:2vh}
.cookie-caramel{margin-bottom:0}
.cookie-red .cookie-art{width:min(108%,238px)}

/* Unique, deterministic "fall + rebound + settle" paths. */
body.cookies-enter .cookie-classic{
  animation:cookieClassicFall 1.65s cubic-bezier(.22,.72,.22,1) 0s forwards;
}
body.cookies-enter .cookie-caramel{
  animation:cookieCaramelFall 1.62s cubic-bezier(.22,.72,.22,1) .10s forwards;
}
body.cookies-enter .cookie-triple{
  animation:cookieTripleFall 1.52s cubic-bezier(.22,.72,.22,1) .18s forwards;
}
body.cookies-enter .cookie-marshmallow{
  animation:cookieMarshmallowFall 1.48s cubic-bezier(.22,.72,.22,1) .28s forwards;
}
body.cookies-enter .cookie-red{
  animation:cookieRedFall 1.34s cubic-bezier(.2,.78,.2,1) .38s forwards;
}

body.cookies-enter .cookie-classic h2{animation:cookieNameReveal .42s ease-out 1.72s forwards}
body.cookies-enter .cookie-caramel h2{animation:cookieNameReveal .42s ease-out 1.80s forwards}
body.cookies-enter .cookie-triple h2{animation:cookieNameReveal .42s ease-out 1.78s forwards}
body.cookies-enter .cookie-marshmallow h2{animation:cookieNameReveal .42s ease-out 1.86s forwards}
body.cookies-enter .cookie-red h2{animation:cookieNameReveal .42s ease-out 1.80s forwards}

@keyframes cookieClassicFall{
  0%{opacity:0;transform:translate3d(-85px,-118vh,0) rotate(-86deg) scale(.92)}
  8%{opacity:1}
  58%{transform:translate3d(-92px,18px,0) rotate(18deg) scale(1.02)}
  68%{transform:translate3d(-128px,8px,0) rotate(27deg) scale(1)}
  78%{transform:translate3d(34px,-7px,0) rotate(-9deg) scale(1)}
  89%{transform:translate3d(-12px,4px,0) rotate(3deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieTripleFall{
  0%{opacity:0;transform:translate3d(22px,-116vh,0) rotate(74deg) scale(.94)}
  8%{opacity:1}
  65%{transform:translate3d(-12px,24px,0) rotate(-16deg) scale(1.01)}
  78%{transform:translate3d(8px,-13px,0) rotate(7deg) scale(1)}
  90%{transform:translate3d(-4px,5px,0) rotate(-2deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieRedFall{
  0%{opacity:0;transform:translate3d(0,-126vh,0) rotate(-46deg) scale(.88)}
  10%{opacity:1}
  66%{transform:translate3d(0,17px,0) rotate(9deg) scale(1.08)}
  80%{transform:translate3d(0,-10px,0) rotate(-4deg) scale(1.11)}
  91%{transform:translate3d(0,4px,0) rotate(1.5deg) scale(1.075)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1.08)}
}
@keyframes cookieMarshmallowFall{
  0%{opacity:0;transform:translate3d(-32px,-120vh,0) rotate(-68deg) scale(.94)}
  8%{opacity:1}
  60%{transform:translate3d(44px,11px,0) rotate(16deg) scale(1.01)}
  73%{transform:translate3d(28px,-9px,0) rotate(10deg) scale(1)}
  85%{transform:translate3d(-14px,5px,0) rotate(-5deg) scale(1)}
  94%{transform:translate3d(5px,-2px,0) rotate(2deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieCaramelFall{
  0%{opacity:0;transform:translate3d(92px,-122vh,0) rotate(96deg) scale(.92)}
  8%{opacity:1}
  58%{transform:translate3d(102px,18px,0) rotate(-21deg) scale(1.02)}
  68%{transform:translate3d(132px,8px,0) rotate(-29deg) scale(1)}
  78%{transform:translate3d(-36px,-7px,0) rotate(10deg) scale(1)}
  89%{transform:translate3d(13px,4px,0) rotate(-3deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieNameReveal{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:900px){
  .cookie-showcase{
    top:13vh;
    width:96vw;
    gap:6px;
    padding-left:4px;
    padding-right:4px;
  }
  .cookie-art{max-height:25vh}
  .cookie-product h2{font-size:11px;max-width:125px}
}


/* Cookie row polish v2 — equal hierarchy, smoother motion, higher composition. */
@font-face{
  font-family:'CookieRom';
  src:url('./assets/fonts/ABCROM-Regular.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'CookieRom';
  src:url('./assets/fonts/ABCROM-Bold.woff2') format('woff2');
  font-weight:700 900;
  font-style:normal;
  font-display:swap;
}

.cookie-showcase{
  top:7vh;
  height:67vh;
  width:min(96vw,1460px);
  gap:clamp(12px,1.45vw,24px);
  padding:0 clamp(4px,.8vw,12px) 7vh;
}
.cookie-product{
  margin-bottom:0!important;
}
.cookie-art,
.cookie-red .cookie-art{
  width:min(100%,264px);
  max-height:37vh;
}
.cookie-product h2{
  margin:14px 0 0;
  width:100%;
  max-width:230px;
  min-height:44px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  font-family:'CookieRom',Arial,sans-serif;
  font-size:clamp(15px,1.18vw,19px);
  line-height:1.02;
  font-weight:800;
  letter-spacing:-.035em;
  color:#2c1712;
  text-align:center;
  text-wrap:balance;
}
.cookie-product h2::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-9px;
  width:34px;
  height:3px;
  border-radius:999px;
  background:#e90b36;
  transform:translateX(-50%) scaleX(.35);
  opacity:0;
}
body.cookies-enter .cookie-product h2::after{
  animation:cookieNameUnderline .46s ease-out 2.38s forwards;
}

/* slower, weighted, continuous paths — no snap-step motion */
body.cookies-enter .cookie-classic{
  animation:cookieClassicFallV2 2.25s cubic-bezier(.18,.72,.2,1) 0s forwards;
}
body.cookies-enter .cookie-caramel{
  animation:cookieCaramelFallV2 2.22s cubic-bezier(.18,.72,.2,1) .10s forwards;
}
body.cookies-enter .cookie-triple{
  animation:cookieTripleFallV2 2.16s cubic-bezier(.18,.72,.2,1) .18s forwards;
}
body.cookies-enter .cookie-marshmallow{
  animation:cookieMarshmallowFallV2 2.12s cubic-bezier(.18,.72,.2,1) .26s forwards;
}
body.cookies-enter .cookie-red{
  animation:cookieRedFallV2 2.08s cubic-bezier(.18,.72,.2,1) .34s forwards;
}

body.cookies-enter .cookie-classic h2{animation:cookieNameRevealV2 .55s cubic-bezier(.16,.84,.32,1) 2.28s forwards}
body.cookies-enter .cookie-triple h2{animation:cookieNameRevealV2 .55s cubic-bezier(.16,.84,.32,1) 2.38s forwards}
body.cookies-enter .cookie-red h2{animation:cookieNameRevealV2 .55s cubic-bezier(.16,.84,.32,1) 2.46s forwards}
body.cookies-enter .cookie-marshmallow h2{animation:cookieNameRevealV2 .55s cubic-bezier(.16,.84,.32,1) 2.42s forwards}
body.cookies-enter .cookie-caramel h2{animation:cookieNameRevealV2 .55s cubic-bezier(.16,.84,.32,1) 2.38s forwards}

@keyframes cookieClassicFallV2{
  0%{opacity:0;transform:translate3d(-70px,-112vh,0) rotate(-70deg) scale(.94)}
  7%{opacity:1}
  48%{transform:translate3d(-105px,-5px,0) rotate(10deg) scale(1.01)}
  61%{transform:translate3d(-145px,8px,0) rotate(17deg) scale(1)}
  74%{transform:translate3d(28px,-10px,0) rotate(-6deg) scale(1)}
  88%{transform:translate3d(-8px,3px,0) rotate(1.8deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieTripleFallV2{
  0%{opacity:0;transform:translate3d(24px,-118vh,0) rotate(62deg) scale(.94)}
  8%{opacity:1}
  55%{transform:translate3d(-14px,15px,0) rotate(-10deg) scale(1.01)}
  69%{transform:translate3d(9px,-8px,0) rotate(4deg) scale(1)}
  86%{transform:translate3d(-3px,2px,0) rotate(-1deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieRedFallV2{
  0%{opacity:0;transform:translate3d(0,-122vh,0) rotate(-48deg) scale(.94)}
  8%{opacity:1}
  56%{transform:translate3d(0,14px,0) rotate(8deg) scale(1.01)}
  71%{transform:translate3d(0,-9px,0) rotate(-3deg) scale(1)}
  87%{transform:translate3d(0,3px,0) rotate(1deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieMarshmallowFallV2{
  0%{opacity:0;transform:translate3d(-26px,-116vh,0) rotate(-58deg) scale(.94)}
  8%{opacity:1}
  52%{transform:translate3d(36px,12px,0) rotate(12deg) scale(1.01)}
  68%{transform:translate3d(19px,-7px,0) rotate(6deg) scale(1)}
  84%{transform:translate3d(-8px,3px,0) rotate(-2.5deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieCaramelFallV2{
  0%{opacity:0;transform:translate3d(76px,-114vh,0) rotate(76deg) scale(.94)}
  7%{opacity:1}
  48%{transform:translate3d(104px,-4px,0) rotate(-11deg) scale(1.01)}
  61%{transform:translate3d(144px,8px,0) rotate(-18deg) scale(1)}
  74%{transform:translate3d(-30px,-10px,0) rotate(7deg) scale(1)}
  88%{transform:translate3d(9px,3px,0) rotate(-2deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieNameRevealV2{
  0%{opacity:0;transform:translateY(15px) scale(.985)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes cookieNameUnderline{
  from{opacity:0;transform:translateX(-50%) scaleX(.35)}
  to{opacity:.9;transform:translateX(-50%) scaleX(1)}
}

@media(max-width:900px){
  .cookie-showcase{top:6vh;height:69vh}
  .cookie-art,.cookie-red .cookie-art{width:min(100%,210px);max-height:31vh}
  .cookie-product h2{font-size:12px;max-width:145px;min-height:38px}
}


/* Brand art accents from the approved CookieLuv identity pack. */
.brand-sticker{
  position:absolute;
  z-index:2;
  opacity:0;
  pointer-events:none;
  filter:drop-shadow(0 10px 16px rgba(125,17,35,.08));
}
.brand-sticker img{display:block;width:100%;height:auto}
.sticker-artesanais{
  left:5vw;
  top:14vh;
  width:clamp(120px,10.5vw,172px);
  transform:rotate(-5deg) translateY(8px) scale(.96);
}
.sticker-derrete{
  right:5vw;
  top:15vh;
  width:clamp(130px,11.5vw,188px);
  transform:rotate(4deg) translateY(8px) scale(.96);
}
body.cookies-enter .sticker-artesanais{
  animation:brandStickerIn .65s cubic-bezier(.16,.84,.32,1) 2.75s forwards;
}
body.cookies-enter .sticker-derrete{
  animation:brandStickerInRight .65s cubic-bezier(.16,.84,.32,1) 2.88s forwards;
}
@keyframes brandStickerIn{
  to{opacity:.92;transform:rotate(-5deg) translateY(0) scale(1)}
}
@keyframes brandStickerInRight{
  to{opacity:.92;transform:rotate(4deg) translateY(0) scale(1)}
}
@media(max-width:900px){
  .brand-sticker{display:none}
}

/* Premium cookie product system v4 — approved intro untouched. */

/* Retire the loose branding stickers from the live composition. */
.brand-sticker{display:none!important}

/* Product row remains equal-weight and aligned. */
.cookie-showcase{
  top:5.3vh;
  height:66vh;
  width:min(96vw,1480px);
  gap:clamp(12px,1.35vw,23px);
  padding:0 clamp(5px,.7vw,10px) 5.5vh;
  pointer-events:none;
}
body.cookies-enter .cookie-showcase{pointer-events:auto}

.cookie-product{
  margin-bottom:0!important;
  cursor:pointer;
  outline:none;
}
.cookie-art,
.cookie-red .cookie-art{
  width:min(100%,264px);
  max-height:37vh;
  transform:translateZ(0) scale(1);
  transform-origin:50% 62%;
  transition:
    transform .48s cubic-bezier(.16,.84,.28,1),
    filter .48s ease;
  filter:drop-shadow(0 16px 18px rgba(104,18,31,.12));
}
.cookie-product:hover .cookie-art,
.cookie-product:focus-visible .cookie-art{
  transform:translateY(-12px) scale(1.105) rotate(-1.4deg);
  filter:drop-shadow(0 24px 25px rgba(104,18,31,.20));
}
.cookie-product:nth-child(even):hover .cookie-art,
.cookie-product:nth-child(even):focus-visible .cookie-art{
  transform:translateY(-12px) scale(1.105) rotate(1.4deg);
}

/* Brand-label treatment inspired by the approved CookieLuv badge language. */
.cookie-label{
  position:relative;
  width:min(100%,230px);
  min-height:92px;
  margin-top:10px;
  padding:12px 14px 10px;
  border:3px solid var(--red);
  border-radius:18px;
  background:rgba(255,248,234,.93);
  box-shadow:
    0 0 0 4px rgba(255,248,234,.96),
    0 0 0 6px rgba(239,0,54,.72),
    0 12px 24px rgba(120,25,37,.07);
  opacity:0;
  transform:translateY(15px) scale(.975) rotate(var(--label-tilt,0deg));
  transition:
    transform .42s cubic-bezier(.16,.84,.28,1),
    box-shadow .42s ease,
    background .42s ease;
}
.cookie-product:nth-child(1){--label-tilt:-1.1deg}
.cookie-product:nth-child(2){--label-tilt:.7deg}
.cookie-product:nth-child(3){--label-tilt:-.45deg}
.cookie-product:nth-child(4){--label-tilt:.8deg}
.cookie-product:nth-child(5){--label-tilt:-.9deg}

.cookie-product:hover .cookie-label,
.cookie-product:focus-visible .cookie-label{
  transform:translateY(8px) scale(1.025) rotate(0deg);
  box-shadow:
    0 0 0 4px rgba(255,248,234,.99),
    0 0 0 6px rgba(239,0,54,.88),
    0 16px 30px rgba(120,25,37,.12);
  background:#fffaf0;
}

.cookie-label h2{
  position:relative;
  margin:0!important;
  width:100%;
  max-width:none!important;
  min-height:0!important;
  display:block!important;
  font-family:'CookieRom',Arial,sans-serif!important;
  font-size:clamp(14px,1.07vw,17px)!important;
  line-height:1.04!important;
  font-weight:900!important;
  letter-spacing:-.035em!important;
  color:var(--red-deep)!important;
  text-align:center!important;
  text-wrap:balance;
  opacity:1!important;
  transform:none!important;
  animation:none!important;
}
.cookie-label h2::after{display:none!important}

.cookie-qty{
  margin:10px auto 0;
  width:112px;
  height:32px;
  display:grid;
  grid-template-columns:32px 1fr 32px;
  align-items:center;
  border:1.5px solid rgba(217,0,41,.52);
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.38);
}
.qty-btn{
  width:32px;
  height:32px;
  border:0;
  background:transparent;
  color:var(--red-deep);
  font:800 19px/1 Arial,sans-serif;
  cursor:pointer;
  transition:background .2s ease,transform .2s ease,opacity .2s ease;
}
.qty-btn:hover:not(:disabled){
  background:rgba(239,0,54,.10);
  transform:scale(1.12);
}
.qty-btn:active:not(:disabled){transform:scale(.92)}
.qty-btn:disabled{opacity:.28;cursor:default}
.qty-value{
  font-family:'CookieRom',Arial,sans-serif;
  font-size:13px;
  font-weight:900;
  color:#3c1815;
  text-align:center;
}

/* Labels reveal only after their cookie has settled. */
body.cookies-enter .cookie-classic .cookie-label{animation:cookieLabelReveal .58s cubic-bezier(.16,.84,.28,1) 2.56s forwards}
body.cookies-enter .cookie-triple .cookie-label{animation:cookieLabelReveal .58s cubic-bezier(.16,.84,.28,1) 2.68s forwards}
body.cookies-enter .cookie-red .cookie-label{animation:cookieLabelReveal .58s cubic-bezier(.16,.84,.28,1) 2.78s forwards}
body.cookies-enter .cookie-marshmallow .cookie-label{animation:cookieLabelReveal .58s cubic-bezier(.16,.84,.28,1) 2.72s forwards}
body.cookies-enter .cookie-caramel .cookie-label{animation:cookieLabelReveal .58s cubic-bezier(.16,.84,.28,1) 2.68s forwards}

@keyframes cookieLabelReveal{
  0%{opacity:0;transform:translateY(15px) scale(.975) rotate(var(--label-tilt,0deg))}
  100%{opacity:1;transform:translateY(0) scale(1) rotate(var(--label-tilt,0deg))}
}

/* Softer, longer, more continuous physical settle. */
body.cookies-enter .cookie-classic{
  animation:cookieClassicFallV3 2.55s linear 0s forwards;
}
body.cookies-enter .cookie-caramel{
  animation:cookieCaramelFallV3 2.52s linear .09s forwards;
}
body.cookies-enter .cookie-triple{
  animation:cookieTripleFallV3 2.46s linear .16s forwards;
}
body.cookies-enter .cookie-marshmallow{
  animation:cookieMarshmallowFallV3 2.42s linear .23s forwards;
}
body.cookies-enter .cookie-red{
  animation:cookieRedFallV3 2.38s linear .30s forwards;
}

@keyframes cookieClassicFallV3{
  0%{opacity:0;transform:translate3d(-65px,-115vh,0) rotate(-64deg) scale(.95);animation-timing-function:cubic-bezier(.12,.55,.22,.98)}
  8%{opacity:1}
  54%{transform:translate3d(-116px,-4px,0) rotate(9deg) scale(1.008);animation-timing-function:cubic-bezier(.28,.04,.36,1)}
  67%{transform:translate3d(-148px,5px,0) rotate(13deg) scale(1);animation-timing-function:cubic-bezier(.22,.7,.25,1)}
  79%{transform:translate3d(24px,-8px,0) rotate(-4.5deg) scale(1);animation-timing-function:cubic-bezier(.2,.75,.27,1)}
  90%{transform:translate3d(-7px,2px,0) rotate(1.3deg) scale(1);animation-timing-function:cubic-bezier(.2,.8,.25,1)}
  96%{transform:translate3d(2px,-1px,0) rotate(-.4deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieTripleFallV3{
  0%{opacity:0;transform:translate3d(20px,-118vh,0) rotate(54deg) scale(.95);animation-timing-function:cubic-bezier(.12,.55,.22,.98)}
  8%{opacity:1}
  60%{transform:translate3d(-12px,12px,0) rotate(-7deg) scale(1.006);animation-timing-function:cubic-bezier(.22,.72,.25,1)}
  75%{transform:translate3d(7px,-6px,0) rotate(2.7deg) scale(1);animation-timing-function:cubic-bezier(.2,.78,.25,1)}
  89%{transform:translate3d(-2px,2px,0) rotate(-.8deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieRedFallV3{
  0%{opacity:0;transform:translate3d(0,-121vh,0) rotate(-42deg) scale(.95);animation-timing-function:cubic-bezier(.12,.55,.22,.98)}
  8%{opacity:1}
  60%{transform:translate3d(0,11px,0) rotate(6deg) scale(1.006);animation-timing-function:cubic-bezier(.22,.72,.25,1)}
  75%{transform:translate3d(0,-6px,0) rotate(-2.2deg) scale(1);animation-timing-function:cubic-bezier(.2,.78,.25,1)}
  89%{transform:translate3d(0,2px,0) rotate(.7deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieMarshmallowFallV3{
  0%{opacity:0;transform:translate3d(-24px,-117vh,0) rotate(-52deg) scale(.95);animation-timing-function:cubic-bezier(.12,.55,.22,.98)}
  8%{opacity:1}
  58%{transform:translate3d(32px,10px,0) rotate(8deg) scale(1.006);animation-timing-function:cubic-bezier(.22,.72,.25,1)}
  73%{transform:translate3d(15px,-6px,0) rotate(4deg) scale(1);animation-timing-function:cubic-bezier(.2,.78,.25,1)}
  87%{transform:translate3d(-6px,2px,0) rotate(-1.6deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes cookieCaramelFallV3{
  0%{opacity:0;transform:translate3d(68px,-115vh,0) rotate(68deg) scale(.95);animation-timing-function:cubic-bezier(.12,.55,.22,.98)}
  8%{opacity:1}
  54%{transform:translate3d(116px,-4px,0) rotate(-9deg) scale(1.008);animation-timing-function:cubic-bezier(.28,.04,.36,1)}
  67%{transform:translate3d(148px,5px,0) rotate(-13deg) scale(1);animation-timing-function:cubic-bezier(.22,.7,.25,1)}
  79%{transform:translate3d(-25px,-8px,0) rotate(4.7deg) scale(1);animation-timing-function:cubic-bezier(.2,.75,.27,1)}
  90%{transform:translate3d(7px,2px,0) rotate(-1.4deg) scale(1);animation-timing-function:cubic-bezier(.2,.8,.25,1)}
  96%{transform:translate3d(-2px,-1px,0) rotate(.4deg) scale(1)}
  100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
}

/* Premium micro-motion across the header controls. */
header img{
  cursor:pointer;
  transition:
    opacity .144s ease-out,
    transform .42s cubic-bezier(.16,.84,.28,1),
    filter .42s ease;
  transform-origin:50% 55%;
}
body.intro-logo-landed header img:hover{
  transform:translateY(-3px) rotate(-3deg) scale(1.085);
  filter:drop-shadow(0 8px 10px rgba(133,17,37,.13));
}
header nav span{
  position:relative;
  cursor:pointer;
  transition:transform .28s ease,color .28s ease;
}
header nav span::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-5px;
  width:0;
  height:2px;
  border-radius:999px;
  background:var(--red);
  transform:translateX(-50%);
  transition:width .28s cubic-bezier(.16,.84,.28,1);
}
header nav span:hover{
  color:var(--red-deep);
  transform:translateY(-2px);
}
header nav span:hover::after{width:100%}
.mini{
  cursor:pointer;
  transition:
    transform .32s cubic-bezier(.16,.84,.28,1),
    background .32s ease,
    border-color .32s ease,
    box-shadow .32s ease;
}
.mini:hover{
  transform:translateY(-2px) scale(1.04);
  background:#fffaf0;
  border-color:rgba(217,0,41,.48);
  box-shadow:0 8px 18px rgba(105,26,34,.08);
}

@media(max-width:900px){
  .cookie-showcase{top:4.8vh;height:68vh}
  .cookie-art,.cookie-red .cookie-art{width:min(100%,218px);max-height:32vh}
  .cookie-label{max-width:156px;min-height:82px;padding:10px 9px 9px;border-radius:15px}
  .cookie-label h2{font-size:11px!important}
  .cookie-qty{width:96px;height:28px;grid-template-columns:28px 1fr 28px}
  .qty-btn{width:28px;height:28px;font-size:17px}
}
/* Motion-only header elements are not presented as active controls yet. */
header img, header nav span, .mini{cursor:default}

/* Equal CookieLuv product labels v5 — straight, same dimensions, aligned. */
.cookie-label{
  width:230px!important;
  height:94px!important;
  min-height:94px!important;
  max-width:230px!important;
  margin-top:10px!important;
  padding:11px 13px 9px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:space-between!important;
  transform:translateY(15px) scale(.975) rotate(0deg)!important;
}
.cookie-product:hover .cookie-label,
.cookie-product:focus-visible .cookie-label{
  transform:translateY(8px) scale(1.025) rotate(0deg)!important;
}
.cookie-label h2{
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  line-height:1.02!important;
}
.cookie-qty{
  margin:0 auto!important;
  flex:0 0 auto;
}
body.cookies-enter .cookie-product .cookie-label{
  animation-name:cookieLabelRevealStraight!important;
}
@keyframes cookieLabelRevealStraight{
  0%{opacity:0;transform:translateY(15px) scale(.975) rotate(0deg)}
  100%{opacity:1;transform:translateY(0) scale(1) rotate(0deg)}
}
@media(max-width:900px){
  .cookie-label{
    width:156px!important;
    height:82px!important;
    min-height:82px!important;
    max-width:156px!important;
    padding:9px 8px 8px!important;
  }
  .cookie-label h2{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
  }
}

/* Comet + living-cookie polish v6. */
.seedance-mascot-stage.intro-behind-cookies{
  z-index:3;
}
.cookie-showcase{
  z-index:4;
}

/* Independent idle float layer. The product/label never moves with hover. */
.cookie-float{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translate3d(0,0,0);
  will-change:transform;
}
.cookie-float::after{
  content:'';
  position:absolute;
  z-index:-1;
  left:50%;
  bottom:3%;
  width:66%;
  height:14%;
  border-radius:50%;
  background:rgba(98,27,35,.18);
  filter:blur(15px);
  transform:translateX(-50%) scaleX(.92);
  opacity:.50;
  transition:
    opacity .44s ease,
    filter .44s ease,
    transform .44s cubic-bezier(.16,.84,.28,1);
  pointer-events:none;
}

body.cookies-enter .cookie-classic .cookie-float{
  animation:cookieFloatA 5.8s ease-in-out 2.72s infinite;
}
body.cookies-enter .cookie-triple .cookie-float{
  animation:cookieFloatB 6.35s ease-in-out 2.88s infinite;
}
body.cookies-enter .cookie-red .cookie-float{
  animation:cookieFloatC 5.45s ease-in-out 3.02s infinite;
}
body.cookies-enter .cookie-marshmallow .cookie-float{
  animation:cookieFloatD 6.7s ease-in-out 2.94s infinite;
}
body.cookies-enter .cookie-caramel .cookie-float{
  animation:cookieFloatE 5.95s ease-in-out 2.82s infinite;
}

@keyframes cookieFloatA{
  0%,100%{transform:translate3d(0,0,0) rotate(0deg)}
  50%{transform:translate3d(0,-5px,0) rotate(-.65deg)}
}
@keyframes cookieFloatB{
  0%,100%{transform:translate3d(0,-1px,0) rotate(.2deg)}
  50%{transform:translate3d(0,4px,0) rotate(.72deg)}
}
@keyframes cookieFloatC{
  0%,100%{transform:translate3d(0,1px,0) rotate(-.15deg)}
  50%{transform:translate3d(0,-4px,0) rotate(.55deg)}
}
@keyframes cookieFloatD{
  0%,100%{transform:translate3d(0,-2px,0) rotate(.25deg)}
  50%{transform:translate3d(0,4px,0) rotate(-.72deg)}
}
@keyframes cookieFloatE{
  0%,100%{transform:translate3d(0,0,0) rotate(-.2deg)}
  50%{transform:translate3d(0,-6px,0) rotate(.68deg)}
}

/* Only the cookie enlarges on hover/focus. Labels remain planted. */
.cookie-product:hover,
.cookie-product:focus-within{
  z-index:12;
}
.cookie-art,
.cookie-red .cookie-art{
  transform:translate3d(0,0,0) scale(1) rotate(0deg);
  transition:
    transform .46s cubic-bezier(.16,.84,.28,1),
    filter .46s ease;
  filter:drop-shadow(0 18px 20px rgba(92,22,31,.16));
}
.cookie-product:hover .cookie-art,
.cookie-product:focus-visible .cookie-art{
  transform:translate3d(0,-14px,0) scale(1.22) rotate(-1deg);
  filter:drop-shadow(0 29px 28px rgba(92,22,31,.24));
}
.cookie-product:nth-child(even):hover .cookie-art,
.cookie-product:nth-child(even):focus-visible .cookie-art{
  transform:translate3d(0,-14px,0) scale(1.22) rotate(1deg);
}
.cookie-product:hover .cookie-float::after,
.cookie-product:focus-visible .cookie-float::after{
  opacity:.64;
  filter:blur(19px);
  transform:translateX(-50%) scaleX(1.18);
}

/* Labels are stable physical objects: shadow only, no hover translation or scaling. */
.cookie-label,
.cookie-product:hover .cookie-label,
.cookie-product:focus-visible .cookie-label,
.cookie-product:focus-within .cookie-label{
  width:230px!important;
  height:94px!important;
  min-height:94px!important;
  max-width:230px!important;
  transform:translateY(0) scale(1) rotate(0deg)!important;
  background:rgba(255,248,234,.96)!important;
  box-shadow:
    0 0 0 4px rgba(255,248,234,.98),
    0 0 0 6px rgba(239,0,54,.74),
    0 12px 20px rgba(94,20,30,.12),
    0 3px 7px rgba(94,20,30,.08)!important;
  transition:box-shadow .35s ease!important;
}

/* Preserve the reveal itself, then leave the label fixed. */
body.cookies-enter .cookie-product .cookie-label{
  animation-name:cookieLabelRevealFixed!important;
}
@keyframes cookieLabelRevealFixed{
  0%{opacity:0;transform:translateY(12px) scale(.985) rotate(0deg)}
  100%{opacity:1;transform:translateY(0) scale(1) rotate(0deg)}
}

@media(max-width:900px){
  .cookie-label,
  .cookie-product:hover .cookie-label,
  .cookie-product:focus-visible .cookie-label,
  .cookie-product:focus-within .cookie-label{
    width:156px!important;
    height:82px!important;
    min-height:82px!important;
    max-width:156px!important;
  }
  .cookie-product:hover .cookie-art,
  .cookie-product:focus-visible .cookie-art,
  .cookie-product:nth-child(even):hover .cookie-art,
  .cookie-product:nth-child(even):focus-visible .cookie-art{
    transform:translate3d(0,-9px,0) scale(1.16) rotate(0deg);
  }
}

@media(prefers-reduced-motion:reduce){
  .cookie-float{animation:none!important}
}

/* Physical depth v7 — grounded product-lighting reference.
   Reference lock: Hartzler-style product photography depth:
   clear contact shadow, broad ambient falloff, restrained edge light.
   Cookie stays above the fixed label at all times. */

.cookie-product{
  isolation:isolate;
  overflow:visible;
}

/* Ground/contact shadow stays on the page while the cookie itself floats. */
.cookie-product::before{
  content:'';
  position:absolute;
  z-index:0;
  left:50%;
  bottom:101px;
  width:74%;
  height:30px;
  border-radius:50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(76,24,27,.32) 0%,
      rgba(92,28,32,.22) 30%,
      rgba(111,39,45,.10) 52%,
      rgba(111,39,45,0) 76%
    );
  filter:blur(7px);
  opacity:.72;
  transform:translateX(-50%) scaleX(.92);
  transform-origin:center;
  pointer-events:none;
  transition:
    transform .46s cubic-bezier(.16,.84,.28,1),
    opacity .46s ease,
    filter .46s ease;
}

/* The moving cookie layer must always paint above its label. */
.cookie-float{
  z-index:4;
  overflow:visible;
  isolation:isolate;
}
.cookie-label{
  z-index:1;
}

/* Remove the old shadow that travelled with the cookie. */
.cookie-float::after{
  content:none!important;
}

/* Soft two-sided studio light separation, intentionally subtle. */
.cookie-float::before{
  content:'';
  position:absolute;
  z-index:0;
  left:50%;
  top:48%;
  width:112%;
  height:108%;
  border-radius:50%;
  background:
    radial-gradient(ellipse at 20% 48%,rgba(255,255,255,.27) 0%,rgba(255,255,255,.10) 21%,transparent 45%),
    radial-gradient(ellipse at 80% 52%,rgba(255,247,226,.22) 0%,rgba(255,247,226,.08) 22%,transparent 46%);
  filter:blur(12px);
  opacity:.42;
  transform:translate(-50%,-50%);
  pointer-events:none;
}

/* Realistic layered cookie depth: small contact depth + broad cast shadow + edge separation. */
.cookie-art,
.cookie-red .cookie-art{
  position:relative;
  z-index:5;
  filter:
    drop-shadow(0 5px 5px rgba(55,19,18,.10))
    drop-shadow(0 17px 16px rgba(76,23,29,.16))
    drop-shadow(-1px 0 1px rgba(255,255,255,.24))
    drop-shadow(1px 0 1px rgba(255,244,218,.16));
}

/* Idle float and its physically related ground-shadow breathing. */
body.cookies-enter .cookie-classic::before{
  animation:cookieShadowLift 5.8s ease-in-out 2.72s infinite;
}
body.cookies-enter .cookie-triple::before{
  animation:cookieShadowSink 6.35s ease-in-out 2.88s infinite;
}
body.cookies-enter .cookie-red::before{
  animation:cookieShadowLift 5.45s ease-in-out 3.02s infinite;
}
body.cookies-enter .cookie-marshmallow::before{
  animation:cookieShadowSink 6.7s ease-in-out 2.94s infinite;
}
body.cookies-enter .cookie-caramel::before{
  animation:cookieShadowLift 5.95s ease-in-out 2.82s infinite;
}

@keyframes cookieShadowLift{
  0%,100%{
    transform:translateX(-50%) scaleX(.92);
    opacity:.72;
    filter:blur(7px);
  }
  50%{
    transform:translateX(-50%) scaleX(1.10);
    opacity:.48;
    filter:blur(10px);
  }
}
@keyframes cookieShadowSink{
  0%,100%{
    transform:translateX(-50%) scaleX(1.04);
    opacity:.56;
    filter:blur(9px);
  }
  50%{
    transform:translateX(-50%) scaleX(.90);
    opacity:.76;
    filter:blur(6px);
  }
}

/* Hover = cookie lifts toward you; label stays planted beneath it. */
.cookie-product:hover,
.cookie-product:focus-within{
  z-index:30;
}
.cookie-product:hover .cookie-float,
.cookie-product:focus-visible .cookie-float{
  z-index:30;
}
.cookie-product:hover .cookie-art,
.cookie-product:focus-visible .cookie-art{
  transform:translate3d(0,-9px,0) scale(1.22) rotate(-.8deg);
  filter:
    drop-shadow(0 7px 7px rgba(55,19,18,.08))
    drop-shadow(0 29px 24px rgba(76,23,29,.20))
    drop-shadow(-1px 0 1px rgba(255,255,255,.30))
    drop-shadow(1px 0 1px rgba(255,244,218,.20));
}
.cookie-product:nth-child(even):hover .cookie-art,
.cookie-product:nth-child(even):focus-visible .cookie-art{
  transform:translate3d(0,-9px,0) scale(1.22) rotate(.8deg);
}

/* Hover shadow gets broader and lighter as the cookie lifts. */
.cookie-product:hover::before,
.cookie-product:focus-within::before{
  animation:none!important;
  transform:translateX(-50%) scaleX(1.22)!important;
  opacity:.42!important;
  filter:blur(12px)!important;
}

/* Fixed label: no hover movement, only a restrained print-card shadow. */
.cookie-label,
.cookie-product:hover .cookie-label,
.cookie-product:focus-visible .cookie-label,
.cookie-product:focus-within .cookie-label{
  z-index:1!important;
  transform:translateY(0) scale(1) rotate(0deg)!important;
  box-shadow:
    0 0 0 4px rgba(255,248,234,.98),
    0 0 0 6px rgba(239,0,54,.74),
    0 9px 12px rgba(73,20,25,.11),
    0 20px 30px rgba(73,20,25,.08)!important;
}

@media(max-width:900px){
  .cookie-product::before{bottom:89px;height:24px}
  .cookie-product:hover .cookie-art,
  .cookie-product:focus-visible .cookie-art,
  .cookie-product:nth-child(even):hover .cookie-art,
  .cookie-product:nth-child(even):focus-visible .cookie-art{
    transform:translate3d(0,-6px,0) scale(1.16) rotate(0deg);
  }
}

/* Mascot B cameo v8 — user-approved source clip, 25s page-time entrance. */
.mascot-b-stage{
  position:fixed;
  z-index:8;
  left:0;
  bottom:-6px;
  width:min(512px,46vw); /* 60% smaller than the 1280px source canvas. */
  aspect-ratio:16/9;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transform-origin:center bottom;
  will-change:transform,opacity;
  transition:opacity 120ms ease-out;
}
.mascot-b-frame{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  image-rendering:auto;
  filter:
    drop-shadow(0 5px 5px rgba(74,20,27,.10))
    drop-shadow(0 15px 14px rgba(74,20,27,.16));
  user-select:none;
  -webkit-user-drag:none;
}

/* Same white-cookie-dust language used by the approved intro landing. */
.mascot-b-dust{
  position:fixed;
  left:84px;
  bottom:92px;
  width:1px;
  height:1px;
  z-index:10;
  pointer-events:none;
  opacity:0;
}
.mascot-b-dust::before,
.mascot-b-dust::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  border-radius:50%;
  background:#fffdf7;
  filter:drop-shadow(0 1px 1px rgba(190,55,70,.16));
  box-shadow:
    -26px -5px 0 -1px rgba(255,253,247,.98),
    -20px 15px 0 -2px rgba(255,253,247,.92),
    18px -16px 0 -2px rgba(255,253,247,.96),
    27px 5px 0 -1px rgba(255,253,247,.90),
    7px 24px 0 -3px rgba(255,253,247,.88),
    -7px -25px 0 -3px rgba(255,253,247,.90),
    34px -11px 0 -3px rgba(255,253,247,.74),
    -34px 11px 0 -3px rgba(255,253,247,.74),
    17px 25px 0 -4px rgba(255,253,247,.70),
    -17px -26px 0 -4px rgba(255,253,247,.72);
  transform:translate(-50%,-50%) scale(.18);
}
.mascot-b-dust::before{width:11px;height:11px}
.mascot-b-dust::after{width:8px;height:8px}
.mascot-b-dust.burst{animation:dustBurstFade .656s ease-out both}
.mascot-b-dust.burst::before{animation:dustBurstA .656s cubic-bezier(.14,.82,.27,1) both}
.mascot-b-dust.burst::after{animation:dustBurstB .736s cubic-bezier(.14,.82,.27,1) both}

@media(max-width:900px){
  .mascot-b-stage{width:min(512px,62vw);bottom:-3px}
  .mascot-b-dust{left:62px;bottom:76px}
}
@media(prefers-reduced-motion:reduce){
  .mascot-b-stage,.mascot-b-dust{display:none!important}
}

/* Mascot B correction v9 — source video motion only. */
.mascot-b-stage{
  left:50%!important;
  bottom:-11px!important;
  transform:translateX(-50%)!important;
  transform-origin:center bottom!important;
  width:min(512px,46vw)!important;
}

/* Animated branded cartoon explosion at the mascot's natural final position. */
.mascot-b-dust{
  left:var(--blast-x,50vw)!important;
  top:var(--blast-y,86vh)!important;
  bottom:auto!important;
  z-index:20!important;
  width:1px;
  height:1px;
  overflow:visible;
  opacity:0;
}
.mascot-b-dust::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:86px!important;
  height:86px!important;
  border-radius:50%;
  background:
    radial-gradient(circle,
      #fffdf7 0 16%,
      #ffd99c 17% 28%,
      #ff866f 29% 42%,
      #ef0036 43% 56%,
      rgba(239,0,54,.18) 57% 68%,
      transparent 69%);
  box-shadow:none!important;
  filter:drop-shadow(0 8px 14px rgba(129,22,35,.18))!important;
  opacity:0;
  transform:translate(-50%,-50%) scale(.05);
}
.mascot-b-dust::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:42px!important;
  height:42px!important;
  border-radius:50%;
  border:7px solid rgba(255,253,247,.98);
  box-shadow:
    0 0 0 5px rgba(239,0,54,.72),
    0 0 0 12px rgba(255,179,95,.28)!important;
  background:transparent!important;
  filter:none!important;
  opacity:0;
  transform:translate(-50%,-50%) scale(.1);
}
.mascot-b-dust.burst{
  opacity:1!important;
  animation:none!important;
}
.mascot-b-dust.burst::before{
  animation:mascotBPop .62s cubic-bezier(.12,.82,.23,1) both!important;
}
.mascot-b-dust.burst::after{
  animation:mascotBRing .74s cubic-bezier(.12,.82,.23,1) both!important;
}
.mascot-b-particle{
  position:absolute;
  left:0;
  top:0;
  width:var(--ps);
  height:var(--ps);
  margin-left:calc(var(--ps) / -2);
  margin-top:calc(var(--ps) / -2);
  border-radius:48% 52% 56% 44%;
  background:var(--pc);
  box-shadow:0 3px 8px rgba(111,22,31,.12);
  opacity:0;
  transform:translate3d(0,0,0) scale(.25) rotate(0deg);
}
.mascot-b-dust.burst .mascot-b-particle{
  animation:mascotBParticle .68s cubic-bezier(.1,.72,.22,1) var(--pd) both;
}
@keyframes mascotBPop{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.05) rotate(-8deg)}
  18%{opacity:1;transform:translate(-50%,-50%) scale(.72) rotate(3deg)}
  48%{opacity:1;transform:translate(-50%,-50%) scale(1.36) rotate(-2deg)}
  72%{opacity:.72;transform:translate(-50%,-50%) scale(1.58) rotate(2deg)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(1.82) rotate(5deg)}
}
@keyframes mascotBRing{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}
  22%{opacity:1;transform:translate(-50%,-50%) scale(.55)}
  68%{opacity:.62;transform:translate(-50%,-50%) scale(2.28)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(3.18)}
}
@keyframes mascotBParticle{
  0%{opacity:0;transform:translate3d(0,0,0) scale(.25) rotate(0deg)}
  12%{opacity:1}
  72%{opacity:.96;transform:translate3d(calc(var(--dx) * .78),calc(var(--dy) * .78),0) scale(1) rotate(calc(var(--pr) * .72))}
  100%{opacity:0;transform:translate3d(var(--dx),var(--dy),0) scale(.55) rotate(var(--pr))}
}

@media(max-width:900px){
  .mascot-b-stage{
    left:50%!important;
    width:min(512px,62vw)!important;
    bottom:-9px!important;
  }
}

/* Mascot B explosion v10 — stronger cartoon blast, no extra mascot movement. */
.mascot-b-dust::before{
  width:112px!important;
  height:112px!important;
  border-radius:0!important;
  clip-path:polygon(
    50% 0%,61% 25%,82% 7%,78% 34%,100% 31%,
    82% 50%,100% 68%,74% 65%,82% 93%,59% 74%,
    50% 100%,41% 74%,18% 93%,26% 64%,0 68%,
    18% 49%,0 31%,23% 34%,18% 7%,39% 25%
  );
  background:
    conic-gradient(
      from -8deg,
      #fff8ea 0 8%,
      #ffb35f 8% 18%,
      #ef0036 18% 30%,
      #fffdf7 30% 40%,
      #ff7b74 40% 52%,
      #ef0036 52% 66%,
      #ffd99c 66% 78%,
      #ef0036 78% 90%,
      #fff8ea 90% 100%
    )!important;
  filter:
    drop-shadow(0 0 0 rgba(239,0,54,.42))
    drop-shadow(0 10px 15px rgba(129,22,35,.20))!important;
}
.mascot-b-dust::after{
  width:64px!important;
  height:64px!important;
  border:8px solid #fff8ea!important;
  background:#ffb35f!important;
  box-shadow:
    0 0 0 7px #ef0036,
    inset 0 0 0 9px #fffdf7,
    0 9px 18px rgba(125,18,33,.17)!important;
}
@keyframes mascotBPop{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.03) rotate(-20deg)}
  10%{opacity:1;transform:translate(-50%,-50%) scale(.48) rotate(4deg)}
  28%{opacity:1;transform:translate(-50%,-50%) scale(1.28) rotate(-5deg)}
  48%{opacity:1;transform:translate(-50%,-50%) scale(1.62) rotate(4deg)}
  70%{opacity:.88;transform:translate(-50%,-50%) scale(1.84) rotate(-2deg)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(2.12) rotate(8deg)}
}
@keyframes mascotBRing{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.04)}
  14%{opacity:1;transform:translate(-50%,-50%) scale(.65)}
  44%{opacity:1;transform:translate(-50%,-50%) scale(1.28)}
  72%{opacity:.72;transform:translate(-50%,-50%) scale(2.12)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(3.25)}
}
.mascot-b-dust.burst::before{
  animation:mascotBPop .70s cubic-bezier(.1,.78,.18,1) both!important;
}
.mascot-b-dust.burst::after{
  animation:mascotBRing .82s cubic-bezier(.1,.78,.18,1) .03s both!important;
}
.mascot-b-dust.burst .mascot-b-particle{
  animation-duration:.82s!important;
}

/* Mascot B explosion v11 — cartoon poof/cloud instead of a target-like ring. */
.mascot-b-dust::after{
  width:28px!important;
  height:28px!important;
  border:0!important;
  border-radius:50%!important;
  background:#fffdf7!important;
  box-shadow:
    -48px -8px 0 7px #fff8ea,
    -31px -36px 0 5px #ffd99c,
    3px -45px 0 9px #fffdf7,
    38px -31px 0 5px #ffb35f,
    51px 1px 0 8px #fff8ea,
    38px 34px 0 6px #ff7b74,
    7px 46px 0 10px #fffdf7,
    -29px 39px 0 6px #ffb35f,
    -52px 20px 0 8px #fff8ea!important;
  filter:drop-shadow(0 6px 7px rgba(133,20,35,.18))!important;
}
.mascot-b-dust.burst::after{
  animation:mascotBCloud .76s cubic-bezier(.1,.78,.18,1) .02s both!important;
}
@keyframes mascotBCloud{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.08) rotate(-9deg)}
  15%{opacity:1;transform:translate(-50%,-50%) scale(.58) rotate(3deg)}
  38%{opacity:1;transform:translate(-50%,-50%) scale(1.10) rotate(-2deg)}
  65%{opacity:.92;transform:translate(-50%,-50%) scale(1.38) rotate(2deg)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(1.64) rotate(7deg)}
}


/* Mascot B literal-source lock v12.
   No website-authored travel/scale/trajectory. The source clip is the only motion. */
.mascot-b-stage{
  left:50%!important;
  bottom:-14px!important;
  width:min(512px,46vw)!important;
  transform:translateX(-50%)!important;
  transform-origin:center bottom!important;
  transition:opacity 90ms ease-out!important;
  will-change:opacity!important;
}
.mascot-b-frame{
  filter:none!important;
  transform:none!important;
}

/* Keep the explosion white-led and cartoon-like, centered on the source final pose. */
.mascot-b-dust::before{
  background:
    conic-gradient(
      from -8deg,
      #fffdf7 0 12%,
      #fff8ea 12% 24%,
      #ffd99c 24% 32%,
      #fffdf7 32% 46%,
      #ffb35f 46% 54%,
      #fff8ea 54% 68%,
      #ef0036 68% 74%,
      #fffdf7 74% 90%,
      #fff8ea 90% 100%
    )!important;
}
.mascot-b-dust::after{
  background:#fffdf7!important;
  box-shadow:
    -52px -7px 0 8px #fffdf7,
    -34px -39px 0 7px #fff8ea,
    2px -49px 0 10px #fffdf7,
    40px -34px 0 6px #ffd99c,
    55px 1px 0 9px #fffdf7,
    40px 37px 0 7px #fff8ea,
    5px 50px 0 11px #fffdf7,
    -32px 42px 0 7px #ffb35f,
    -56px 21px 0 9px #fffdf7!important;
}
@media(max-width:900px){
  .mascot-b-stage{
    bottom:-12px!important;
  }
}

/* v13 — Mascot source canvas starts at the viewport's left edge. */
.mascot-b-stage{
  left:0!important;
  bottom:-14px!important;
  transform:none!important;
  width:min(512px,46vw)!important;
}
@media(max-width:900px){
  .mascot-b-stage{
    left:0!important;
    bottom:-12px!important;
    transform:none!important;
  }
}

/* v13 — branded labels emerge from behind each cookie.
   Cookie stays in front; label grows from tiny to its locked final size. */
.cookie-label{
  z-index:1!important;
  transform-origin:50% 0%!important;
}
.cookie-float{
  position:relative;
  z-index:4!important;
}

/* Replace every prior label reveal with the behind-cookie pop. */
body.cookies-enter .cookie-classic .cookie-label{
  animation:cookieLabelBehindPop .68s cubic-bezier(.16,.84,.24,1) 2.54s forwards!important;
}
body.cookies-enter .cookie-triple .cookie-label{
  animation:cookieLabelBehindPop .68s cubic-bezier(.16,.84,.24,1) 2.62s forwards!important;
}
body.cookies-enter .cookie-red .cookie-label{
  animation:cookieLabelBehindPop .68s cubic-bezier(.16,.84,.24,1) 2.70s forwards!important;
}
body.cookies-enter .cookie-marshmallow .cookie-label{
  animation:cookieLabelBehindPop .68s cubic-bezier(.16,.84,.24,1) 2.78s forwards!important;
}
body.cookies-enter .cookie-caramel .cookie-label{
  animation:cookieLabelBehindPop .68s cubic-bezier(.16,.84,.24,1) 2.86s forwards!important;
}

@keyframes cookieLabelBehindPop{
  0%{
    opacity:0;
    transform:translateY(-72px) scale(.08)!important;
  }
  45%{
    opacity:1;
    transform:translateY(-25px) scale(.56)!important;
  }
  70%{
    opacity:1;
    transform:translateY(2px) scale(1.055)!important;
  }
  84%{
    opacity:1;
    transform:translateY(-1px) scale(.985)!important;
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1)!important;
  }
}

/* Once revealed, hover/focus never moves or scales the label. */
.cookie-product:hover .cookie-label,
.cookie-product:focus-visible .cookie-label,
.cookie-product:focus-within .cookie-label{
  transform:translateY(0) scale(1) rotate(0deg)!important;
}

/* v13.1 — use independent translate/scale properties so older transform locks
   cannot block the behind-cookie label reveal. */
.cookie-label{
  transform:none!important;
  translate:0 -72px;
  scale:.08;
  opacity:0;
}
body.cookies-enter .cookie-classic .cookie-label{
  animation:cookieLabelBehindPopV2 .68s cubic-bezier(.16,.84,.24,1) 2.54s forwards!important;
}
body.cookies-enter .cookie-triple .cookie-label{
  animation:cookieLabelBehindPopV2 .68s cubic-bezier(.16,.84,.24,1) 2.62s forwards!important;
}
body.cookies-enter .cookie-red .cookie-label{
  animation:cookieLabelBehindPopV2 .68s cubic-bezier(.16,.84,.24,1) 2.70s forwards!important;
}
body.cookies-enter .cookie-marshmallow .cookie-label{
  animation:cookieLabelBehindPopV2 .68s cubic-bezier(.16,.84,.24,1) 2.78s forwards!important;
}
body.cookies-enter .cookie-caramel .cookie-label{
  animation:cookieLabelBehindPopV2 .68s cubic-bezier(.16,.84,.24,1) 2.86s forwards!important;
}
@keyframes cookieLabelBehindPopV2{
  0%{opacity:0;translate:0 -72px;scale:.08}
  44%{opacity:1;translate:0 -26px;scale:.56}
  70%{opacity:1;translate:0 2px;scale:1.055}
  84%{opacity:1;translate:0 -1px;scale:.985}
  100%{opacity:1;translate:0 0;scale:1}
}
.cookie-product:hover .cookie-label,
.cookie-product:focus-visible .cookie-label,
.cookie-product:focus-within .cookie-label{
  transform:none!important;
}

/* v14 — synchronized, isolated label reveal.
   All five labels start together only after the last cookie has settled. */
.cookie-label-reveal{
  position:relative;
  z-index:1;
  width:230px;
  height:94px;
  transform-origin:50% 0%;
  opacity:0;
  transform:translate3d(0,-58px,0) scale(.10);
  will-change:transform,opacity;
  pointer-events:none;
}
.cookie-label-reveal .cookie-label{
  opacity:1!important;
  transform:none!important;
  translate:0!important;
  scale:1!important;
  animation:none!important;
  pointer-events:auto;
}

/* Kill all earlier per-cookie label timing. One shared reveal = no visual jitter. */
body.cookies-enter .cookie-classic .cookie-label-reveal,
body.cookies-enter .cookie-triple .cookie-label-reveal,
body.cookies-enter .cookie-red .cookie-label-reveal,
body.cookies-enter .cookie-marshmallow .cookie-label-reveal,
body.cookies-enter .cookie-caramel .cookie-label-reveal{
  animation:cookieLabelsEmergeTogether .88s cubic-bezier(.05,.70,.10,1) 2.70s forwards;
}

@keyframes cookieLabelsEmergeTogether{
  0%{
    opacity:0;
    transform:translate3d(0,-58px,0) scale(.10);
  }
  58%{
    opacity:1;
    transform:translate3d(0,-11px,0) scale(.78);
  }
  100%{
    opacity:1;
    transform:translate3d(0,0,0) scale(1);
  }
}

@media(max-width:900px){
  .cookie-label-reveal{
    width:156px;
    height:82px;
  }
}

@media(prefers-reduced-motion:reduce){
  .cookie-label-reveal{
    opacity:1!important;
    transform:none!important;
    animation:none!important;
  }
  body.mascot-b-impact .cookie-product:nth-child(1),
  body.mascot-b-impact .cookie-product:nth-child(2){
    animation:none!important;
  }
}

/* Solid CookieLuv background v15 — keep approved content/motion, remove color wash. */
html,
body,
.page,
.hero-card,
.ambient{
  background:#fff8ea!important;
}

.ambient::before,
.ambient::after{
  display:none!important;
  content:none!important;
}

/* Delivery badges v16 — introduced immediately after the cookie labels settle. */
.delivery-center{
  position:fixed;
  z-index:12;
  left:50%;
  bottom:22px;
  display:flex;
  gap:14px;
  align-items:center;
  transform:translateX(-50%);
  pointer-events:none;
}
.delivery-whatsapp{
  position:fixed;
  z-index:12;
  right:34px;
  bottom:92px;
  pointer-events:none;
}
.delivery-badge{
  width:86px;
  height:86px;
}
.delivery-whatsapp{
  width:96px;
  height:96px;
}
.delivery-badge-motion{
  width:100%;
  height:100%;
  opacity:0;
  transform-origin:50% 78%;
  will-change:transform,opacity;
}
.delivery-badge img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  image-rendering:auto;
  filter:drop-shadow(0 8px 12px rgba(84,20,27,.13));
  transition:
    transform .34s cubic-bezier(.16,.84,.28,1),
    filter .34s ease;
}
.delivery-badge:hover img{
  transform:translateY(-4px) scale(1.07);
  filter:drop-shadow(0 12px 18px rgba(84,20,27,.18));
}

/* The cookie-label reveal ends at ~3.58s. These start immediately after it. */
body.cookies-enter .delivery-ifood .delivery-badge-motion{
  animation:deliveryBadgeLeftIn .82s cubic-bezier(.05,.70,.10,1) 3.70s forwards;
}
body.cookies-enter .delivery-99 .delivery-badge-motion{
  animation:deliveryBadgeRightIn .82s cubic-bezier(.05,.70,.10,1) 3.78s forwards;
}
body.cookies-enter .delivery-whatsapp .delivery-badge-motion{
  animation:deliveryBadgeWhatsAppIn .88s cubic-bezier(.05,.70,.10,1) 3.90s forwards;
}

@keyframes deliveryBadgeLeftIn{
  0%{opacity:0;transform:translate3d(34px,74px,0) scale(.10) rotate(10deg)}
  58%{opacity:1;transform:translate3d(-5px,-5px,0) scale(1.055) rotate(-2deg)}
  78%{opacity:1;transform:translate3d(2px,2px,0) scale(.985) rotate(.7deg)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0deg)}
}
@keyframes deliveryBadgeRightIn{
  0%{opacity:0;transform:translate3d(-34px,74px,0) scale(.10) rotate(-10deg)}
  58%{opacity:1;transform:translate3d(5px,-5px,0) scale(1.055) rotate(2deg)}
  78%{opacity:1;transform:translate3d(-2px,2px,0) scale(.985) rotate(-.7deg)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0deg)}
}
@keyframes deliveryBadgeWhatsAppIn{
  0%{opacity:0;transform:translate3d(46px,58px,0) scale(.08) rotate(13deg)}
  52%{opacity:1;transform:translate3d(-8px,-8px,0) scale(1.07) rotate(-2.5deg)}
  76%{opacity:1;transform:translate3d(3px,2px,0) scale(.985) rotate(.8deg)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0deg)}
}

@media(max-width:900px){
  .delivery-center{bottom:16px;gap:10px}
  .delivery-badge{width:70px;height:70px}
  .delivery-whatsapp{right:16px;bottom:76px;width:78px;height:78px}
}
@media(prefers-reduced-motion:reduce){
  body.cookies-enter .delivery-badge-motion{
    opacity:1!important;
    transform:none!important;
    animation:none!important;
  }
}

/* Delivery badges v17 — iFood + 99 Food moved to the top center, matched visually. */
.delivery-center{
  top:18px!important;
  bottom:auto!important;
  gap:12px!important;
  align-items:center!important;
}
.delivery-center .delivery-badge{
  width:78px!important;
  height:78px!important;
}
.delivery-center .delivery-badge img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}

/* Top-entry motion: mirrored, smooth, and still begins after labels settle. */
body.cookies-enter .delivery-ifood .delivery-badge-motion{
  animation:deliveryBadgeTopLeftIn .82s cubic-bezier(.05,.70,.10,1) 3.70s forwards!important;
}
body.cookies-enter .delivery-99 .delivery-badge-motion{
  animation:deliveryBadgeTopRightIn .82s cubic-bezier(.05,.70,.10,1) 3.78s forwards!important;
}
@keyframes deliveryBadgeTopLeftIn{
  0%{opacity:0;transform:translate3d(14px,-52px,0) scale(.12) rotate(8deg)}
  58%{opacity:1;transform:translate3d(-4px,5px,0) scale(1.05) rotate(-1.8deg)}
  80%{opacity:1;transform:translate3d(1px,-2px,0) scale(.99) rotate(.5deg)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0deg)}
}
@keyframes deliveryBadgeTopRightIn{
  0%{opacity:0;transform:translate3d(-14px,-52px,0) scale(.12) rotate(-8deg)}
  58%{opacity:1;transform:translate3d(4px,5px,0) scale(1.05) rotate(1.8deg)}
  80%{opacity:1;transform:translate3d(-1px,-2px,0) scale(.99) rotate(-.5deg)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0deg)}
}

@media(max-width:900px){
  .delivery-center{
    top:12px!important;
    bottom:auto!important;
    gap:8px!important;
  }
  .delivery-center .delivery-badge{
    width:64px!important;
    height:64px!important;
  }
}

/* Delivery badges v18 — exact alignment + restrained interaction feedback. */

/* iFood + 99 Food: exact same visible footprint, exact same alignment, no shadow. */
.delivery-center{
  top:18px!important;
  align-items:flex-start!important;
  gap:12px!important;
}
.delivery-center .delivery-badge{
  width:74px!important;
  height:74px!important;
}
.delivery-center .delivery-badge-motion,
.delivery-center .delivery-badge img{
  width:74px!important;
  height:74px!important;
}
.delivery-center .delivery-badge img{
  object-fit:fill!important;
}

/* No badge shadows anywhere. Rest state stays completely still. */
.delivery-badge{
  appearance:none;
  -webkit-appearance:none;
  padding:0;
  border:0;
  color:inherit;
  background:transparent;
  font:inherit;
  pointer-events:auto!important;
  cursor:pointer;
  outline:none;
}
.delivery-badge img{
  filter:none!important;
  transition:
    transform 120ms cubic-bezier(0,0,.2,1),
    opacity 120ms cubic-bezier(0,0,.2,1)!important;
  transform-origin:50% 50%;
}
.delivery-badge:hover img,
.delivery-badge:focus-visible img{
  filter:none!important;
  transform:translateY(-3px) scale(1.075) rotate(-1deg);
}
.delivery-badge:nth-child(even):hover img,
.delivery-badge:nth-child(even):focus-visible img{
  transform:translateY(-3px) scale(1.075) rotate(1deg);
}
.delivery-badge:active img{
  transform:translateY(1px) scale(.92) rotate(0deg)!important;
}

/* Actual click feedback after release — quick squash/pop/settle. */
.delivery-badge.delivery-clicked img{
  animation:deliveryBadgeClick .32s cubic-bezier(.2,0,0,1);
}
@keyframes deliveryBadgeClick{
  0%{transform:translateY(0) scale(1) rotate(0deg)}
  28%{transform:translateY(2px) scale(.90) rotate(0deg)}
  62%{transform:translateY(-4px) scale(1.11) rotate(-1.2deg)}
  100%{transform:translateY(0) scale(1) rotate(0deg)}
}

/* iFood + 99 intro can move in once, then remain perfectly still. */
body.cookies-enter .delivery-ifood .delivery-badge-motion{
  animation:deliveryTopSettleLeft .72s cubic-bezier(.05,.70,.10,1) 3.70s forwards!important;
}
body.cookies-enter .delivery-99 .delivery-badge-motion{
  animation:deliveryTopSettleRight .72s cubic-bezier(.05,.70,.10,1) 3.70s forwards!important;
}
@keyframes deliveryTopSettleLeft{
  0%{opacity:0;transform:translate3d(12px,-40px,0) scale(.18) rotate(6deg)}
  72%{opacity:1;transform:translate3d(-2px,2px,0) scale(1.025) rotate(-.5deg)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0deg)}
}
@keyframes deliveryTopSettleRight{
  0%{opacity:0;transform:translate3d(-12px,-40px,0) scale(.18) rotate(-6deg)}
  72%{opacity:1;transform:translate3d(2px,2px,0) scale(1.025) rotate(.5deg)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0deg)}
}

/* WhatsApp: stronger one-time entrance motion, but still at rest after it lands. */
body.cookies-enter .delivery-whatsapp .delivery-badge-motion{
  animation:deliveryWhatsAppMoreMotion .96s cubic-bezier(.05,.70,.10,1) 3.88s forwards!important;
}
@keyframes deliveryWhatsAppMoreMotion{
  0%{opacity:0;transform:translate3d(82px,52px,0) scale(.06) rotate(18deg)}
  42%{opacity:1;transform:translate3d(-14px,-12px,0) scale(1.11) rotate(-5deg)}
  64%{opacity:1;transform:translate3d(7px,5px,0) scale(.96) rotate(2.4deg)}
  82%{opacity:1;transform:translate3d(-2px,-2px,0) scale(1.025) rotate(-.8deg)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0deg)}
}

@media(max-width:900px){
  .delivery-center{
    top:12px!important;
    gap:8px!important;
  }
  .delivery-center .delivery-badge,
  .delivery-center .delivery-badge-motion,
  .delivery-center .delivery-badge img{
    width:62px!important;
    height:62px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .delivery-badge img{
    transition:none!important;
  }
  .delivery-badge:hover img,
  .delivery-badge:focus-visible img,
  .delivery-badge:active img,
  .delivery-badge.delivery-clicked img{
    transform:none!important;
    animation:none!important;
  }
}

/* Delivery badges v19 — use the exact matched iFood/99 Food source canvases.
   Both PNGs are 1278x1230 and share the exact same visible alpha bounds. */
.delivery-center{
  align-items:flex-start!important;
}
.delivery-center .delivery-badge{
  width:74px!important;
  height:auto!important;
  aspect-ratio:1278 / 1230!important;
}
.delivery-center .delivery-badge-motion,
.delivery-center .delivery-badge img{
  width:100%!important;
  height:100%!important;
}
.delivery-center .delivery-badge img{
  object-fit:contain!important;
}

@media(max-width:900px){
  .delivery-center .delivery-badge{
    width:62px!important;
    height:auto!important;
    aspect-ratio:1278 / 1230!important;
  }
}

/* Delivery badges v21 — exact visual size + baseline alignment. */
.delivery-center{
  top:18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
}
.delivery-center .delivery-badge{
  width:74px!important;
  height:74px!important;
  aspect-ratio:1 / 1!important;
}
.delivery-center .delivery-badge-motion,
.delivery-center .delivery-badge img{
  width:74px!important;
  height:74px!important;
}
.delivery-center .delivery-badge img{
  object-fit:contain!important;
  display:block!important;
}
@media(max-width:900px){
  .delivery-center .delivery-badge,
  .delivery-center .delivery-badge-motion,
  .delivery-center .delivery-badge img{
    width:62px!important;
    height:62px!important;
  }
}

/* Delivery badges v22 — preserve the user's exact iFood artwork.
   Size/alignment compensation happens only in CSS; the PNG bytes stay untouched. */
.delivery-ifood .delivery-badge-motion{
  width:77.2px!important;
  height:77.2px!important;
  margin-left:-1.4px!important;
  margin-top:-2.5px!important;
}
.delivery-ifood .delivery-badge-motion img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
.delivery-99 .delivery-badge-motion{
  margin:0!important;
}

@media(max-width:900px){
  .delivery-ifood .delivery-badge-motion{
    width:64.7px!important;
    height:64.7px!important;
    margin-left:-1.2px!important;
    margin-top:-2.1px!important;
  }
}

/* Delivery badges v23 — pixel-match ONLY. Assets remain untouched.
   iFood's source badge is slightly wider/shorter inside its transparent canvas,
   so this tiny CSS-only optical correction matches the 99 Food visible footprint. */
.delivery-ifood .delivery-badge-motion img{
  scale:.99957 1.03680!important;
  transform-origin:50% 50%!important;
}

/* Delivery badges v24 — CSS-only final optical alignment.
   IMPORTANT: both image assets remain untouched. */
.delivery-ifood .delivery-badge-motion{
  width:74px!important;
  height:74px!important;
  margin:0!important;
}
.delivery-ifood .delivery-badge-motion img{
  width:74px!important;
  height:74px!important;
  object-fit:contain!important;
  scale:1.0439 1.0193!important;
  translate:.25px 1.28px!important;
  transform-origin:50% 50%!important;
}
.delivery-99 .delivery-badge-motion,
.delivery-99 .delivery-badge-motion img{
  width:74px!important;
  height:74px!important;
  margin:0!important;
}

@media(max-width:900px){
  .delivery-ifood .delivery-badge-motion{
    width:62px!important;
    height:62px!important;
    margin:0!important;
  }
  .delivery-ifood .delivery-badge-motion img{
    width:62px!important;
    height:62px!important;
    scale:1.0439 1.0193!important;
    translate:.21px 1.07px!important;
  }
  .delivery-99 .delivery-badge-motion,
  .delivery-99 .delivery-badge-motion img{
    width:62px!important;
    height:62px!important;
  }
}

/* Red Velvet mascot-heart animation v1.
   Source is keyed to transparency offline; no browser blend trick or black matte. */
.cookie-red .cookie-float{
  overflow:visible!important;
}
.red-velvet-motion{
  position:absolute;
  z-index:8;
  display:block;
  max-width:none!important;
  object-fit:fill;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  transform-origin:50.195% 49.167%;
  transition:
    opacity 110ms linear,
    transform .46s cubic-bezier(.16,.84,.28,1),
    filter .46s ease;
  filter:
    drop-shadow(0 5px 5px rgba(55,19,18,.08))
    drop-shadow(0 17px 16px rgba(76,23,29,.14));
  will-change:opacity,transform;
}
.cookie-red.velvet-prepared{
  z-index:45!important;
}
.cookie-red.velvet-playing .red-velvet-motion,
.cookie-red.velvet-finished .red-velvet-motion{
  visibility:visible;
  opacity:1;
}
.cookie-red .cookie-art{
  transition:
    opacity 110ms linear,
    transform .46s cubic-bezier(.16,.84,.28,1),
    filter .46s ease;
}
.cookie-red.velvet-playing .cookie-art,
.cookie-red.velvet-finished .cookie-art{
  opacity:0!important;
  visibility:hidden;
}

/* During playback the animation stays geometrically locked to the approved cookie slot. */
.cookie-red.velvet-playing:hover .red-velvet-motion,
.cookie-red.velvet-playing:focus-visible .red-velvet-motion{
  transform:none!important;
}

/* Once the heart transformation is complete, preserve the approved cookie hover response. */
.cookie-red.velvet-finished:hover .red-velvet-motion,
.cookie-red.velvet-finished:focus-visible .red-velvet-motion{
  transform:translate3d(0,-9px,0) scale(1.22) rotate(-.8deg);
  filter:
    drop-shadow(0 7px 7px rgba(55,19,18,.08))
    drop-shadow(0 29px 24px rgba(76,23,29,.20));
}

@media(prefers-reduced-motion:reduce){
  .red-velvet-motion{display:none!important}
  .cookie-red .cookie-art{visibility:visible!important;opacity:1!important}
}


/* ============================================================
   CookieLuv ordering MVP v1
   Interaction pattern informed by 21st cart drawer + quantity
   stepper references, adapted to the locked CookieLuv visual.
   ============================================================ */

.mini.order-trigger{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:35px;
  color:inherit;
  background:rgba(255,248,234,.38);
  font:inherit;
  font-weight:800;
  cursor:pointer;
  transition:
    background-color 140ms ease-out,
    border-color 140ms ease-out,
    transform 110ms ease-out;
}
.mini.order-trigger:hover{
  background:rgba(255,248,234,.82);
  border-color:rgba(239,0,54,.42);
}
.mini.order-trigger:active{transform:scale(.97)}
.mini.order-trigger:focus-visible{
  outline:2px solid rgba(239,0,54,.58);
  outline-offset:3px;
}
.order-count{
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  color:#fff8ea;
  background:#ef0036;
  font-size:9px;
  font-variant-numeric:tabular-nums;
}
.order-count[hidden]{display:none!important}

.cookie-soldout{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  padding:5px 8px;
  border-radius:999px;
  color:#fff8ea;
  background:#a8142d;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.cookie-soldout[hidden]{display:none!important}
.cookie-product.is-sold-out .cookie-art{
  opacity:.47;
  filter:grayscale(.18) saturate(.65)!important;
}
.cookie-product.is-sold-out .cookie-qty{
  opacity:.6;
}
.cookie-product.is-sold-out .qty-btn{
  cursor:not-allowed;
}

.order-scrim{
  position:fixed;
  inset:0;
  z-index:4000;
  background:rgba(70,18,24,.16);
  opacity:0;
  backdrop-filter:blur(0);
  -webkit-backdrop-filter:blur(0);
  transition:
    opacity 200ms ease-out,
    backdrop-filter 200ms ease-out,
    -webkit-backdrop-filter 200ms ease-out;
}
.order-scrim.is-visible{
  opacity:1;
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}
.order-scrim[hidden]{display:none!important}

.order-drawer{
  position:fixed;
  z-index:4010;
  top:12px;
  right:12px;
  bottom:12px;
  width:min(430px,calc(100vw - 24px));
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  border:1px solid rgba(152,46,54,.17);
  border-radius:28px;
  color:#4f171a;
  background:rgba(255,248,234,.965);
  box-shadow:0 24px 80px rgba(80,17,26,.20);
  overflow:hidden;
  transform:translate3d(calc(100% + 28px),0,0);
  opacity:.96;
  transition:
    transform 230ms cubic-bezier(.2,.8,.2,1),
    opacity 180ms ease-out;
  will-change:transform;
}
.order-drawer.is-open{
  transform:translate3d(0,0,0);
  opacity:1;
}
.order-drawer[hidden]{display:none!important}
.order-drawer-handle{display:none}

.order-drawer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:24px 24px 18px;
  border-bottom:1px solid rgba(152,46,54,.11);
}
.order-eyebrow{
  display:block;
  margin-bottom:3px;
  color:#ad233a;
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
}
.order-drawer-head h2{
  margin:0;
  color:#681a22;
  font-size:28px;
  line-height:1;
  letter-spacing:-.045em;
}
.order-close{
  appearance:none;
  width:38px;
  height:38px;
  border:1px solid rgba(152,46,54,.13);
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#681a22;
  background:rgba(255,255,255,.35);
  font:inherit;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  transition:
    transform 110ms ease-out,
    background-color 140ms ease-out;
}
.order-close:hover{background:rgba(255,255,255,.74)}
.order-close:active{transform:scale(.94)}
.order-close:focus-visible{
  outline:2px solid rgba(239,0,54,.55);
  outline-offset:2px;
}

.order-drawer-body{
  min-height:0;
  padding:4px 24px;
  overflow:auto;
  overscroll-behavior:contain;
}
.order-empty{
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  color:#855158;
}
.order-empty strong{
  color:#681a22;
  font-size:15px;
}
.order-empty span{
  max-width:240px;
  font-size:12px;
  line-height:1.45;
}
.order-empty[hidden]{display:none!important}

.order-items{
  display:flex;
  flex-direction:column;
}
.order-item{
  min-height:82px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(152,46,54,.10);
}
.order-item:last-child{border-bottom:0}
.order-item-thumb{
  width:56px;
  height:56px;
  object-fit:contain;
  filter:drop-shadow(0 7px 8px rgba(86,20,25,.10));
}
.order-item-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.order-item-meta strong{
  color:#57181e;
  font-size:12px;
  line-height:1.2;
}
.order-item-meta span{
  color:#9a666c;
  font-size:10px;
  line-height:1.3;
}
.order-stepper{
  height:32px;
  display:grid;
  grid-template-columns:30px 30px 30px;
  align-items:center;
  border:1px solid rgba(152,46,54,.15);
  border-radius:999px;
  background:rgba(255,255,255,.30);
  overflow:hidden;
}
.order-stepper button{
  appearance:none;
  height:30px;
  border:0;
  color:#7f2030;
  background:transparent;
  font-size:16px;
  cursor:pointer;
  transition:
    background-color 120ms ease-out,
    transform 90ms ease-out;
}
.order-stepper button:hover:not(:disabled){background:rgba(239,0,54,.07)}
.order-stepper button:active:not(:disabled){transform:scale(.9)}
.order-stepper button:disabled{opacity:.35;cursor:not-allowed}
.order-stepper-value{
  text-align:center;
  color:#5e1b22;
  font-size:11px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}

.order-drawer-foot{
  padding:16px 24px 22px;
  border-top:1px solid rgba(152,46,54,.11);
  background:rgba(255,248,234,.88);
}
.order-total-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:5px;
  color:#681a22;
  font-size:13px;
}
.order-total-row[hidden]{display:none!important}
.order-total-value{
  font-size:16px;
  font-variant-numeric:tabular-nums;
}
.order-pricing-note{
  margin:0 0 12px;
  color:#98616a;
  font-size:10px;
  line-height:1.45;
}
.order-channel-feedback{
  margin:0 0 10px;
  padding:9px 11px;
  border:1px solid rgba(152,46,54,.11);
  border-radius:12px;
  color:#7d2a38;
  background:rgba(239,0,54,.045);
  font-size:10px;
  line-height:1.4;
}
.order-channel-feedback[hidden]{display:none!important}

.order-channel-actions{
  display:grid;
  gap:8px;
}
.order-channel{
  appearance:none;
  width:100%;
  min-height:54px;
  padding:7px 12px 7px 8px;
  border:1px solid rgba(152,46,54,.13);
  border-radius:16px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#57181e;
  background:rgba(255,255,255,.31);
  text-align:left;
  cursor:pointer;
  transition:
    transform 110ms ease-out,
    background-color 140ms ease-out,
    border-color 140ms ease-out;
}
.order-channel:hover:not(:disabled){
  background:rgba(255,255,255,.70);
  border-color:rgba(239,0,54,.24);
}
.order-channel:active:not(:disabled){transform:scale(.985)}
.order-channel:disabled{
  opacity:.46;
  cursor:not-allowed;
}
.order-channel:focus-visible{
  outline:2px solid rgba(239,0,54,.50);
  outline-offset:2px;
}
.order-channel img{
  width:40px;
  height:40px;
  flex:0 0 40px;
  object-fit:contain;
}
.order-channel span{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.order-channel strong{
  font-size:12px;
}
.order-channel small{
  color:#9a666c;
  font-size:9px;
}
.order-clear{
  appearance:none;
  display:block;
  margin:11px auto 0;
  padding:5px 8px;
  border:0;
  color:#9b5260;
  background:transparent;
  font:inherit;
  font-size:9px;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.order-clear[hidden]{display:none!important}

.order-live{
  position:fixed;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(max-width:700px){
  .mini.order-trigger{min-height:34px;padding:8px 12px}

  .order-drawer{
    top:auto;
    right:8px;
    bottom:8px;
    left:8px;
    width:auto;
    max-height:min(84dvh,720px);
    border-radius:26px;
    transform:translate3d(0,calc(100% + 20px),0);
  }
  .order-drawer.is-open{transform:translate3d(0,0,0)}
  .order-drawer-handle{
    width:34px;
    height:4px;
    margin:8px auto -5px;
    border-radius:999px;
    display:block;
    background:rgba(104,26,34,.20);
  }
  .order-drawer-head{padding:18px 18px 14px}
  .order-drawer-body{padding:4px 18px}
  .order-drawer-foot{padding:14px 18px 18px}
  .order-item{
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:10px;
    min-height:72px;
  }
  .order-item-thumb{width:46px;height:46px}
  .order-stepper{grid-template-columns:28px 28px 28px;height:30px}
  .order-stepper button{height:28px}
}

@media(prefers-reduced-motion:reduce){
  .order-drawer,
  .order-scrim,
  .mini.order-trigger,
  .order-channel,
  .order-close,
  .order-stepper button{
    transition-duration:.01ms!important;
  }
}


/* ============================================================
   CookieLuv phone experience v1 — 2026-10-04
   Reference lock:
   - Primary: approved CookieLuv desktop composition and assets.
   - Borrow: OLIPOP single-product mobile focus + soft rounded controls.
   - Borrow: Ghia sticky navigation + cream/berry interaction hierarchy.
   - Borrow: Limón contained product photography + generous negative space.
   Desktop is intentionally untouched; these rules are phone-only.
   ============================================================ */

.mobile-cookie-dots{
  display:none;
}

@media(max-width:700px){
  html,
  body,
  .page,
  .hero-card{
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:none;
  }

  body{
    touch-action:manipulation;
  }

  header{
    position:fixed!important;
    z-index:80!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:calc(64px + env(safe-area-inset-top))!important;
    padding:
      calc(8px + env(safe-area-inset-top))
      14px
      8px!important;
    display:flex!important;
    align-items:center!important;
    gap:0!important;
    background:
      linear-gradient(
        180deg,
        rgba(255,248,234,.995) 0%,
        rgba(255,248,234,.95) 68%,
        rgba(255,248,234,0) 100%
      )!important;
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
    pointer-events:auto;
  }

  header img{
    width:92px!important;
    height:46px!important;
    object-fit:contain!important;
    flex:0 0 auto;
  }

  header nav{
    display:none!important;
  }

  .mini.order-trigger{
    margin-left:auto!important;
    min-width:76px;
    min-height:42px!important;
    padding:8px 12px!important;
    border-color:rgba(152,46,54,.22)!important;
    color:#6e1d25!important;
    background:rgba(255,250,241,.82)!important;
    font-size:10px!important;
    box-shadow:none!important;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    cursor:pointer;
  }

  .order-count{
    min-width:18px;
    height:18px;
    font-size:9px;
  }

  /* One-cookie-at-a-time swipe composition.
     Red Velvet is centered on first mobile load because it owns the timed heart story. */
  .cookie-showcase{
    position:fixed!important;
    z-index:4!important;
    left:0!important;
    right:0!important;
    top:calc(112px + env(safe-area-inset-top))!important;
    bottom:calc(66px + env(safe-area-inset-bottom))!important;
    width:100vw!important;
    height:auto!important;
    transform:none!important;
    display:flex!important;
    grid-template-columns:none!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:10px!important;
    padding:0 11vw!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:11vw;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    touch-action:pan-x;
  }

  .cookie-showcase::-webkit-scrollbar{
    display:none;
  }

  .cookie-product{
    flex:0 0 78vw!important;
    width:78vw!important;
    max-width:320px!important;
    height:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:24px 0 16px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    scroll-snap-align:center;
    scroll-snap-stop:always;
    overflow:visible!important;
    cursor:default!important;
  }

  /* Desktop ground shadow is positioned for the five-column row.
     On phone the cookie-local shadow remains, so the row shadow is removed. */
  .cookie-product::before{
    display:none!important;
  }

  .cookie-float{
    width:100%!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:visible!important;
  }

  .cookie-float::after{
    bottom:1%!important;
    width:58%!important;
    height:12%!important;
    opacity:.42!important;
    filter:blur(13px)!important;
  }

  .cookie-art,
  .cookie-red .cookie-art{
    width:min(68vw,248px)!important;
    max-width:248px!important;
    max-height:31dvh!important;
    object-fit:contain!important;
  }

  .cookie-red .cookie-art{
    width:min(70vw,258px)!important;
    max-width:258px!important;
  }

  /* Large labels remain readable/tappable instead of shrinking into desktop miniatures. */
  .cookie-label-reveal{
    width:230px!important;
    height:94px!important;
    flex:0 0 94px!important;
    margin-top:4px!important;
  }

  .cookie-label,
  .cookie-product:hover .cookie-label,
  .cookie-product:focus-visible .cookie-label,
  .cookie-product:focus-within .cookie-label{
    width:230px!important;
    height:94px!important;
    min-height:94px!important;
    max-width:230px!important;
    padding:11px 12px 10px!important;
    border-radius:18px!important;
    transform:none!important;
  }

  .cookie-label h2{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    font-size:13px!important;
    line-height:1.08!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .cookie-qty{
    width:112px!important;
    height:31px!important;
    grid-template-columns:31px 1fr 31px!important;
    margin-top:7px!important;
  }

  .qty-btn{
    width:31px!important;
    height:31px!important;
    min-width:31px!important;
    min-height:31px!important;
    font-size:18px!important;
    touch-action:manipulation;
  }

  .qty-value{
    font-size:11px!important;
  }

  /* Touch should never trigger the desktop lift/zoom language. */
  .cookie-product:hover .cookie-art,
  .cookie-product:focus-visible .cookie-art,
  .cookie-product:nth-child(even):hover .cookie-art,
  .cookie-product:nth-child(even):focus-visible .cookie-art{
    transform:translate3d(0,0,0) scale(1) rotate(0deg)!important;
  }

  .cookie-product:hover .cookie-float::after,
  .cookie-product:focus-visible .cookie-float::after{
    width:58%!important;
    opacity:.42!important;
    filter:blur(13px)!important;
    transform:translateX(-50%) scaleX(.92)!important;
  }

  .cookie-red.velvet-playing:hover .red-velvet-motion,
  .cookie-red.velvet-playing:focus-visible .red-velvet-motion,
  .cookie-red.velvet-finished:hover .red-velvet-motion,
  .cookie-red.velvet-finished:focus-visible .red-velvet-motion{
    transform:none!important;
  }

  /* Delivery stays visible without competing with the sticky header. */
  .delivery-center{
    z-index:72!important;
    top:calc(60px + env(safe-area-inset-top))!important;
    bottom:auto!important;
    gap:6px!important;
  }

  .delivery-center .delivery-badge,
  .delivery-center .delivery-badge-motion,
  .delivery-center .delivery-badge img,
  .delivery-99 .delivery-badge-motion,
  .delivery-99 .delivery-badge-motion img{
    width:52px!important;
    height:52px!important;
  }

  .delivery-ifood .delivery-badge-motion{
    width:52px!important;
    height:52px!important;
    margin:0!important;
  }

  .delivery-ifood .delivery-badge-motion img{
    width:52px!important;
    height:52px!important;
    scale:1.0439 1.0193!important;
    translate:.18px .90px!important;
  }

  .delivery-whatsapp{
    z-index:72!important;
    right:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom))!important;
    width:64px!important;
    height:64px!important;
  }

  .delivery-whatsapp .delivery-badge-motion,
  .delivery-whatsapp img{
    width:64px!important;
    height:64px!important;
  }

  /* Source animation is the only Mascot B motion; phone only changes its canvas scale. */
  .mascot-b-stage{
    left:0!important;
    bottom:calc(-10px + env(safe-area-inset-bottom))!important;
    width:min(300px,70vw)!important;
    transform:none!important;
  }

  /* Phone carousel pagination. It is deliberately tiny and secondary. */
  .mobile-cookie-dots{
    position:fixed;
    z-index:7;
    left:50%;
    bottom:calc(23px + env(safe-area-inset-bottom));
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:22px;
    padding:4px 7px;
    border:1px solid rgba(145,47,56,.09);
    border-radius:999px;
    background:rgba(255,248,234,.78);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    opacity:0;
    pointer-events:none;
  }

  body.cookies-enter .mobile-cookie-dots{
    animation:mobileCookieDotsIn .38s ease-out 3.62s forwards;
    pointer-events:auto;
  }

  .mobile-cookie-dot{
    appearance:none;
    -webkit-appearance:none;
    width:6px;
    height:6px;
    min-width:6px;
    padding:0;
    border:0;
    border-radius:999px;
    background:rgba(126,47,55,.24);
    cursor:pointer;
    transition:
      width 160ms cubic-bezier(.2,.8,.2,1),
      background-color 160ms ease-out,
      transform 100ms ease-out;
  }

  .mobile-cookie-dot.is-active{
    width:18px;
    background:#ef0036;
  }

  .mobile-cookie-dot:active{
    transform:scale(.88);
  }

  .mobile-cookie-dot:focus-visible{
    outline:2px solid rgba(239,0,54,.45);
    outline-offset:3px;
  }

  @keyframes mobileCookieDotsIn{
    from{opacity:0;transform:translateX(-50%) translateY(7px)}
    to{opacity:1;transform:translateX(-50%) translateY(0)}
  }

  /* Existing cart becomes a native-feeling bottom sheet on phone. */
  .order-drawer{
    right:8px!important;
    left:8px!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    max-height:min(84dvh,720px)!important;
  }

  .order-item{
    grid-template-columns:46px minmax(0,1fr) 86px!important;
  }

  .order-stepper{
    width:86px!important;
    grid-template-columns:28px 30px 28px!important;
  }
}

@media(max-width:380px){
  .cookie-showcase{
    padding-inline:9vw!important;
    scroll-padding-inline:9vw;
  }

  .cookie-product{
    flex-basis:82vw!important;
    width:82vw!important;
  }

  .cookie-art,
  .cookie-red .cookie-art{
    width:min(69vw,232px)!important;
    max-width:232px!important;
  }

  .cookie-label,
  .cookie-product:hover .cookie-label,
  .cookie-product:focus-visible .cookie-label,
  .cookie-product:focus-within .cookie-label,
  .cookie-label-reveal{
    width:218px!important;
    max-width:218px!important;
  }

  .delivery-center .delivery-badge,
  .delivery-center .delivery-badge-motion,
  .delivery-center .delivery-badge img,
  .delivery-99 .delivery-badge-motion,
  .delivery-99 .delivery-badge-motion img,
  .delivery-ifood .delivery-badge-motion,
  .delivery-ifood .delivery-badge-motion img{
    width:48px!important;
    height:48px!important;
  }

  .delivery-ifood .delivery-badge-motion img{
    translate:.16px .82px!important;
  }

  .delivery-whatsapp,
  .delivery-whatsapp .delivery-badge-motion,
  .delivery-whatsapp img{
    width:60px!important;
    height:60px!important;
  }
}

@media(max-width:700px) and (max-height:720px){
  .cookie-showcase{
    top:calc(102px + env(safe-area-inset-top))!important;
    bottom:calc(56px + env(safe-area-inset-bottom))!important;
  }

  .cookie-product{
    padding-top:12px!important;
    padding-bottom:8px!important;
  }

  .cookie-art,
  .cookie-red .cookie-art{
    width:min(59vw,210px)!important;
    max-width:210px!important;
    max-height:28dvh!important;
  }

  .cookie-label-reveal{
    margin-top:0!important;
  }

  .delivery-center{
    top:calc(55px + env(safe-area-inset-top))!important;
  }
}

@media(max-width:700px) and (prefers-reduced-motion:reduce){
  .mobile-cookie-dots{
    opacity:1!important;
    animation:none!important;
  }
}
