/* ============================================================
   Cardápio Digital — Design System
   Tokens injetados dinamicamente pelo painel (settings theme.*)
   Mobile-first. WCAG AA. Sem moldura de dispositivo.
   ============================================================ */

:root {
  --c-primary: #8B1E1E;
  --c-secondary: #1C1917;
  --c-accent: #D4A24C;
  --c-promo: #B91C1C;
  --c-success: #15803D;
  --c-surface: #FFFFFF;
  --c-bg: #FAF7F2;
  --c-text: #1C1917;
  --c-muted: #78716C;
  --c-border: #E7E1D8;
  --font-heading: 'Bitter', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(28, 25, 23, .08);
  --shadow-lg: 0 12px 32px rgba(28, 25, 23, .16);
  --header-h: 60px;
  --catbar-h: 52px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.22; font-weight: 700; }

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------------- Cabeçalho fixo ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--c-secondary); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 12px;
  height: var(--header-h); display: flex; align-items: center; gap: 10px;
}
.hdr-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 17px; flex-shrink: 0; transition: background .15s;
}
.hdr-btn:hover, .hdr-btn:focus-visible { background: rgba(255,255,255,.14); }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand img { height: 34px; width: auto; border-radius: 6px; background: #fff; padding: 2px; }
.brand-text { min-width: 0; }
.brand-name {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1;
}
.brand-sub { font-size: 11px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 5px; }

.hdr-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--c-primary); color: #fff; padding: 8px 13px;
  border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap;
}
.cart-btn:hover { filter: brightness(1.12); }
.cart-btn .cart-total { font-variant-numeric: tabular-nums; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
  background: var(--c-accent); color: #1C1917; border-radius: 999px;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.cart-count[hidden] { display: none; }

/* seletor de unidade e canal */
.selector-row {
  display: flex; gap: 8px; align-items: center; padding: 8px 0;
  overflow-x: auto; scrollbar-width: none;
}
.selector-row::-webkit-scrollbar { display: none; }
.pill-select {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600;
  white-space: nowrap; color: var(--c-text); box-shadow: var(--shadow);
}
.pill-select select {
  border: none; background: none; font: inherit; color: inherit;
  font-weight: 700; padding-right: 2px; cursor: pointer; max-width: 150px;
}
.pill-select i { color: var(--c-primary); }

/* ---------------- Faixa de status ---------------- */
.status-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: var(--radius); margin: 10px 0;
  font-size: 13.5px; font-weight: 600; border: 1px solid transparent;
}
.status-bar .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-bar .st-detail { font-weight: 500; opacity: .85; }
.status-open { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.status-open .dot { background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.22); }
.status-closing_soon { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.status-closing_soon .dot { background: #F59E0B; }
.status-closed, .status-blocked { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.status-closed .dot, .status-blocked .dot { background: #EF4444; }
.status-scheduled_only { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.status-scheduled_only .dot { background: #3B82F6; }
.status-hours { margin-left: auto; font-weight: 500; font-size: 12.5px; opacity: .85; }

/* ---------------- Banner / carrossel ---------------- */
.hero { margin: 12px 0 18px; }
.hero-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%; scroll-snap-align: center; position: relative;
  border-radius: var(--radius); overflow: hidden; background: var(--c-secondary);
  /* Proporção TRAVADA em 2:1 no celular. Antes variava (16/7, 260px, 300px)
     conforme a largura, então nenhum recorte no painel podia funcionar:
     ajustar no desktop quebrava no celular. Agora são só dois valores
     redondos — 2:1 aqui e 3:1 no desktop — e o painel recorta pra eles. */
  aspect-ratio: 2/1; box-shadow: var(--shadow);
}
/* <picture> precisa da mesma regra: sem ela ele fica display:inline,
   a imagem estoura o slide e passa a interceptar o clique dos pontinhos. */
.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-caption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff;
  background: linear-gradient(to top, rgba(15,12,10,.92), rgba(15,12,10,.45) 55%, transparent);
}
.hero-caption h2 { font-size: 20px; margin-bottom: 3px; }
.hero-caption p { margin: 0; font-size: 13.5px; opacity: .92; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hero-dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--c-border); padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--c-primary); width: 20px; border-radius: 999px; }

/* ---------------- Barra de categorias fixa ---------------- */
.catbar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border);
  margin: 0 -16px; padding: 0 16px;
}
.catbar-track {
  display: flex; gap: 7px; overflow-x: auto; padding: 9px 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.catbar-track::-webkit-scrollbar { display: none; }
.catbar-chip {
  padding: 8px 15px; border-radius: 999px; background: var(--c-surface);
  border: 1px solid var(--c-border); font-size: 13px; font-weight: 600;
  white-space: nowrap; color: var(--c-text); transition: all .15s;
}
.catbar-chip:hover { border-color: var(--c-primary); }
.catbar-chip[aria-current="true"] {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* ---------------- Seções ---------------- */
.section { margin: 26px 0; scroll-margin-top: calc(var(--header-h) + var(--catbar-h) + 10px); }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.section-head h2 { font-size: 20px; }
.section-head .badge-hh {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: var(--c-accent); color: #1C1917; padding: 3px 9px; border-radius: 999px;
}
.section-head .see-all { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--c-primary); }
.section-sub { color: var(--c-muted); font-size: 13.5px; margin: -8px 0 13px; }

/* ---------------- Grade de categorias ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--c-secondary); aspect-ratio: 4/3; box-shadow: var(--shadow);
  display: block; transition: transform .18s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.cat-card .cat-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2C2422, #1C1917); color: var(--c-accent); font-size: 30px;
}
.cat-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 24px 11px 10px; color: #fff;
  background: linear-gradient(to top, rgba(12,10,9,.94), transparent);
  font-weight: 700; font-size: 13.5px; line-height: 1.25;
}
.cat-card .cat-count { display: block; font-weight: 500; font-size: 11.5px; opacity: .78; margin-top: 2px; }

/* ---------------- Cards de produto ---------------- */
.product-list { display: grid; grid-template-columns: 1fr; gap: 11px; }

.product-card {
  display: flex; gap: 13px; background: var(--c-surface); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); border: 1px solid transparent;
  text-align: left; width: 100%; transition: border-color .15s, transform .15s;
  align-items: stretch;
}
.product-card:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.product-card.is-unavailable { opacity: .62; }

