/**
 * assets/css/site.css
 * -------------------------------------------------------
 * CSS do site do CLIENTE (mobile-first, estilo app delivery).
 * Carregado pelo layout: app/Views/layouts/site.php
 *
 * Paleta: vermelho delivery + laranja de apoio, fundo claro,
 * cards brancos arredondados, sombra suave, botões grandes.
 */

/* ---------- Variáveis ---------- */
:root {
  /* ===== PALETA PREMIUM: preto + dourado + vermelho ===== */
  --red: #b3122a;            /* vermelho profundo (ações) */
  --red-dark: #8a0e20;
  --black: #15110f;          /* preto quente (header/hero) */
  --black-soft: #241d1a;
  --gold: #d4af37;           /* dourado (marca e destaques) */
  --gold-light: #e9cf7a;
  --orange: #ff7a1a;
  --yellow: #d4af37;         /* alias antigo -> dourado */
  --bg: #f7f4ee;
  --card: #ffffff;
  --ink: #221b17;
  --ink-soft: #7a6f68;
  --line: #ece5de;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(34, 27, 23, .08);
  --shadow-strong: 0 10px 30px rgba(21, 17, 15, .30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 90px; /* espaço para a bottom-nav */
}

h1, h2, h3, .display { font-family: 'Bricolage Grotesque', 'Outfit', sans-serif; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; }
input, select, textarea {
  font-family: inherit; font-size: 16px; /* evita zoom no iOS */
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 47, .12);
}
label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); display: block; margin: 14px 0 6px; }
.hidden { display: none !important; }

.container { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212,175,55,.35); /* fio dourado */
  box-shadow: var(--shadow-strong);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* LOGO maior e em dourado (imagem da marca quando enviada) */
