/* =========================================================
   gigi COOKIES · estilos
   ========================================================= */

/* ---------- Design system ---------- */
:root {
  /* cores da marca */
  --brown: #6b4e43;
  --pink: #f5c4c4;
  --cream: #fdf2ef;
  --choco: #4a352c;
  --pink-deep: #e8a5a5;
  --cream-light: #fff8f5;
  --paper: #fbf1e8;          /* mesmo tom do fundo do logo */
  --blush: #fbe3df;
  --gold: #c48a3f;

  /* espaçamentos (base 4px) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* raios */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-full: 999px;

  /* sombras suaves */
  --shadow-sm: 0 2px 10px rgba(74, 53, 44, .06);
  --shadow-md: 0 18px 40px -20px rgba(74, 53, 44, .28);
  --shadow-lg: 0 34px 70px -30px rgba(74, 53, 44, .4);

  /* tipografia */
  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.75rem, 1.4rem + 6.2vw, 7rem);
  --fs-h2: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem);
  --fs-h3: clamp(1.35rem, 1.2rem + .6vw, 1.7rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-small: .8125rem;

  /* layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --pad-x: max(var(--gutter), calc((100% - var(--max)) / 2));
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

/* textura de papel sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .26 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
  border-radius: 6px;
}

section[id] { scroll-margin-top: var(--header-h); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 300;
  padding: var(--sp-3) var(--sp-5);
  background: var(--choco);
  color: var(--cream-light);
  border-radius: var(--r-full);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Elementos comuns ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brown);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--pink); }

.section {
  padding: clamp(88px, 12vw, 160px) var(--pad-x);
}

.section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-14);
  text-align: center;
}

.section-title {
  margin-top: var(--sp-4);
  font-family: var(--f-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--choco);
}
.section-title em,
.hero-title em,
.cta-title em { font-style: italic; }

.section-lead {
  max-width: 52ch;
  margin: var(--sp-5) auto 0;
  font-size: var(--fs-lead);
}

/* marca-texto rosa desenhado por baixo da palavra */
.mark {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.08em;
  right: -.1em;
  bottom: .08em;
  height: .42em;
  background: var(--pink);
  border-radius: .3em .55em .35em .6em;
  transform: scaleX(1) rotate(-1.5deg);
  transform-origin: left center;
  transition: transform 1s var(--ease);
}
.anim .mark:not(.is-drawn)::before { transform: scaleX(0) rotate(-1.5deg); }

/* botões */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 18px 32px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--brown);
  color: var(--cream-light);
  font-family: var(--f-sans);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
@media (hover: hover) { .btn:hover { background: var(--choco); } }
.btn-label { position: relative; display: inline-block; }

.btn--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--pink-deep);
  pointer-events: none;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1, 1); opacity: .9; }
  100% { transform: scale(1.08, 1.35); opacity: 0; }
}

.btn--small {
  padding: 13px 18px;
  font-size: .6875rem;
  letter-spacing: .14em;
}

.btn--whats {
  background: var(--pink);
  color: var(--choco);
  padding: 20px 34px;
}
.btn--whats svg { width: 22px; height: 22px; }
@media (hover: hover) { .btn--whats:hover { background: var(--cream-light); } }

.magnetic { display: inline-block; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding-block: var(--sp-2);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(4px); } }

/* ---------- Preloader ---------- */
.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  /* segurança: some sozinho se o JS falhar */
  animation: loader-failsafe .6s 6s forwards;
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

.loader-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--paper);
}
.loader-curtain--l { left: 0; }
.loader-curtain--r { right: 0; }

.loader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.loader-cookie { width: min(220px, 54vw); overflow: visible; }
.loader-logo { width: 116px; height: auto; margin-top: -8px; }
.loader-text {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
}

