/* ===========================================================================
   Salgado Gostoso — Tema do cardápio público (store.css)
   Extraído de resources/views/store/layouts/master.php + menu.php
   Cacheável (Cache-Control 1 ano + cache-busting via ?v=filemtime).
=========================================================================== */

:root {
  --sg-red: #8B1A1A;
  --sg-red-light: #a52a2a;
  --sg-gold: #C8860A;
  --sg-gold-light: #d4a030;
  --sg-dark: #1a1a1a;
  --sg-warm: #faf8f5;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--sg-warm); color: #333; }

/* ── Navbar ── */
.sg-navbar {
  background: var(--sg-dark);
  padding: 0;
  position: sticky; top: 0; z-index: 1000;
}
.sg-navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
}
.sg-navbar .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--sg-gold);
  font-weight: 800; font-size: 1.15rem;
}
.sg-navbar .brand i { font-size: 1.4rem; }
.sg-navbar .nav-links {
  display: flex; align-items: center; gap: 20px;
}
.sg-navbar .nav-links a {
  color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem;
  transition: color .15s;
}
.sg-navbar .nav-links a:hover { color: #fff; }
.sg-navbar .cart-btn {
  background: var(--sg-red); color: #fff; border: none;
  padding: 8px 16px; border-radius: 8px; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; position: relative; transition: background .15s;
}
.sg-navbar .cart-btn:hover { background: var(--sg-red-light); color: #fff; }
.sg-navbar .cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--sg-gold); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}

