:root {
  --cream: #fbf3e6;
  --cream-2: #f4e7d1;
  --paper: #fffaf1;
  --ink: #2f2013;
  --ink-soft: #6b5742;
  --terra: #c1440e;
  --terra-dark: #9a3508;
  --mustard: #e0a323;
  --green: #3f6b3a;
  --line: #e7d6bb;
  --shadow: 0 10px 30px rgba(80, 45, 12, .12);
  --radius: 18px;
  --maxw: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.serif { font-family: 'Fraunces', Georgia, serif; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 243, 230, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hbar { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 21px; color: var(--ink); }
.logo .pot { font-size: 24px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.15)); }
.city-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500;
  color: var(--ink-soft); cursor: pointer; transition: .15s; max-width: 240px;
}
.city-pill:hover { border-color: var(--terra); color: var(--ink); }
.city-pill b { color: var(--ink); font-weight: 600; }
.spacer { flex: 1; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 9px 16px; font-weight: 600; font-size: 14px; transition: .15s;
}
.cart-btn:hover { background: var(--terra); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--mustard); color: var(--ink);
  font-size: 11px; font-weight: 700; min-width: 19px; height: 19px;
  border-radius: 999px; display: grid; place-items: center; padding: 0 5px;
  border: 2px solid var(--cream);
}
.cart-count[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--terra); color: #fff; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; transition: .15s; box-shadow: var(--shadow);
}
.btn:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--terra); background: #fff; }
.btn.big { font-size: 17px; padding: 16px 30px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 80% -10%, rgba(224,163,35,.22), transparent 60%),
  linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; background: var(--paper); border: 1px solid var(--line); color: var(--terra); font-weight: 600; font-size: 13px; padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.01em; }
