:root {
  --page: #fcf6ea;
  --cream-deep: #f6e9d2;
  --olive: #4f5a26;
  --olive-soft: #6b7544;
  --sage: #c8d2ad;
  --blush: #f0bfa9;
  --blush-soft: #f6d6c6;
  --honey: #dc9a27;
  --line: rgba(79, 90, 38, .18);
  --error: #9c3a26;
  --gutter: clamp(16px, 5vw, 64px);
  --display: "DM Serif Display", Georgia, serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Forma orgânica das manchas atrás das fotos */
  --blob: 58% 42% 55% 45% / 46% 56% 44% 54%;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--olive);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 2.75rem); }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

.button {
  display: inline-block;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  color: var(--page);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.button:hover { background: #3f4a1c; transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: default; transform: none; }
.button-small { padding: 9px 20px; font-size: .9375rem; }
.button-outline { background: transparent; color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.button-outline:hover { background: var(--olive); color: var(--page); }

/* Topo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter) 12px;
  background: rgba(246, 233, 210, .94);
}
.brand img { width: 108px; }
.topbar nav { display: flex; gap: clamp(20px, 3vw, 40px); font-size: .9375rem; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { color: var(--honey); }
.topbar .button { justify-self: end; background: var(--honey); color: #2e2a12; }
.topbar .button:hover { background: #c98a1c; }
.cart-count {
  display: inline-block;
  min-width: 1.5em;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--page);
  color: var(--olive);
  font-size: .8125rem;
  text-align: center;
}

/* Fotos dos produtos; os desenhos à mão só aparecem na entrada */
.blob-photo { position: relative; isolation: isolate; width: min(100%, 420px); justify-self: center; }
.blob-photo > img,
.blob-photo > .placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(79, 90, 38, .18);
}
.doodle { position: absolute; z-index: 0; display: block; color: var(--olive); }
.doodle svg { display: block; width: 100%; height: auto; overflow: visible; }
.doodle-tl { top: 0; left: -2%; width: 15%; }
.doodle-tr { top: -4%; right: -4%; width: 19%; }
.doodle-bl { bottom: 0; left: -6%; width: 22%; }

.placeholder {
  display: grid;
  place-items: center;
  border: 2px dashed rgba(79, 90, 38, .3);
  background: var(--page);
  color: var(--olive-soft);
  font-size: .9375rem;
  text-align: center;
}

/* Entrada */
.hero { position: relative; overflow: hidden; background: var(--cream-deep); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 128px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { font-size: calc((clamp(2.375rem, 4.6vw, 4.25rem) - 4pt) * .8); line-height: 1.12; letter-spacing: .01em; word-spacing: .06em; text-wrap: balance; }
/* Slogan da marca, em itálico, com um traço de mel à esquerda e "amor" em mel */
.slogan {
  max-width: 22em;
  padding-left: 18px;
  border-left: 3px solid var(--honey);
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--olive);
  text-wrap: balance;
}
.slogan em { color: var(--honey); }
.blob-photo-hero { width: min(100%, 540px); }
/* A foto principal é recortada: sem círculo, com sombra a seguir a forma do frasco */
.blob-photo-hero > img,
.blob-photo.cutout > img {
  width: 88%;
  margin: 0 auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 14px 16px rgba(79, 90, 38, .2));
}
/* Na entrada a foto fica 20% mais pequena */
/* Fotos da entrada: empilhadas, só a ativa se vê; a troca faz um fade com zoom e rotação leves */
.blob-photo-hero { display: grid; }
.slide { grid-area: 1 / 1; position: relative; margin: 0; align-self: center; }
.slide > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 70%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 16px rgba(79, 90, 38, .2));
  opacity: 0;
  transform: scale(.9) rotate(-4deg);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1);
}
.slide .doodle { opacity: 0; transform: translateY(8px) scale(.85); transition: opacity .6s ease, transform .8s ease; }
.slide.ativa > img { opacity: 1; transform: none; }
.slide.ativa .doodle { opacity: 1; transform: none; transition-delay: .35s; }

