/* 8ito Infinito Cafe — design system (site + PWA = mesmo visual do app) */
:root {
  --verde: #153238;
  --verde-mid: #1a3d45;
  --verde-soft: #1f4a54;
  --dourado: #c9a227;
  --dourado-light: #e0c04a;
  --branco: #f8f6f2;
  --branco-dim: rgba(248, 246, 242, 0.75);
  --sombra: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --madeira: #4a3226;
  --madeira-suave: rgba(74, 50, 38, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--verde);
  color: var(--branco);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.sem-scroll {
  overflow: hidden;
}

.faixa-teste {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.25), rgba(201, 162, 39, 0.12));
  border-bottom: 1px solid rgba(201, 162, 39, 0.45);
  padding: 0.45rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--branco-dim);
}

.faixa-teste span {
  color: var(--dourado-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(201, 162, 39, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(31, 74, 84, 0.6), transparent),
    linear-gradient(165deg, rgba(74, 50, 38, 0.06) 0%, transparent 35%),
    var(--verde);
}

/* Ambiente minimalista: madeira + grãos */
.decor-ambiente {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.decor-madeira {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 8px,
    rgba(201, 162, 39, 0.15) 8px,
    rgba(92, 64, 51, 0.25) 12px,
    transparent 16px
  );
}

.decor-madeira--top {
  top: 3.25rem;
}

.decor-madeira--foot {
  bottom: 0;
  height: 4px;
  opacity: 0.28;
}

.decor-grao {
  position: absolute;
  width: 0.45rem;
  height: 0.7rem;
  border-radius: 45% 55% 50% 50%;
  background: linear-gradient(145deg, #2a1810, #5c4033 45%, #3d281c);
  opacity: 0.2;
  transform: rotate(var(--rot, -18deg));
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.08);
}

.decor-grao--1 { top: 18%; left: 4%; --rot: -24deg; }
.decor-grao--2 { top: 42%; right: 6%; --rot: 12deg; width: 0.38rem; height: 0.58rem; }
.decor-grao--3 { bottom: 28%; left: 8%; --rot: 35deg; opacity: 0.14; }
.decor-grao--4 { bottom: 12%; right: 12%; --rot: -8deg; opacity: 0.16; }

.app-shell > *:not(.decor-ambiente) {
  position: relative;
  z-index: 1;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(21, 50, 56, 0.92);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}

.logo-symbol {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dourado);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--branco);
  letter-spacing: 0.02em;
}

.topbar-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--branco-dim);
  flex: 1;
}

.nav-principal {
  display: flex;
  gap: 0.35rem;
  flex: 1;
  justify-content: center;
}

