/* Oliveira's Pizza — configurador
   Implementação standalone a partir do design (Oliveiras Pizza.dc.html) */

:root {
  --ink: #2b2118;
  --ink-soft: #4a382a;
  --muted: #b08a63;
  --muted-2: #a58a70;
  --paper: #fdf7f0;
  --paper-2: #fceee0;
  --accent: #e5761c;
  --accent-hover: #c85d0c;
  --grad-cta: linear-gradient(140deg, #ffb020, #f3701c);
  --grad-promo: linear-gradient(125deg, #ffc043 0%, #f7871f 62%, #ef6a17 100%);
  --shadow-c: 120, 78, 30;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, #fdf3e6 0%, #f2e2cf 55%, #e9d6bf 100%);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

button { font: inherit; }

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  user-select: none;
}

@keyframes om-pop {
  0% { transform: scale(.4); opacity: 0 }
  60% { transform: scale(1.25) }
  100% { transform: scale(1); opacity: 1 }
}
@keyframes om-steam {
  0% { transform: translateY(0) scale(1); opacity: .35 }
  100% { transform: translateY(-26px) scale(1.6); opacity: 0 }
}

/* ---------- Shell ---------- */

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 480px) {
  body { display: flex; justify-content: center; padding: 28px 0; }
  .app-shell {
    width: 390px;
    min-height: 844px;
    margin: auto;
    border-radius: 42px;
    box-shadow: 0 44px 90px -26px rgba(88, 55, 20, .55), 0 0 0 1px rgba(0, 0, 0, .06);
  }
}

.screen {
  flex: 1;
  overflow-y: auto;
  padding: 22px 0 24px;
}
/* O CTA/navbar são fixos e têm gradiente por cima do conteúdo — a folga
   precisa ser maior que a barra para o último item subir inteiro acima dela. */
.screen.detail { background: linear-gradient(180deg, #fceee0 0%, #fdf7f0 44%); padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
.screen.home { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.header-brand { display: flex; flex-direction: column; gap: 2px; }
.header-eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.header-title { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 16px;
  background: #fff;
  border: none;
  box-shadow: 0 8px 20px -10px rgba(var(--shadow-c), .5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 22px;
}
.icon-btn.small { width: 42px; height: 42px; border-radius: 15px; box-shadow: 0 8px 18px -12px rgba(var(--shadow-c), .8); font-size: 21px; }

.badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 11px;
  background: var(--grad-cta);
  color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  animation: om-pop .45s cubic-bezier(.3,1.5,.5,1);
  box-shadow: 0 4px 10px -2px rgba(233, 110, 20, .8);
}

/* ---------- Promo banner ---------- */

.promo {
  margin: 20px 22px 0;
  padding: 20px;
  border-radius: 26px;
  background: var(--grad-promo);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 34px -18px rgba(230, 120, 25, .85);
  border: none;
  text-align: left;
  width: calc(100% - 44px);
  cursor: pointer;
}
.promo::before {
  content: ''; position: absolute; right: -34px; top: -30px;
  width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.16);
}
.promo::after {
  content: ''; position: absolute; right: 14px; bottom: -46px;
  width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffdd9c 0 58%, #f0b45c 58% 74%, #d98b35 74% 100%);
  box-shadow: inset 0 -8px 18px rgba(150, 90, 20, .35);
}
.promo-inner { position: relative; display: flex; flex-direction: column; gap: 9px; max-width: 66%; }
.promo-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.82); font-weight: 600; }
.promo-title { font-size: 22px; line-height: 1.15; font-weight: 600; color: #fff; letter-spacing: -.02em; text-wrap: pretty; }
.promo-cta {
  align-self: flex-start; margin-top: 4px; padding: 9px 18px; border-radius: 999px;
  background: #2b2118; color: #ffe9c9; font-size: 13px; font-weight: 500;
}

/* ---------- Section headers ---------- */

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 26px 22px 12px;
}
.section-head .title { font-size: 17px; font-weight: 600; color: var(--ink); }
.section-head .action { font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer; }

/* ---------- Populares (horizontal scroll) ---------- */

.rail {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 4px 22px 6px;
  scroll-snap-type: x mandatory;
}

.pop-card {
  flex: 0 0 168px; scroll-snap-align: start;
  padding: 14px; border-radius: 24px; background: #fff;
  box-shadow: 0 14px 30px -20px rgba(var(--shadow-c), .8);
  cursor: pointer; border: none; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  font-family: inherit;
}
.pop-thumb {
  height: 96px; border-radius: 18px; padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
/* ---------- Pizza pronta nos cards ---------- */

.mini-pizza {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(120, 70, 20, .32));
}
.pop-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.pop-row { display: flex; align-items: center; justify-content: space-between; }
.pop-price { font-size: 14px; font-weight: 600; color: var(--accent); }
.pop-rating { font-size: 11px; color: var(--muted-2); display: flex; align-items: center; gap: 3px; }
.pop-rating .material-symbols-rounded { font-size: 13px; color: #f7a41c; }

/* ---------- Cardápio grid ---------- */

.grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 22px;
}
.menu-card {
  padding: 14px; border-radius: 24px; background: #fff;
  box-shadow: 0 14px 30px -22px rgba(var(--shadow-c), .9);
  cursor: pointer; border: none; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  font-family: inherit;
}
.menu-thumb {
  width: 100%; aspect-ratio: 1; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}

.menu-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.menu-summary { font-size: 11px; color: var(--muted-2); line-height: 1.4; text-wrap: pretty; }
.menu-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.menu-price { font-size: 15px; font-weight: 600; color: var(--ink); }
.menu-add {
  width: 30px; height: 30px; border-radius: 12px;
  background: var(--grad-cta); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ---------- Card do configurador (Home) ---------- */

.montar-card {
  display: flex; align-items: center; gap: 14px;
  width: calc(100% - 44px); margin: 0 22px; padding: 18px;
  border-radius: 26px; border: 1.5px dashed rgba(233, 130, 30, .45);
  background: linear-gradient(135deg, #fff8ed 0%, #ffeed6 100%);
  box-shadow: 0 16px 32px -24px rgba(120, 78, 30, .9);
  cursor: pointer; font-family: inherit; text-align: left;
}
.montar-texto { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.montar-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.montar-titulo { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.montar-sub { font-size: 11.5px; color: var(--muted-2); line-height: 1.4; text-wrap: pretty; }
.montar-visual { flex-shrink: 0; }
.montar-pizza { position: relative; width: 76px; height: 76px; }
.montar-plus {
  position: absolute; right: -4px; bottom: -4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-cta); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 6px 14px -4px rgba(233, 110, 20, .8);
}

/* ---------- Bottom nav (home) ---------- */

.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 390px;
  height: 84px;
  background: rgba(253, 247, 240, .92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(176, 138, 99, .16);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 18px 16px;
  z-index: 30;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; padding-top: 14px; background: none; border: none;
}
.nav-item .material-symbols-rounded { font-size: 24px; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; }

/* ---------- Detail: pizza visual ---------- */

.pizza-stage {
  position: relative; height: 300px;
  display: flex; align-items: center; justify-content: center;
}
/* A própria pizza é alvo de soltura no arraste: quando o dedo passa por
   cima, ela se acende para deixar claro que é ali que a peça cai. */
.pizza-stage.drop-hover .pizza-glow {
  background: radial-gradient(circle, rgba(247, 164, 28, .3) 0%, rgba(247, 164, 28, 0) 70%);
  box-shadow: inset 0 0 0 2px rgba(233, 130, 30, .55);
}
/* Discreto: a arte da pizza já traz volume e sombra própria, e um halo forte
   passaria a impressão de um prato atrás dela. */
.pizza-glow {
  position: absolute; width: 272px; height: 272px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 90, .15) 0%, rgba(255, 190, 90, 0) 72%);
}
.steam { position: absolute; border-radius: 50%; background: #ffcf8a; }
.steam.s1 { top: 44px; left: 50%; width: 12px; height: 12px; animation: om-steam 3.4s ease-out infinite; }
.steam.s2 { top: 52px; left: 44%; width: 9px; height: 9px; animation: om-steam 3.9s ease-out .8s infinite; }

.pizza {
  position: relative; width: 246px; height: 246px;
  transition: transform .95s cubic-bezier(.22,1,.28,1), opacity .5s ease, clip-path .8s cubic-bezier(.5,0,.6,1);
}
/* Camadas de disco inteiro (massa, cama de frango, grade de catupiry, borda).
   Todas as artes foram normalizadas para o mesmo centro e diâmetro, então
   basta empilhá-las ocupando a mesma caixa. */
.camada {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .35s ease;
  pointer-events: none;
}
.camada.borda { z-index: 5; }
.pizza { filter: drop-shadow(0 22px 26px rgba(120, 66, 14, .42)); }

/* Cada sabor tem sua própria camada de coberturas; em meia a meia elas são
   recortadas no meio, como na pizza de verdade. */
/* isolation: cada metade vira seu próprio contexto de empilhamento, então o
   z-index das peças não escapa e disputa com a borda recheada. */
.pizza-half { position: absolute; inset: 0; z-index: 1; isolation: isolate; }
/* Discreta: com bases diferentes a divisão já se vê sozinha; a linha só
   precisa marcar o corte quando os dois sabores usam a mesma massa. */
.pizza-divisor {
  position: absolute; top: 12%; bottom: 12%; left: 50%; width: 2px;
  transform: translateX(-50%); border-radius: 2px; z-index: 2;
  background: linear-gradient(180deg, rgba(120, 70, 20, 0), rgba(120, 70, 20, .28) 22%, rgba(120, 70, 20, .28) 78%, rgba(120, 70, 20, 0));
}
/* Peça de ingrediente sobre a pizza. A moldura é igual para todos; a
   proporção real (uma ervilha é bem menor que um tomate) vem desenhada
   dentro da própria arte. */
.topping-dot {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(90, 50, 10, .4));
  /* left/top entram na transição porque as posições mudam ao trocar de
     tamanho: as peças deslizam para o novo arranjo em vez de saltarem. */
  transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .35s ease,
              left .45s cubic-bezier(.3,1,.4,1), top .45s cubic-bezier(.3,1,.4,1);
  pointer-events: none;
}

.size-row {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.size-btn {
  border: none; display: flex; align-items: center; justify-content: center;
  font-weight: 600; cursor: pointer; transition: all .3s ease; border-radius: 50%;
}

/* Diz o que P/M/G significam, em vez de deixar o cliente adivinhar. */
.size-info {
  padding: 10px 22px 0; text-align: center;
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}

/* Etiqueta que confirma o ingrediente que acabou de cair na pizza. */
.flash {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(43, 33, 24, .9); color: #ffe9c9;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  pointer-events: none; opacity: 0; z-index: 5; white-space: nowrap;
}
.flash.on { animation: flash-in 1.1s cubic-bezier(.3, 1.4, .5, 1) forwards; }

@keyframes flash-in {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.85) }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1) }
  72% { opacity: 1; transform: translate(-50%, 0) scale(1) }
  100% { opacity: 0; transform: translate(-50%, -10px) scale(.97) }
}