.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pc-name { font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.pc-desc {
  font-size: 13px; color: var(--c-muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-meta { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--c-muted); flex-wrap: wrap; }
.pc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .025em; white-space: nowrap;
}
.pc-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding-top: 4px; }
.pc-price { font-size: 16px; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; }
.pc-price-old { font-size: 12.5px; color: var(--c-muted); text-decoration: line-through; }
.pc-price.promo { color: var(--c-promo); }
.pc-from { font-size: 11px; color: var(--c-muted); font-weight: 600; display: block; }

.pc-media { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.pc-media img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); background: #EFEAE3;
}
.pc-media .pc-noimg {
  width: 100%; height: 100%; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #F0EBE4, #E3DCD2);
  display: grid; place-items: center; color: #B9AF9F; font-size: 22px;
}
.pc-add {
  position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-primary); color: #fff; display: grid; place-items: center;
  font-size: 14px; box-shadow: var(--shadow); border: 2px solid var(--c-surface); z-index: 2;
}
.pc-add:hover { filter: brightness(1.15); }
.pc-add:disabled { background: var(--c-muted); cursor: not-allowed; }

.pc-unavailable-note {
  font-size: 11.5px; font-weight: 700; color: var(--c-promo);
  display: flex; align-items: center; gap: 5px;
}