.nav-principal-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(31, 74, 84, 0.45);
  color: var(--branco-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-principal-btn:hover {
  border-color: var(--dourado);
  color: var(--branco);
}

.nav-principal-btn.ativo {
  background: var(--dourado);
  color: var(--verde);
  border-color: var(--dourado);
}

@media (max-width: 480px) {
  .nav-principal-btn {
    font-size: 0.72rem;
    padding: 0.4rem 0.65rem;
  }
}

.btn-ver-pedido,
.btn-carrinho-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: var(--dourado);
  color: var(--verde);
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-ver-pedido:hover {
  filter: brightness(1.06);
}

.btn-ver-pedido-label {
  white-space: nowrap;
}

@media (max-width: 400px) {
  .btn-ver-pedido-label {
    font-size: 0.75rem;
  }
}

.badge {
  background: var(--verde);
  color: var(--dourado-light);
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.badge:empty,
.badge[data-zero="true"] {
  display: none;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 2.5rem 1.5rem 2rem;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dourado);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-lead {
  color: var(--branco-dim);
  max-width: 28rem;
  font-size: 1rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero-pills span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  color: var(--dourado-light);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-vapor {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 5.5rem;
  pointer-events: none;
  z-index: 2;
}

.vapor-linha {
  position: absolute;
  bottom: 35%;
  width: 0.55rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(
    to top,
    rgba(248, 246, 242, 0),
    rgba(248, 246, 242, 0.12) 30%,
    rgba(248, 246, 242, 0.22) 70%,
    rgba(248, 246, 242, 0)
  );
  filter: blur(3px);
  animation: vapor-sobe 3.2s ease-in-out infinite;
  opacity: 0.65;
}

.vapor-linha--1 { left: 28%; animation-delay: 0s; }
.vapor-linha--2 { left: 46%; height: 3rem; animation-delay: 0.6s; }
.vapor-linha--3 { left: 62%; animation-delay: 1.1s; }

@keyframes vapor-sobe {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0;
  }
  25% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(-2.2rem) scaleX(1.15);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vapor-linha {
    animation: none;
    opacity: 0.2;
  }
}

.hero-visual--promo {
  align-items: center;
  padding: 0.25rem 0 0.75rem;
}

.hero-visual--promo img {
  max-width: min(520px, 94vw);
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.65rem;
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  opacity: 1;
}

.hero-visual--simbolo,
.hero-visual--ponte {
  align-items: center;
  padding: 0.5rem 0 1rem;
}

.hero-visual--simbolo::before,
.hero-visual--ponte::before {
  content: "";
  position: absolute;
  inset: 18% 12% 22%;
  background: radial-gradient(
    ellipse at 50% 60%,
    rgba(232, 197, 71, 0.08) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-visual--simbolo img,
.hero-visual--ponte img {
  max-width: min(220px, 52vw);
  max-height: 260px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.88;
  filter: none;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  max-width: min(320px, 90vw);
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.conteudo-principal {
  min-width: 0;
}

.view-panel {
  display: none;
}

.view-panel.view-panel--ativa {
  display: block;
}

.catalogo {
  position: relative;
}

/* Sobre nós */
.sobre-nos {
  position: relative;
}

.sobre-nos-inner {
  max-width: 36rem;
}

.sobre-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dourado);
  margin-bottom: 0.35rem;
}

.sobre-nos h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  color: var(--dourado-light);
  margin-bottom: 0.65rem;
}

.sobre-lead {
  font-size: 1.05rem;
  color: var(--branco);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.sobre-bloco {
  margin-bottom: 1.35rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(201, 162, 39, 0.45);
}

.sobre-bloco h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dourado-light);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.sobre-bloco p {
  color: var(--branco-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sobre-destaques {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.sobre-destaques li {
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  background: rgba(31, 74, 84, 0.55);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 10px;
  color: var(--branco-dim);
}

.sobre-destaques li::before {
  content: "◆ ";
  color: var(--dourado);
  font-size: 0.55rem;
  vertical-align: middle;
}

.sobre-visual {
  text-align: center;
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem;
  background: linear-gradient(165deg, rgba(31, 74, 84, 0.6), rgba(21, 50, 56, 0.9));
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
}

.sobre-visual img {
  max-width: 160px;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.sobre-frase {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--branco-dim);
  margin-top: 1rem;
}

.sobre-voltar {
  max-width: 16rem;
}

.catalogo-madeira {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--madeira-suave) 15%,
    rgba(201, 162, 39, 0.2) 50%,
    var(--madeira-suave) 85%,
    transparent
  );
  opacity: 0.7;
  pointer-events: none;
}

/* Layout */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
    padding-bottom: 3rem;
    transition: grid-template-columns 0.25s ease;
  }

}

/* Pedido: aberto | minimizado */
body.estado-pedido-minimizado .layout {
  grid-template-columns: 1fr !important;
}

body.estado-pedido-minimizado #carrinho-panel:not(.aberto) {
  display: none !important;
}

body.estado-pedido-aberto #carrinho-panel.carrinho-panel--visivel {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.estado-pedido-minimizado #carrinho-dock {
  display: flex !important;
  z-index: 350;
}

body.estado-pedido-aberto #carrinho-dock {
  display: none !important;
}

@media (max-width: 959px) {
  .carrinho-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(100%, 380px);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 0;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  body.estado-pedido-minimizado #carrinho-dock {
    display: flex !important;
    z-index: 350;
  }

  body.estado-pedido-aberto #carrinho-dock {
    display: none !important;
  }

  #carrinho-panel.aberto,
  #carrinho-panel.carrinho-panel--visivel {
    display: flex !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .overlay.visivel {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 150;
  }
}

.catalogo-header {
  margin-bottom: 1.25rem;
}

.catalogo-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--dourado);
  margin-bottom: 1rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(31, 74, 84, 0.5);
  color: var(--branco);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.tabs button.ativo {
  background: var(--dourado);
  color: var(--verde);
  border-color: var(--dourado);
  font-weight: 700;
}

/* Product grid */
.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card-produto {
  background: linear-gradient(165deg, var(--verde-soft) 0%, var(--verde-mid) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.card-produto:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.45);
}

.card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--verde);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dourado-light);
  margin-bottom: 0.35rem;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--branco-dim);
  flex: 1;
  line-height: 1.45;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 0.75rem;
}

.preco {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--branco);
}

.btn-add {
  background: var(--dourado);
  color: var(--verde);
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s;
}

.btn-add:hover {
  filter: brightness(1.1);
}