/* ── Hero ── */
.sg-hero {
  background: linear-gradient(135deg, var(--sg-dark) 0%, #2d1515 100%);
  color: #fff; padding: 60px 0; text-align: center;
}
.sg-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.sg-hero h1 span { color: var(--sg-gold); }
.sg-hero p { font-size: 1.05rem; color: rgba(255,255,255,.7); max-width: 500px; margin: 0 auto 24px; }
.sg-hero .btn-hero {
  background: var(--sg-red); color: #fff; border: none;
  padding: 12px 30px; border-radius: 10px; font-size: 1rem;
  font-weight: 700; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; transition: background .15s;
}
.sg-hero .btn-hero:hover { background: var(--sg-red-light); color: #fff; }

/* ── Section ── */
.sg-section { padding: 40px 0; }
.sg-section-title {
  font-size: 1.4rem; font-weight: 800; color: var(--sg-dark);
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.sg-section-title i { color: var(--sg-gold); }

/* ── Product card legacy (.product-card, usado em outras telas) ── */
.product-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #ece8e3; transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.product-card a { text-decoration: none; color: inherit; }
.product-card .img-wrap {
  height: 180px; background: #f5f3f0; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.product-card .img-wrap img { max-height: 100%; max-width: 100%; object-fit: cover; }
.product-card .img-wrap .no-img { color: #ccc; font-size: 2.5rem; }
.product-card .card-body { padding: 14px 16px; }
.product-card .card-body .cat { font-size: .72rem; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.product-card .card-body .name { font-size: .95rem; font-weight: 700; margin: 4px 0 8px; }
.product-card .card-body .price { font-size: 1.1rem; font-weight: 800; color: var(--sg-red); }
.product-card .card-body .price-old { font-size: .82rem; color: #aaa; text-decoration: line-through; margin-right: 6px; }
.product-card .btn-add {
  background: var(--sg-red); color: #fff; border: none;
  width: 100%; padding: 10px; font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.product-card .btn-add:hover { background: var(--sg-red-light); }

/* ── Category badges ── */
.cat-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.cat-badge {
  background: #fff; border: 1.5px solid #ece8e3;
  padding: 8px 18px; border-radius: 30px; font-size: .88rem;
  font-weight: 600; color: #555; text-decoration: none;
  transition: all .15s;
}
.cat-badge:hover, .cat-badge.active {
  background: var(--sg-red); color: #fff; border-color: var(--sg-red);
}

/* ── Footer ── */
.sg-footer {
  background: var(--sg-dark); color: rgba(255,255,255,.5);
  padding: 40px 0 20px; margin-top: 40px;
}
.sg-footer h5 { color: var(--sg-gold); font-size: .9rem; font-weight: 700; margin-bottom: 12px; }
.sg-footer a { color: rgba(255,255,255,.5); text-decoration: none; }
.sg-footer a:hover { color: #fff; }
.sg-footer .copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; margin-top: 24px; font-size: .8rem; }

/* ── Mobile nav ── */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #ece8e3;
  padding: 8px 0; z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
.mobile-nav .nav-items {
  display: flex; justify-content: space-around;
}
.mobile-nav a {
  text-decoration: none; color: #888; text-align: center; font-size: .7rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative;
}
.mobile-nav a i { font-size: 1.2rem; }
.mobile-nav a.active { color: var(--sg-red); }
.mobile-nav .badge-cart {
  position: absolute; top: -4px; right: 8px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--sg-red); color: #fff;
  font-size: .65rem; font-weight: 800; display: none;
  align-items: center; justify-content: center;
}
.mobile-nav .badge-cart.show { display: inline-flex; }
@media (max-width: 768px) {
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
  .sg-hero h1 { font-size: 1.6rem; }
}

/* ── Barra "Frete grátis a partir de" ── */
.sg-freebar {
  background: linear-gradient(90deg, #fff8e7 0%, #fff3d0 100%);
  border-bottom: 1px solid #f0e3b5;
  padding: 8px 16px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: #6b5713;
  position: sticky; top: 56px; z-index: 999;
}
.sg-freebar.show { display: flex; }
.sg-freebar.reached { background: linear-gradient(90deg, #d1f7d1 0%, #b6f0b6 100%); color: #1f5c1f; border-color: #9be09b; }
.sg-freebar i { font-size: 1.05rem; flex-shrink: 0; }
.sg-freebar .fb-text { flex: 1; min-width: 0; }
.sg-freebar .fb-text b { font-weight: 800; }
.sg-freebar .fb-bar {
  flex-shrink: 0; width: 90px; height: 6px; background: rgba(0,0,0,.08); border-radius: 3px; overflow: hidden;
}
.sg-freebar .fb-bar > span { display: block; height: 100%; background: var(--sg-gold); transition: width .35s; }
.sg-freebar.reached .fb-bar > span { background: #1f5c1f; }
@media (max-width: 768px) { .sg-freebar { font-size: .75rem; padding: 6px 12px; } .sg-freebar .fb-bar { width: 60px; } }

/* ── Drawer (carrinho lateral) ── */
.sg-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 1050;
}
.sg-drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.sg-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw); background: #fff; z-index: 1060;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,.18);
}
.sg-drawer.show { transform: translateX(0); }
.sg-drawer .dr-head {
  padding: 16px 18px; border-bottom: 1px solid #ece8e3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--sg-dark); color: #fff;
}
.sg-drawer .dr-head h3 { margin: 0; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sg-drawer .dr-head h3 i { color: var(--sg-gold); }
.sg-drawer .dr-close { background: none; border: none; color: rgba(255,255,255,.85); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.sg-drawer .dr-body { flex: 1; overflow-y: auto; padding: 0; }
.sg-drawer .dr-empty { text-align: center; padding: 50px 20px; color: #999; }
.sg-drawer .dr-empty i { font-size: 3rem; color: #ddd; display: block; margin-bottom: 8px; }
.sg-drawer .dr-item {
  display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f0ede8; align-items: center;
}
.sg-drawer .dr-item .dr-img {
  width: 56px; height: 56px; border-radius: 8px; background: #f5f3f0; flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.sg-drawer .dr-item .dr-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-drawer .dr-item .dr-img i { color: #ccc; }
.sg-drawer .dr-item .dr-info { flex: 1; min-width: 0; }
.sg-drawer .dr-item .dr-info .nm { font-weight: 700; font-size: .88rem; color: var(--sg-dark); line-height: 1.2; }
.sg-drawer .dr-item .dr-info .pr { font-size: .82rem; color: var(--sg-red); font-weight: 700; margin-top: 2px; }
.sg-drawer .dr-item .dr-info .obs { font-size: .72rem; color: #999; margin-top: 2px; }
.sg-drawer .dr-qty {
  display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;
}
.sg-drawer .dr-qty button {
  width: 32px; height: 32px; border: none; background: #faf9f7; font-size: 1rem; cursor: pointer;
}
.sg-drawer .dr-qty button:hover { background: #f0ede8; }
.sg-drawer .dr-qty span { width: 32px; text-align: center; font-weight: 700; font-size: .85rem; }
.sg-drawer .dr-foot { border-top: 1px solid #ece8e3; padding: 14px 18px; background: #faf9f7; }
.sg-drawer .dr-line { display: flex; justify-content: space-between; font-size: .85rem; padding: 2px 0; color: #555; }
.sg-drawer .dr-line.total { font-size: 1.15rem; font-weight: 900; color: var(--sg-red); padding-top: 8px; border-top: 1px dashed #ddd; margin-top: 6px; }
.sg-drawer .dr-cta {
  display: flex; gap: 8px; margin-top: 12px;
}
.sg-drawer .dr-cta a, .sg-drawer .dr-cta button {
  flex: 1; padding: 12px; border-radius: 10px; text-align: center; font-weight: 800; font-size: .92rem;
  text-decoration: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sg-drawer .dr-cta .btn-primary { background: var(--sg-red); color: #fff; }
.sg-drawer .dr-cta .btn-primary:hover { background: var(--sg-red-light); color: #fff; }
.sg-drawer .dr-cta .btn-ghost { background: #fff; color: #555; border: 1.5px solid #ddd; }

/* ── Modal produto ── */
.sg-pmodal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity .2s;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.sg-pmodal-backdrop.show { opacity: 1; pointer-events: auto; }
.sg-pmodal {
  background: #fff; border-radius: 16px; max-width: 720px; width: 100%;
  max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
  transform: scale(.96); transition: transform .2s;
}
.sg-pmodal-backdrop.show .sg-pmodal { transform: scale(1); }
.sg-pmodal .pm-head {
  position: relative; height: 240px; background: #f5f3f0;
  display: flex; align-items: center; justify-content: center;
}
.sg-pmodal .pm-head img { width: 100%; height: 100%; object-fit: cover; }
.sg-pmodal .pm-head .ph-noimg { font-size: 4rem; color: #ddd; }
.sg-pmodal .pm-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; border: none; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
/* Botão "Voltar ao cardápio" — canto superior ESQUERDO, bem visível */
.sg-pmodal .pm-back {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff; border: none;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  z-index: 3;
  transition: background .15s, transform .12s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.sg-pmodal .pm-back:hover { background: rgba(0,0,0,.75); transform: translateX(-2px); }
.sg-pmodal .pm-back i { font-size: 1.05rem; }
.sg-pmodal .pm-back span { line-height: 1; }
@media (max-width: 480px) {
  .sg-pmodal .pm-back { padding: 7px 12px 7px 9px; font-size: .82rem; }
  .sg-pmodal .pm-back i { font-size: 1rem; }
}
.sg-pmodal .pm-body { padding: 22px 22px 0; overflow-y: auto; flex: 1; }
.sg-pmodal .pm-body h3 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 900; color: var(--sg-dark); }
.sg-pmodal .pm-body .pm-cat { font-size: .72rem; color: #999; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.sg-pmodal .pm-body .pm-price { font-size: 1.4rem; font-weight: 900; color: var(--sg-red); margin: 8px 0 14px; }
.sg-pmodal .pm-body .pm-price .old { font-size: .9rem; color: #aaa; text-decoration: line-through; margin-right: 8px; font-weight: 600; }
.sg-pmodal .pm-body .pm-desc { color: #555; font-size: .92rem; line-height: 1.55; margin-bottom: 16px; }

/* Contador de unidades — chip "X / 100 un" com barra de progresso · STICKY no topo */
.sg-pmodal .pm-un-counter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fffaf2; border: 1.5px solid #f0e3b5; border-radius: 12px;
  padding: 10px 14px; margin: 4px 0 16px;
  transition: all .25s;
  /* Cola no topo do modal enquanto cliente rola pra escolher sabores — sempre vê quantidade */
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.sg-pmodal .pm-un-counter i { color: var(--sg-red, #C41A1A); font-size: 1.1rem; flex-shrink: 0; }
.sg-pmodal .pm-un-counter .pm-un-val { font-size: .92rem; font-weight: 700; color: #6b4f1c; flex: 1; min-width: 0; }
.sg-pmodal .pm-un-counter .pm-un-val .pm-un-pre { color: #6b4f1c; font-weight: 600; margin-right: 4px; }
.sg-pmodal .pm-un-counter .pm-un-val #sgPmUnAtual { color: #1a1a1a; font-weight: 900; font-size: 1.05rem; }
.sg-pmodal .pm-un-counter .pm-un-val #sgPmUnSuf { margin-left: 4px; }
.sg-pmodal .pm-un-counter .pm-un-bar {
  width: 100%; height: 6px;
  background: #f1ead8; border-radius: 3px; overflow: hidden;
}
.sg-pmodal .pm-un-counter .pm-un-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--sg-red, #C41A1A), var(--sg-gold, #f7c34a));
  transition: width .3s ease;
  border-radius: 3px;
}
/* Quando completou: verde sólido + checkmark visual */
.sg-pmodal .pm-un-counter.completo {
  background: #ecfdf5; border-color: #6ee7b7;
}
.sg-pmodal .pm-un-counter.completo i { color: #10b981; }
.sg-pmodal .pm-un-counter.completo .pm-un-val { color: #065f46; }
.sg-pmodal .pm-un-counter.completo .pm-un-val .pm-un-pre { color: #065f46; }
.sg-pmodal .pm-un-counter.completo .pm-un-val #sgPmUnAtual { color: #065f46; }
.sg-pmodal .pm-un-counter.completo .pm-un-fill { background: #10b981; }

/* Modo "livre" (Monte seu kit): sem barra, chip enxuto */
.sg-pmodal .pm-un-counter.pm-un-livre { padding: 8px 14px; gap: 8px; }
.sg-pmodal .pm-un-counter.pm-un-livre #sgPmUnSuf { margin-left: 4px; font-weight: 600; color: #6b4f1c; }
.sg-pmodal .pm-body .pm-group {
  background: #faf9f7; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.sg-pmodal .pm-body .pm-group .gh {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 800; font-size: .88rem; margin-bottom: 8px;
}
.sg-pmodal .pm-body .pm-group .gh .gh-tag {
  background: var(--sg-red); color: #fff; font-size: .68rem; padding: 2px 8px; border-radius: 12px; font-weight: 700;
}
.sg-pmodal .pm-body .pm-group label {
  display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .9rem; cursor: pointer;
}
.sg-pmodal .pm-body .pm-group label .extra { margin-left: auto; color: var(--sg-gold); font-weight: 800; font-size: .85rem; }

/* ── Item estilo Anota AI: radio grande pra escolha única + contador − N + pra múltipla ── */
.sg-pmodal .pm-body .pm-group .pm-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #eee5d8;
  font-size: .9rem;
}
.sg-pmodal .pm-body .pm-group .pm-opt:last-child { border-bottom: 0; }
.sg-pmodal .pm-body .pm-group .pm-opt input[type=radio],
.sg-pmodal .pm-body .pm-group .pm-opt input[type=checkbox] {
  position: absolute; opacity: 0; pointer-events: none; left: -9999px;
}
/* Coluna do meio: nome em cima, preço embaixo (estilo Anota AI) */
.sg-pmodal .pm-body .pm-group .pm-opt .pm-opt-mid {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.sg-pmodal .pm-body .pm-group .pm-opt .pm-opt-mid .pm-opt-nm {
  font-weight: 600; line-height: 1.3;
}
.sg-pmodal .pm-body .pm-group .pm-opt .pm-opt-mid .pm-opt-price {
  color: var(--sg-gold); font-weight: 800; font-size: .85rem;
}
/* Radio grande à direita (estilo iFood / Anota AI) */
.sg-pmodal .pm-body .pm-group .pm-opt-radio { cursor: pointer; }
.sg-pmodal .pm-body .pm-group .pm-opt-radio .pm-opt-radio-mark {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #d1d5db; flex: 0 0 24px;
  position: relative; transition: border-color .15s, background .15s;
}
.sg-pmodal .pm-body .pm-group .pm-opt-radio input:checked ~ .pm-opt-radio-mark {
  border-color: var(--sg-red); background: var(--sg-red);
  box-shadow: inset 0 0 0 4px #fff;
}
/* Contador − N + (mostra só + quando qty=0; mostra − N + quando qty>=1) */
.sg-pmodal .pm-body .pm-group .pm-opt-counter { cursor: default; }
.sg-pmodal .pm-body .pm-group .pm-opt-counter .pm-opt-cnt {
  display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
}
.sg-pmodal .pm-body .pm-group .pm-opt-counter .pm-cnt-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;     /* era 30×30 — touch target */
  background: transparent; color: var(--sg-red);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  transition: background .12s, opacity .12s;
}
.sg-pmodal .pm-body .pm-group .pm-opt-counter .pm-cnt-btn:hover {
  background: rgba(220, 38, 38, .08);
}
.sg-pmodal .pm-body .pm-group .pm-opt-counter .pm-cnt-val {
  min-width: 16px; text-align: center; font-weight: 700; color: #111;
}
/* Quando qty=0: esconde o "−" e o número, mostra só o "+" */
.sg-pmodal .pm-body .pm-group .pm-opt-counter[data-qty="0"] .pm-cnt-minus,
.sg-pmodal .pm-body .pm-group .pm-opt-counter[data-qty="0"] .pm-cnt-val {
  display: none;
}

/* Cross-sell "Quem pediu isso também levou" no modal de produto */
.sg-pmodal .pm-juntos {
  margin: 8px -22px 0;
  padding: 16px 22px 8px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-top: 1px solid #f0e3b5;
}
.sg-pmodal .pm-juntos-h {
  font-weight: 800; font-size: .92rem; color: #92400e;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.sg-pmodal .pm-juntos-h i { color: #C8860A; font-size: 1.05rem; }
.sg-pmodal .pm-juntos-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px) { .sg-pmodal .pm-juntos-grid { grid-template-columns: repeat(4, 1fr); } }
.sg-pmodal .pm-junto {
  background: #fff; border: 1.5px solid #fde68a; border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column;
}
.sg-pmodal .pm-junto:hover {
  border-color: var(--sg-red); transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(139,26,26,.15);
}
.sg-pmodal .pm-junto-img {
  aspect-ratio: 1/1; background: #f5f3f0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sg-pmodal .pm-junto-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-pmodal .pm-junto-img i { color: #ddd; font-size: 1.4rem; }
.sg-pmodal .pm-junto-nm {
  padding: 6px 8px 0;
  font-weight: 700; font-size: .76rem; color: var(--sg-dark);
  line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 1.92em;
}
.sg-pmodal .pm-junto-pr {
  padding: 2px 8px 4px;
  font-weight: 800; font-size: .85rem; color: var(--sg-red);
}
.sg-pmodal .pm-junto-add {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: #16803c; color: #fff;
  font-weight: 800; font-size: .72rem; line-height: 1;
  padding: 7px 6px; transition: background .15s;
}
.sg-pmodal .pm-junto-add i { font-size: .85rem; }
.sg-pmodal .pm-junto:hover .pm-junto-add { background: #1a9c4a; }
/* Feedback enquanto envia / depois de adicionado */
.sg-pmodal .pm-junto.adding { opacity: .7; pointer-events: none; }
.sg-pmodal .pm-junto.added { border-color: #16803c; }
.sg-pmodal .pm-junto.added .pm-junto-add,
.sg-pmodal .pm-junto.added:hover .pm-junto-add { background: #0f5f2c; }

.sg-pmodal .pm-foot {
  border-top: 1px solid #ece8e3; padding: 14px 22px; display: flex; align-items: center; gap: 10px; background: #fff;
}
.sg-pmodal .pm-foot .pm-qty {
  display: inline-flex; align-items: center; border: 1.5px solid #ddd; border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.sg-pmodal .pm-foot .pm-qty button { width: 44px; height: 44px; border: none; background: #faf9f7; font-size: 1.3rem; cursor: pointer; font-weight: 700; }
.sg-pmodal .pm-foot .pm-qty span { width: 44px; text-align: center; font-weight: 800; font-size: 1rem; }
.sg-pmodal .pm-foot .pm-add {
  flex: 1; background: var(--sg-red); color: #fff; border: none; border-radius: 10px;
  padding: 0 18px; height: 50px; font-weight: 800; font-size: .98rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sg-pmodal .pm-foot .pm-add:hover { background: var(--sg-red-light); }
.sg-pmodal .pm-foot .pm-add:disabled { background: #ccc; cursor: not-allowed; }
@media (max-width: 600px) {
  .sg-pmodal-backdrop { padding: 0; align-items: flex-end; }
  .sg-pmodal { border-radius: 16px 16px 0 0; max-height: 95vh; }
  .sg-pmodal .pm-head { height: 180px; }
}

/* ── Toast ── */
.sg-toast {
  position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--sg-dark); color: #fff; padding: 12px 22px; border-radius: 30px;
  font-size: .9rem; font-weight: 700; z-index: 3000;
  opacity: 0; transition: all .3s; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: 8px; pointer-events: none; max-width: 90vw;
}
.sg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sg-toast.error { background: #b91c1c; }
.sg-toast.success { background: #15803d; }
.sg-toast i { font-size: 1.1rem; }

/* ── WhatsApp flutuante ── */
.sg-wa-float {
  position: fixed; right: 16px; bottom: 86px; z-index: 950;
  background: #25d366; color: #fff; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 6px 18px rgba(0,0,0,.2); text-decoration: none;
  transition: transform .15s;
}
.sg-wa-float:hover { transform: scale(1.08); color: #fff; }
@media (min-width: 768px) { .sg-wa-float { bottom: 24px; } }

/* ── Skeleton loader ── */
.sg-skel { background: linear-gradient(90deg, #ece8e3 0%, #f5f3f0 50%, #ece8e3 100%);
          background-size: 200% 100%; animation: sgskel 1.2s infinite; border-radius: 6px; }
@keyframes sgskel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Acessibilidade: modo fonte grande (vovó-proof) ── */
html.sg-large-font { font-size: 18px; }
html.sg-large-font body { font-size: 1.05rem; }
html.sg-large-font .sg-card .body .nm { font-size: 1.05rem; }
html.sg-large-font .sg-card .body .price { font-size: 1.2rem; }
html.sg-large-font .sg-pmodal .pm-body h3 { font-size: 1.5rem; }
.sg-a11y-toggle {
  position: fixed; top: 70px; right: 16px; z-index: 940;     /* era 12px — colava na borda */
  background: #fff; border: 1.5px solid #ece8e3; color: #555;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.1);
  font-weight: 800; font-size: 1rem;
  transition: all .15s;
}
.sg-a11y-toggle:hover { background: var(--sg-gold); color: #fff; border-color: var(--sg-gold); }
.sg-a11y-toggle.on { background: var(--sg-gold); color: #fff; border-color: var(--sg-gold); }
.sg-a11y-toggle .a-small { font-size: .7rem; }
.sg-a11y-toggle .a-big { font-size: 1.1rem; font-weight: 900; margin-left: -2px; }
/* Esconde AA toggle em mobile — sobreposição com títulos das seções estava cortando "DESCONTO" */
@media (max-width: 700px) {
  .sg-a11y-toggle { display: none !important; }
}

/* ===========================================================================
   Específicos da tela /cardapio (extraído de menu.php)
=========================================================================== */

/* ── Categorias horizontais (scroll touch) ── */
.sg-cat-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 16px;
  margin: -4px -16px 14px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: none; scroll-snap-type: x mandatory;
}
.sg-cat-scroll::-webkit-scrollbar { display: none; }
.sg-cat-scroll .cat-pill {
  background: #fff; border: 1.5px solid #ece8e3; padding: 9px 18px; border-radius: 30px;
  font-size: .9rem; font-weight: 700; color: #555; text-decoration: none; white-space: nowrap;
  flex-shrink: 0; scroll-snap-align: start; transition: all .15s; cursor: pointer;
}
.sg-cat-scroll .cat-pill:hover { border-color: var(--sg-red); color: var(--sg-red); }
.sg-cat-scroll .cat-pill.active { background: var(--sg-red); color: #fff; border-color: var(--sg-red); }

/* ── Search bar grande ── */
.sg-search {
  background: #fff; border: 2px solid #ece8e3; border-radius: 14px; padding: 4px 6px 4px 16px;
  display: flex; align-items: center; gap: 8px; max-width: 520px; margin: 0 auto 24px;
  transition: border-color .15s;
}
.sg-search:focus-within { border-color: var(--sg-red); }
.sg-search i { color: #888; font-size: 1.15rem; }
.sg-search input { flex: 1; border: none; outline: none; font-size: 1rem; padding: 12px 0; background: transparent; }
.sg-search button {
  background: var(--sg-red); color: #fff; border: none; width: 40px; height: 40px;
  border-radius: 10px; cursor: pointer; display: none; align-items: center; justify-content: center;
}
.sg-search.has-text button { display: flex; }

/* ── Grid produtos (mobile = 2 col, desktop = 4 col) ── */
.sg-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px) { .sg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .sg-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ── Card de produto MELHORADO ── */
.sg-card {
  background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #ece8e3;
  transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
  position: relative; cursor: pointer;
}
.sg-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: var(--sg-red-light); }
.sg-card .img-wrap {
  aspect-ratio: 1/1; background: #f5f3f0;
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.sg-card .img-wrap img,
.sg-card .img-wrap picture { width: 100%; height: 100%; }
.sg-card .img-wrap picture { display: block; }
.sg-card .img-wrap picture img { object-fit: cover; transition: transform .25s; }
.sg-card .img-wrap > img { object-fit: cover; transition: transform .25s; }
.sg-card:hover .img-wrap img { transform: scale(1.05); }
.sg-card .img-wrap .no-img { color: #ddd; font-size: 2.5rem; }

/* ── Badges no card (cantos) ── */
.sg-card .badge-disc {
  position: absolute; top: 8px; left: 8px;
  background: #ef4444; color: #fff; padding: 3px 8px; border-radius: 20px;
  font-size: .68rem; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.sg-card .badge-pop {
  position: absolute; top: 8px; right: 8px;
  background: var(--sg-gold); color: #fff; padding: 3px 8px; border-radius: 20px;
  font-size: .65rem; font-weight: 800; display: flex; align-items: center; gap: 3px;
}
.sg-card .badge-new {
  position: absolute; bottom: 8px; left: 8px;
  background: #10b981; color: #fff; padding: 3px 8px; border-radius: 20px;
  font-size: .65rem; font-weight: 800;
}
.sg-card .badge-trend {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.7); color: #fff; padding: 3px 8px; border-radius: 20px;
  font-size: .65rem; font-weight: 800; display: flex; align-items: center; gap: 3px;
  backdrop-filter: blur(4px);
}
.sg-card .stars {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .75rem; color: #f59e0b; font-weight: 800;
}
.sg-card .stars i { font-size: .8rem; }
.sg-card .stars .count { color: #888; font-weight: 600; margin-left: 3px; }

.sg-card .body { padding: 12px 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sg-card .body .nm {
  font-weight: 800; font-size: .95rem; color: var(--sg-dark);
  line-height: 1.25; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sg-card .body .desc {
  font-size: .76rem; color: #888; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.sg-card .body .price-row { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 8px; }
.sg-card .body .price { font-size: 1.05rem; font-weight: 900; color: var(--sg-red); }
.sg-card .body .price-old { font-size: .8rem; color: #aaa; text-decoration: line-through; }
.sg-card .body .unit { font-size: .7rem; color: #999; font-weight: 500; }

/* ── Botão "Adicionar" gigante ── */
.sg-card .btn-add {
  background: var(--sg-red); color: #fff; border: none;
  width: 100%; padding: 12px 8px; font-size: .9rem; font-weight: 800;
  cursor: pointer; transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sg-card .btn-add:hover { background: var(--sg-red-light); }

/* ── Quantidade rápida (substitui btn-add quando produto já no carrinho) ── */
.sg-card .qty-row {
  display: none; background: var(--sg-red); color: #fff;
  align-items: center; justify-content: space-between; padding: 8px 6px;
}
.sg-card .qty-row button {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; font-weight: 800;
}
.sg-card .qty-row button:hover { background: rgba(255,255,255,.35); }
.sg-card .qty-row span { font-weight: 800; font-size: 1.05rem; }
.sg-card.in-cart .btn-add { display: none; }
.sg-card.in-cart .qty-row { display: flex; }

/* ── Empty state ── */
.sg-empty {
  text-align: center; padding: 60px 20px; color: #888;
  background: #fff; border-radius: 14px; border: 1px solid #ece8e3;
}
.sg-empty i { font-size: 3rem; color: #ddd; display: block; margin-bottom: 8px; }
.sg-empty p { font-size: .95rem; margin: 6px 0 14px; }

/* ── Hero do cardápio (pequeno banner topo) ── */
.sg-menu-hero {
  background: linear-gradient(135deg, var(--sg-dark) 0%, #2d1515 100%);
  color: #fff; padding: 30px 0 24px; margin-bottom: 0;
}
.sg-menu-hero h1 { font-size: 1.65rem; font-weight: 900; margin: 0 0 6px; }
.sg-menu-hero h1 span { color: var(--sg-gold); }
.sg-menu-hero p { color: rgba(255,255,255,.7); font-size: .92rem; margin: 0; }
@media (max-width: 600px) {
  .sg-menu-hero { padding: 20px 0 16px; }
  .sg-menu-hero h1 { font-size: 1.35rem; }
}
