/* Cásebica — preto e dourado.
   Cores tiradas do logótipo: preto puro, carvão quente do fundo original e o dourado do azulejo. */
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/saira-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/saira-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700-normal.woff2) format("woff2"); }

/* =====================================================================
   Cásebica — "Azulejo"
   Tudo nasce do logótipo: preto do fundo, dourado das linhas, moldura
   a 4% da margem com linha de 1%, e painéis de azulejo separados por
   linhas douradas. O logótipo nunca é alterado.
   ===================================================================== */
:root {
  --black: #000000;
  --coal: #121110;
  --coal-2: #1b1917;
  --line: #2d2924;
  --gold: #c9a45c;
  --gold-hi: #e4cb8f;
  --gold-lo: #7c6436;
  --bone: #f1ebdf;
  --ash: #9a9184;
  --ok: #86c095;
  --warn: #e3b55e;
  --bad: #e58b7b;
  --info: #94b8e6;
  --gold-ink: #c9a45c;         /* dourado para texto */
  --on-gold: #000000;          /* texto sobre dourado */
  --bar: rgba(0,0,0,.9);
  --exp: #6d655a;
  --ph: .24;                   /* opacidade dos padrões nos produtos sem foto */
  --rule: 2px;                 /* linha dourada entre azulejos */
  --radius: 2px;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* nomes antigos usados nas páginas */
  --paper: var(--black); --paper-2: var(--coal-2); --card: var(--coal); --ink: var(--bone);
  --ink-2: #cbc3b6; --ink-3: var(--ash); --wine: var(--gold); --wine-2: var(--gold-hi);
  --serif: var(--display); --shadow: none;
  color-scheme: dark;
}
/* Tema branco: o logótipo mantém-se igual (azulejo preto e dourado) */
[data-theme="light"] {
  --black: #ffffff;
  --coal: #f7f3ec;
  --coal-2: #eee7db;
  --line: #e4dccf;
  --gold-hi: #d6b36e;
  --gold-lo: #dccb9f;
  --gold-ink: #86662a;
  --bone: #1d1915;
  --ink-2: #4b443c;
  --ash: #776e62;
  --ok: #2e7d45; --warn: #a06400; --bad: #b3402e; --info: #2f64a8;
  --bar: rgba(255,255,255,.93);
  --exp: #bdb4a6;
  --ph: .5;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--bone); background: var(--black); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Títulos em maiúsculas condensadas, como o "CÁ SE BICA" */
h1, h2, .section-title, .drawer-head h2, .success h3, .rgate h2, .how h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.08; }
.flor { width: 18px; height: 18px; color: var(--gold-ink); flex: none; }