.btn-add:active {
  transform: scale(0.98);
}

/* Sacola / pedido */
.carrinho-panel {
  background: linear-gradient(180deg, var(--verde-mid), var(--verde));
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: var(--sombra);
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.carrinho-panel.modo-sacola {
  background: linear-gradient(180deg, #fffefb 0%, var(--branco) 100%);
  border: 2px solid rgba(201, 162, 39, 0.55);
  box-shadow: 0 16px 48px rgba(21, 50, 56, 0.22);
  color: var(--verde);
}

.carrinho-corpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.carrinho-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem 0.5rem;
  flex-shrink: 0;
}

.carrinho-header-acoes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-minimizar-carrinho {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  background: rgba(21, 50, 56, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 8px;
  color: var(--dourado-light);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.btn-minimizar-carrinho:hover {
  border-color: var(--dourado);
  background: rgba(201, 162, 39, 0.12);
}

@media (max-width: 959px) {
  .btn-minimizar-texto {
    display: none;
  }
}

/* Aba flutuante — pedido minimizado */
.carrinho-dock {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 350;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.85rem 0.65rem 0.85rem 0.85rem;
  max-width: 120px;
  background: linear-gradient(180deg, var(--verde-mid), var(--verde));
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: var(--sombra);
  color: var(--branco);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, padding 0.2s ease;
}

.carrinho-dock:hover {
  transform: translateY(-50%) translateX(-2px);
  border-color: var(--dourado);
}

.carrinho-dock-icone {
  font-size: 1.25rem;
  line-height: 1;
}

.carrinho-dock-titulo {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--dourado-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.carrinho-dock-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: var(--branco-dim);
  margin-top: 0.2rem;
}

.carrinho-dock-meta #dock-total {
  font-weight: 700;
  color: var(--branco);
  font-size: 0.85rem;
}

.carrinho-dock-expandir {
  align-self: flex-end;
  font-size: 1rem;
  color: var(--dourado);
  margin-top: 0.25rem;
}

.carrinho-titulo-grupo {
  flex: 1;
  min-width: 0;
}

.carrinho-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.15rem;
}

.carrinho-panel.modo-sacola .carrinho-eyebrow {
  color: #9a7b1a;
}

.carrinho-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--dourado);
  line-height: 1.1;
}

.carrinho-panel.modo-sacola .carrinho-header h2 {
  color: var(--verde);
}

.carrinho-contagem {
  font-size: 0.78rem;
  color: var(--branco-dim);
  margin-top: 0.2rem;
}

.carrinho-panel.modo-sacola .carrinho-contagem {
  color: rgba(21, 50, 56, 0.65);
}

.carrinho-panel.modo-sacola .btn-minimizar-carrinho {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.55);
  color: var(--verde);
}

.carrinho-panel.modo-sacola .btn-fechar-carrinho {
  color: var(--verde);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
}

.btn-fechar-carrinho {
  display: none;
  background: transparent;
  border: none;
  color: var(--branco);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 959px) {
  .btn-fechar-carrinho {
    display: block;
  }
}

.carrinho-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.25rem;
  min-height: 120px;
}

.pedido-lista {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pedido-vazio {
  text-align: center;
  padding: 2rem 0.5rem;
  color: rgba(21, 50, 56, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pedido-vazio span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.pedido-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21, 50, 56, 0.06);
}

.pedido-item-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dourado);
  min-width: 1.1rem;
  padding-top: 0.15rem;
}

.pedido-item-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  background: var(--verde);
}

.pedido-item-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.pedido-item-corpo {
  min-width: 0;
}

.pedido-item-nome {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--verde);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.pedido-item-unit {
  display: block;
  font-size: 0.75rem;
  color: rgba(21, 50, 56, 0.55);
  margin-bottom: 0.45rem;
}

.pedido-item-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pedido-item-qtd {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 8px;
  padding: 0.15rem;
}

.pedido-item-qtd button {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--branco);
  color: var(--verde);
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

.pedido-item-qtd button:hover {
  background: var(--dourado);
  color: var(--verde);
}

.pedido-item-qtd span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--verde);
}

.pedido-item-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: #9a7b1a;
  white-space: nowrap;
}

.pedido-item-remover {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(180, 80, 80, 0.35);
  background: rgba(255, 240, 240, 0.9);
  color: #a44;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  align-self: start;
}

.vazio,
.erro {
  color: var(--branco-dim);
  font-size: 0.9rem;
  padding: 1rem 0;
}

.carrinho-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.5);
}