.hero-dots { grid-row: 2; position: relative; z-index: 2; display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(79, 90, 38, .25);
  cursor: pointer;
  transition: width .4s ease, background .4s ease;
}
.hero-dot[aria-current="true"] { width: 28px; background: var(--honey); }

/* Destaques com várias fotos: mesmas trocas da entrada, sem desenhos */
.carrossel { display: grid; }
.carrossel .slide > img { width: 100%; margin: 0 auto; }
.carrossel.lento .slide > img { transition: opacity 1.6s ease, transform 2s cubic-bezier(.2, .8, .2, 1); }
.row-text.aparecer > * { animation: aparecer .6s ease both; }
.row-note { font-size: .9375rem; font-style: italic; color: var(--olive); }
@keyframes aparecer {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Todos os produtos: uma linha de cartões que desliza para o lado */
.loja-setas { display: flex; justify-content: flex-end; gap: 8px; max-width: 1160px; margin: -24px auto 16px; }
.seta {
  width: 44px;
  height: 44px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: transparent;
  color: var(--olive);
  font: inherit;
  font-size: 1.125rem;
  cursor: pointer;
}
.seta:hover { background: var(--olive); color: var(--page); }
.loja-lista {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 250px);
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4px 4px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.loja-lista:focus-visible { outline: 2px solid var(--honey); outline-offset: 4px; }
.product-card { display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.product-photo {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border-radius: 20px;
  background: var(--cream-deep);
}
.product-photo img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(79, 90, 38, .18));
}
.product-card h3 { font-size: 1.25rem; line-height: 1.2; }
.product-card p { color: var(--olive-soft); font-size: .875rem; }
.product-card .card-foot { margin-top: auto; padding-top: 8px; justify-content: space-between; }

/* Escolha do peso das broinhas, no próprio cartão */
.card-action:has(.peso-escolha) { flex-basis: 100%; }
.peso-escolha { display: flex; flex-wrap: wrap; gap: 6px; }
.peso {
  padding: 7px 12px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  background: transparent;
  color: var(--olive);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.peso:hover { background: var(--cream-deep); }
.peso[aria-pressed="true"] { background: var(--olive); color: var(--page); }
.peso-total { flex-basis: 100%; margin-top: 2px; font-size: .8125rem; color: var(--olive-soft); }
/* Na entrada, a abóbora fica junto à broinha da esquerda e a colher à direita do frasco */
.blob-photo-hero .doodle-bl { left: -3%; bottom: 9%; width: 18%; }
.blob-photo-hero .doodle-tr { top: 26%; right: 7%; }
/* Na coroa, a estrela fica fora da imagem, em cima à direita */
.blob-photo-hero .slide-natal .doodle-tr { top: -2%; right: -6%; width: 15%; }

.wave { position: absolute; left: 0; bottom: -1px; display: block; width: 100%; height: clamp(40px, 7vw, 100px); fill: var(--page); }

/* Secções */
.section { overflow: hidden; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section-head { max-width: 560px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head p { margin-top: 10px; color: var(--olive-soft); }

/* Especial de Natal: fundo mais quente para se destacar dos outros produtos */
.natal { background: var(--cream-deep); }

/* Linhas de produtos, alternadas */
.rows { display: grid; gap: clamp(72px, 10vw, 128px); max-width: 1040px; margin: 0 auto; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 112px); align-items: center; }
.row:nth-child(odd) .blob-photo { order: 2; }
/* Fotos recortadas largas: ocupam mais espaço, com a mancha atrás */
.row .blob-photo.cutout { width: min(100%, 340px); }
.row .blob-photo.cutout > img { width: 100%; }
.row-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.leaf {
  display: block;
  width: 52px;
  height: 22px;
  border-radius: 60% 40% 60% 40% / 70% 30% 70% 30%;
  background: var(--blush);
  transform: rotate(-14deg);
}
.row:nth-child(even) .leaf { background: var(--honey); }
.row h3 { font-size: clamp(2.25rem, 4.4vw, 3.25rem); font-style: italic; }
.row-text p { max-width: 24em; color: var(--olive-soft); font-size: 1.0625rem; }
.card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 8px; }
/* Preço em destaque: número grande na letra dos títulos, unidade pequena ao lado */
.price { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; color: var(--olive); }
.price small { margin-left: 4px; font-family: var(--text); font-size: .875rem; color: var(--olive-soft); }
.product-card .price { font-size: 1.5rem; }
.card-action { min-height: 44px; display: flex; align-items: center; }
.card-action .button { padding: 11px 26px; }

.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper span { min-width: 1.8em; font-weight: 500; text-align: center; }
.stepper button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: transparent;
  color: var(--olive);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.stepper button:hover { background: var(--olive); color: var(--page); }

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: passo;
  text-align: center;
}
.steps li { counter-increment: passo; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.steps li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 56px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: var(--blob);
  background: var(--blush-soft);
  font-family: var(--display);
  font-size: 1.5rem;
}
.steps strong { font-family: var(--display); font-size: 1.5rem; font-weight: 400; }
.steps span { color: var(--olive-soft); }