/* ---------- Cursor personalizado ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  pointer-events: none;
  display: none;
}
.has-cursor .cursor { display: block; }
.has-cursor,
.has-cursor * { cursor: none !important; }

.cursor-crumb {
  width: 100%;
  height: 100%;
  transition: transform .35s var(--ease);
}
.cursor.is-hover .cursor-crumb { transform: scale(1.7) rotate(25deg); }
.cursor.is-down .cursor-crumb { transform: scale(.8); }

.heart-pop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 199;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  fill: var(--pink-deep);
  pointer-events: none;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-inline: var(--pad-x);
}
/* o vidro fica no pseudo-elemento para não prender o menu mobile */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(253, 242, 239, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s, border-color .4s;
}
.header.is-scrolled::before {
  box-shadow: var(--shadow-sm);
  border-color: rgba(107, 78, 67, .1);
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand-badge {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(107, 78, 67, .14);
}
.brand-badge img {
  position: absolute;
  width: 156%;
  max-width: none;
  height: auto;
  left: -28%;
  top: -25.5%;
}
.brand-name {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--choco);
}
.brand-name small {
  margin-left: 2px;
  font-family: var(--f-sans);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .32em;
  vertical-align: middle;
  color: var(--brown);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav-list a {
  position: relative;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
@media (hover: hover) { .nav-list a:hover::after { transform: scaleX(1); transform-origin: left; } }

.header-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.bag {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(107, 78, 67, .25);
  transition: background-color .3s;
}
@media (hover: hover) { .bag:hover { background: var(--blush); } }
.bag svg { width: 22px; height: 22px; }
.bag-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--pink);
  color: var(--choco);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1;
}
.bag.bump { animation: bump .6s var(--ease); }
@keyframes bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22) rotate(-8deg); }
  100% { transform: scale(1); }
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brown);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--cream-light);
  transition: transform .5s var(--ease);
}
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* no celular o menu do header some e entra o painel .mmenu */
@media (max-width: 899px) {
  .burger { display: block; }
  .brand-name small { display: none; }
  .nav { display: none; }
}

/* header que se esconde ao rolar para baixo (celular) */
.header.is-ready { transition: transform .5s var(--ease); }
.header.is-hidden { transform: translateY(-100%); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: var(--sp-8);
  padding: calc(var(--header-h) + var(--sp-8)) var(--pad-x) var(--sp-12);
  overflow: hidden;
}

.hero-text { position: relative; z-index: 2; }

.hero-title {
  margin-top: var(--sp-5);
  font-family: var(--f-serif);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--choco);
}
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; }

.hero-sub {
  max-width: 36ch;
  margin-top: var(--sp-6);
  font-size: var(--fs-lead);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6) var(--sp-8);
  margin-top: var(--sp-10);
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  aspect-ratio: 1;
  justify-self: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 2%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(74, 53, 44, .26), transparent);
}
.hero-cookie {
  position: absolute;
  inset: 7%;
}
.hero-cookie-spin,
.hero-cookie-spin svg { width: 100%; height: 100%; }

.float-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
}

.bow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.bow--hero-a {
  width: clamp(96px, 14vw, 210px);
  height: clamp(96px, 14vw, 210px);
  right: 3%;
  bottom: 38%;
  transform: rotate(14deg);
}
.bow--hero-b {
  width: clamp(80px, 11vw, 160px);
  height: clamp(80px, 11vw, 160px);
  left: 1%;
  bottom: 3%;
  transform: rotate(-18deg);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: var(--sp-12);
  }
  .bow--hero-a { top: calc(var(--header-h) + 3%); bottom: auto; right: 4%; }
  .bow--hero-b { left: 42%; bottom: 6%; }
}

/* ---------- Faixa animada ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: var(--sp-4);
  background: var(--pink);
  color: var(--choco);
  border-block: 1px solid rgba(107, 78, 67, .12);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  margin-right: var(--sp-6);
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-style: italic;
  white-space: nowrap;
}
.marquee-track svg {
  width: 14px;
  height: 14px;
  margin-right: var(--sp-6);
  fill: var(--brown);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sabores ---------- */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  max-width: var(--max);
  margin: 0 auto;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { gap: var(--sp-8); max-width: 960px; } }
@media (min-width: 1180px) { .cards { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); max-width: var(--max); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  background: var(--cream-light);
  border: 1px solid rgba(232, 165, 165, .4);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
}