/* ---------------- Busca ---------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 120; background: var(--c-bg);
  display: flex; flex-direction: column;
}
.search-overlay[hidden] { display: none; }
.search-head {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  background: var(--c-surface); border-bottom: 1px solid var(--c-border);
}
.search-field { flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--c-bg); border-radius: 999px; padding: 9px 15px; border: 1px solid var(--c-border); }
.search-field input { flex: 1; border: none; background: none; font: inherit; font-size: 15px; outline: none; }
.search-body { flex: 1; overflow-y: auto; padding: 14px; }
.search-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.chip {
  padding: 7px 13px; border-radius: 999px; background: var(--c-surface);
  border: 1px solid var(--c-border); font-size: 13px; font-weight: 600;
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.search-group-title {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--c-muted); margin: 18px 0 9px;
}

/* ---------------- Modal / Sheet ---------------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(18,15,13,.6); z-index: 130;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; inset: 0; z-index: 140; background: var(--c-surface);
  display: flex; flex-direction: column; transform: translateY(100%);
  transition: transform .26s cubic-bezier(.32,.72,0,1);
}
.sheet.open { transform: translateY(0); }
.sheet-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  border-bottom: 1px solid var(--c-border); flex-shrink: 0;
}
.sheet-head h2 { font-size: 16px; flex: 1; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sheet-foot {
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-border); background: var(--c-surface); flex-shrink: 0;
}

.btn-primary {
  width: 100%; background: var(--c-primary); color: #fff; border-radius: var(--radius-sm);
  padding: 15px 18px; font-size: 15px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; gap: 10px; min-height: 50px;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { background: #C2BCB2; cursor: not-allowed; }
.btn-ghost {
  width: 100%; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 13px; font-weight: 700; font-size: 14px; background: var(--c-surface);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* detalhe do produto */
.pd-gallery { position: relative; background: #EFEAE3; }
.pd-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pd-gallery .pd-noimg {
  width: 100%; aspect-ratio: 16/9; display: grid; place-items: center;
  color: #B9AF9F; font-size: 44px; background: linear-gradient(135deg,#F0EBE4,#E3DCD2);
}
.pd-zoom {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.62); color: #fff;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
}
.pd-content { padding: 16px 15px 4px; }
.pd-title { font-size: 21px; margin-bottom: 7px; }
.pd-desc { color: #57534E; font-size: 14.5px; line-height: 1.6; margin: 0 0 13px; }
.pd-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.pd-fact {
  display: inline-flex; align-items: center; gap: 6px; background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600;
}
.pd-fact i { color: var(--c-primary); }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pd-price { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pd-price.promo { color: var(--c-promo); }

.mod-group { border-top: 8px solid var(--c-bg); padding: 15px; }
.mod-group-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.mod-group-head h3 { font-size: 15px; }
.mod-group-head .req {
  font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 5px;
  background: var(--c-secondary); color: #fff; text-transform: uppercase; flex-shrink: 0;
}
.mod-group-head .opt { background: var(--c-border); color: #57534E; }
.mod-hint { font-size: 12.5px; color: var(--c-muted); margin: -6px 0 11px; }
.mod-option {
  display: flex; align-items: center; gap: 12px; padding: 11px 2px;
  border-bottom: 1px solid var(--c-border); cursor: pointer;
}
.mod-option:last-child { border-bottom: none; }
.mod-option input { width: 21px; height: 21px; accent-color: var(--c-primary); flex-shrink: 0; }
.mod-option-body { flex: 1; min-width: 0; }
.mod-option-name { font-size: 14px; font-weight: 600; }
.mod-option-desc { font-size: 12.5px; color: var(--c-muted); }
.mod-option-price { font-size: 13.5px; font-weight: 700; color: var(--c-success); white-space: nowrap; }
.mod-option.disabled { opacity: .45; cursor: not-allowed; }

.qty-row { display: flex; align-items: center; gap: 13px; }
.qty-ctrl {
  display: flex; align-items: center; gap: 3px; border: 1.5px solid var(--c-border);
  border-radius: 999px; padding: 3px;
}
.qty-ctrl button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.qty-ctrl button:hover { background: var(--c-bg); }
.qty-ctrl span { min-width: 30px; text-align: center; font-weight: 800; font-size: 15px; }

.field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field-input, textarea.field-input {
  width: 100%; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 11px 13px; font: inherit; font-size: 14px; background: var(--c-surface); resize: vertical;
}
.field-input:focus { border-color: var(--c-primary); outline: none; }

/* carrinho */
.cart-item { display: flex; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--c-border); }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 14.5px; }
.cart-item-mods { font-size: 12.5px; color: var(--c-muted); margin-top: 3px; line-height: 1.45; }
.cart-item-actions { display: flex; gap: 14px; margin-top: 7px; font-size: 12.5px; font-weight: 700; }
.cart-item-actions button { color: var(--c-primary); }
.cart-item-actions button.danger { color: var(--c-promo); }
.cart-totals { padding: 14px 15px; background: var(--c-bg); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.cart-total-row.grand { font-size: 17px; font-weight: 800; border-top: 1px solid var(--c-border); margin-top: 7px; padding-top: 11px; }

/* ---------------- Campanhas ---------------- */
.popup-card {
  position: fixed; z-index: 150; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.94);
  width: min(420px, calc(100vw - 32px)); background: var(--c-surface);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
}
.popup-card.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.popup-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.popup-body { padding: 18px; }
.popup-body h3 { font-size: 19px; margin-bottom: 7px; }
.popup-body p { color: var(--c-muted); font-size: 14px; margin: 0 0 15px; line-height: 1.5; }
.popup-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; z-index: 2;
}

