/* Miau Lunar · identidade do cardápio e do app (creme, bege, vinho, chocolate) */
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-regular.ttf') format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-bold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('assets/fonts/fraunces-medium.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --creme: #f6efe4;
  --marfim: #fffaf1;
  --papel: #fbf3e6;
  --bege: #ead6ba;
  --areia: #f0dcc6;
  --vinho: #7b242b;
  --vinho-escuro: #50141d;
  --vinho-claro: #8c3037;
  --chocolate: #38211c;
  --cacau: #5a3a2e;
  --texto-suave: #7a6656;
  --caramelo: #ac7635;
  --dourado: #c4924a;
  --borda: #e3d3bd;
  --borda-forte: #d5bfa1;
  --verde: #436044;
  --verde-fundo: #eef2e4;

  --f-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --raio: 18px;
  --sombra-card: 0 3px 0 #e2d0b333, 0 10px 30px #47301c0d;
  --gutter: clamp(16px, 4vw, 40px);
  --largura: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--chocolate);
  background-color: var(--creme);
  background-image: radial-gradient(#b6a17d14 .7px, transparent .7px);
  background-size: 6px 6px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-order { padding-bottom: 92px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--caramelo); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--vinho); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .98;
  color: var(--vinho);
}
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #976d3a;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--vinho); border-color: #8a3b41; color: #fff7e8; box-shadow: 0 4px 0 var(--vinho-escuro), 0 8px 18px #57202122; }
.btn-primary:hover { background: var(--vinho-claro); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--vinho-escuro); }
.btn-soft { background: var(--verde-fundo); border-color: #c5d0b6; color: var(--verde); box-shadow: 0 3px 0 #c6d1b566; }
.btn-soft:hover { background: #e3ebd5; transform: translateY(-1px); }
.btn-ghost { background: var(--marfim); border-color: var(--borda-forte); color: var(--vinho); box-shadow: 0 3px 0 #dcc5a544; }
.btn-ghost:hover { background: #f5e5ce; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.wa-icon { stroke-width: 1.6; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--vinho); font-weight: 700; font-size: .9rem; text-decoration: underline; text-decoration-color: #7b242b55; text-underline-offset: 4px; }
.link-btn:hover { text-decoration-color: var(--vinho); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borda); background: var(--marfim); cursor: pointer; color: var(--cacau); }
.icon-btn:hover { background: #f3e4cd; }

/* ---------- aviso e topo ---------- */
.notice {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px var(--gutter);
  background: var(--vinho); color: #f7e3cc;
  font-size: .82rem; text-align: center; line-height: 1.4;
}
.notice b { color: #fff4e2; font-weight: 700; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0c27c; box-shadow: 0 0 0 4px #f0c27c33; flex-shrink: 0; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #f0c27c00; } }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: #fff8e9ee;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.topbar.is-stuck { border-bottom-color: var(--borda); box-shadow: 0 6px 20px #47301c10; }
.topbar-inner { max-width: var(--largura); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 20px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 62px; width: auto; transition: height .2s; }
.topbar.is-stuck .brand img { height: 50px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: .92rem; font-weight: 600; color: #8b7460; transition: color .15s, background .15s; }
.nav a:hover { color: var(--vinho); background: #ecdcc566; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 0 16px;
  border-radius: 100px; border: 1px solid var(--borda-forte); background: var(--marfim);
  color: var(--vinho); font-weight: 700; font-size: .9rem; cursor: pointer;
  box-shadow: 0 3px 0 #dcc5a544;
}
.cart-btn:hover { background: #f5e5ce; }
.cart-count {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 12px; background: var(--vinho); color: #fff7e8; font-size: .78rem;
}
.cart-count[hidden] { display: none; }
.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- hero ---------- */
.hero { position: relative; max-width: var(--largura); margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--gutter) 0; display: grid; gap: 28px; }
.hero-text { position: relative; z-index: 2; max-width: 620px; }
.hero h1 { font-size: clamp(3.4rem, 11vw, 6.6rem); margin: 14px 0 20px; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--cacau); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--texto-suave); font-size: .9rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 17px; height: 17px; color: var(--caramelo); }
.hero-art { margin: 0 calc(var(--gutter) * -1); }
.hero-art img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
}

@media (min-width: 960px) {
  .hero h1 { font-size: clamp(4.6rem, 7.4vw, 6.4rem); }
  .hero-art { margin: -170px calc(var(--gutter) * -1) 0 36%; }
  .hero-art img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 22%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 22%);
            mask-composite: intersect;
  }
}

/* ---------- cardápio ---------- */
.menu { position: relative; background: var(--areia); padding: 8px 0 clamp(56px, 8vw, 96px); margin-top: -2px; }
.wave { position: absolute; left: 0; width: 100%; height: clamp(36px, 6vw, 90px); display: block; }
.wave path { fill: var(--areia); stroke: none; }
.wave-top { bottom: calc(100% - 1px); }
.hero-art + .wave, .menu .wave-top { pointer-events: none; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(30px, 5vw, 48px); }
.section-head h2 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 10px 0 14px; }
.section-head p:not(.eyebrow) { color: var(--texto-suave); }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; text-align: left; max-width: none; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }

.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 880px) { .products { grid-template-columns: 1fr 1fr; gap: 26px; } }

.product {
  position: relative;
  display: grid; grid-template-columns: minmax(118px, 38%) 1fr; align-items: center; gap: 0 clamp(12px, 3vw, 24px);
  grid-template-areas: "photo info" "photo buy";
  padding: clamp(16px, 3vw, 24px);
  background: var(--marfim);
  border: 1px solid var(--borda);
  border-radius: 22px;
  box-shadow: var(--sombra-card);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product::before { /* moldura interna como no papel do cardápio */
  content: ''; position: absolute; inset: 7px; border: 1px dashed #dcc4a3; border-radius: 16px; pointer-events: none;
}
.product.in-cart { border-color: #c79b6b; box-shadow: 0 3px 0 #d8b9904d, 0 14px 30px #7b242b14; }
.product.is-off { opacity: .6; }
.product-photo { grid-area: photo; position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.product-photo::before { content: ''; position: absolute; inset: 8% 4% 2%; border-radius: 50%; background: radial-gradient(closest-side, #c8a37a55, transparent); filter: blur(6px); transform: translateY(8%); }
.product-photo img { position: relative; width: 100%; transform: rotate(-4deg); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); filter: drop-shadow(0 10px 12px #4a2a1a33); }
.product.is-alt .product-photo img { transform: rotate(5deg); }
.product:hover .product-photo img { transform: rotate(0) scale(1.04); }
.photo-badge {
  position: absolute; top: 4%; right: 2%;
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 17px; background: var(--vinho); color: #fff7e8; font-weight: 700; font-size: .9rem;
  box-shadow: 0 3px 0 var(--vinho-escuro);
}
.product-info { grid-area: info; position: relative; min-width: 0; align-self: end; }
.product h3 { font-family: var(--f-serif); font-size: clamp(1.35rem, 3vw, 1.65rem); line-height: 1.15; color: var(--vinho); letter-spacing: -.01em; }
.product h3 small { display: block; margin-top: 3px; font-family: var(--f-sans); font-size: .78rem; font-weight: 600; color: var(--caramelo); letter-spacing: .02em; }
.product-info > p { margin-top: 8px; font-size: .92rem; line-height: 1.55; color: var(--cacau); }
.tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .74rem; font-weight: 600; color: #866038; background: #f3e4cd; border: 1px solid #e6d0ae; padding: 3px 10px; border-radius: 100px; }
.product-buy { grid-area: buy; position: relative; align-self: start; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.price {
  font-family: var(--f-serif); font-size: 1.35rem; font-weight: 600;
  color: #fff7e8; background: var(--vinho); padding: 4px 16px 5px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px #ffffff1f, 0 3px 0 var(--vinho-escuro);
}
.btn-add { min-height: 46px; padding: 0 18px; }
.soldout { font-size: .85rem; font-weight: 600; color: var(--texto-suave); }

.stepper { display: inline-flex; align-items: center; background: var(--papel); border: 1px solid var(--borda-forte); border-radius: 14px; padding: 3px; }
.stepper button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 11px; background: var(--marfim); color: var(--vinho); cursor: pointer; box-shadow: 0 2px 0 #dcc5a566; }
.stepper button:hover:not(:disabled) { background: #f3e1c6; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper button[data-step="1"] { background: var(--vinho); color: #fff7e8; box-shadow: 0 2px 0 var(--vinho-escuro); }
.stepper button[data-step="1"]:hover:not(:disabled) { background: var(--vinho-claro); }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stepper-sm button { width: 36px; height: 36px; }
.stepper-sm output { min-width: 30px; font-size: .95rem; }
.stepper-sm svg { width: 17px; height: 17px; }

.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 28px; font-size: .85rem; color: var(--texto-suave); }
.noscript { text-align: center; padding: 20px; background: var(--marfim); border-radius: 14px; }

@media (max-width: 520px) {
  .product { grid-template-columns: 112px 1fr; grid-template-areas: "photo info" "buy buy"; align-items: start; }
  .product-info { align-self: start; }
  .product-photo { align-self: center; }
  .product-buy { flex-wrap: nowrap; padding-top: 14px; border-top: 1px dashed #dcc4a3; }
}

/* ---------- como encomendar ---------- */
.steps { padding: clamp(56px, 8vw, 96px) 0; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 820px) { .step-list { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step-list li { position: relative; padding: 26px 24px 24px; background: var(--marfim); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra-card); }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #f3e4cd; border: 1px solid #e4caa4; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--vinho); margin-bottom: 16px; }
.step-list li:first-child .step-num { background: var(--vinho); border-color: var(--vinho); color: #fff7e8; }
.step-list h3 { font-family: var(--f-serif); font-size: 1.3rem; color: var(--chocolate); margin-bottom: 6px; }
.step-list p { font-size: .93rem; color: var(--texto-suave); }

/* ---------- frase ---------- */
.quote { position: relative; background: radial-gradient(ellipse at 85% 0%, #a6483b, transparent 60%), linear-gradient(130deg, #6a2028, #832c32); color: #f7e3cc; padding: clamp(48px, 7vw, 80px) 0; overflow: hidden; isolation: isolate; }
.quote::before { content: ''; position: absolute; inset: 10px; border: 1px solid #e5bc7538; border-radius: 16px; pointer-events: none; }
.quote-inner { display: grid; justify-items: center; text-align: center; gap: 14px; }
.quote img { width: 108px; filter: drop-shadow(0 6px 10px #2a0a0f55); }
.quote .display { color: #fff4e2; font-size: clamp(2.2rem, 6.4vw, 3.8rem); }
.quote-sub { font-family: var(--f-serif); font-size: 1.1rem; color: #e9c9a6; }

/* ---------- galeria ---------- */
.gallery { padding: clamp(56px, 8vw, 96px) 0; }
.posts { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 14px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
@media (min-width: 880px) { .posts { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; margin: 0; } }
.post { display: block; scroll-snap-align: center; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--borda); box-shadow: var(--sombra-card); background: var(--marfim); transition: transform .25s ease, box-shadow .25s ease; }
.post:hover { transform: translateY(-4px); box-shadow: 0 16px 30px #47301c1f; }
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- rodapé ---------- */
.footer { background: var(--chocolate); color: #e8d6c0; padding: clamp(48px, 7vw, 72px) 0 0; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand img { width: 190px; padding: 14px 18px; background: var(--creme); border-radius: 18px; }
.footer-brand p { margin-top: 14px; font-family: var(--f-serif); font-size: 1.1rem; color: #f3dfc4; }
.footer-title { font-family: var(--f-sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dourado); margin-bottom: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list a, .contact-static { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.contact-list svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #4b2f27; color: #f0c27c; }
.contact-list a:hover svg { background: var(--vinho); }
.contact-list small { display: block; font-size: .75rem; color: #b89c80; line-height: 1.2; }
.contact-list span > span, .contact-list a > span { font-weight: 600; color: #fff1dc; }
.footer-text { color: #cdb59b; font-size: .93rem; margin-bottom: 18px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid #ffffff1a; font-size: .82rem; color: #a88f76; }
.footer-base a { color: #a88f76; text-decoration: none; }
.footer-base a:hover { color: #f0c27c; }

/* ---------- barra do pedido ---------- */
.order-bar {
  position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 10px 10px 20px;
  background: var(--chocolate); color: #fff1dc;
  border-radius: 18px; box-shadow: 0 14px 34px #2b150f55;
  animation: rise .35s cubic-bezier(.3, 1.3, .5, 1);
}
.order-bar[hidden] { display: none; }
.order-bar-info { display: grid; line-height: 1.25; }
.order-bar-info strong { font-size: .98rem; }
.order-bar-info span { font-size: .85rem; color: #e1c29b; }
.order-bar .btn { box-shadow: 0 3px 0 #2a0a0f; }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }

/* ---------- gaveta do pedido ---------- */
dialog { padding: 0; border: 0; color: inherit; }
.drawer {
  width: min(480px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh;
  margin: 0 0 0 auto; background: var(--creme);
  box-shadow: -20px 0 50px #2b150f33;
}
.drawer[open] { animation: slide-in .3s cubic-bezier(.2, .9, .3, 1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer::backdrop { background: #2b150f73; backdrop-filter: blur(2px); }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; background: #fff8e9; border-bottom: 1px solid var(--borda); }
.drawer-head h2 { font-family: var(--f-serif); font-size: 1.7rem; color: var(--vinho); line-height: 1.1; margin-top: 2px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; overscroll-behavior: contain; }
.drawer-foot { display: grid; gap: 10px; padding: 14px 20px max(16px, env(safe-area-inset-bottom)); background: #fff8e9; border-top: 1px solid var(--borda); }
.fine { font-size: .78rem; color: var(--texto-suave); text-align: center; line-height: 1.45; }

.empty { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 48px 12px; color: var(--texto-suave); }
.empty img { width: 120px; opacity: .9; }
.empty b { color: var(--chocolate); }

.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #d9c5a9; }
.cart-item img { width: 56px; height: auto; filter: drop-shadow(0 4px 5px #4a2a1a2e); }
.cart-item-info { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.cart-item-info b { font-family: var(--f-serif); font-weight: 600; font-size: 1.05rem; color: var(--chocolate); }
.cart-item-info small { color: var(--texto-suave); font-size: .8rem; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0 6px; }
.cart-total span { font-weight: 600; color: var(--cacau); }
.cart-total strong { font-family: var(--f-serif); font-size: 1.7rem; font-weight: 600; color: var(--vinho); }

.fields { border: 0; margin: 14px 0 0; padding: 18px 16px; display: grid; gap: 16px; background: var(--marfim); border: 1px solid var(--borda); border-radius: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--cacau); }
.field em { font-style: normal; font-weight: 500; color: #a38a70; font-size: .78rem; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid #d5c2a7; border-radius: 12px; background: #fffdf8;
  font-size: 1rem; /* evita zoom no iPhone */
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--caramelo); box-shadow: 0 0 0 3px #ac763533; }
.field-hint { font-size: .78rem; color: var(--texto-suave); }
.field-error { display: none; font-size: .8rem; color: #a3262d; font-weight: 600; }
.show-errors input:invalid { border-color: #a3262d; box-shadow: 0 0 0 3px #a3262d22; }
.show-errors input:invalid ~ .field-error { display: block; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: #f1e3cf; border: 1px solid #e3cfb0; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: #8b7460; transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--marfim); color: var(--vinho); box-shadow: 0 2px 0 #dcc5a5aa; }
.segmented input:focus-visible + span { outline: 3px solid var(--caramelo); outline-offset: 1px; }

.preview { margin-top: 16px; border: 1px solid var(--borda); border-radius: 14px; background: #fffdf8; }
.preview summary { cursor: pointer; padding: 12px 16px; font-size: .86rem; font-weight: 700; color: var(--vinho); }
.preview pre { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; word-break: break-word; font-family: var(--f-sans); font-size: .86rem; color: var(--cacau); user-select: all; }

/* ---------- cardápio ilustrado ---------- */
.lightbox { max-width: min(460px, 94vw); max-height: 94dvh; border-radius: 18px; overflow: auto; background: var(--marfim); box-shadow: 0 30px 70px #2b150f66; }
.lightbox::backdrop { background: #2b150fb3; }
.lightbox img { width: 100%; }
.lightbox-close { position: sticky; top: 10px; float: right; margin: 10px 10px -54px 0; z-index: 2; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: 18px; transform: translate(-50%, -140%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--chocolate); color: #fff1dc; font-size: .9rem; font-weight: 600;
  box-shadow: 0 12px 30px #2b150f44; transition: transform .3s cubic-bezier(.3, 1.3, .5, 1);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .brand img { height: 52px; }
  .topbar.is-stuck .brand img { height: 44px; }
  .hero { text-align: left; }
  .hero-actions .btn { flex: 1 1 200px; }
  .section-head-row .btn { width: 100%; }
}
@media (max-width: 380px) {
  .cart-btn-label { display: none; }
  .notice { font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