.card-plate {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.3;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  background-color: var(--blush);
  background-image:
    linear-gradient(90deg, rgba(245, 196, 196, .5) 50%, transparent 50%),
    linear-gradient(rgba(245, 196, 196, .5) 50%, transparent 50%);
  background-size: 28px 28px;
  transform: translateZ(24px);
}
.card-plate::before {
  content: "";
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream-light);
  box-shadow: 0 10px 24px -12px rgba(74, 53, 44, .35), inset 0 0 0 10px #fff;
}
.card-cookie {
  position: relative;
  width: 54%;
  aspect-ratio: 1;
  transition: transform .9s var(--ease);
}
@media (hover: hover) { .card:hover .card-cookie { transform: rotate(20deg) scale(1.05); } }

.card-tag {
  position: absolute;
  top: calc(var(--sp-5) + 14px);
  left: calc(var(--sp-5) + 14px);
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--cream-light);
  color: var(--choco);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: translateZ(40px);
}

.card-title {
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  color: var(--choco);
}
.card-text {
  flex: 1;
  margin: var(--sp-2) 0 var(--sp-5);
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.price {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--choco);
}
.add.is-added { background: var(--pink); color: var(--choco); }
/* com 4 colunas, preço em cima e botão inteiro embaixo para todos alinharem */
@media (min-width: 1180px) {
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .add { width: 100%; }
}

/* ---------- Como fazemos ---------- */
.process {
  position: relative;
  background: var(--cream-light);
  border-block: 1px solid rgba(232, 165, 165, .35);
}
.process-inner {
  display: grid;
  gap: var(--sp-10);
  padding: clamp(88px, 12vw, 140px) var(--pad-x);
}
.process-head { text-align: center; }
.process-bar { display: none; }

/* versão estática (sem animação): cenas e passos lado a lado */
.stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.scene { width: 100%; height: auto; overflow: visible; }

.steps {
  list-style: none;
  display: grid;
  gap: var(--sp-8);
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step-num {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
}
.step-title {
  margin: var(--sp-1) 0 var(--sp-2);
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--choco);
}
.step p { max-width: 38ch; }

/* versão animada (narrativa presa ao scroll) */
.process.is-live .process-inner {
  height: 100svh;
  min-height: 560px;
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--sp-4);
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: var(--sp-8);
}
.process.is-live .process-bar {
  display: block;
  width: min(100%, 240px);
  height: 2px;
  margin: var(--sp-5) auto 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(107, 78, 67, .15);
}
.process-bar-fill {
  display: block;
  height: 100%;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
}
.process.is-live .stage {
  display: block;
  position: relative;
  height: 100%;
  max-height: 460px;
  aspect-ratio: 1;
  width: auto;
  max-width: 100%;
  justify-self: center;
}
.process.is-live .scene {
  position: absolute;
  inset: 0;
  height: 100%;
}
.process.is-live .steps {
  display: block;
  position: relative;
  width: 100%;
  min-height: 150px;
  text-align: center;
}
.process.is-live .step {
  position: absolute;
  inset: 0 0 auto;
}
.process.is-live .step p { margin-inline: auto; }

@media (min-width: 900px) {
  .process.is-live .process-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "head stage" "steps stage";
    align-content: center;
    column-gap: var(--sp-16);
  }
  .process.is-live .process-head {
    grid-area: head;
    align-self: end;
    text-align: left;
  }
  .process.is-live .process-bar { margin-left: 0; }
  .process.is-live .stage {
    grid-area: stage;
    height: auto;
    width: 100%;
    max-height: none;
    max-width: 520px;
  }
  .process.is-live .steps {
    grid-area: steps;
    align-self: start;
    min-height: 200px;
    text-align: left;
  }
  .process.is-live .step p { margin-inline: 0; }
}

/* ---------- Depoimentos ---------- */
.reviews {
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, rgba(245, 196, 196, .28) 50%, transparent 50%),
    linear-gradient(rgba(245, 196, 196, .28) 50%, transparent 50%);
  background-size: 44px 44px;
}

