/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --creme: #fef0c6;
  --creme-2: #fce9b3;
  --rosa-claro: #f6dfe1;
  --rosa: #eab8bd;
  --rosa-escuro: #d98d95;
  --marrom: #4f2b16;
  --marrom-claro: #8a5c3f;
  --branco: #fffaf0;
  --sombra: 0 10px 30px rgba(79, 43, 22, 0.08);
  --raio: 22px;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--marrom);
  background: var(--creme);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--marrom);
  line-height: 1.15;
}

em { font-style: italic; color: var(--rosa-escuro); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--rosa-escuro);
  margin-bottom: 10px;
}

.center { text-align: center; }

.section { padding: 70px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--rosa-escuro);
  color: var(--branco);
}
.btn-primary:hover {
  background: var(--marrom);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--marrom);
  color: var(--marrom);
  background: transparent;
}
.btn-outline:hover {
  background: var(--marrom);
  color: var(--branco);
}

.btn-lg { padding: 16px 38px; font-size: 16px; }

.btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.whats-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== Header ===== */
.site-header {
  padding: 36px 0 10px;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 220px;
  max-width: 60%;
  height: auto;
}

.insta-link {
  text-decoration: none;
  color: var(--marrom-claro);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.insta-link:hover { color: var(--rosa-escuro); }

/* ===== Hero ===== */
.hero {
  padding: 20px 0 60px;
  text-align: center;
}

.hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 17px;
  color: var(--marrom-claro);
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Marquee ===== */
.marquee {
  background: var(--rosa-claro);
  overflow: hidden;
  padding: 12px 0;
}
.marquee-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  text-align: center;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--marrom);
  line-height: 1.1;
}
.marquee-track .ponto {
  font-style: normal;
  color: var(--rosa-escuro);
  font-size: 30px;
  line-height: 0;
}

/* ===== Cardápio ===== */
.cardapio h2 { font-size: 38px; margin-bottom: 26px; }

.tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}
.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--creme-2);
  padding: 6px;
  border-radius: 50px;
  flex-wrap: wrap;
  justify-content: center;
}
.tab {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--marrom-claro);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--marrom); }
.tab.active {
  background: var(--branco);
  color: var(--marrom);
  box-shadow: 0 4px 12px rgba(79, 43, 22, 0.1);
}

.categoria { scroll-margin-top: 40px; }
.categoria h3 {
  font-size: 26px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.icone { font-size: 24px; }

.divisor {
  text-align: center;
  color: var(--rosa-escuro);
  font-size: 18px;
  margin: 50px 0;
  opacity: 0.7;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  gap: 26px;
}

@media (min-width: 720px) {
  .produtos-grid.grid-4 { grid-template-columns: repeat(4, 240px); }
  .produtos-grid.grid-3 { grid-template-columns: repeat(3, 240px); }
  .produtos-grid.grid-2 { grid-template-columns: repeat(2, 240px); }
}

.produto-card {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 18px;
  box-shadow: var(--sombra);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.produto-card:hover { transform: translateY(-6px); }

.produto-img {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.produto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.produto-img img.obj-baixo {
  object-position: center 72%;
}

.produto-card h4 { font-size: 18px; margin-bottom: 8px; }
.produto-card p { font-size: 14px; color: var(--marrom-claro); margin-bottom: 14px; }

.produto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.preco {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--rosa-escuro);
}
.preco { white-space: nowrap; }
.preco small { font-size: 11px; color: var(--marrom-claro); font-family: var(--sans); }

/* ===== Qty widget (adicionar ao pedido) ===== */
.qty-widget { flex-shrink: 0; }

.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--marrom);
  color: var(--branco);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.2s ease;
}
.add-btn:hover { background: var(--rosa-escuro); transform: scale(1.06); }
.add-btn[hidden] { display: none; }

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--creme-2);
  border-radius: 50px;
  padding: 4px;
}
.stepper[hidden] { display: none; }

.step-minus, .step-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--branco);
  color: var(--marrom);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.step-minus:hover, .step-plus:hover { background: var(--rosa-claro); }

.step-qty {
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--marrom);
}

/* ===== Barra flutuante de pedido ===== */
.pedido-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--marrom);
  color: var(--branco);
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  box-shadow: 0 12px 30px rgba(79, 43, 22, 0.28);
  cursor: pointer;
  z-index: 200;
  font-family: var(--sans);
}
.pedido-bar[hidden] { display: none; }

.pedido-badge {
  background: var(--rosa-escuro);
  color: var(--branco);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.pedido-label {
  font-size: 15px;
  letter-spacing: 0.3px;
}

.pedido-total {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--rosa-escuro), var(--rosa));
  padding: 36px 0;
  text-align: center;
}
.cta-inner h2 { color: var(--branco); font-size: 34px; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.9); max-width: 440px; margin: 0 auto 30px; }
.cta-banner .btn-primary { background: var(--branco); color: var(--rosa-escuro); }
.cta-banner .btn-primary:hover { background: var(--marrom); color: var(--branco); }