/* ---------- 1 sabor / 2 sabores ---------- */

.modo-sabores {
  display: flex; gap: 4px; margin: 14px 22px 0; padding: 4px;
  background: rgba(176, 138, 99, .12); border-radius: 999px;
}
.modo-btn {
  flex: 1; padding: 9px 0; border: none; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .22s ease;
}
.modo-btn.on { background: #fff; color: var(--ink); box-shadow: 0 6px 14px -8px rgba(120, 78, 30, .8); }

.lado-tabs { display: flex; gap: 10px; margin: 12px 22px 0; }
.lado-tab {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  padding: 10px 10px 10px 12px; border-radius: 18px; background: #fff;
  border: 1.5px solid rgba(176, 138, 99, .16);
  box-shadow: 0 10px 22px -18px rgba(120, 78, 30, .8);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: all .22s ease;
}
/* `vazia` antes de `on`: uma metade sem sabor continua tracejada, mas a que
   está sendo editada precisa vencer visualmente mesmo assim. */
.lado-tab.vazia { border-style: dashed; border-color: rgba(233, 130, 30, .45); background: rgba(255, 246, 233, .4); }
.lado-tab.on {
  border-color: #f7a41c; background: #fff6e9;
  box-shadow: inset 0 0 0 1.5px #f7a41c, 0 12px 24px -16px rgba(233, 110, 20, .7);
}
.lado-tab.on .lado-num { color: var(--accent); }
.lado-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lado-num { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lado-nome {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lado-tab.vazia .lado-nome { color: var(--accent); }
.lado-icone { flex-shrink: 0; color: var(--accent); font-size: 19px; }

/* Com um sabor só não há abas: o próprio nome vira o atalho da troca. */
.name-btn {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 0; border: none; background: none; cursor: pointer;
  font-family: inherit; text-align: left;
}
.name-seta { font-size: 20px; color: var(--muted); }

/* ---------- Linha de opção (abre bottom sheet) ---------- */

.linha-opcao {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 36px);
  margin: 14px 18px 0; padding: 14px 16px; border-radius: 20px;
  background: #fff; border: 1.5px solid rgba(176, 138, 99, .16);
  box-shadow: 0 10px 24px -20px rgba(120, 78, 30, .9);
  cursor: pointer; font-family: inherit; text-align: left;
}
.linha-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.linha-valor { flex: 1; font-size: 12.5px; color: var(--muted-2); text-align: right; }
.linha-seta { font-size: 20px; color: var(--muted); }

/* ---------- Ingredientes da receita (dentro do card) ---------- */

.receita-bloco { display: flex; flex-direction: column; gap: 9px; }
.receita-cabeca { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.receita-titulo {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.receita-dica { font-size: 10.5px; color: var(--muted-2); }
.receita-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.receita-chip {
  display: flex; align-items: center; gap: 7px; padding: 7px 11px 7px 8px;
  border-radius: 999px; background: #fff; border: 1.5px solid rgba(176, 138, 99, .16);
  box-shadow: 0 8px 18px -16px rgba(120, 78, 30, .8);
  cursor: pointer; font-family: inherit; transition: all .22s ease;
}
.receita-chip.fora { background: rgba(176, 138, 99, .08); border-style: dashed; box-shadow: none; opacity: .72; }
.receita-chip.fora .receita-nome { text-decoration: line-through; color: var(--muted); }
.receita-chip.fora .receita-dot { filter: grayscale(1); opacity: .45; }
.receita-dot { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }
.receita-nome { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.receita-icone { font-size: 15px; color: var(--muted); }

/* ---------- Detail: info card ---------- */

.info-card {
  margin: 6px 18px 0; padding: 18px; border-radius: 26px; background: #fff;
  box-shadow: 0 18px 36px -26px rgba(var(--shadow-c), .9);
  display: flex; flex-direction: column; gap: 14px;
}
.info-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.info-name { display: flex; flex-direction: column; gap: 3px; }
.info-name .name { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.info-name .price {
  font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -.02em;
  display: inline-block; transition: transform .28s cubic-bezier(.3,1.6,.5,1);
}
.stepper {
  display: flex; align-items: center; gap: 12px; padding: 7px 10px;
  border-radius: 999px; background: #fdf1e2;
}
.stepper button {
  background: none; border: none; cursor: pointer; font-size: 19px; display: flex;
}
.stepper .minus { color: var(--muted); }
.stepper .plus { color: var(--accent); }
.stepper .qty { font-size: 14px; font-weight: 600; color: var(--ink); min-width: 18px; text-align: center; }
.info-desc { font-size: 12px; line-height: 1.6; color: var(--muted-2); text-wrap: pretty; }

/* ---------- Toppings ---------- */

.topping-card {
  flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 6px; border-radius: 22px; cursor: grab;
  transition: all .28s ease; border: none; font-family: inherit;
  user-select: none; -webkit-user-select: none;
}
.topping-card.armed {
  transform: scale(1.07);
  box-shadow: 0 18px 32px -14px rgba(120, 78, 30, .95), 0 0 0 1.5px #f7a41c !important;
  cursor: grabbing;
}
.topping-card.dragging-source { opacity: .4; }
.topping-thumb-wrap { position: relative; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.thumb-art { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(90,50,10,.28)); }
.topping-badge {
  position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; box-shadow: 0 3px 7px -2px rgba(90, 50, 10, .6); transition: background .28s ease;
}
.topping-name { font-size: 11px; font-weight: 600; color: var(--ink-soft); text-align: center; line-height: 1.2; }
.topping-price { font-size: 10px; color: var(--muted); }

/* ---------- Drag ghost ---------- */

.drag-ghost {
  position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 7px; border-radius: 20px; background: #fff;
  box-shadow: 0 20px 38px -16px rgba(120, 78, 30, .9), 0 0 0 1.5px #f7a41c;
  transform: translate(-50%, -50%) scale(1.04);
}
.drag-ghost .thumb { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.drag-ghost .name { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- Adicionados (selected toppings grid) ---------- */

.added-section { padding: 4px 22px 4px; transition: background .18s ease, outline-color .18s ease; border-radius: 20px; }
.added-section.drop-hover { outline: 2px dashed var(--accent); outline-offset: 6px; background: rgba(255, 246, 233, .5); }

.selected-empty {
  padding: 20px 16px; border-radius: 20px;
  border: 1.5px dashed rgba(176, 138, 99, .4); background: rgba(255, 255, 255, .5);
  text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5;
}

.selected-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.selected-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 18px;
  background: #fff6e9; border: 1.5px solid #f7a41c; box-shadow: 0 10px 22px -16px rgba(233, 110, 20, .7);
  cursor: pointer; text-align: left; font-family: inherit;
  animation: chip-pop .32s cubic-bezier(.3, 1.5, .5, 1);
}
.selected-thumb { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; }
.selected-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.selected-name { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-price { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.selected-remove { font-size: 16px; color: #c98a3a; flex-shrink: 0; }

@keyframes chip-pop {
  0% { transform: scale(.6); opacity: 0 }
  60% { transform: scale(1.08) }
  100% { transform: scale(1); opacity: 1 }
}

/* ---------- Bottom CTA (detail) ---------- */

.bottom-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 390px;
  padding: 22px 18px calc(26px + env(safe-area-inset-bottom, 0px));
  /* Opaco cedo o bastante para o conteúdo que passa por baixo ficar velado,
     em vez de colidir com o resumo e o botão. */
  background: linear-gradient(180deg, rgba(253, 247, 240, 0) 0%, rgba(253, 247, 240, .94) 26%, #fdf7f0 48%);
  display: flex; align-items: center; gap: 12px;
  z-index: 30;
}
.bottom-total { display: flex; flex-direction: column; gap: 1px; padding-left: 6px; min-width: 0; max-width: 46%; }
.bottom-total .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-bar .cta { min-width: 0; white-space: nowrap; }
.bottom-total .label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.bottom-total .value { font-size: 17px; font-weight: 700; color: var(--ink); }
.cta {
  flex: 1; height: 54px; border-radius: 20px;
  background: var(--grad-cta); color: #fff; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; border: none; font-family: inherit;
  box-shadow: 0 18px 32px -16px rgba(233, 110, 20, .95);
  transition: transform .12s ease;
}
.cta:active { transform: scale(.98); }
.cta[disabled] { cursor: default; }

/* ---------- Bottom sheets (carrinho, borda, sabor, upsell) ---------- */

#sheet-root { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
#sheet-root.aberto { pointer-events: auto; }

.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(43, 33, 24, .42);
  backdrop-filter: blur(2px); animation: sheet-fade .22s ease both;
}

.sheet {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 390px; max-height: 86vh; overflow-y: auto;
  background: var(--paper); color: var(--ink);
  border-radius: 28px 28px 0 0;
  padding: 8px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 50px -20px rgba(88, 55, 20, .6);
  animation: sheet-up .3s cubic-bezier(.2, .9, .3, 1) both;
}
.sheet-handle {
  width: 42px; height: 4px; border-radius: 3px; margin: 4px auto 2px;
  background: rgba(176, 138, 99, .38);
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 6px;
}
.sheet-titulo { font-size: 17px; font-weight: 600; color: var(--ink); }
.sheet-fechar {
  width: 34px; height: 34px; border-radius: 12px; border: none;
  background: rgba(176, 138, 99, .12); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; cursor: pointer;
}
.sheet-sub { margin: 0; padding: 0 20px 10px; font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.sheet-vazio { padding: 28px 20px 34px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; }

@keyframes sheet-up { from { transform: translate(-50%, 100%) } to { transform: translate(-50%, 0) } }
@keyframes sheet-fade { from { opacity: 0 } to { opacity: 1 } }

/* Opções em lista (borda, sabor) */
.opcoes { display: flex; flex-direction: column; gap: 8px; padding: 6px 20px 4px; }
.opcao-linha {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 18px; background: #fff; border: 1.5px solid rgba(176, 138, 99, .16);
  cursor: pointer; font-family: inherit; text-align: left; transition: all .2s ease;
}
.opcao-linha.on { border-color: #f7a41c; background: #fff6e9; }
.opcao-bolinha { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 -3px 6px rgba(120, 70, 20, .25); }
.opcao-mini { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.opcao-nome {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.opcao-nome small { font-size: 10.5px; font-weight: 400; color: var(--muted-2); line-height: 1.35; }
.opcao-preco { font-size: 12.5px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.opcao-check { font-size: 20px; color: var(--accent); }

/* Linhas do carrinho */
.cart-lista { display: flex; flex-direction: column; gap: 10px; padding: 6px 20px 4px; }
.cart-linha {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: 20px; background: #fff;
  box-shadow: 0 10px 24px -20px rgba(120, 78, 30, .9);
}
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-nome { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cart-detalhe { font-size: 11px; color: var(--muted-2); line-height: 1.4; text-wrap: pretty; }
.cart-preco { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.stepper.compact { gap: 8px; padding: 5px 8px; flex-shrink: 0; }
.stepper.compact button { font-size: 17px; }

.cart-rodape { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.cart-subtotal { display: flex; flex-direction: column; gap: 1px; }
.cart-subtotal .label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cart-subtotal .value { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Upsell */
.upsell-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 20px 6px; }
.upsell-card {
  position: relative; flex: 0 0 108px; display: flex; flex-direction: column; gap: 6px;
  padding: 10px; border-radius: 20px; background: #fff;
  border: 1.5px solid rgba(176, 138, 99, .16);
  box-shadow: 0 10px 22px -18px rgba(120, 78, 30, .8);
  cursor: pointer; font-family: inherit; text-align: left;
}
.upsell-visual { height: 56px; border-radius: 14px; }
.upsell-nome { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.25; }
.upsell-preco { font-size: 11px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.upsell-add {
  position: absolute; top: 14px; right: 14px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-cta); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 4px 10px -3px rgba(233, 110, 20, .8);
}
.upsell-qtd {
  position: absolute; top: 12px; left: 14px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #2b2118; color: #ffe9c9; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@media (min-width: 480px) {
  .bottom-nav, .bottom-bar { max-width: 390px; }
}

/* ---------- Checkout ---------- */

.opcao-icone {
  width: 34px; height: 34px; border-radius: 12px; flex-shrink: 0;
  background: rgba(233, 130, 30, .12); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 20px 4px;
}
.campo { display: flex; flex-direction: column; gap: 5px; grid-column: 1 / -1; }
.campo.meio { grid-column: auto; }
.campo-rotulo {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.campo input {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid rgba(176, 138, 99, .22); background: #fff;
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.campo input::placeholder { color: rgba(176, 138, 99, .7); }
.campo input:focus { outline: none; border-color: var(--accent); }
.campo.erro input { border-color: #d3543f; background: #fff6f4; }

.form-aviso { margin: 10px 20px 0; font-size: 12px; color: #c04a34; line-height: 1.5; }
.form-aviso.neutro { color: var(--muted-2); }

.resumo-valores { display: flex; flex-direction: column; gap: 7px; padding: 16px 20px 2px; }
.resumo-linha {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums;
}
.resumo-linha.total {
  margin-top: 5px; padding-top: 10px;
  border-top: 1px solid rgba(176, 138, 99, .2);
  font-size: 16px; font-weight: 700; color: var(--ink);
}

.btn-voltar {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px;
  border: 1.5px solid rgba(176, 138, 99, .22); background: #fff;
  color: var(--ink-soft); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Confirmação */
.pedido-ok {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 24px 4px; text-align: center;
}
.pedido-selo {
  font-size: 56px; color: #4fa564;
  animation: om-pop .5s cubic-bezier(.3, 1.5, .5, 1);
}
.pedido-numero { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pedido-texto { font-size: 13px; color: var(--muted-2); line-height: 1.5; text-wrap: pretty; }
.pedido-total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; margin-top: 10px; padding: 13px 16px;
  border-radius: 18px; background: #fff6e9; border: 1.5px solid rgba(247, 164, 28, .5);
  font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}

/* ---------- Pix ---------- */

.pix-area {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 10px 24px 4px; text-align: center;
}
.pix-qr {
  width: 190px; height: 190px; border-radius: 18px; background: #fff;
  padding: 8px; box-shadow: 0 12px 26px -18px rgba(120, 78, 30, .9);
}
.pix-qr.vazio {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted);
}
.pix-total { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pix-instrucao { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; text-wrap: pretty; }
.pix-copiar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: 16px;
  border: 1.5px solid rgba(176, 138, 99, .3); background: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer;
}
.pix-codigo {
  width: 100%; height: 54px; padding: 8px 10px; border-radius: 12px; resize: none;
  border: 1px solid rgba(176, 138, 99, .22); background: rgba(255, 255, 255, .6);
  font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted-2);
}
.pix-esperando {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); margin-top: 2px;
}
.pix-ponto {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pix-pulso 1.2s ease-in-out infinite;
}
@keyframes pix-pulso { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
.pedido-demo { margin-top: 10px; font-size: 11px; color: var(--muted); }