.polaroids {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12) var(--sp-8);
  max-width: 1160px;
  margin: 0 auto;
}
@media (min-width: 640px) { .polaroids { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .polaroids { grid-template-columns: repeat(4, 1fr); } }

.polaroid {
  position: relative;
  width: 100%;
  max-width: 300px;
  justify-self: center;
  padding: 14px 14px 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: rotate(var(--r, 0deg));
}
html:not(.anim) .polaroid,
.polaroid.is-in {
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
@media (hover: hover) { .polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); } }
/* fita adesiva */
.polaroid::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  background: rgba(245, 196, 196, .85);
  transform: rotate(-4deg);
}
.polaroid-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--blush);
}
.polaroid-photo > div { width: 68%; aspect-ratio: 1; }
.polaroid blockquote {
  margin: var(--sp-4) var(--sp-1) var(--sp-3);
  font-family: var(--f-serif);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--choco);
}
.polaroid-name {
  margin-inline: var(--sp-1);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- CTA final / pedido ---------- */
.cta {
  position: relative;
  padding: clamp(110px, 14vw, 180px) var(--pad-x);
  background: var(--choco);
  color: var(--cream);
  text-align: center;
}
/* bordas recortadas tipo caixinha de confeitaria */
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  background-size: 32px 16px;
  background-repeat: repeat-x;
}
.cta::before {
  top: -1px;
  background-image: radial-gradient(circle at 50% 0, var(--cream) 14px, transparent 14.5px);
}
.cta::after {
  bottom: -1px;
  background-image: radial-gradient(circle at 50% 100%, var(--paper) 14px, transparent 14.5px);
}

.bow--cta {
  width: clamp(96px, 13vw, 190px);
  height: clamp(96px, 13vw, 190px);
  top: 7%;
  right: 5%;
  transform: rotate(14deg);
}

.cta-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.cta-title {
  margin-top: var(--sp-5);
  font-family: var(--f-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--cream-light);
}
/* no fundo escuro o marca-texto cobre a palavra inteira, com texto chocolate */
.cta .mark { color: var(--choco); padding-inline: .06em; }
.cta .mark::before { top: .14em; bottom: -.02em; height: auto; }

.order {
  max-width: 520px;
  margin: var(--sp-10) auto 0;
  padding: var(--sp-6);
  text-align: left;
  border: 1px solid rgba(245, 196, 196, .3);
  border-radius: var(--r-md);
  background: rgba(255, 248, 245, .05);
}
.order-empty { color: rgba(253, 242, 239, .85); }
.order.has-items .order-empty { display: none; }
.order-list { list-style: none; }
.order-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed rgba(245, 196, 196, .3);
}
.order-name { font-family: var(--f-serif); font-size: 1.125rem; }
.order-qty { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.order-qty output { min-width: 2ch; text-align: center; font-weight: 500; }
.qty-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(245, 196, 196, .6);
  border-radius: 50%;
  background: transparent;
  color: var(--cream-light);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
@media (hover: hover) { .qty-btn:hover { background: var(--pink); color: var(--choco); } }
.order-total {
  margin-top: var(--sp-4);
  text-align: right;
  font-family: var(--f-serif);
  font-size: 1.25rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-10);
}
.cta-note {
  max-width: 44ch;
  font-size: var(--fs-small);
  color: rgba(253, 242, 239, .82);
}
.cta :focus-visible { outline-color: var(--pink); }