.carrinho-panel.modo-sacola .carrinho-footer {
  border-top: 2px solid rgba(201, 162, 39, 0.35);
  background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.06));
}

.carrinho-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--verde);
}

.carrinho-panel.modo-sacola .carrinho-total span:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.carrinho-total span:last-child {
  color: var(--dourado);
  font-size: 1.35rem;
}

.carrinho-panel.modo-sacola .btn-secundario {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--verde);
}

.btn-primary {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--dourado), var(--dourado-light));
  color: var(--verde);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secundario {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: transparent;
  color: var(--branco-dim);
  border: 1px solid rgba(248, 246, 242, 0.25);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-secundario:hover {
  border-color: var(--dourado);
  color: var(--branco);
}

.carregando,
.vazio,
.erro {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--branco-dim);
}

.erro code {
  color: var(--dourado-light);
}

/* Checkout modal — visibilidade por classe .ativo (evita conflito com [hidden]) */
.modal-checkout {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
}

.modal-checkout.ativo {
  display: flex;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.checkout-resumo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(21, 50, 56, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.checkout-resumo strong {
  font-size: 1.35rem;
  color: var(--dourado-light);
}

.pix-nome {
  font-size: 1rem;
  margin: 0.25rem 0 0.75rem;
}

.pix-chave {
  margin-top: 0.35rem;
  user-select: all;
}

.modal-checkout-inner {
  background: var(--verde-mid);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  padding: 1.75rem;
  padding-top: 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 2;
  box-shadow: var(--sombra);
  max-height: 90vh;
  overflow-y: auto;
  pointer-events: auto;
}

.modal-checkout h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--dourado);
  margin-bottom: 0.5rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--branco-dim);
  margin-bottom: 1.25rem;
}

.btn-fechar-modal {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde);
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 8px;
  color: var(--branco);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-fechar-modal:hover,
.btn-fechar-modal:focus-visible {
  border-color: var(--dourado);
  color: var(--dourado-light);
  outline: none;
}

.btn-link-fechar {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--branco-dim);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}

.btn-link-fechar:hover {
  color: var(--dourado-light);
}

.pix-box {
  background: var(--verde);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px dashed rgba(201, 162, 39, 0.4);
}

.pix-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dourado);
}

.pix-chave {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  margin-top: 0.5rem;
}

.checkout-passos {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--branco-dim);
  line-height: 1.45;
}

.checkout-passos strong {
  color: var(--dourado-light);
}

.modal-retirada {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-retirada.ativo {
  pointer-events: auto;
  opacity: 1;
}

.modal-retirada-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 22rem);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, var(--verde-deep) 0%, var(--verde) 100%);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.retirada-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dourado);
  margin: 0;
}

.modal-retirada h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.retirada-codigo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--branco-dim);
  margin: 0;
}

.retirada-codigo {
  font-family: ui-monospace, monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dourado-light);
  margin: 0.25rem 0 1rem;
  letter-spacing: 0.06em;
}

.retirada-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.retirada-qr-wrap img {
  background: #fff;
  border-radius: 12px;
  padding: 0.35rem;
}

.retirada-instrucao {
  font-size: 0.9rem;
  color: var(--branco);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.retirada-passos-estacoes {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
}

.retirada-passo {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.retirada-passo-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--dourado);
  color: var(--verde-deep);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retirada-passo-corpo strong {
  display: block;
  font-size: 0.95rem;
  color: var(--branco);
}

.retirada-passo-dica {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.78rem;
  color: var(--branco-dim);
  line-height: 1.35;
}

.retirada-passo-itens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.retirada-item-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--dourado-light);
}

.retirada-resumo {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: left;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
}

.retirada-resumo li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.retirada-resumo strong {
  color: var(--dourado-light);
}

.retirada-acoes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-botoes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checkout-botoes .btn-primary,
.checkout-botoes .btn-secundario {
  margin-top: 0;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.btn-confirmar {
  width: 100%;
  padding: 0.9rem;
  background: var(--verde);
  color: var(--dourado-light);
  border: 2px solid var(--dourado);
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-confirmar:hover {
  background: rgba(201, 162, 39, 0.15);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dourado);
  color: var(--verde);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 400;
  box-shadow: var(--sombra);
  animation: toast-in 0.3s ease;
}

@media (min-width: 960px) {
  .toast {
    bottom: 2rem;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.footer {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.footer-frase {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--branco-dim);
  margin-bottom: 0.5rem;
}

.footer-marca {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dourado);
}

.btn-instalar {
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--dourado);
  color: var(--dourado-light);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-instalar:hover {
  background: rgba(201, 162, 39, 0.12);
}