/* ---------- Topo ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bar); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .08em; text-transform: uppercase; }
.brand-tag { font-size: 13px; color: var(--ash); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 12px; background: transparent; color: var(--bone); border: var(--rule) solid var(--gold); border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: 14px; }
.cart-btn svg { width: 20px; height: 20px; color: var(--gold-ink); }
.cart-count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--gold); color: var(--on-gold); font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; }
@media (max-width: 420px) { .cart-label { display: none; } }

/* ---------- Particulares / Restaurantes: dois azulejos ---------- */
.audience-bar { padding: 12px 0; }
.audience { display: grid; grid-template-columns: 1fr 1fr; border: var(--rule) solid var(--gold); max-width: 460px; margin: 0 auto; }
.audience button { border: 0; background: var(--black); color: var(--ash); padding: 10px 8px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.audience button + button { border-left: var(--rule) solid var(--gold); }
.audience button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.rbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.rbar b { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 22px; font-weight: 600; color: var(--gold-ink); display: block; line-height: 1.1; }
.rbar span { font-size: 13.5px; color: var(--ash); }

/* ---------- Abertura: o painel continua a moldura do logótipo ---------- */
.hero { padding: 8px 0 34px; }
.hero-panel { --w: min(400px, calc(100vw - 36px)); width: var(--w); margin: 0 auto; }
.hero-logo { width: var(--w); height: var(--w); }
.hero-tile {
  /* bloco preto que continua o logótipo: cobre a margem preta de baixo e redesenha a linha da moldura no mesmo sítio */
  --bone: #f1ebdf; --ink-2: #cbc3b6; color: var(--bone);
  background: #000; margin-top: calc(var(--w) * -0.051);
  padding: 0 calc(var(--w) * 0.041) calc(var(--w) * 0.041) calc(var(--w) * 0.04);
}
.hero-tile-in {
  border: calc(var(--w) * 0.01) solid #c9a45c;
  padding: 22px 20px 24px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(201,164,92,.05) 0 2px, transparent 2px 14px);
}
.hero-tile .btn.ghost { color: #f1ebdf; border-color: #7c6436; }
.hero h1 { font-size: clamp(34px, 9vw, 52px); line-height: .98; margin: 0 0 12px; }
.hero p { color: var(--ink-2); margin: 0 auto 18px; max-width: 40ch; font-size: 15.5px; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-cta .btn { height: 48px; font-size: 16px; padding: 0 8px; white-space: nowrap; }
@media (min-width: 900px) {
  .hero { padding: 26px 0 46px; }
  .hero-panel { --w: 420px; width: auto; display: flex; align-items: flex-start; }
  .hero-logo { flex: none; }
  .hero-tile {
    /* no computador continua para a direita, a partir da linha direita da moldura */
    flex: 1; height: var(--w); margin: 0 0 0 calc(var(--w) * -0.051);
    padding: calc(var(--w) * 0.04) calc(var(--w) * 0.041) calc(var(--w) * 0.041) 0;
  }
  .hero-tile-in { height: 100%; display: flex; flex-direction: column; justify-content: center; text-align: left; padding: 30px 44px; }
  .hero h1 { font-size: 64px; max-width: 12ch; }
  .hero p { margin-left: 0; font-size: 17px; }
  .hero-cta { display: flex; }
  .hero-cta .btn { min-width: 190px; }
}

/* ---------- Pesquisa e categorias ---------- */
.shop-head { position: sticky; top: 62px; z-index: 20; background: var(--black); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shop-head .wrap { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 0; flex-wrap: wrap; }
.search { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--coal); height: 42px; padding: 0 12px; border-radius: var(--radius); }
.search:focus-within { border-color: var(--gold-ink); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ash); stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; }
.filters { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: none; color: var(--ash); cursor: pointer; padding: 12px 0 11px; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.chip:hover { color: var(--bone); }
.chip[aria-pressed="true"] { color: var(--gold-ink); border-bottom-color: var(--gold-ink); }
@media (min-width: 900px) { .search { flex: 0 0 280px; order: 2; } .filters { flex: 1; } .shop-head .wrap { padding-top: 0; flex-wrap: nowrap; } }

/* ---------- Produtos: painel de azulejos ---------- */
.section-title { display: flex; align-items: center; gap: 10px; font-size: 30px; line-height: 1; margin: 34px 0 14px; }
.section-title small { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--on-gold); background: var(--gold); border-radius: 10px; padding: 1px 8px; letter-spacing: 0; }
.grid { display: grid; gap: var(--rule); background: var(--gold); border: var(--rule) solid var(--gold); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product, .filler { background: var(--black); min-width: 0; }
.filler { position: relative; overflow: hidden; }
.filler img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: calc(var(--ph) * .8); }
.product { display: flex; flex-direction: column; }
.product-media { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--coal); border-bottom: 1px solid var(--gold-lo); }
.product-media > img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { position: absolute; inset: 0; }
.placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--ph); }
.in-badge { position: absolute; top: 8px; right: 8px; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: 12.5px; padding: 2px 8px; border-radius: 10px; }
.product.in-cart .product-media { border-bottom-color: var(--gold-ink); }
.product-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-name { font-family: var(--sans); font-size: 15px; font-weight: 800; line-height: 1.25; margin: 0; }
.product-desc { font-size: 13px; color: var(--ash); margin: 0; }
.product-price { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--gold-ink); margin-top: auto; padding-top: 4px; line-height: 1.1; }
.product-price small { font-family: var(--sans); font-weight: 600; color: var(--ash); font-size: 12.5px; }
.product-price.ask { font-family: var(--sans); font-weight: 700; color: var(--ink-2); font-size: 13.5px; }
.product-actions { margin-top: 8px; }
.btn.add { width: 100%; height: 40px; }
.qty { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 40px; border: var(--rule) solid var(--gold); }
.qty button { height: 100%; border: 0; background: var(--gold); color: var(--on-gold); font-size: 20px; font-weight: 800; cursor: pointer; }
.qty span { text-align: center; font-weight: 800; font-size: 14.5px; }
@media (min-width: 600px) { .product-body { padding: 14px 16px 16px; } .product-name { font-size: 16px; } }