/* ---------- Footer ---------- */
.footer {
  padding: var(--sp-20) var(--pad-x) var(--sp-8);
  background: var(--paper);
}
.footer-inner {
  display: grid;
  gap: var(--sp-12);
  max-width: var(--max);
  margin: 0 auto;
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

.footer-logo {
  position: relative;
  width: 260px;
  margin-inline: -22px;
}
.footer-logo img { width: 100%; height: auto; }

/* easter egg: mordidas no cookie do logo */
.egg {
  position: absolute;
  left: 72.8%;
  top: 44.6%;
  width: 13.4%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.egg-bite {
  position: absolute;
  border-radius: 50%;
  background: #fcf2ea;
  transform: scale(0);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.egg-bite--1 { width: 52%; height: 52%; left: -16%; top: 60%; }
.egg-bite--2 { width: 50%; height: 50%; left: 44%; top: 74%; }
.egg-bite--3 { width: 56%; height: 56%; left: -20%; top: 4%; }
.egg[data-bites="1"] .egg-bite--1,
.egg[data-bites="2"] .egg-bite--1,
.egg[data-bites="2"] .egg-bite--2,
.egg[data-bites="3"] .egg-bite { transform: scale(1); }

.egg-msg {
  min-height: 1.6em;
  max-width: 30ch;
  margin-top: var(--sp-2);
  font-family: var(--f-serif);
  font-style: italic;
}

.footer-title {
  margin-bottom: var(--sp-4);
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hours { list-style: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed rgba(107, 78, 67, .25);
}
.hours li span:first-child { white-space: nowrap; }
.hours li span:last-child { font-family: var(--f-serif); color: var(--choco); text-align: right; }

.social { list-style: none; display: flex; gap: var(--sp-3); }
.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--brown);
  transition: background-color .3s, color .3s;
}
@media (hover: hover) { .social a:hover { background: var(--brown); color: var(--cream-light); } }
.social svg { width: 20px; height: 20px; }
.contact {
  list-style: none;
  margin-top: var(--sp-5);
  font-family: var(--f-serif);
  font-size: 1.0625rem;
  color: var(--choco);
}
.contact li + li { margin-top: var(--sp-1); }
.contact a {
  background: linear-gradient(var(--pink), var(--pink)) 0 100% / 100% 0 no-repeat;
  transition: background-size .4s var(--ease);
}
@media (hover: hover) { .contact a:hover { background-size: 100% 40%; } }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-8);
  max-width: var(--max);
  margin: var(--sp-14) auto 0;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(107, 78, 67, .15);
}
.footer-copy { font-size: var(--fs-small); }
.credit img { width: 190px; height: auto; }
@media (max-width: 639px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-6);
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border-radius: var(--r-full);
  background: var(--choco);
  color: var(--cream-light);
  font-size: .9375rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Celular e tablet
   ========================================================= */

/* camadas animadas vão direto para a GPU */
.hero-cookie-spin,
.float-chip,
.bow,
.card-cookie { will-change: transform; }

/* ---------- Menu mobile em tela cheia ---------- */
.mmenu { display: none; }

@media (max-width: 899px) {
  .mmenu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--sp-10);
    padding: calc(var(--header-h) + var(--sp-8)) var(--pad-x) calc(var(--sp-8) + env(safe-area-inset-bottom));
    overflow-y: auto;
    background-color: var(--cream);
    background-image:
      linear-gradient(90deg, rgba(245, 196, 196, .2) 50%, transparent 50%),
      linear-gradient(rgba(245, 196, 196, .2) 50%, transparent 50%);
    background-size: 44px 44px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility 0s .5s;
  }
  .mmenu.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .5s var(--ease), visibility 0s;
  }
  .mmenu-list { list-style: none; }
  .mmenu-list li { border-bottom: 1px dashed rgba(107, 78, 67, .25); }
  .mmenu-list a {
    display: flex;
    align-items: baseline;
    gap: var(--sp-4);
    padding: var(--sp-4) 0;
    overflow: hidden;
  }
  .mmenu-num {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
  }
  .mmenu-label {
    display: inline-block;
    font-family: var(--f-serif);
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--choco);
  }
  .mmenu-bow {
    width: 110px;
    height: 110px;
    right: 4%;
    top: calc(var(--header-h) + 4px);
    transform: rotate(14deg);
  }
  .mmenu-foot {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }
  .mmenu-foot p { font-family: var(--f-serif); font-style: italic; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero no celular: o cookie aparece primeiro ---------- */
@media (max-width: 899px) {
  .hero {
    gap: var(--sp-4);
    padding-top: calc(var(--header-h) + var(--sp-2));
    padding-bottom: var(--sp-10);
  }
  .hero-visual {
    order: -1;
    width: min(68vw, 360px);
  }
  .hero-text { text-align: center; }
  .hero-eyebrow { justify-content: center; letter-spacing: .24em; }
  .hero-eyebrow::before { display: none; }
  .hero-title { margin-top: var(--sp-3); }
  .hero-sub { margin-inline: auto; }
  .hero-actions {
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-8);
  }
  .hero-actions .magnetic { width: 100%; max-width: 380px; }
  .hero-actions .btn { width: 100%; }

  .bow--hero-a {
    width: 84px;
    height: 84px;
    top: calc(var(--header-h) + 4px);
    right: 3%;
    bottom: auto;
  }
  .bow--hero-b {
    width: 68px;
    height: 68px;
    top: calc(var(--header-h) + 48vw);
    left: 3%;
    bottom: auto;
  }
}