/* Encomenda */
.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}
.summary { position: sticky; top: 84px; padding: 24px; background: var(--cream-deep); border-radius: 20px; }
.summary-title { margin-bottom: 10px; font-family: var(--display); font-size: 1.375rem; }
.empty { color: var(--olive-soft); }
.cart-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cart-lines li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.total { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 500; }

form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
form label { display: block; font-size: .9375rem; font-weight: 500; }
form label input:not([type=radio]), form label textarea { margin-top: 4px; }
.full { grid-column: 1 / -1; }
.optional { font-weight: 400; opacity: .7; }
input, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 400;
}
input:focus, textarea:focus { outline: none; border-color: var(--olive); }
textarea { resize: vertical; }
fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: .9375rem; font-weight: 500; }
form label.radio { display: inline-block; padding: 8px 22px; border: 1px solid var(--olive); border-radius: 999px; cursor: pointer; }
form label.radio:has(input:checked) { background: var(--olive); color: var(--page); }
form label.radio:has(input:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.trap { position: absolute; left: -9999px; }
.zona-nota { flex-basis: 100%; margin-top: 4px; color: var(--olive-soft); font-size: .875rem; }
.form-note { color: var(--olive-soft); font-size: .875rem; }
.form-error { color: var(--error); font-weight: 500; }
form .button { justify-self: start; }

.thanks { max-width: 520px; margin: 0 auto; text-align: center; }
.thanks:focus { outline: none; }
.thanks h3 { font-size: 2.5rem; margin-bottom: 8px; }
.test-note { margin-top: 12px; color: var(--error); font-size: .9375rem; }

/* Barra da encomenda */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), 360px);
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--page);
  font-weight: 500;
  text-decoration: none;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px rgba(79, 90, 38, .3);
}
.cart-bar:hover { background: #3f4a1c; }

/* Rodapé com onda */
.footer { position: relative; margin-top: clamp(40px, 7vw, 100px); background: var(--olive); color: var(--page); }
.footer .wave { top: 1px; bottom: auto; transform: translateY(-100%); fill: var(--olive); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
  font-size: .9375rem;
}
.footer img { width: min(100%, 220px); }

[hidden] { display: none !important; }

@media (max-width: 800px) {
  .loja-lista { grid-auto-columns: 68%; }
  .loja-setas { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .blob-photo-hero { width: min(80%, 360px); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .row:nth-child(odd) .blob-photo { order: 0; }
  .row .blob-photo.cutout { width: min(72%, 280px); }
  .blob-photo { width: min(78%, 340px); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .order { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .summary { position: static; }
}

@media (max-width: 480px) {
  form { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .slide > img, .slide .doodle, .hero-dot { transition: none; }
  .row-text.aparecer > * { animation: none; }
}