.bottom-sheet-camp {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 145; background: var(--c-surface);
  border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-lg);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .26s cubic-bezier(.32,.72,0,1);
}
.bottom-sheet-camp.open { transform: translateY(0); }

.top-banner-camp {
  background: var(--c-accent); color: #1C1917; padding: 11px 15px;
  display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 600;
}
.top-banner-camp a { font-weight: 800; text-decoration: underline; white-space: nowrap; }
.top-banner-camp .close { margin-left: auto; opacity: .6; }

.highlight-card {
  background: linear-gradient(135deg, var(--c-secondary), #3A2E29); color: #fff;
  border-radius: var(--radius); padding: 18px; margin: 16px 0;
  display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow);
}
.highlight-card h3 { font-size: 17px; margin-bottom: 4px; }
.highlight-card p { margin: 0; font-size: 13.5px; opacity: .86; }
.highlight-card .hc-cta {
  margin-left: auto; background: var(--c-accent); color: #1C1917;
  padding: 10px 17px; border-radius: 999px; font-weight: 800; font-size: 13px; white-space: nowrap;
}

/* ---------------- LGPD ---------------- */
.consent-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 160;
  background: var(--c-secondary); color: #fff; border-radius: var(--radius);
  padding: 15px; box-shadow: var(--shadow-lg); display: flex; gap: 13px;
  align-items: center; flex-wrap: wrap; font-size: 13px; line-height: 1.45;
}
.consent-bar p { margin: 0; flex: 1; min-width: 200px; }
.consent-bar a { text-decoration: underline; color: var(--c-accent); }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.consent-accept { background: var(--c-accent); color: #1C1917; }
.consent-reject { border: 1px solid rgba(255,255,255,.35); color: #fff; }

/* ---------------- Skeleton ---------------- */
.skeleton {
  background: linear-gradient(90deg, #EDE8E1 25%, #F6F2EC 50%, #EDE8E1 75%);
  background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; border-radius: var(--radius-sm);
}
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.sk-card { height: 128px; margin-bottom: 11px; }

/* ---------------- Info do restaurante ---------------- */
.info-block { padding: 15px; border-bottom: 8px solid var(--c-bg); }
.info-block h3 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-block h3 i { color: var(--c-primary); }
.info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; gap: 12px; }
.info-row .day { color: var(--c-muted); }
.info-row.today { font-weight: 800; color: var(--c-primary); }

.site-footer {
  background: var(--c-secondary); color: rgba(255,255,255,.72);
  padding: 30px 16px calc(30px + env(safe-area-inset-bottom)); margin-top: 40px; font-size: 13px;
}
.site-footer a { color: var(--c-accent); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 22px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 9px; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--c-muted); }
.empty-state i { font-size: 40px; color: var(--c-border); margin-bottom: 14px; }
.empty-state h3 { font-size: 17px; color: var(--c-text); margin-bottom: 7px; }

.toast-zone { position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast {
  background: var(--c-secondary); color: #fff; padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; animation: toastin .26s;
}
.toast.success { background: var(--c-success); }
.toast.warn { background: #B45309; }
.toast.error { background: var(--c-promo); }
@keyframes toastin { from { opacity: 0; transform: translateY(12px) } }

/* barra inferior de carrinho no mobile */
.cart-dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90; background: var(--c-primary); color: #fff; border-radius: 999px;
  padding: 13px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14.5px;
  transform: translateY(140%); transition: transform .26s cubic-bezier(.32,.72,0,1);
}
.cart-dock.show { transform: translateY(0); }
.cart-dock .cd-total { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (min-width: 600px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  /* banner mais baixo em telas largas: o cardápio precisa aparecer
     sem exigir rolagem. 3:1 é a proporção que o painel recorta. */
  .hero-slide { aspect-ratio: 3/1; }
  .hero-caption h2 { font-size: 24px; }
}

@media (min-width: 768px) {
  body { font-size: 15.5px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .pc-media { width: 118px; height: 118px; }
  .section-head h2 { font-size: 23px; }
  .cart-dock { display: none; }
  /* detalhe vira modal lateral no desktop */
  .sheet.as-side {
    left: auto; right: 0; top: 0; bottom: 0; width: min(500px, 100vw);
    transform: translateX(100%); border-radius: 0;
  }
  .sheet.as-side.open { transform: translateX(0); }
}

@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .pc-name { font-size: 16.5px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  /* 3:1 já vem de 600px e o shell trava a largura em 1168px, então a
     altura máxima é ~389px por si só. Um max-height aqui ESMAGARIA o
     3:1 (dava 3.24:1) e o recorte do painel deixaria de bater. */
  /* imagem maior no card largo: evita descrição espremida e card vazio */
  .pc-media { width: 148px; height: 148px; }
  .pc-desc { -webkit-line-clamp: 2; line-clamp: 2; }
}

@media (min-width: 1280px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .catbar, .cart-dock, .consent-bar, .popup-card { display: none !important; }
}

/* ============================================================
   v2 — vitrine: voltar, troca instantânea, zoom de imagem
   ============================================================ */

/* Voltar ao cardápio: alvo grande, difícil de errar no celular */
.back-bar {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 12px 0 4px; padding: 9px 15px 9px 13px;
  background: var(--c-surface, #fff); border: 1px solid var(--c-border, #e7e5e4);
  border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--c-text);
  box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: all .15s;
}
.back-bar:hover { border-color: var(--c-primary); color: var(--c-primary); }
.back-bar:active { transform: scale(.98); }
.back-bar i { font-size: 12px; }

/* Troca de categoria: some de leve durante o carregamento, em vez de
   piscar a tela toda como fazia o recarregamento completo */
#cat-swap { transition: opacity .16s ease; min-height: 40vh; }
#cat-swap.is-loading { opacity: .45; pointer-events: none; }

/* Selo de indisponível no lugar onde ficava o botão "+" */
.pc-off-badge {
  position: absolute; right: 8px; bottom: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.62); color: #fff;
  display: grid; place-items: center; font-size: 12px;
}

/* Preço de referência no detalhe (substitui quantidade + "Adicionar") */
.pd-total-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 0 4px;
}
.pd-total-label { font-size: 13.5px; color: var(--c-muted); font-weight: 600; }
.pd-total-value { font-size: 21px; font-weight: 800; color: var(--c-text); }

/* Imagem ampliada */
.img-zoom {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.94);
  display: grid; place-items: center; padding: 16px;
}
.img-zoom img {
  max-width: 100%; max-height: 92vh; object-fit: contain;
  border-radius: 10px;
  /* mantém os pixels nítidos ao ampliar, sem suavização exagerada */
  image-rendering: auto;
}
.img-zoom-close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 17px;
  display: grid; place-items: center; border: none; cursor: pointer;
}
.img-zoom-close:hover { background: rgba(255,255,255,.28); }

/* Foto do detalhe: renderiza no tamanho real, sem esticar */
.pd-gallery img {
  width: 100%; height: auto; display: block;
  object-fit: cover; background: #f5f5f4;
}

/* Setas do banner rotativo: aparecem no desktop, somem no toque */
.hero { position: relative; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.88); color: #1c1917;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: 0; visibility: hidden;
  transition: opacity .18s, background .15s; z-index: 3; font-size: 13px;
}
/* `visibility: hidden` remove a seta do alvo de clique de verdade;
   só `opacity: 0` a deixaria invisível mas ainda clicável, e com
   z-index 3 ela roubava o toque de quem mirava nos pontinhos.
   A transição de visibility é instantânea, o fade fica no opacity. */
.hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; visibility: visible; }
.hero-arrow:hover { background: #fff; }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
@media (hover: none) {
  /* em telas de toque o gesto de arrastar já resolve */
  .hero-arrow { display: none; }
}