/* ---------- Carrosséis com deslize (sabores e depoimentos) ---------- */
.dots { display: none; }

@media (max-width: 639px) {
  .section-head { margin-bottom: var(--sp-8); }

  .cards,
  .polaroids {
    position: relative;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-x);
    scrollbar-width: none;
    margin-inline: calc(var(--pad-x) * -1);
    -webkit-overflow-scrolling: touch;
  }
  .cards::-webkit-scrollbar,
  .polaroids::-webkit-scrollbar { display: none; }

  .cards {
    gap: var(--sp-4);
    padding: var(--sp-3) var(--pad-x) var(--sp-10);
  }
  .card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
  .card.is-active .card-cookie { transform: rotate(20deg) scale(1.06); }

  .polaroids {
    gap: var(--sp-5);
    padding: var(--sp-8) var(--pad-x) var(--sp-12);
  }
  .polaroid {
    flex: 0 0 76%;
    max-width: none;
    scroll-snap-align: center;
  }
  .polaroid.is-active.is-in { transform: rotate(calc(var(--r) * .3)) scale(1.02); }

  .dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: calc(var(--sp-6) * -1);
  }
  .dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    background: rgba(107, 78, 67, .28);
    transition: transform .4s var(--ease), background-color .4s;
  }
  .dot.is-active::before {
    background: var(--brown);
    transform: scaleX(2.2);
  }

  .cta-actions .magnetic,
  .cta-actions .btn { width: 100%; }

  .eyebrow { letter-spacing: .22em; }
  .cta .eyebrow::before { display: none; }
  .bow--cta { width: 76px; height: 76px; top: 18px; right: 3%; }

  /* links do rodapé com área de toque confortável */
  .contact a { display: inline-block; padding-block: 8px; }
  .contact li + li { margin-top: 0; }
  .link-arrow { padding-block: 12px; }
}

/* ---------- Barra de pedido fixa ---------- */
.mbar { display: none; }

@media (max-width: 899px) {
  .mbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    max-width: 520px;
    margin-inline: auto;
    padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
    border-radius: var(--r-full);
    background: rgba(74, 53, 44, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--cream-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(100% + 32px));
    transition: transform .6s var(--ease);
  }
  .mbar.is-on { transform: none; }
  body.menu-open .mbar { transform: translateY(calc(100% + 32px)); }

  .mbar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
  }
  .mbar-count {
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pink);
  }
  .mbar-total {
    font-family: var(--f-serif);
    font-size: 1.125rem;
    font-weight: 500;
  }
  .mbar-count,
  .mbar-total { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar-btn {
    flex: none;
    padding: 15px 22px;
    font-size: .75rem;
  }
  .mbar-btn svg { width: 20px; height: 20px; }

  body.has-mbar .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

  /* a linha do tempo presa na tela deixa espaço para a barra */
  .process.is-live .process-inner { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* alvos de toque com pelo menos 44px */
  .btn--small { padding: 16px 20px; }
  .qty-btn { width: 40px; height: 40px; }
}

/* ---------- Toque: respostas no lugar do hover ---------- */
@media (hover: none) {
  .btn { transition: background-color .3s, color .3s, transform .25s var(--ease); }
  .btn:active { transform: scale(.96); }
  .qty-btn:active,
  .social a:active { background: var(--pink); color: var(--choco); }
  .polaroid.is-in:active { transform: rotate(0deg) scale(1.03); }

  /* textura mais leve para não pesar na rolagem */
  body::after { mix-blend-mode: normal; opacity: .045; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn--pulse::after { display: none; }
}