/* Passo de quantidade usado no carrinho */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gold-lo); border-radius: var(--radius); background: var(--coal); }
.stepper button { width: 34px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--gold-ink); }
.stepper input { width: 52px; min-width: 0; height: 36px; border: 0; text-align: center; font-weight: 800; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 18px; line-height: 1.1; text-align: center; border: var(--rule) solid var(--gold); border-radius: var(--radius); background: var(--gold); color: var(--on-gold); cursor: pointer; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.block { width: 100%; min-height: 52px; font-size: 19px; }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--gold-lo); }
.btn.ghost:hover { border-color: var(--gold-ink); background: transparent; }
.btn.dark { background: transparent; color: var(--gold-ink); border-color: var(--gold-ink); }
.btn.green { background: #25d366; border-color: #25d366; color: #032611; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--ash); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; padding: 0; }
.link-btn:hover { color: var(--bone); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-lo); background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 16px; color: var(--bone); }

/* ---------- Barra do carrinho (telemóvel) ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--black); border-top: var(--rule) solid var(--gold); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.cartbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartbar #cartBarText { display: grid; line-height: 1.2; }
.cartbar #cartBarText span { color: var(--gold-ink); font-family: var(--display); font-size: 20px; font-weight: 600; }
.cartbar .btn { height: 46px; padding: 0 22px; }
body.has-cartbar { padding-bottom: 80px; }
body.drawer-open .cartbar { display: none; }
body.has-cartbar .install-sheet { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.has-cartbar .toast { bottom: 96px; }

/* ---------- Carrinho ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--black); border-left: var(--rule) solid var(--gold); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease, visibility 0s .25s; visibility: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform .25s ease; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 18px 16px; }
.drawer-foot { border-top: var(--rule) solid var(--gold); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--coal); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { margin: 0; font-size: 15px; font-weight: 800; }
.cart-line .meta { font-size: 13px; color: var(--ash); }
.cart-line .sub { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--gold-ink); text-align: right; }
.cart-line .row { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.cart-line .row .link-btn { margin-left: auto; }
.totals { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.totals strong { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--gold-ink); }
.totals.sub { font-size: 14px; color: var(--ink-2); margin-bottom: 2px; }
.totals.sub.gold { color: var(--gold-ink); }
.fine { font-size: 12.5px; color: var(--ash); margin: 4px 0 14px; }
.empty { text-align: center; color: var(--ash); padding: 48px 10px; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--coal); font-size: 16px; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--ash); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-ink); }
.field textarea { resize: vertical; min-height: 76px; }
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 14px; border: 1px solid var(--gold-lo); }
.seg label { padding: 12px; cursor: pointer; background: var(--coal); display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.seg label + label { border-left: 1px solid var(--gold-lo); }
.seg input { accent-color: var(--gold-ink); }
.seg label:has(input:checked) { background: var(--black); color: var(--gold-ink); box-shadow: inset 0 0 0 2px var(--gold); }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg.three label { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px; }
.seg.three label small { font-weight: 500; color: var(--ash); font-size: 12px; }
.seg.three label > span { display: flex; align-items: center; gap: 6px; }
.error { border: 1px solid rgba(229,139,123,.55); color: var(--bad); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; }
.success { text-align: center; padding: 24px 4px; }
.success .seal { width: 78px; height: 78px; margin: 0 auto 16px; border: 3px solid var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-size: 32px; }
.success h3 { font-size: 36px; margin: 0 0 8px; line-height: 1; }
.success p { color: var(--ink-2); margin: 0 0 16px; }

/* ---------- Código promocional ---------- */
.promo-box { margin-top: 16px; }
.promo-form { display: flex; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--coal); padding: 0 12px; height: 42px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.promo-form input:focus { outline: none; border-color: var(--gold-ink); }
.promo-ok { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--gold); padding: 10px 12px; font-size: 14px; color: var(--gold-ink); }

/* ---------- Área de restaurantes ---------- */
.rgate { display: none; max-width: 460px; padding-top: 30px; padding-bottom: 24px; text-align: center; }
.rgate h2 { font-size: 40px; line-height: 1; margin: 0 0 12px; }
.rgate p { color: var(--ink-2); margin: 0 0 22px; }
.rgate form { display: grid; gap: 10px; text-align: left; border: var(--rule) solid var(--gold); padding: 16px; }
.rgate input { text-align: center; font-family: var(--display); font-size: 30px; letter-spacing: .3em; text-transform: uppercase; padding: 10px; }
.rgate .fine { text-align: center; margin-top: 18px; }
body.mode-r .hero { display: none; }
body.r-locked .rgate { display: block; }
body.r-locked #produtos, body.r-locked #catalogWrap { display: none; }