.brand {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 1.55rem; letter-spacing: -.02em; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.brand img { height: 42px; width: 42px; object-fit: cover; border-radius: 12px; border: 1.5px solid rgba(212,175,55,.5); }
.brand em { font-style: normal; color: #fff; }

.cart-link { position: relative; font-size: 1.5rem; line-height: 1; }
.cart-badge {
  position: absolute; top: -7px; right: -10px;
  background: var(--yellow); color: var(--ink);
  font-size: .68rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-badge.pop { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* ---------- Mensagens flash ---------- */
.flash {
  margin: 12px 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; transition: opacity .4s;
}
.flash-success { background: #e5f6e9; color: #1d7a35; }
.flash-error { background: #fdeaea; color: var(--red-dark); }

/* ---------- Hero / status ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(212,175,55,.22), transparent 55%),
    linear-gradient(150deg, var(--black) 0%, var(--black-soft) 80%);
  color: #fff; padding: 18px 0 64px;
  border-radius: 0 0 32px 32px;
}
.hero .tagline {
  color: var(--gold-light); font-size: .98rem; font-weight: 600;
  letter-spacing: .01em; margin-top: 2px;
}
.status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px);
  border: 1px solid rgba(212,175,55,.35); color: #f4ead0;
  border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600;
}
.pill.open { background: rgba(46,184,92,.9); border-color: transparent; color: #fff; }
.pill.closed { background: rgba(108,108,108,.9); border-color: transparent; color: #fff; }

/* FAIXA DE INFOS profissional (abaixo do horário): 3 colunas */
.info-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px;
}
.info-cell {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 14px; padding: 10px 8px; text-align: center;
}
.info-cell .ico { font-size: 1.05rem; display: block; margin-bottom: 2px; }
.info-cell b { display: block; font-size: .85rem; color: #fff; }
.info-cell small { color: rgba(244,234,208,.75); font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* BANNER responsivo da home (cadastrado em Configurações) */
.home-banner { margin: 18px 0 0; }
.home-banner img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); display: block;
  aspect-ratio: 21/8; object-fit: cover;
}

.cta-order {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  font-weight: 800; font-size: 1.05rem;
  padding: 16px; border-radius: var(--radius);
  margin: -28px 16px 0; position: relative; z-index: 2;
  box-shadow: var(--shadow-strong);
  transition: transform .15s;
}
.cta-order:active { transform: scale(.97); }

/* ---------- Seções ---------- */
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 1.15rem; font-weight: 800; }
.section-head a { color: var(--red); font-size: .82rem; font-weight: 700; }

/* Categorias horizontais */
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-card {
  flex: 0 0 auto; background: var(--card); border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: .85rem; font-weight: 700;
  box-shadow: var(--shadow); white-space: nowrap;
  border: 1.5px solid transparent;
}
.cat-card.active, .cat-card:active { border-color: var(--red); color: var(--red); }

/* Grid de produtos */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card .thumb {
  aspect-ratio: 4/3; background: linear-gradient(135deg, #ffe3c2, #ffd1d6);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  object-fit: cover; width: 100%;
}
.product-card .body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card h3 { font-size: .92rem; font-weight: 700; line-height: 1.25; }
.product-card .desc { font-size: .74rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; color: var(--red); font-size: .98rem; }
.price .old { color: var(--ink-soft); font-weight: 500; font-size: .72rem; text-decoration: line-through; margin-right: 4px; }
.btn-add {
  background: var(--red); color: #fff; font-weight: 800;
  width: 34px; height: 34px; border-radius: 10px; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(196,30,47,.35);
  transition: transform .12s;
}
.btn-add:active { transform: scale(.9); }
.badge-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--orange); color: #fff; font-size: .66rem; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; text-transform: uppercase;
}

/* Lista do cardápio (uma coluna) */
.menu-item {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px;
  display: flex; gap: 12px; align-items: center; margin-bottom: 12px;
}
.menu-item .thumb {
  width: 84px; height: 84px; flex: 0 0 84px; border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #ffe3c2, #ffd1d6);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.menu-item .info { flex: 1; min-width: 0; }
.menu-item h3 { font-size: .95rem; }
.menu-item .desc { font-size: .76rem; color: var(--ink-soft); margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Busca */
.search-bar { position: relative; margin: 14px 0; }
.search-bar input { padding-left: 42px; border-radius: 999px; }
.search-bar::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .95rem; }

.cat-title { font-size: 1.05rem; font-weight: 800; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.cat-title::after { content: ''; flex: 1; height: 1.5px; background: var(--line); border-radius: 2px; }

/* ---------- Reels ---------- */
.reels-strip { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.reels-strip::-webkit-scrollbar { display: none; }
.reel-card {
  flex: 0 0 120px; aspect-ratio: 9/16; border-radius: var(--radius);
  background: linear-gradient(160deg, #2b2424, #4d3b34);
  color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; box-shadow: var(--shadow);
}
.reel-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card .label { position: relative; padding: 10px; font-size: .72rem; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.75)); width: 100%; }

/* Feed de reels (página /reels) */
.reels-feed {
  height: calc(100dvh - 60px);
  overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none;
  background: #120e0d;
}
.reels-feed::-webkit-scrollbar { display: none; }
.reel {
  height: calc(100dvh - 60px); scroll-snap-align: start;
  position: relative; display: flex; align-items: flex-end;
}
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .overlay {
  position: relative; width: 100%;
  /* padding-bottom alto: garante que os botões fiquem ACIMA da
     bottom-nav (60px + área segura do iPhone) e nunca cobertos */
  padding: 18px 64px calc(86px + env(safe-area-inset-bottom)) 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff;
}
.reel .overlay h3 { font-size: 1.05rem; }
.reel .overlay p { font-size: .8rem; opacity: .85; margin: 4px 0 12px; }
.reel-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.reel-actions .btn { padding: 10px 16px; font-size: .82rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: .95rem;
  padding: 14px 22px; border-radius: var(--radius-sm);
  transition: transform .12s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(196,30,47,.3); }
.btn-secondary { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Carrinho fixo no rodapé (cardápio) ---------- */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 60;
  background: var(--red); color: #fff;
  border-radius: var(--radius); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-strong);
  font-weight: 700;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: linear-gradient(0deg, var(--black) 0%, var(--black-soft) 100%);
  border-top: 1px solid rgba(212,175,55,.3);
  display: flex; justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .66rem; font-weight: 700; color: rgba(255,255,255,.55);
}
.bottom-nav a .icon { font-size: 1.25rem; filter: grayscale(.4); }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a.active .icon { filter: none; }

/* ---------- Página de produto ---------- */
.product-hero {
  /* A FOTO PODE SER ENVIADA GRANDE: aqui ela é cortada/limitada
     (object-fit: cover + max-height) para a página nunca distorcer */
  width: 100%; height: clamp(220px, 42vw, 360px);
  background: linear-gradient(135deg, #f4e9d0, #efd9b8);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
  overflow: hidden;
}
.product-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-sheet {
  background: var(--card); border-radius: 28px 28px 0 0;
  margin-top: -24px; position: relative;
  padding: 24px 18px 130px;
  box-shadow: var(--shadow);
}
.product-sheet h1 { font-size: 1.4rem; }
.product-sheet .desc { color: var(--ink-soft); font-size: .9rem; margin: 8px 0 14px; line-height: 1.5; }
.big-price { font-size: 1.5rem; font-weight: 800; color: var(--red); }
/* Preço ORIGINAL riscado quando o produto está em promoção */
.big-price .old {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  text-decoration: line-through; margin-left: 8px; vertical-align: 2px;
}

.addon-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.addon-row input[type='checkbox'] { width: 22px; height: 22px; accent-color: var(--red); flex: 0 0 22px; }
.addon-row .name { flex: 1; font-size: .92rem; font-weight: 600; }
.addon-row .plus { font-size: .85rem; color: var(--red); font-weight: 700; }

.qty-stepper { display: inline-flex; align-items: center; gap: 16px; background: var(--bg); border-radius: 999px; padding: 6px 10px; }
.qty-stepper button {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; font-size: 1.2rem; font-weight: 800; color: var(--red);
  box-shadow: var(--shadow);
}
.qty-stepper span { font-weight: 800; font-size: 1.05rem; min-width: 22px; text-align: center; }

.sticky-action {
  position: fixed; left: 0; right: 0; bottom: 60px; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
}
.sticky-action .total { font-size: 1.2rem; font-weight: 800; color: var(--red); white-space: nowrap; }
.sticky-action .btn { flex: 1; }

/* ---------- Carrinho / Checkout ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
}
.card h2 { font-size: 1.05rem; margin-bottom: 10px; }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .qty { font-weight: 800; color: var(--red); }
.cart-item .meta { flex: 1; }
.cart-item .meta small { color: var(--ink-soft); display: block; font-size: .74rem; }
.cart-item .line-price { font-weight: 800; white-space: nowrap; }
.remove-btn { background: none; color: var(--ink-soft); font-size: .72rem; text-decoration: underline; padding: 2px 0; }

.totals-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 5px 0; color: var(--ink-soft); }
.totals-row.grand { font-size: 1.15rem; font-weight: 800; color: var(--ink); border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 12px; }
.totals-row.grand .v { color: var(--red); }

/* Opções tipo radio em card (entrega/retirada, pagamento) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  position: relative; display: block;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 10px; text-align: center; font-weight: 700; font-size: .85rem;
  cursor: pointer; background: #fff;
}
.choice input { position: absolute; opacity: 0; }
.choice .icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.choice:has(input:checked) { border-color: var(--red); background: #fdf1f2; color: var(--red); }

.gps-btn {
  width: 100%; background: var(--orange); color: #fff;
  font-weight: 800; padding: 14px; border-radius: var(--radius-sm);
  box-shadow: 0 6px 14px rgba(255,122,26,.35);
}
.gps-btn.gps-ok { background: #2eb85c; box-shadow: none; }
#gps-status { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Pix ---------- */
.pix-box { text-align: center; }
.qr-placeholder {
  width: 210px; height: 210px; margin: 18px auto;
  border-radius: var(--radius); border: 2px dashed var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: #fdf1f2;
}
.pix-code {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 12px; font-family: monospace; font-size: .76rem;
  word-break: break-all; text-align: left; margin: 12px 0;
}

/* ---------- Linha do tempo do pedido ---------- */
.timeline { list-style: none; }
.timeline li {
  position: relative; padding: 0 0 22px 30px;
}
.timeline li::before {
  content: ''; position: absolute; left: 7px; top: 18px; bottom: -4px;
  width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li .dot {
  position: absolute; left: 0; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--line);
}
.timeline li.done .dot { background: #2eb85c; }
.timeline li.current .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(196,30,47,.18); }
.timeline li .when { font-size: .72rem; color: var(--ink-soft); }
.timeline li.current strong { color: var(--red); }

/* =========================================================
   RESPONSIVO REAL (mobile-first -> tablet -> desktop)
   - até 699px : celular (1 coluna, grid 2)
   - 700–1099px: tablet  (shell 720px, grid 3, mais respiro)
   - 1100px+   : desktop (shell 1080px, grid 4, formulários 2 col)
   ========================================================= */

/* ---------- TABLET ---------- */
@media (min-width: 700px) {
  body { background: #efe9e2; }
  .page-shell {
    max-width: 720px; margin: 0 auto; background: var(--bg);
    min-height: 100vh; box-shadow: var(--shadow); position: relative;
  }
  .container { max-width: 720px; padding: 0 28px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero h1 { font-size: 2rem; }
  .cta-order { margin: -28px 28px 0; }
  .menu-item .thumb { width: 96px; height: 96px; flex-basis: 96px; }

  /* barras fixas acompanham a largura do shell */
  .bottom-nav, .sticky-action {
    max-width: 720px; left: 50%; transform: translateX(-50%); width: 100%;
  }
  .cart-bar { max-width: 720px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); }

  /* reels: vídeo vertical centralizado (como Instagram no PC) */
  .reels-feed { background: #120e0d; }
  .reel video { max-width: 430px; left: 50%; transform: translateX(-50%); border-radius: 18px; }
  .reel .overlay { max-width: 430px; margin: 0 auto; }
  .reel-rail { right: calc(50% - 215px - 56px); }
}

/* ---------- DESKTOP ---------- */
@media (min-width: 1100px) {
  .page-shell { max-width: 1080px; }
  .container { max-width: 1080px; padding: 0 40px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .menu-item { max-width: 760px; }
  .bottom-nav, .sticky-action { max-width: 1080px; }
  .cart-bar { max-width: 1080px; width: calc(100% - 80px); }
  .cta-order { margin: -28px 40px 0; }

  /* formulários (checkout) em coluna confortável */
  #checkout-form, .pix-box, .timeline { max-width: 640px; }
  #checkout-form { margin: 0 auto; }
  .sticky-action { padding-left: 40px; padding-right: 40px; }
}

/* ---------- ESTABILIDADE (anti "layout flutuante") ---------- */
/* Nada pode estourar a largura e empurrar a página p/ os lados   */
html, body { overflow-x: hidden; width: 100%; }
.page-shell { overflow-x: clip; }
img, video, input, select, textarea { max-width: 100%; }
.pix-code { overflow-wrap: anywhere; }
/* focar um campo não muda tamanho (borda compensada no box-shadow) */
input:focus, select:focus, textarea:focus { border-width: 1.5px; }

/* =========================================================
   SUPLEMENTO — classes usadas pelas views (parte 2)
   ========================================================= */

/* Títulos de página e textos auxiliares */
.page-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; font-weight: 800; margin: 16px 0 14px; }
.hint { color: var(--ink-soft); font-size: .78rem; display: block; margin-top: 6px; }
.center { text-align: center; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 48px 0 24px; font-size: 1rem; }
.big-emoji { font-size: 3rem; text-align: center; }

/* Chips de categoria no cardápio */
.cat-scroll.chips { margin: 4px 0 8px; }
.chip {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 99px;
  background: var(--card); border: 1.5px solid var(--line);
  font-weight: 700; font-size: .83rem; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.cat-emoji { font-size: 1.4rem; }

/* Itens do carrinho (thumb + info + remover) */
.cart-item .thumb {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; overflow: hidden;
}
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; }
.cart-item .info h3 { font-size: .92rem; }
.cart-item .info small { color: var(--ink-soft); font-size: .74rem; }
.cart-item .info .notes { color: var(--orange); }
.cart-item .info b { display: block; margin-top: 4px; }
.btn-remove {
  border: 0; background: var(--bg); color: var(--ink-soft);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .85rem;
}
.btn-remove:active { background: var(--red); color: #fff; }

/* Formulário de cupom */
.coupon-form { display: flex; gap: 8px; align-items: center; }
.coupon-form input { flex: 1; margin: 0; }
.coupon-form .btn { width: auto; padding: 12px 18px; }

/* Linha de desconto verde */
.totals-row.discount b { color: #1f9d55; }

/* Detalhe do produto: placeholder sem foto */
.product-hero .placeholder { font-size: 4rem; }

/* Reels: produto vinculado */
.reel-product {
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 8px 12px; font-size: .9rem;
  display: inline-block; margin-bottom: 10px;
}


/* =========================================================
   SUPLEMENTO 3 — reels rail, pix (MP), pizza
   ========================================================= */

/* Coluna de ações do reel (direita, estilo Instagram) */
.reel-rail {
  position: absolute; right: 10px;
  bottom: calc(120px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; z-index: 5;
}
/* Ícones modernos (SVG, estilo Instagram): sem bolha, com sombra */
.rail-btn {
  background: none; border: 0; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px; line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}
.rail-btn .ic {
  width: 30px; height: 30px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .15s;
}
.rail-btn:active .ic { transform: scale(.85); }
.rail-btn small { font-size: .7rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.rail-btn.static { pointer-events: none; }

/* Coração: contorno branco -> preenchido vermelho quando curtido */
.like-btn.liked .ic-heart { fill: #ff2d55; stroke: #ff2d55; }
.rail-btn.pop .ic-heart { animation: heart-pop .35s ease; }
@keyframes heart-pop { 40% { transform: scale(1.35); } 70% { transform: scale(.9); } }

/* Pix: QR real do Mercado Pago + spinner de aguardando */
.qr-img { width: 210px; height: 210px; margin: 14px auto; border-radius: 14px; border: 1.5px solid var(--line); }
.spinner {
  display: inline-block; width: 14px; height: 14px; vertical-align: -2px;
  border: 2px solid var(--line); border-top-color: var(--red);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pizza meio a meio */
#half-flavor-block { margin-top: 10px; }
#pizza-mode { margin-bottom: 6px; }

/* =========================================================
   SUPLEMENTO 4 — conta do cliente
   ========================================================= */

/* Header: 👤 conta + 🛒 carrinho lado a lado */
.header-actions { display: flex; align-items: center; gap: 16px; }
.account-link { font-size: 1.4rem; line-height: 1; display: flex; align-items: center; gap: 4px; }
.account-link small { font-size: .68rem; font-weight: 700; color: var(--yellow); }

/* Lista de pedidos da conta */
.order-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.order-row small { display: block; color: var(--ink-soft); font-size: .74rem; margin-top: 2px; }
.order-right { text-align: right; }
.order-right b { display: block; }
.status-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; margin-bottom: 4px;
}
.status-chip.live { background: #fff0e0; color: #b35a00; }
.status-chip.done { background: #e3f6e9; color: #157347; }
.status-chip.off  { background: #f1edea; color: var(--ink-soft); }