.hero h1 em { color: var(--terra); font-style: italic; }
.hero p.sub { font-size: 18px; color: var(--ink-soft); margin: 18px 0 26px; max-width: 30em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.hero .trust div { font-size: 13px; color: var(--ink-soft); }
.hero .trust b { display: block; font-family: 'Fraunces', serif; font-size: 21px; color: var(--ink); }

.bowl-art {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #e9b04a, var(--terra) 62%, var(--terra-dark));
  display: grid; place-items: center; box-shadow: 0 30px 60px rgba(154,53,8,.35), inset 0 -20px 40px rgba(0,0,0,.2);
  position: relative; max-width: 420px; margin: 0 auto; width: 100%;
}
.bowl-art .emoji { font-size: clamp(90px, 18vw, 170px); filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.steam { position: absolute; top: 8%; left: 50%; display: flex; gap: 18px; transform: translateX(-50%); }
.steam span { width: 9px; height: 60px; background: linear-gradient(transparent, rgba(255,255,255,.6)); border-radius: 999px; filter: blur(4px); animation: rise 3s ease-in-out infinite; }
.steam span:nth-child(2){ animation-delay: .6s; height: 80px; }
.steam span:nth-child(3){ animation-delay: 1.2s; }
@keyframes rise { 0%{opacity:0; transform: translateY(10px) scaleX(1)} 30%{opacity:.9} 100%{opacity:0; transform: translateY(-40px) scaleX(1.6)} }

/* ---------- section ---------- */
section.block { padding: 56px 0; }
.sec-head { text-align: center; max-width: 38em; margin: 0 auto 36px; }
.sec-head h2 { font-family: 'Fraunces', serif; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
.sec-head p { color: var(--ink-soft); margin-top: 10px; font-size: 16px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s; box-shadow: 0 4px 14px rgba(80,45,12,.06);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcc59c; }
.card .thumb { aspect-ratio: 16/11; display: grid; place-items: center; position: relative; background-size: cover; background-position: center; }
.card .thumb .emoji { font-size: 74px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.card .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.tag.hot { background: var(--terra); color: #fff; }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: 'Fraunces', serif; font-size: 19px; line-height: 1.15; }
.card .tagline { color: var(--ink-soft); font-size: 13.5px; margin: 6px 0 14px; flex: 1; }
.card .priceRow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card .price { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: var(--ink); }
.card .price small { font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.card .add { background: var(--mustard); color: var(--ink); font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 999px; transition: .15s; }
.card .add:hover { background: var(--terra); color: #fff; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; align-items: start; }
.pdp .visual { aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; position: relative; box-shadow: var(--shadow); background-size: cover; background-position: center; overflow: hidden; }
.pdp .visual .emoji { font-size: clamp(110px, 20vw, 200px); filter: drop-shadow(0 10px 18px rgba(0,0,0,.3)); }
.pdp h1 { font-family: 'Fraunces', serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; }
.pdp .tagline { color: var(--terra); font-weight: 600; font-size: 16px; margin: 8px 0 16px; }
.pdp .desc { font-size: 16px; color: var(--ink-soft); }
.pdp .ingredients { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.pdp .ingredients span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.size-opt { border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 12px 16px; text-align: center; min-width: 92px; transition: .15s; }
.size-opt:hover { border-color: #d4b888; }
.size-opt.active { border-color: var(--terra); background: #fff5ec; }
.size-opt .lbl { font-weight: 600; font-size: 14px; }
.size-opt .val { font-family: 'Fraunces', serif; font-size: 17px; color: var(--terra); margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty button { width: 42px; height: 44px; font-size: 20px; color: var(--ink); }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 38px; text-align: center; font-weight: 600; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- cart / checkout ---------- */
.layout2 { display: grid; grid-template-columns: 1.4fr .85fr; gap: 30px; padding: 36px 0 60px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 16px; }
.line-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item:last-child { border-bottom: none; }
.li-emoji { width: 60px; height: 60px; border-radius: 12px; display: grid; place-items: center; font-size: 32px; flex-shrink: 0; background-size: cover; background-position: center; }
.li-main { flex: 1; min-width: 0; }
.li-main .nm { font-weight: 600; }
.li-main .meta { font-size: 13px; color: var(--ink-soft); }
.li-price { font-family: 'Fraunces', serif; font-weight: 600; }
.li-remove { color: var(--ink-soft); font-size: 13px; text-decoration: underline; }
.li-remove:hover { color: var(--terra); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; }
.summary-row.total .muted { font-family: 'Inter'; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--terra); }
.field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty .big { font-size: 60px; margin-bottom: 12px; }

/* pix */
.pix-box { text-align: center; }
.pix-qr { width: 240px; height: 240px; margin: 14px auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.pix-code { display: flex; gap: 8px; margin: 14px 0; }
.pix-code input { font-family: ui-monospace, monospace; font-size: 12px; }
.pix-status { display: inline-flex; align-items: center; gap: 9px; background: #fff5ec; color: var(--terra); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; margin-top: 6px; }
.pix-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mustard); animation: pulse 1.2s infinite; }
.pix-status.paid { background: #e7f5e3; color: var(--green); }
.pix-status.paid .dot { background: var(--green); animation: none; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.spinner { width: 44px; height: 44px; border: 4px solid var(--line); border-top-color: var(--terra); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- how / strip ---------- */
.strip { background: var(--ink); color: #f6ead6; }
.strip .wrap { display: flex; justify-content: space-around; gap: 24px; padding: 22px 20px; flex-wrap: wrap; text-align: center; }
.strip .item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.strip .item .ic { font-size: 22px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; padding: 10px; }
.step .n { width: 46px; height: 46px; border-radius: 50%; background: var(--terra); color: #fff; font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; display: grid; place-items: center; margin: 0 auto 14px; }
.step h4 { font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer.site { background: var(--ink); color: #d8c6ad; padding: 40px 0; margin-top: 40px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site .logo { color: #fff; }
footer.site a:hover { color: #fff; }
footer.site .small { font-size: 13px; }

/* ---------- modal (cidade) ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(47,32,19,.55); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-bg[hidden] { display: none; }
.modal {
  background: var(--paper); border-radius: 22px; max-width: 440px; width: 100%;
  padding: 30px 28px; box-shadow: 0 30px 70px rgba(0,0,0,.35); text-align: center;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0 } }
.modal .pot { font-size: 46px; }
.modal h3 { font-family: 'Fraunces', serif; font-size: 24px; margin: 8px 0 6px; }
.modal p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.modal .detected { background: #fff5ec; border: 1px solid #f0d8bc; color: var(--terra); border-radius: 12px; padding: 10px; font-size: 13px; margin-bottom: 14px; }
.modal select { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; font-family: inherit; background: #fff; margin-bottom: 16px; }

/* ---------- toast ---------- */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 200; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,1.3,.5,1); display: flex; gap: 9px; align-items: center; }
#toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .ctas, .hero .trust { justify-content: center; }
  .bowl-art { max-width: 300px; order: -1; }
  .pdp { grid-template-columns: 1fr; }
  .layout2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .city-pill { max-width: 150px; }
  .city-pill .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 520px) {
  .logo span.name { display: none; }
  .field .row2 { grid-template-columns: 1fr; }
}