/* ---------- Como funciona: três azulejos ---------- */
.how { margin-top: 54px; padding: 0 0 48px; }
.how .section-title { margin-top: 0; }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rule); background: var(--gold); border: var(--rule) solid var(--gold); }
.how-grid li { background: var(--black); padding: 18px 16px; }
.how-grid b { font-family: var(--display); font-size: 44px; color: var(--gold-ink); font-weight: 600; line-height: 1; }
.how-grid h3 { margin: 6px 0 4px; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 20px; font-weight: 600; }
.how-grid p { margin: 0; color: var(--ash); font-size: 14.5px; }
@media (max-width: 700px) { .how-grid { grid-template-columns: 1fr; } .how-grid li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; } .how-grid b { grid-row: span 2; } .how-grid h3 { margin-top: 2px; } }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ash); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
footer .brand img { width: 32px; height: 32px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-links .link-btn { font-size: 14px; }

/* ---------- Avisos ---------- */
.notice-bar { background: var(--gold); color: var(--on-gold); text-align: center; padding: 10px 16px; font-size: 14.5px; font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); background: var(--gold); color: var(--on-gold); font-weight: 800; padding: 10px 18px; border-radius: 22px; font-size: 14px; opacity: 0; transition: all .2s; z-index: 60; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
body.drawer-open .toast { bottom: auto; top: 78px; transform: translateX(-50%) translateY(-10px); }
body.drawer-open .toast.show { transform: translateX(-50%) translateY(0); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Estado da encomenda ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 800; border: 1.5px solid currentColor; background: transparent; }
.badge.pendente { color: var(--warn); }
.badge.confirmada { color: var(--ok); }
.badge.enviada { color: var(--info); }
.badge.recusada { color: var(--bad); }
.panel { background: var(--coal); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; }
.timeline li { padding-left: 22px; position: relative; margin-bottom: 10px; font-size: 14px; color: var(--ash); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 10px; height: 10px; border: 1.5px solid var(--gold-lo); transform: rotate(45deg); }
.timeline li.done::before { background: var(--gold); border-color: var(--gold-ink); }
.timeline li.done { color: var(--bone); font-weight: 700; }

/* ---------- Publicidade ---------- */
.ads { padding-top: 4px; padding-bottom: 8px; }
.ads[hidden] { display: none; }
.ad-frame { position: relative; aspect-ratio: 3 / 1; max-width: 960px; margin: 0 auto; overflow: hidden; background: var(--coal); border: var(--rule) solid var(--gold); touch-action: pan-y; }
.ad-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: block; pointer-events: none; }
.ad-slide.on { opacity: 1; z-index: 1; pointer-events: auto; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; }
.ad-dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.ad-dots button { width: 22px; height: 22px; border: 0; padding: 0; cursor: pointer; background: none; display: grid; place-items: center; }
.ad-dots button::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--ash); opacity: .45; transition: background .2s, opacity .2s; }
.ad-dots button.on::before { background: var(--gold); opacity: 1; }

/* ---------- Instalar a app ---------- */
.install-sheet { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; max-width: 460px; margin: 0 auto; background: var(--black); border: var(--rule) solid var(--gold); padding: 16px; box-shadow: 0 0 0 5px var(--black), 0 0 0 6px var(--gold-lo), 0 24px 60px rgba(0,0,0,.8); transform: translateY(24px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.install-sheet.show { transform: none; opacity: 1; }
.install-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; }
.install-text h2 { font-size: 24px; line-height: 1.05; margin: 2px 0 4px; }
.install-text p { margin: 0; color: var(--ink-2); font-size: 14px; }
.install-x { width: 32px; height: 32px; font-size: 13px; }
.install-how { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }
.install-how p { margin: 0; }
.install-steps { margin: 0; padding-left: 20px; line-height: 1.7; }
.install-later { display: block; margin: 12px auto 0; }
[data-theme="light"] .install-sheet { box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--gold-lo), 0 18px 48px rgba(0,0,0,.18); }
[data-theme="light"] .drawer-backdrop { background: rgba(29,25,21,.45); }
[data-theme="light"] .topbar, [data-theme="light"] .shop-head { border-color: var(--line); }