/* ===== Footer ===== */
.site-footer {
  padding: 26px 0 70px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 120px;
  opacity: 0.9;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--marrom-claro);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: var(--rosa-escuro); }

.footer-icon { width: 16px; height: 16px; flex-shrink: 0; }

.footer-copy {
  font-size: 13px;
  color: var(--marrom-claro);
  opacity: 0.8;
  margin-top: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero h1 { font-size: 36px; }
}

/* ===== Tela do pedido ===== */
body.pedido-aberto { overflow: hidden; }

.pedido-view {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--creme);
  overflow-y: auto;
  padding: 0 20px 40px;
}
.pedido-view[hidden] { display: none; }

.pedido-view-box {
  max-width: 560px;
  margin: 0 auto;
}
.pedido-view-box h2 {
  font-size: 34px;
  text-align: center;
  margin-bottom: 22px;
}

.pedido-lista { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.pedido-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--branco);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--sombra);
}
.pedido-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pedido-item-nome { font-weight: 500; line-height: 1.3; }
.pedido-item-preco { font-size: 13px; color: var(--marrom-claro); }
.pedido-item-sub {
  min-width: 74px;
  text-align: right;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.pedido-view-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 22px 4px 18px;
  font-size: 18px;
}
.pedido-view-total strong { font-family: var(--serif); font-size: 28px; }

.pedido-view-acoes { display: flex; flex-direction: column; gap: 12px; }
.pedido-view-acoes .btn { width: 100%; text-align: center; justify-content: center; padding: 16px 24px; }

@media (max-width: 480px) {
  .pedido-item { flex-wrap: wrap; }
  .pedido-item-info { flex-basis: 100%; }
  .pedido-item-sub { margin-left: auto; }
}

/* Stepper compacto nos cards: evita o card crescer quando o preço tem unidade ao lado */
.produto-footer { gap: 6px; }
.produto-footer .preco { font-size: 17px; }
.produto-footer .stepper { gap: 4px; padding: 3px; }
.produto-footer .step-minus, .produto-footer .step-plus { width: 26px; height: 26px; }
.produto-footer .step-qty { min-width: 14px; text-align: center; }

/* ===== Mobile: versão reduzida (só afeta telas pequenas) ===== */
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }

  .site-header { padding: 22px 0 6px; }
  .logo-img { width: 150px; }

  .hero { padding: 10px 0 36px; }
  .hero h1 { font-size: 28px; margin-bottom: 12px; }
  .hero-text { font-size: 15px; margin-bottom: 22px; }
  .btn { padding: 11px 22px; font-size: 14px; }
  .btn-lg { padding: 12px 26px; font-size: 15px; }

  .marquee-track { gap: 14px; row-gap: 2px; }
  .marquee-track span { font-size: 17px; }
  .marquee-track .ponto { font-size: 22px; }
  /* 2 nomes em cima e 2 embaixo: o ponto do meio vira quebra de linha */
  .marquee-track .ponto:nth-child(4) { flex-basis: 100%; height: 0; font-size: 0; overflow: hidden; }

  .cardapio h2 { font-size: 28px; margin-bottom: 18px; }
  .tabs-wrap { margin-bottom: 30px; }
  .tab { padding: 8px 12px; font-size: 12.5px; }
  .categoria h3 { font-size: 21px; margin-bottom: 16px; }
  .icone { font-size: 20px; }
  .divisor { margin: 30px 0; }

  /* 2 cards por linha em vez de 1 gigante */
  .produtos-grid,
  .produtos-grid.grid-4,
  .produtos-grid.grid-3,
  .produtos-grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .produto-card { padding: 10px; border-radius: 16px; }
  .produto-card:hover { transform: none; }
  .produto-img { border-radius: 12px; margin-bottom: 10px; }
  .produto-card h4 { font-size: 15px; margin-bottom: 5px; }
  .produto-card p { font-size: 12px; line-height: 1.45; margin-bottom: 10px; }

  .produto-footer { flex-wrap: wrap; row-gap: 6px; }
  .produto-footer .preco { font-size: 15px; }
  .preco small { font-size: 10px; }
  .add-btn { width: 32px; height: 32px; }

  .pedido-bar { bottom: 14px; width: calc(100% - 28px); padding: 11px 18px; }
  .pedido-label { font-size: 14px; }
  .pedido-total { font-size: 16px; }

  .cta-banner { padding: 28px 0; }
  .cta-inner h2 { font-size: 26px; }
  .cta-inner p { font-size: 14px; margin-bottom: 22px; }

  .footer-logo { width: 90px; }
  .pedido-view-box h2 { font-size: 28px; }
}

/* Produto indisponível */
.badge-indisponivel {
  background: #eee; color: #777; font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
