/* ============================================================
   OtimizaPedido — STOREFRONT v2 (front novo, do zero)
   Mobile-first. Namespace .sf2 (não colide com legado).
   Cor da loja = var(--brand) (injetada por css/style.php).
   Suporta os modelos: grade/lista, compacta, agendamento,
   esconder preço — via classes utilitárias no markup.
   ============================================================ */

/* tokens globais (disponiveis tambem p/ appbar/bottomnav fora do .sf2, ex. produto).
   --brand vem de css/style.php (:root) e NAO e redefinido aqui. */
:root {
  --bg:        #f3f4f6;
  --surface:   #ffffff;
  --surface-2: #fbfbfc;
  --ink:       #161b22;
  --ink-2:     #5a626d;
  --ink-3:     #8b929c;
  --line:      #e9ebef;
  --radius:    20px;
  --radius-sm: 14px;
  --shadow:    0 4px 16px rgba(20,24,32,.07);
  --shadow-md: 0 10px 28px rgba(20,24,32,.12);
  --shadow-brand: 0 10px 22px color-mix(in srgb, var(--brand) 36%, transparent);
  --tint:      color-mix(in srgb, var(--brand) 9%, #fff);
  --tint-2:    color-mix(in srgb, var(--brand) 16%, #fff);
  --ring:      color-mix(in srgb, var(--brand) 40%, transparent);
}

.sf2, .sf2 *, .sf2 *::before, .sf2 *::after { box-sizing: border-box; }

.sf2 {
  /* --brand vem de css/style.php (:root{--brand}). Fallback abaixo só se faltar. */
  --bg:        #f3f4f6;
  --surface:   #ffffff;
  --surface-2: #fbfbfc;
  --ink:       #161b22;
  --ink-2:     #5a626d;
  --ink-3:     #8b929c;
  --line:      #e9ebef;
  --radius:    20px;
  --radius-sm: 14px;
  --shadow:    0 4px 16px rgba(20,24,32,.07);
  --shadow-md: 0 10px 28px rgba(20,24,32,.12);
  --shadow-brand: 0 10px 22px color-mix(in srgb, var(--brand) 36%, transparent);
  --tint:      color-mix(in srgb, var(--brand) 9%, #fff);
  --tint-2:    color-mix(in srgb, var(--brand) 16%, #fff);
  --ring:      color-mix(in srgb, var(--brand) 40%, transparent);

  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;

  /* CONTAINER do site — layout próprio de navegador (NÃO é celular esticado):
     largo no desktop, centrado; no mobile ocupa a tela. */
  max-width: 1180px;
  margin-inline: auto;
  position: relative;
  min-height: 100vh;
}
.sf2 a { color: inherit; text-decoration: none; }
.sf2 img { max-width: 100%; display: block; }

/* esconde o front legado quando o v2 está ativo */
.sf2-active .header,
.sf2-active .footer,
.sf2-active > .sceneElement { display: none !important; }
body.sf2-active { background: var(--bg); margin: 0; }

/* ------------------------------------------------------------
   APP BAR (topo fixo) + busca
   ------------------------------------------------------------ */
.sf2-appbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand);
  padding: 10px 14px calc(10px + env(safe-area-inset-top, 0px));
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  box-shadow: 0 2px 14px color-mix(in srgb, var(--brand) 40%, transparent);
}
.sf2-appbar__row { display: flex; align-items: center; gap: 12px; }
.sf2-iconbtn {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: 13px; border: 0;
  background: rgba(255,255,255,.16);
  color: #fff; font-size: 20px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.sf2-iconbtn:active { transform: scale(.94); }
.sf2-iconbtn i { color: #fff !important; }
.sf2-appbar__title {
  flex: 1 1 auto; min-width: 0;
  color: #fff; font-weight: 600; font-size: 15.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}
.sf2-cart { position: relative; }
/* classe legada shop-bag injeta margin-top:-15px -> badge estourava topo da navbar */
.sf2-appbar .sf2-cart { margin: 0 !important; }
.sf2-cart .sf2-cart__count, .sf2-cart .counter {
  position: absolute; top: -4px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: #fff; color: var(--brand);
  border-radius: 999px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.sf2-search {
  margin-top: 10px;
  display: flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 14px;
  padding: 0 14px; height: 46px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}
.sf2-search i { color: var(--ink-3); font-size: 18px; }
.sf2-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
}
.sf2-search input[type="hidden"] { display: none !important; }
.sf2-search button {
  border: 0; background: transparent; cursor: pointer;
  flex: 0 0 auto; width: auto; min-width: 0; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------
   HERO da loja
   ------------------------------------------------------------ */
.sf2-main { padding-bottom: 108px; }
.sf2-hero { position: relative; padding-top: 14px; }
/* capa = BANNER contido (arredondado), não full-bleed fatiado pelo card */
.sf2-hero__cover {
  margin: 0 16px;
  height: auto; aspect-ratio: 16 / 7;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.sf2-hero__cover::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,18,24,0) 45%, rgba(15,18,24,.42) 100%);
}
.sf2-hero__card {
  /* overlap pequeno e intencional na costura do banner (não fatia) */
  margin: -32px 16px 0; position: relative; z-index: 2;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 46px 18px 18px;
  text-align: center;
}
.sf2-hero__logo {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 20px;
  background: #fff; border: 3px solid #fff; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sf2-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.sf2-hero__name {
  font-size: 19px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25;
}
.sf2-hero__desc {
  margin-top: 6px; color: var(--ink-2);
  font-size: 13px; line-height: 1.5;
}
.sf2-pills {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.sf2-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
}
.sf2-pill i { font-size: 14px; }
.sf2-pill--open   { background: color-mix(in srgb, #1faa53 14%, #fff); color: #167f3e; }
.sf2-pill--closed { background: color-mix(in srgb, #e04f4f 14%, #fff); color: #c23434; }
.sf2-pill--open  i { color: #1faa53 !important; }
.sf2-pill--closed i { color: #e04f4f !important; }
.sf2-pill--ghost { background: var(--tint); color: var(--brand); }
.sf2-pill--ghost i { color: var(--brand) !important; }

/* quick actions (mínimo / horário / whats) */
.sf2-actions {
  margin: 14px 16px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.sf2-action {
  background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 12px 8px; text-align: center;
}
.sf2-action__ic {
  width: 40px; height: 40px; margin: 0 auto 7px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--tint); color: var(--brand); font-size: 19px;
}
.sf2-action__ic i { color: var(--brand) !important; }
.sf2-action__lb { font-size: 11px; color: var(--ink-3); font-weight: 600; line-height: 1.2; }
.sf2-action__vl { font-size: 12.5px; color: var(--ink); font-weight: 700; margin-top: 1px; }

.sf2-install { margin: 14px 16px 0; display: flex; gap: 10px; }
.sf2-install button {
  flex: 1; height: 46px; border: 0; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.sf2-install button:active { transform: scale(.98); }
.sf2-install #installButton {
  background: var(--brand); color: #fff; box-shadow: var(--shadow-brand);
}
.sf2-install #installButton i { color: #fff !important; }
.sf2-install #showInstructionsButton {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------
   PROMO BANNER (hero) — capa full-bleed contida, sem card fatiando
   (corrige "banner cortado"). Overlay com identidade da loja.
   ------------------------------------------------------------ */
.sf2-promo {
  position: relative; margin: 14px 16px 0;
  aspect-ratio: 21 / 9; min-height: 168px;
  border-radius: var(--radius); overflow: hidden;
  background: #1b1b1b; background-size: cover; background-position: center;
  box-shadow: var(--shadow-md);
}
.sf2-promo--nocover {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000));
}
.sf2-promo__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,16,.84) 0%, rgba(10,12,16,.46) 46%, rgba(10,12,16,.04) 100%);
}
.sf2-promo__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  padding: 0 18px; color: #fff; max-width: 82%;
}
.sf2-promo__badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  backdrop-filter: blur(2px);
}
.sf2-promo__badge.is-open   { background: rgba(31,170,83,.92);  color: #fff; }
.sf2-promo__badge.is-closed { background: rgba(224,79,79,.92);  color: #fff; }
.sf2-promo__badge i { color: #fff !important; font-size: 13px; }
.sf2-promo__name {
  font-size: 25px; font-weight: 800; letter-spacing: -.4px; line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.sf2-promo__desc {
  font-size: 13px; opacity: .92; line-height: 1.4; max-width: 34ch;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sf2-promo__logo {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.92); box-shadow: var(--shadow-md); background: #fff;
}
.sf2-promo__logo img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------
   RAIL DE CATEGORIAS (scroll-snap)
   ------------------------------------------------------------ */
.sf2-rail {
  margin-top: 18px; padding: 4px 16px 6px;
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sf2-rail::-webkit-scrollbar { display: none; }
.sf2-cat {
  flex: 0 0 auto; width: 70px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  scroll-snap-align: start;
}
.sf2-cat__img {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--tint); box-shadow: var(--shadow);
  border: 2px solid transparent; overflow: hidden;
  display: grid; place-items: center;
  transition: border-color .15s ease, transform .15s ease;
}
.sf2-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.sf2-cat__ic { font-size: 26px; color: var(--brand) !important; }
.sf2-cat__name {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  text-align: center; line-height: 1.2; width: 70px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 28px;
}
.sf2-cat.is-active .sf2-cat__img { border-color: var(--brand); transform: translateY(-2px); }
.sf2-cat.is-active .sf2-cat__name { color: var(--brand); }

/* ------------------------------------------------------------
   BANNERS (scroll-snap)
   ------------------------------------------------------------ */
.sf2-banners {
  margin-top: 16px; padding: 0 16px;
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.sf2-banners::-webkit-scrollbar { display: none; }
.sf2-banners > * {
  flex: 0 0 100%; scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.sf2-banners img { width: 100%; height: auto; }

/* ------------------------------------------------------------
   SEÇÃO + cabeçalho
   ------------------------------------------------------------ */
.sf2-section { margin-top: 24px; }
.sf2-section__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; margin-bottom: 12px;
}
.sf2-section__title {
  font-size: 18px; font-weight: 700; letter-spacing: -.2px;
  display: inline-flex; align-items: center; gap: 8px;
}
.sf2-section__title i { color: var(--brand); font-size: 18px; }
.sf2-seeall {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--tint); color: var(--brand);
  font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
}
.sf2-seeall i { color: var(--brand) !important; font-size: 13px; }

/* ------------------------------------------------------------
   DESTAQUES (ofertas) — cards horizontais
   ------------------------------------------------------------ */
.sf2-featured {
  padding: 0 16px 2px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.sf2-featured::-webkit-scrollbar { display: none; }
.sf2-feat {
  flex: 0 0 72%; max-width: 280px; scroll-snap-align: start;
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #ddd; aspect-ratio: 16/10;
}
.sf2-feat__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sf2-feat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,24,0) 38%, rgba(15,18,24,.78) 100%);
}
.sf2-feat__txt { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.sf2-feat__price {
  display: inline-block; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 999px;
  margin-bottom: 7px; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.sf2-feat__name { color: #fff; font-weight: 600; font-size: 15px; line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* ------------------------------------------------------------
   GRADE de produtos (exibicao 1)
   ------------------------------------------------------------ */
.sf2-grid {
  padding: 0 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.sf2-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
.sf2-card:active { transform: scale(.985); }
@media (hover:hover){ .sf2-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.sf2-card__media {
  position: relative; aspect-ratio: 1/1;
  background-size: cover; background-position: center; background-color: #eee;
}
.sf2-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}
.sf2-badge--dark { background: rgba(20,24,32,.78); }
.sf2-badge--top { top: auto; bottom: 10px; left: 10px; background: #f59e0b; }
.sf2-card__body { padding: 11px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.sf2-card__name {
  font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3;
  letter-spacing: -.1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 36px; margin-bottom: 8px;
}
.sf2-card__desc {
  font-size: 12px; color: var(--ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 8px;
}
.sf2-price { margin-top: auto; }
.sf2-price__old { display: block; font-size: 11.5px; color: var(--ink-3); text-decoration: line-through; line-height: 1.2; }
.sf2-price__lbl { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.1; }
.sf2-price__now { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.sf2-price__hint { font-size: 12.5px; font-weight: 600; color: var(--brand); }

.sf2-pedir {
  margin-top: 10px; width: 100%; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--brand); color: #fff !important; border: 0; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: 13.5px;
  box-shadow: var(--shadow-brand);
  transition: transform .15s ease, filter .15s ease;
}
.sf2-pedir i { color: #fff !important; font-size: 16px; }
.sf2-pedir:active { transform: scale(.97); filter: brightness(.96); }
.sf2-pedir--cal { background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand) !important; box-shadow: none; }
.sf2-pedir--cal i { color: var(--brand) !important; }
.sf2-soldout {
  margin-top: 10px; width: 100%; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: #eef0f3; color: var(--ink-3); border-radius: 12px;
  font-weight: 600; font-size: 13px;
}

/* ------------------------------------------------------------
   LISTA de produtos (exibicao 2)
   ------------------------------------------------------------ */
.sf2-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.sf2-row {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; display: flex; gap: 12px; align-items: stretch;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sf2-row:active { transform: scale(.99); }
@media (hover:hover){ .sf2-row:hover { box-shadow: var(--shadow-md); } }
.sf2-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf2-row__name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.sf2-row__desc {
  margin-top: 3px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sf2-row__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sf2-row__price .sf2-price__now { font-size: 16px; }
.sf2-row__media {
  flex: 0 0 92px; width: 92px; height: 92px; align-self: center;
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background-size: cover; background-position: center; background-color: #eee;
}
.sf2-row .sf2-badge { top: 7px; left: 7px; padding: 3px 8px; font-size: 10px; }
.sf2-pedir--mini {
  margin: 0; width: auto; height: 36px; padding: 0 16px; flex: 0 0 auto;
}

/* "Mais itens de…" */
.sf2-more {
  margin: 14px 16px 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--tint); color: var(--brand);
  font-weight: 600; font-size: 13.5px;
  padding: 13px; border-radius: var(--radius-sm);
}
.sf2-more i { color: var(--brand) !important; }

/* ------------------------------------------------------------
   RODAPÉ compacto
   ------------------------------------------------------------ */
.sf2-foot {
  margin-top: 32px; padding: 22px 16px;
  background: var(--surface); border-top: 1px solid var(--line);
  text-align: center; color: var(--ink-3); font-size: 12px;
}
.sf2-foot__social { display: flex; gap: 14px; justify-content: center; margin-bottom: 12px; }
.sf2-foot__social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--brand); font-size: 18px;
}
.sf2-foot__social a i { color: var(--brand) !important; }

/* ------------------------------------------------------------
   DOCK flutuante (app) — pill central, blur, float (porte do dock-two)
   ------------------------------------------------------------ */
.sf2-bottomnav {
  position: fixed; left: 50%; z-index: 60;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: auto; max-width: calc(100% - 24px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.7) blur(16px);
  backdrop-filter: saturate(1.7) blur(16px);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(20,24,32,.18), 0 3px 10px rgba(20,24,32,.08);
  animation: sf2-dock-float 6s ease-in-out infinite;
}
/* keyframe usa translateX(-50%) literal (var de transform não interpola) */
@keyframes sf2-dock-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-5px); }
}
/* item = SÓ ÍCONE; nome vira tooltip no hover (desktop) + subidinha */
.sf2-nav {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-3); font-family: inherit;
  position: relative; border-radius: 14px;
  transition: background .22s cubic-bezier(.22,1,.36,1), transform .22s cubic-bezier(.22,1,.36,1), color .15s ease;
}
.sf2-nav i { font-size: 22px; color: var(--ink-3) !important; transition: color .15s ease; }
/* tooltip (o <span> do nome) — exclui o badge */
.sf2-nav > span:not(.sf2-nav__badge) {
  position: absolute; bottom: calc(100% + 11px); left: 50%;
  transform: translateX(-50%) translateY(7px) scale(.96);
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  padding: 5px 10px; border-radius: 9px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .22s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 6px 16px rgba(20,24,32,.22);
}
.sf2-nav > span:not(.sf2-nav__badge)::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink);
}
.sf2-nav:active { transform: scale(.9); }
@media (hover:hover) {
  .sf2-nav:hover { background: var(--tint); transform: translateY(-6px); }
  .sf2-nav:hover i { color: var(--brand) !important; }
  .sf2-nav:hover > span:not(.sf2-nav__badge) {
    opacity: 1; transform: translateX(-50%) translateY(0) scale(1);
  }
}
.sf2-nav.is-active { background: var(--tint); }
.sf2-nav.is-active i { color: var(--brand) !important; }
.sf2-bottomnav .sf2-nav__badge {
  position: absolute; top: 5px; right: 6px; left: auto; transform: none;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 45%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .sf2-bottomnav { animation: none; }
  .sf2-nav, .sf2-nav > span { transition: none; }
}

/* ------------------------------------------------------------
   CATEGORIA: barra de filtro, vazio, paginação
   ------------------------------------------------------------ */
.sf2-filterbar {
  margin: 16px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sf2-count { font-size: 13px; color: var(--ink-2); }
.sf2-count strong { color: var(--ink); }
.sf2-filter {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 34px 0 14px; height: 40px; box-shadow: var(--shadow);
}
.sf2-filter > i { color: var(--brand); font-size: 15px; }
.sf2-filter select {
  -webkit-appearance: none; appearance: none; border: 0; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  outline: 0; cursor: pointer; padding-right: 4px;
}
.sf2-filter__chev { position: absolute; right: 12px; color: var(--ink-3); font-size: 13px; pointer-events: none; }

.sf2-empty {
  text-align: center; padding: 48px 24px; color: var(--ink-2);
}
.sf2-empty i { font-size: 44px; color: var(--ink-3); display: block; margin-bottom: 12px; }
.sf2-empty p { font-size: 15px; margin: 0 0 16px; }
.sf2-empty__btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 11px 22px; border-radius: 12px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-brand);
}

/* ------------------------------------------------------------
   MEUS PEDIDOS (abertos / fechados)
   ------------------------------------------------------------ */
.sf2-orders { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.sf2-order {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.sf2-order__top { display: flex; align-items: center; gap: 12px; }
.sf2-order__ic {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--tint); color: var(--brand); font-size: 22px;
}
.sf2-order__ic i { color: var(--brand) !important; }
.sf2-order__info { flex: 1; min-width: 0; }
.sf2-order__num { font-size: 15px; font-weight: 700; color: var(--ink); }
.sf2-order__date { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.sf2-order__sched { margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.sf2-order__sched strong { color: var(--ink); }
.sf2-order__badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; line-height: 1;
}
.sf2-order__btn {
  margin-top: 12px; width: 100%; height: 46px; border: 0; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #fff !important; font-family: inherit; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 16px rgba(37,211,102,.32);
}
.sf2-order__btn i { color: #fff !important; font-size: 18px; }

.sf2-pagination {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin: 24px 16px 0; flex-wrap: wrap;
}
.sf2-page {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: 14px; color: var(--ink); box-shadow: var(--shadow);
}
.sf2-page i { color: var(--ink-2); }
.sf2-page.is-active { background: var(--brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }

/* ------------------------------------------------------------
   SACOLA / carrinho
   ------------------------------------------------------------ */
.sf2-cart-list { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.sf2-cartitem {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; display: flex; gap: 12px; align-items: stretch;
}
.sf2-cartitem__img {
  flex: 0 0 76px; width: 76px; height: 76px; align-self: center;
  border-radius: var(--radius-sm); overflow: hidden; background: #eee;
}
.sf2-cartitem__img img { width: 100%; height: 100%; object-fit: cover; }
.sf2-cartitem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sf2-cartitem__name { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.sf2-cartitem__var { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.sf2-cartitem__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }

/* stepper (.campo-numero — handlers do template.js usam siblings('input')) */
.sf2-stepper {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-2);
}
.sf2-stepper .incrementar, .sf2-stepper .decrementar {
  width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--brand);
}
.sf2-stepper .incrementar i, .sf2-stepper .decrementar i { color: var(--brand) !important; font-size: 14px; }
.sf2-stepper input {
  width: 38px; height: 32px; border: 0; background: transparent; text-align: center;
  font-family: inherit; font-weight: 700; font-size: 14px; color: var(--ink);
  -moz-appearance: textfield;
}
.sf2-stepper input::-webkit-outer-spin-button, .sf2-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sf2-cartitem__price { margin-left: auto; }
.sf2-cartitem__price span { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.sf2-cartitem__rm { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, #e04f4f 10%, #fff); }
.sf2-cartitem__rm i { color: #e04f4f !important; font-size: 16px; }

.sf2-subtotal {
  margin: 16px 16px 0; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink-2);
}
.sf2-subtotal strong { color: var(--ink); }
.sf2-subtotal span { font-size: 19px; font-weight: 700; color: var(--brand); }

.sf2-checkout { margin: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.sf2-checkout form { margin: 0; }
.sf2-checkout__btn {
  width: 100%; height: 52px; border: 0; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--brand); color: #fff; font-family: inherit; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-brand); cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.sf2-checkout__btn i { color: #fff !important; font-size: 19px; }
.sf2-checkout__btn:active { transform: scale(.985); filter: brightness(.97); }
.sf2-checkout__btn--ghost {
  background: var(--surface); color: var(--brand); border: 1.5px solid var(--ring); box-shadow: var(--shadow);
}
.sf2-checkout__btn--ghost i { color: var(--brand) !important; }
.fake-hidden { display: none !important; }

/* ------------------------------------------------------------
   SACOLA v2 (Stitch): segmented modo de entrega + resumo + barra fixa
   ------------------------------------------------------------ */
.sf2-cart-page .sf2-bottomnav { display: none !important; }       /* sacola usa barra "Finalizar", não dock */
.sf2-cart-page .sf2-main { padding-bottom: 132px; }
.sf2-cart-page button.shake { bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }

.sf2-seglabel {
  margin: 22px 16px 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; color: var(--ink-3);
}
.sf2-segment {
  margin: 0 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 5px;
}
.sf2-segbtn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 6px; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--ink-3); font-family: inherit;
  font-size: 12px; font-weight: 600; line-height: 1.1; text-align: center;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.sf2-segbtn i { font-size: 20px; color: var(--ink-3) !important; }
.sf2-segbtn.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.sf2-segbtn.is-active i { color: var(--brand) !important; }

.sf2-summary {
  margin: 22px 16px 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.sf2-summary__row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink-2); padding: 5px 0;
}
.sf2-summary__row strong { color: var(--ink); font-weight: 700; }
.sf2-summary__total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sf2-summary__total .lb { font-size: 16px; font-weight: 700; color: var(--ink); }
.sf2-summary__total .vl { font-size: 22px; font-weight: 800; color: var(--brand); }

.sf2-finalbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(20,24,32,.10);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.sf2-finalbar__inner { max-width: 1180px; margin: 0 auto; }
.sf2-finalbar__btn {
  width: 100%; height: 56px; border: 0; border-radius: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  background: var(--brand); color: #fff; font-family: inherit; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-brand); transition: transform .15s ease, filter .15s ease;
}
.sf2-finalbar__btn:active { transform: scale(.985); filter: brightness(.97); }
.sf2-finalbar__btn i { color: #fff !important; }
.sf2-finalbar__l { display: inline-flex; align-items: center; gap: 9px; }
.sf2-finalbar__r { display: inline-flex; align-items: center; gap: 12px; }
.sf2-finalbar__r .div { width: 1px; height: 22px; background: rgba(255,255,255,.28); }

@media (min-width: 900px) {
  .sf2-segment, .sf2-summary, .sf2-seglabel { max-width: 640px; margin-left: auto; margin-right: auto; }
  .sf2-seglabel { padding-left: 0; }
}

/* ------------------------------------------------------------
   MODAL "adicionado à sacola" (#modalcarrinho recebe HTML do _ajax/sacola.php)
   ------------------------------------------------------------ */
#modalcarrinho .modal-dialog.sf2-cartmodal { max-width: 420px; width: auto; margin: 30px auto; }
#modalcarrinho .modal-content {
  border: 0; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(20,24,32,.28);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
#modalcarrinho .modal-header { border: 0; padding: 12px 12px 0; min-height: 0; display: flex; justify-content: flex-end; }
#modalcarrinho .modal-header .close {
  opacity: 1; width: 36px; height: 36px; border-radius: 11px; border: 0; margin: 0; float: none;
  background: #f1f2f5; color: var(--ink-2); font-size: 18px; display: grid; place-items: center; cursor: pointer;
  text-shadow: none;
}
#modalcarrinho .modal-header .close i { color: var(--ink-2) !important; }
#modalcarrinho .modal-body { padding: 4px 22px 22px; }
#modalcarrinho .adicionado { text-align: center; padding: 6px 0 2px; }
#modalcarrinho .adicionado .checkicon,
#modalcarrinho .adicionado .erroricon {
  display: inline-grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 14px;
  border-radius: 50%; font-size: 34px;
}
#modalcarrinho .adicionado .checkicon { background: color-mix(in srgb, #1faa53 14%, #fff); color: #1faa53 !important; }
#modalcarrinho .adicionado .erroricon { background: color-mix(in srgb, #e23b3b 14%, #fff); color: #e23b3b !important; }
#modalcarrinho .adicionado .loadingicon { font-size: 42px; color: var(--brand) !important; }
#modalcarrinho .adicionado .title { display: block; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
#modalcarrinho .adicionado .text  { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
#modalcarrinho .row { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
#modalcarrinho .row > [class*="col-md"] { padding: 0; flex: 1 1 100%; width: auto; }
#modalcarrinho .row > .col-md-6 { flex: 1 1 calc(50% - 5px); min-width: 130px; }
#modalcarrinho form { margin: 0; }
#modalcarrinho .botao-acao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; border: 0; border-radius: 14px; padding: 0 16px; margin: 0;
  background: var(--brand); color: #fff !important; font-family: inherit; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-brand); cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
#modalcarrinho .botao-acao i {
  color: #fff !important; position: static !important; float: none !important;
  display: inline-flex !important; align-items: center; width: auto !important;
  margin: 0 !important; flex: 0 0 auto; line-height: 1;
}
#modalcarrinho .botao-acao span {
  position: static !important; display: inline !important; width: auto !important;
  flex: 0 0 auto !important; margin: 0 !important; text-align: center;
}
#modalcarrinho .botao-acao:active { transform: scale(.98); filter: brightness(.97); }
#modalcarrinho .botao-acao-gray { background: #f1f2f5; color: var(--ink) !important; box-shadow: none; }
#modalcarrinho .botao-acao-gray i { color: var(--ink-2) !important; }

/* WhatsApp flutuante (acima do bottom nav) */
.sf2-wa {
  position: fixed; right: 16px; bottom: 84px; z-index: 59;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(37,211,102,.45);
}
.sf2-wa i { color: #fff !important; font-size: 26px; }

/* ------------------------------------------------------------
   STICKY CART PILL (home) — barra flutuante de sacola estilo Stitch
   ------------------------------------------------------------ */
.sf2-cartpill {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 58;
  width: calc(100% - 32px); max-width: 560px;
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 20px; border-radius: 999px;
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 45%, transparent);
  font-weight: 700; font-size: 14px;
  transition: transform .15s ease, filter .15s ease;
}
.sf2-cartpill:active { transform: translateX(-50%) scale(.985); filter: brightness(.97); }
.sf2-cartpill i { color: #fff !important; }
.sf2-cartpill__l, .sf2-cartpill__r { display: inline-flex; align-items: center; gap: 8px; }
.sf2-cartpill__r { font-size: 15px; }

/* FAB de chat injetado pela plataforma: sobe p/ não cobrir o dock flutuante */
body.sf2-active button.shake,
body.sf2-prod-page button.shake {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}
/* quando há pill de sacola, sobe mais p/ não cobrir */
body.sf2-has-pill button.shake { bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }

@media (prefers-reduced-motion: reduce) {
  .sf2 * { transition: none !important; }
}

/* ------------------------------------------------------------
   DESKTOP — layout próprio de navegador (NÃO é "celular esticado").
   Conteúdo usa a largura: mais cards por linha, banner controlado,
   hero/ações centralizados sem virar strip.
   ------------------------------------------------------------ */
@media (min-width: 900px) {
  /* header como barra do site */
  .sf2-appbar { padding: 14px 28px; }
  .sf2-appbar__row { max-width: 1180px; margin: 0 auto; }
  .sf2-search { max-width: 620px; margin-left: auto; margin-right: auto; }

  /* hero: banner com altura controlada (não 480px) + card centralizado */
  .sf2-hero { padding: 24px 28px 0; }
  .sf2-hero__cover { margin: 0; aspect-ratio: auto; height: 300px; }
  .sf2-hero__card  { max-width: 640px; margin: -42px auto 0; }
  .sf2-actions, .sf2-install { max-width: 760px; margin-left: auto; margin-right: auto; }

  /* promo banner full-width do site (não esticado de celular) */
  .sf2-promo { margin: 0 28px; aspect-ratio: auto; height: 340px; }
  .sf2-promo__content { padding: 0 48px; max-width: 58%; gap: 10px; }
  .sf2-promo__name { font-size: 40px; letter-spacing: -.6px; }
  .sf2-promo__desc { font-size: 16px; max-width: 46ch; }
  .sf2-promo__logo { width: 72px; height: 72px; top: 24px; right: 28px; border-radius: 18px; }
  .sf2-cartpill { max-width: 560px; }

  /* seções respiram nas laterais e usam a largura */
  .sf2-rail, .sf2-banners, .sf2-featured,
  .sf2-section__head, .sf2-filterbar, .sf2-pagination, .sf2-more {
    padding-left: 28px; padding-right: 28px;
  }

  /* GRADE fluida: cards menores, vários por linha (mata o "blocão") */
  .sf2-grid {
    padding: 0 28px;
    grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
    gap: 20px;
  }
  /* LISTA em 2 colunas no desktop */
  .sf2-list {
    padding: 0 28px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }

  /* banners 2 por vez (não um gigante) */
  .sf2-banners > * { flex: 0 0 calc(50% - 6px); }

  /* títulos de seção um pouco maiores no desktop */
  .sf2-section__title { font-size: 20px; }
}

@media (min-width: 1180px) {
  /* telas grandes: ainda mais densidade de cards */
  .sf2-grid { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); }
}

/* ============================================================
   PRODUTO (skin sobre markup legado; form/variacao/JS intactos)
   ============================================================ */
body.sf2-prod-page {
  background: var(--bg) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.sf2-prod-page #main, body.sf2-prod-page .body-estabelecimento { background: var(--bg) !important; }
/* esconde restos do chrome legado */
.sf2-prod-page .header, .sf2-prod-page .minitop, .sf2-prod-page .navigator,
.sf2-prod-page .header-interna, .sf2-prod-page .footer, .sf2-prod-page .rowtitle,
.sf2-prod-page .box-delivery, .sf2-prod-page .sticky-wrapper { display: none !important; }
.sf2-prod-page .middle { padding: 0 0 96px !important; background: var(--bg) !important; }
.sf2-prod-page .middle > .container { padding: 0 !important; max-width: 640px; }
.sf2-prod-page .single-produto .row { margin: 0; }

/* galeria / imagem */
.sf2-prod-page .single-produto > .row > [class*="col-md-5"] { padding: 0; }
.sf2-prod-page .galeria { background: #eee; }
.sf2-prod-page #carouselgaleria .item img,
.sf2-prod-page #carouselgaleria .item iframe { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }
.sf2-prod-page .galeria .seta {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9) !important;
  display: grid; place-items: center; top: 50%; transform: translateY(-50%); box-shadow: var(--shadow);
}
/* glyph interno legado vinha com circulo branco proprio (duplicava) */
.sf2-prod-page .galeria .seta > span,
.sf2-prod-page .galeria .seta .glyphicon {
  background: transparent !important; box-shadow: none !important;
  border-radius: 0 !important; width: auto !important; height: auto !important;
  color: var(--ink) !important; font-size: 18px;
}
.sf2-prod-page .galeria .list-inline { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; }
/* indicadores do carrossel (bolinhas) — Bootstrap deixa absolute/descentralizado */
.sf2-prod-page .galeria .carousel-indicators {
  left: 0; right: 0; width: 100%; margin: 0; transform: none;
  bottom: 12px; padding: 0; justify-content: center; gap: 7px;
}
.sf2-prod-page .galeria .carousel-indicators > li {
  width: 8px !important; height: 8px !important; margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.65); box-shadow: 0 1px 3px rgba(0,0,0,.3);
  text-indent: 0; overflow: hidden; transition: background .2s ease;
}
.sf2-prod-page .galeria .carousel-indicators > li.active { background: var(--brand); }
/* esconde a thumbnail/risco dentro do dot */
.sf2-prod-page .galeria .carousel-indicators img { display: none !important; }

/* bloco de detalhes */
.sf2-prod-page .padd-container-mobile { padding: 0; }
.sf2-prod-page .produto-detalhes {
  background: var(--surface); margin: 12px 12px 0; position: relative; z-index: 2;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 18px 16px 6px;
}
.sf2-prod-page .produto-detalhes .thelabel { display: none; }   /* labels "Link/REF/Detalhes:" */
.sf2-prod-page .produto-detalhes > .row { margin: 0; }
.sf2-prod-page .produto-detalhes [class*="col-md-9"],
.sf2-prod-page .produto-detalhes [class*="col-md-12"] { padding: 0; width: 100%; }
.sf2-prod-page .produto-detalhes .nome span { font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.25; letter-spacing: -.2px; }
.sf2-prod-page .produto-detalhes .ref span { font-size: 12.5px; color: var(--ink-3); }
.sf2-prod-page .produto-detalhes .ref .btn-success {
  display: inline-flex; align-items: center; gap: 6px; background: #25d366 !important; border: 0 !important;
  border-radius: 999px !important; padding: 7px 14px !important; font-weight: 600; margin: 6px 0;
}
.sf2-prod-page .produto-detalhes .descricao span { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.sf2-prod-page .valor_anterior { margin-top: 10px; }
.sf2-prod-page .valor_anterior span { color: var(--ink-3); font-size: 13px; }
.sf2-prod-page .valor span { color: var(--brand); font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.sf2-prod-page .produto-detalhes a[href*="wa.me"] > div { border-radius: 12px !important; }

/* grupos de variacao */
.sf2-prod-page .comprar { padding: 14px 12px 0; }
.sf2-prod-page .line-variacao {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px;
}
.sf2-prod-page .line-variacao .thelabel { display: inline; font-size: 15px; font-weight: 700; color: var(--ink); }
.sf2-prod-page .line-variacao .escolhas { font-size: 11px; color: var(--ink-3); background: var(--tint); padding: 4px 10px; border-radius: 999px; }
.sf2-prod-page .opcoes { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px !important; margin-top: 10px; }
.sf2-prod-page .opcoes .opcao {
  width: 100% !important; margin: 0 !important;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px !important; position: relative;
  display: flex; align-items: center; gap: 12px; background: var(--surface); transition: border-color .15s ease, background .15s ease;
}
/* esconde opção vazia (item de variação sem nome) */
.sf2-prod-page .opcoes .opcao:not(:has(.titulo)) { display: none; }
.sf2-prod-page .opcoes .opcao.active { border-color: var(--brand); background: var(--tint); }
.sf2-prod-page .opcoes .opcao.indisponivel { opacity: .45; }
.sf2-prod-page .opcao .check {
  width: 22px; height: 22px !important; min-height: 0 !important; flex: 0 0 22px; border-radius: 50%; border: 2px solid var(--ink-3);
  display: grid; place-items: center; background: #fff; align-self: center; margin: 0 !important;
}
.sf2-prod-page .opcao.active .check { background: var(--brand); border-color: var(--brand); }
.sf2-prod-page .opcao.active .check i::before { content: "\ea4f"; color: #fff; font-size: 12px; }
.sf2-prod-page .opcao .detalhes { width: auto !important; flex: 1; min-width: 0; }
.sf2-prod-page .opcao .detalhes .titulo { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.sf2-prod-page .opcao .detalhes .descricao {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 11px; color: var(--ink-3); line-height: 1.35; margin-top: 2px;
}
.sf2-prod-page .opcao .campo-numero { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.sf2-prod-page .opcao .campo-numero i { width: 28px; height: 28px; display: grid; place-items: center; color: var(--brand); }
.sf2-prod-page .opcao .campo-numero input { width: 30px; border: 0; text-align: center; font-weight: 700; background: transparent; }
.sf2-prod-page .error-holder { color: #e04f4f; font-size: 12px; font-weight: 600; margin-top: 8px; }

/* quantidade simples */
.sf2-prod-page .line.quantidade .campo-numero { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sf2-prod-page .line.quantidade .campo-numero i { width: 36px; height: 36px; display: grid; place-items: center; color: var(--brand); cursor: pointer; }
.sf2-prod-page .line.quantidade .campo-numero input { width: 44px; border: 0; text-align: center; font-weight: 700; font-size: 15px; }

/* observacoes */
.sf2-prod-page .observacoes { padding: 0 12px; margin-top: 14px; }
.sf2-prod-page .observacoes .row { margin: 0; }
.sf2-prod-page .single-produto .observacoes [class*="col-"],
.sf2-prod-page .observacoes [class*="col-"] { padding: 0; width: 100%; }
.sf2-prod-page .observacoes .thelabel {
  display: block; margin: 0 0 12px; padding: 0;
  background: transparent; border-radius: 0;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
/* mesma chip branca legada no label de Quantidade */
.sf2-prod-page .line.quantidade .thelabel { background: transparent; border-radius: 0; }
.sf2-prod-page .observacoes textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--surface); resize: vertical;
}

/* botao adicionar + total */
.sf2-prod-page .subtotal { padding: 14px 16px 0; font-size: 14px; color: var(--ink-2); }
.sf2-prod-page .subtotal strong { color: var(--ink); }
.sf2-prod-page .sacola-adicionar.botao-acao {
  display: flex !important; align-items: center; justify-content: center; gap: 9px;
  width: 100% !important; min-height: 54px; margin: 12px 0 0 !important; padding: 0 18px !important;
  background: var(--brand) !important; color: #fff !important; border: 0 !important; border-radius: 15px !important;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-brand); float: none !important;
}
.sf2-prod-page .sacola-adicionar.botao-acao i { color: #fff !important; }
.sf2-prod-page .single-produto [class*="col-md-6"],
.sf2-prod-page .single-produto [class*="col-md-12"] { padding-left: 12px; padding-right: 12px; }
.sf2-prod-page .int-whats-produto { justify-content: center; }

/* ----- PRODUTO: barra de adicionar fixa (estilo Stitch) + esconde dock ----- */
.sf2-prod-page .sf2-bottomnav { display: none !important; }
.sf2-prod-page .subtotal-adicionar {
  position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(20,24,32,.12);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 640px; margin: 0 auto;
}
.sf2-prod-page .subtotal-adicionar .subtotal { padding: 0 0 8px !important; text-align: left; font-weight: 600; }
.sf2-prod-page .subtotal-adicionar .subtotal span { color: var(--brand); font-weight: 800; }
.sf2-prod-page .subtotal-adicionar .sacola-adicionar.botao-acao { margin: 0 !important; }
.sf2-prod-page .subtotal-adicionar .row { margin: 0; }
.sf2-prod-page .subtotal-adicionar [class*="col-md"] { padding: 0; width: 100%; }
.sf2-prod-page .middle { padding-bottom: 150px !important; }
/* a barra fixa só faz sentido no modo carrinho (tela_produto 1) */
.sf2-prod-page.sf2-prod-agenda .subtotal-adicionar { position: static !important; box-shadow: none; border-top: 0; }

/* relacionados */
.sf2-prod-page .relacionados { padding: 22px 12px 0; }
.sf2-prod-page .relacionados .title-line span,
.sf2-prod-page .relacionados h2, .sf2-prod-page .relacionados .title { font-size: 18px; font-weight: 700; color: var(--ink); }

/* ============================================================
   CHECKOUT (skin sobre markup legado pedido_delivery/balcao/mesa/agenda;
   campos/selects/JS/handlers intactos). Body recebe .sf2-checkout-page
   ============================================================ */
body.sf2-checkout-page {
  background: var(--bg) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.sf2-checkout-page #main, body.sf2-checkout-page .body-estabelecimento { background: var(--bg) !important; }
/* esconde chrome legado */
.sf2-checkout-page .header, .sf2-checkout-page .minitop, .sf2-checkout-page .navigator,
.sf2-checkout-page .header-interna, .sf2-checkout-page .footer, .sf2-checkout-page .rowtitle,
.sf2-checkout-page .title-icon, .sf2-checkout-page .bread-box, .sf2-checkout-page .clearline,
.sf2-checkout-page .alerta-comprovante { display: none !important; }

.sf2-checkout-page .minfit, .sf2-checkout-page .sceneElement { background: var(--bg) !important; }
.sf2-checkout-page .middle { padding: 0 0 120px !important; background: var(--bg) !important; }
.sf2-checkout-page .middle > .container { padding: 0 !important; max-width: 980px; margin: 0 auto; }
.sf2-checkout-page .pedido { padding: 0; }
.sf2-checkout-page #the_form > .row { margin: 0; display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; }
.sf2-checkout-page .muda-checkout { flex: 1 1 100%; padding: 0; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.sf2-checkout-page .muda-comprovante { flex: 1 1 100%; padding: 0; max-width: 100%; }

/* cabeçalho de seção (.title-line) */
.sf2-checkout-page .titler { margin: 0; }
.sf2-checkout-page .title-line {
  display: flex; align-items: center; gap: 9px; padding: 0 0 2px; margin: 0;
  color: var(--ink); font-size: 16px; font-weight: 700;
}
.sf2-checkout-page .title-line i { color: var(--brand) !important; font-size: 18px; }
.sf2-checkout-page .title-line span { font-size: 16px; font-weight: 700; color: var(--ink); }

/* cards de seção */
.sf2-checkout-page .elemento-usuario,
.sf2-checkout-page .elemento-forma-entrega,
.sf2-checkout-page .elemento-entrega,
.sf2-checkout-page .elemento-forma-pagamento,
.sf2-checkout-page .elemento-forma-pagamento-descricao {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin: 10px 0 0;
}
.sf2-checkout-page .elemento-oculto { /* endereço: começa oculto via JS legado */ }
.sf2-checkout-page .elemento-usuario .row,
.sf2-checkout-page .elemento-forma-entrega .row,
.sf2-checkout-page .elemento-entrega .row,
.sf2-checkout-page .elemento-forma-pagamento .row,
.sf2-checkout-page .elemento-forma-pagamento-descricao .row { margin: 0; }
.sf2-checkout-page .elemento-entrega [class*="col-md"],
.sf2-checkout-page .elemento-usuario [class*="col-md"],
.sf2-checkout-page .elemento-forma-entrega [class*="col-md"],
.sf2-checkout-page .elemento-forma-pagamento [class*="col-md"] { padding: 0; width: 100%; }

/* campos (label + input) */
.sf2-checkout-page .form-field-default { margin: 0 0 12px; }
.sf2-checkout-page .form-field-default:last-child { margin-bottom: 0; }
.sf2-checkout-page .form-field-default label {
  display: block; font-size: 12px; font-weight: 700; color: var(--ink-2);
  margin: 0 0 6px; padding-left: 2px;
}
.sf2-checkout-page .form-field-default input[type="text"],
.sf2-checkout-page .form-field-default input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.sf2-checkout-page .form-field-default textarea {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--surface-2); outline: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.sf2-checkout-page .form-field-default textarea { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; }
.sf2-checkout-page .form-field-default input:focus,
.sf2-checkout-page .form-field-default textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); background: var(--surface);
}

/* select customizado (.fake-select) */
.sf2-checkout-page .fake-select { position: relative; padding: 0; margin: 0; }
/* chevron alinhado ao SELECT (48px no topo do wrapper), não ao wrapper inteiro
   (que pode ser mais alto por padding legado / div.clear) */
.sf2-checkout-page .fake-select i {
  position: absolute !important; right: 14px !important; top: 0 !important; bottom: auto !important;
  height: 48px !important; transform: none !important;
  display: grid; place-items: center; margin: 0 !important;
  color: var(--ink-3); font-size: 14px; pointer-events: none; z-index: 2;
}
.sf2-checkout-page .fake-select select {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 38px 0 14px; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: var(--surface-2); outline: 0; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sf2-checkout-page .fake-select select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }

/* botões (.botao-acao) — calcular frete, aplicar cupom */
.sf2-checkout-page #calculafrete.botao-acao,
.sf2-checkout-page .botao-aplicar.botao-acao {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 18px; margin: 12px 0 0; border: 0 !important; border-radius: 12px !important; cursor: pointer;
  background: var(--tint) !important; color: var(--brand) !important; font-family: inherit; font-weight: 700; font-size: 13.5px;
  box-shadow: none !important; width: auto !important; float: none !important;
}
.sf2-checkout-page #calculafrete.botao-acao i, .sf2-checkout-page .botao-aplicar.botao-acao i { color: var(--brand) !important; }

/* cupom: input strupper + aplicar lado a lado */
.sf2-checkout-page .strupper { text-transform: uppercase; }
.sf2-checkout-page .cupom-msg { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.sf2-checkout-page .cupom-ok { color: #167f3e; }
.sf2-checkout-page .cupom-fail { color: #c23434; }

/* resumo do pedido (direita) — .comprovante .content é preenchido via ajax */
.sf2-checkout-page .comprovante-parent {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 10px 0 0;
}
.sf2-checkout-page .comprovante,
.sf2-checkout-page .comprovante .content { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.sf2-checkout-page .comprovante .content { font-size: 14px; color: var(--ink-2); min-height: 40px; }
.sf2-checkout-page .comprovante .content:empty::before { content: "Carregando resumo..."; color: var(--ink-3); font-size: 13px; }

/* ações: barra fixa Confirmar (back + enviar) */
.sf2-checkout-page .pedido-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(20,24,32,.10);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.sf2-checkout-page .pedido-actions .error-pedido-minimo { margin: 0; }
.sf2-checkout-page .pedido-actions > .row {
  margin: 0; max-width: 980px; margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
}
.sf2-checkout-page .pedido-actions > .row > [class*="col-md-6"] { display: none; }
.sf2-checkout-page .pedido-actions > .row > [class*="col-"] { padding: 0; width: auto; flex: 0 0 auto; }
.sf2-checkout-page .pedido-actions .back-button {
  display: inline-flex; align-items: center; gap: 7px; height: 56px; padding: 0 18px;
  border: 1.5px solid var(--ring); border-radius: 16px; color: var(--brand); font-weight: 700; font-size: 14px;
}
.sf2-checkout-page .pedido-actions .back-button i { color: var(--brand) !important; }
.sf2-checkout-page .pedido-actions > .row > [class*="col-"]:last-child { flex: 1 1 auto; }
.sf2-checkout-page .pedido-actions .botao-acao {
  display: flex !important; align-items: center; justify-content: center; gap: 9px;
  width: 100% !important; height: 56px; margin: 0 !important; padding: 0 22px !important; border: 0 !important;
  background: var(--brand) !important; color: #fff !important; border-radius: 16px !important;
  font-family: inherit; font-weight: 700; font-size: 16px; box-shadow: var(--shadow-brand); float: none !important; cursor: pointer;
}
.sf2-checkout-page .pedido-actions .botao-acao i { color: #fff !important; }

/* appbar sf2 do checkout */
.sf2-checkout-page button.shake { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }

/* desktop: 2 colunas (form esquerda 1.6fr, resumo direita grudado) */
@media (min-width: 900px) {
  .sf2-checkout-page #the_form > .row { flex-wrap: nowrap; gap: 24px; padding: 24px; }
  .sf2-checkout-page .muda-checkout { flex: 1 1 0; min-width: 0; }
  .sf2-checkout-page .muda-comprovante { flex: 0 0 340px; max-width: 340px; }
  .sf2-checkout-page .grudado-desktop { position: sticky; top: 88px; }
}

/* ============================================================
   MARKETPLACE app/cidade (skin sf2 scoped sobre markup legado).
   Body recebe .sf2-cidade-page. --brand = cor da plataforma.
   ============================================================ */
body.sf2-cidade-page {
  --brand: #fc5e03;
  background: var(--bg) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
}
body.sf2-cidade-page #main, .sf2-cidade-page .sceneElement, .sf2-cidade-page .middle { background: var(--bg) !important; }
/* esconde chrome legado (mantém .segmentos como rail) */
.sf2-cidade-page .minitop, .sf2-cidade-page .header .top, .sf2-cidade-page #sticky-wrapper,
.sf2-cidade-page .rowtitle, .sf2-cidade-page .title-icon, .sf2-cidade-page .bread-box,
.sf2-cidade-page .clearline, .sf2-cidade-page .footer,
.sf2-cidade-page .espacer-cidade, .sf2-cidade-page .seletor-cidade-mobile { display: none !important; }
.sf2-cidade-page .header { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.sf2-cidade-page .middle { padding-bottom: 40px; }
.sf2-cidade-page .container { max-width: 1180px; margin: 0 auto; padding: 0; }

/* segmentos (rail de ícones circulares) */
.sf2-cidade-page .segmentos { margin: 6px 0 0 !important; padding: 0 !important; min-height: 0 !important; height: auto !important; }
.sf2-cidade-page .segmentos .container, .sf2-cidade-page .segmentos .row, .sf2-cidade-page .segmentos .seg {
  padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: auto !important; max-width: none !important;
}
.sf2-cidade-page .segmentos .tv-infinite-container { display: block; padding: 0; min-height: 0 !important; height: auto !important; }
.sf2-cidade-page .segmentos .tv-infinite-menu { min-height: 0 !important; height: auto !important; }
.sf2-cidade-page .segmentos .categoria-wrapper { height: auto !important; min-height: 0 !important; }
.sf2-cidade-page .segmentos .arrow-left, .sf2-cidade-page .segmentos .arrow-right { display: none !important; }
.sf2-cidade-page .segmentos .tv-infinite-menu {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  gap: 14px; overflow-x: auto; padding: 10px 16px 4px; scrollbar-width: none;
}
.sf2-cidade-page .segmentos .tv-infinite-menu::-webkit-scrollbar { display: none; }
.sf2-cidade-page .segmentos .tv-infinite-menu > a {
  flex: 0 0 auto !important; width: auto !important; display: block !important; float: none !important; margin: 0 !important;
}
/* zera margin/padding legado que inflava a seção (gap acima/abaixo do rail) */
.sf2-cidade-page .segmentos .tv-infinite-menu { margin: 0 !important; }
.sf2-cidade-page .segmentos .tv-infinite-container > .container {
  padding: 0 !important; margin: 0 !important; max-width: none !important;
}
.sf2-cidade-page .segmentos .tv-infinite-container > .container > .row { margin: 0 !important; }
.sf2-cidade-page .segmentos .tv-infinite-container > .container [class*="col-"] { padding: 0 !important; width: 100% !important; }
.sf2-cidade-page .segmentos .categoria-wrapper { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; }
.sf2-cidade-page .segmentos .categoria-fundo { display: none; }
.sf2-cidade-page .segmentos .categoria-img img {
  width: 60px !important; height: 60px !important; object-fit: cover;
  box-shadow: var(--shadow); border: 2px solid #fff;
}
.sf2-cidade-page .segmentos .tv-infinite-menu > a.active .categoria-img img { border-color: var(--brand); }
.sf2-cidade-page .segmentos .categoria-nome {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 72px;
}
.sf2-cidade-page .segmentos .tv-infinite-menu > a.active .categoria-nome { color: var(--brand); }

/* abas (Lojas/Produtos/Serviços/Em oferta) */
.sf2-cidade-page .tv-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 4px;
  scrollbar-width: none; border: 0 !important;
}
.sf2-cidade-page .tv-tabs::-webkit-scrollbar { display: none; }
.sf2-cidade-page .tv-tabs a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.sf2-cidade-page .tv-tabs a i { color: var(--brand) !important; font-size: 15px; }
.sf2-cidade-page .tv-tabs a.active { background: var(--brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.sf2-cidade-page .tv-tabs a.active i { color: #fff !important; }

/* seções por segmento */
.sf2-cidade-page .categorias { padding: 0; }
.sf2-cidade-page .categoria { margin-top: 22px; }
.sf2-cidade-page .categoria > .row { margin: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.sf2-cidade-page .categoria .title { font-size: 18px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); }
.sf2-cidade-page .categoria .vertudo {
  display: inline-flex; align-items: center; gap: 5px; width: auto;
  background: var(--tint); color: var(--brand) !important; font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
}
.sf2-cidade-page .categoria .vertudo i { color: var(--brand) !important; }

/* rail horizontal de cards */
.sf2-cidade-page .estabelecimentos.produtos.marketplace .row { margin: 0; }
.sf2-cidade-page .tv-infinite { display: flex; gap: 14px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.sf2-cidade-page .tv-infinite::-webkit-scrollbar { display: none; }
.sf2-cidade-page .col-infinite { flex: 0 0 240px; max-width: 240px; width: 240px; padding: 0; }

/* card de loja (.produto.estabelecimento) */
.sf2-cidade-page .produto.estabelecimento {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
@media (hover:hover) { .sf2-cidade-page .produto.estabelecimento:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.sf2-cidade-page .produto.estabelecimento .capa {
  aspect-ratio: 16 / 9; height: auto !important;
  background-size: cover !important; background-position: center !important; position: relative;
}
.sf2-cidade-page .produto.estabelecimento .capa .nome { display: none; }
.sf2-cidade-page .produto.estabelecimento .perfil {
  position: relative; margin: -28px 0 0 !important; padding: 0 0 0 14px !important; z-index: 2;
  width: auto !important; height: auto !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.sf2-cidade-page .produto.estabelecimento .perfil .holder {
  width: 54px; height: 54px; border-radius: 15px; overflow: hidden;
  border: 3px solid #fff; box-shadow: var(--shadow-md); background: #fff;
}
.sf2-cidade-page .produto.estabelecimento .perfil img { width: 100%; height: 100%; object-fit: cover; }
.sf2-cidade-page .produto.estabelecimento .status { clear: both; display: block; padding: 8px 14px 0; }
.sf2-cidade-page .produto.estabelecimento .status .subnome {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25;
  overflow: hidden; min-height: 35px;
}
.sf2-cidade-page .produto.estabelecimento .aberto span,
.sf2-cidade-page .produto.estabelecimento .fechado span {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; margin-top: 3px;
}
.sf2-cidade-page .produto.estabelecimento .fechado span { color: #c23434; }
.sf2-cidade-page .produto.estabelecimento .fechado i { color: #c23434 !important; }
.sf2-cidade-page .produto.estabelecimento .detalhes {
  margin: 12px 14px 14px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff !important;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-brand);
}
.sf2-cidade-page .produto.estabelecimento .detalhes i,
.sf2-cidade-page .produto.estabelecimento .detalhes span { color: #fff !important; }
.sf2-cidade-page .produto.estabelecimento .vertudo,
.sf2-cidade-page .col-infinite-last .vertudo { color: var(--brand) !important; }

/* página "Ver tudo" (estabelecimentos.php / produtos.php): grid em vez de rail */
.sf2-cidade-page .estabelecimentos:not(.marketplace),
.sf2-cidade-page .produtos:not(.marketplace) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 14px 16px;
}
.sf2-cidade-page .estabelecimentos:not(.marketplace) .col-12,
.sf2-cidade-page .estabelecimentos:not(.marketplace) [class*="col-"],
.sf2-cidade-page .produtos:not(.marketplace) [class*="col-"] { width: auto; max-width: 100%; padding: 0; flex: none; }

/* card de PRODUTO (.produto sem .estabelecimento) — abas Produtos / Em oferta */
.sf2-cidade-page .produto:not(.estabelecimento) {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
@media (hover:hover){ .sf2-cidade-page .produto:not(.estabelecimento):hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.sf2-cidade-page .produto:not(.estabelecimento) > a { display: flex; flex-direction: column; height: 100%; padding-bottom: 12px; }
.sf2-cidade-page .produto:not(.estabelecimento) .capa {
  aspect-ratio: 1 / 1; height: auto !important;
  background-size: cover !important; background-position: center !important; position: relative;
}
.sf2-cidade-page .produto:not(.estabelecimento) .capa .nome {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(15,18,24,.80));
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sf2-cidade-page .produto:not(.estabelecimento) .valor_anterior {
  display: block; padding: 10px 14px 0; font-size: 11.5px; color: var(--ink-3); text-decoration: line-through;
}
.sf2-cidade-page .produto:not(.estabelecimento) .apenas {
  display: block; padding: 8px 14px 0; font-size: 10.5px; color: var(--ink-3); line-height: 1.2; font-weight: 600;
}
.sf2-cidade-page .produto:not(.estabelecimento) .apenas br { display: none; }
.sf2-cidade-page .produto:not(.estabelecimento) .valor {
  display: block; padding: 2px 14px 0; font-size: 18px; font-weight: 800; color: var(--brand);
}
.sf2-cidade-page .produto:not(.estabelecimento) .detalhes {
  margin: 10px 14px 0; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff !important;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-brand);
}
.sf2-cidade-page .produto:not(.estabelecimento) .detalhes i,
.sf2-cidade-page .produto:not(.estabelecimento) .detalhes span { color: #fff !important; }

/* banner do marketplace (carousel de imagem/vídeo via segmentos.php) */
.sf2-cidade-page .banners {
  clear: both; float: none; display: block; width: auto;
  margin: 10px 16px 0; max-width: 1148px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
/* esconde o carousel de VÍDEO quando não há vídeo (fica caixa vazia) */
.sf2-cidade-page .banners:has(#carouselvideo):not(:has(iframe)) { display: none !important; }
.sf2-cidade-page .banners #carouselvideo,
.sf2-cidade-page .banners .carousel { height: auto !important; }
.sf2-cidade-page .banners img,
.sf2-cidade-page .banners iframe,
.sf2-cidade-page .banners .video-home { width: 100% !important; display: block; }
.sf2-cidade-page .banners .carousel-control { opacity: .85; }
.sf2-cidade-page .container > img,
.sf2-cidade-page .banner-marketplace img { border-radius: var(--radius); box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .sf2-cidade-page .col-infinite { flex-basis: 260px; max-width: 260px; width: 260px; }
}

/* =========================================================================
   Páginas de confirmação / sucesso / PIX  (obrigado.php + pix/pix.php)
   Reskin sf2 sobre markup legado (.obrigado / .adicionado), scoped no body.
   ========================================================================= */
body.sf2-success-page { background: var(--bg) !important; }
body.sf2-success-page #main,
body.sf2-success-page .body-estabelecimento { background: var(--bg) !important; }

.sf2-success-page .header, .sf2-success-page .minitop, .sf2-success-page .navigator,
.sf2-success-page .header-interna, .sf2-success-page .footer,
.sf2-success-page .rowtitle, .sf2-success-page .title-icon,
.sf2-success-page .bread-box, .sf2-success-page .clearline { display: none !important; }

.sf2-success-page .minfit, .sf2-success-page .sceneElement { background: var(--bg) !important; }
.sf2-success-page .middle { padding: 28px 0 96px !important; background: var(--bg) !important; }
.sf2-success-page .middle > .container { padding: 0 16px !important; max-width: 520px; margin: 0 auto; }
.sf2-success-page .obrigado { padding: 0; }
.sf2-success-page .obrigado > .row,
.sf2-success-page .obrigado > .row > .col-md-12 { margin: 0; padding: 0; width: 100%; max-width: 100%; flex: none; }

/* card de confirmação */
.sf2-success-page .adicionado,
.sf2-success-page .adicionado * { box-sizing: border-box; }
.sf2-success-page .adicionado {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin: 0 0 16px;
  text-align: center;
  color: var(--ink);
}
.sf2-success-page .adicionado .checkicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin: 0 auto 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  color: var(--brand) !important;
  font-size: 38px;
}
.sf2-success-page .adicionado h4 { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.sf2-success-page .adicionado > label { display: inline-block; font-size: 15px; font-weight: 800; color: var(--brand); margin: 0 0 16px; }
.sf2-success-page .adicionado .text,
.sf2-success-page .adicionado p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 12px 0; }
.sf2-success-page .adicionado .text strong,
.sf2-success-page .adicionado p strong { color: var(--ink); }

/* linha chave/copiar: empilha dentro do card */
.sf2-success-page .adicionado .row { margin: 0; }
.sf2-success-page .adicionado .row > [class*="col-"] { width: 100%; max-width: 100%; flex: none; padding: 0; }
.sf2-success-page .adicionado .form-field-default { text-align: left; margin: 8px 0 0; }
.sf2-success-page .adicionado .form-field-default > label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-3); display: block; margin: 0 0 6px;
}
.sf2-success-page .adicionado .form-field-default > label.hidden-xs { display: none; } /* spacer do desktop */
.sf2-success-page #brcodepix {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 0 12px; font-size: 14px; font-weight: 700;
  color: var(--ink); text-align: center;
}
.sf2-success-page #brcodepix:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }

/* botões */
.sf2-success-page #clip_btn,
.sf2-success-page .botao-acao {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-width: 0; max-width: 100%; height: 50px; border-radius: var(--radius-sm);
  font-weight: 800; font-size: 15px; border: none; cursor: pointer; margin: 10px auto 0;
}
.sf2-success-page #clip_btn { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand) !important; }
.sf2-success-page .botao-acao { background: var(--brand); color: #fff !important; box-shadow: var(--shadow-brand); }
.sf2-success-page .botao-acao i, .sf2-success-page #clip_btn i {
  font-size: 18px; position: static !important; float: none !important;
  display: inline-flex !important; align-items: center; width: auto !important;
  margin: 0 !important; flex: 0 0 auto; line-height: 1;
}
.sf2-success-page .botao-acao span, .sf2-success-page #clip_btn span {
  position: static !important; display: inline !important; width: auto !important;
  flex: 0 0 auto !important; margin: 0 !important; text-align: center;
}
.sf2-success-page .botao-acao:active, .sf2-success-page #clip_btn:active { transform: scale(.98); }

/* barra de progresso PIX */
.sf2-success-page .progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 16px 0 2px; }
.sf2-success-page .progress-bar { height: 100%; background: var(--brand); color: transparent !important; font-size: 0; transition: width .3s ease; }
.sf2-success-page #contador { display: none !important; }

/* --- pix com QR (php_qrcode_pix-main/pix.php): doma o grid legado em card --- */
.sf2-success-page .obrigado > .row {
  border: 1px solid var(--line) !important;
  height: auto !important;
  padding: 24px !important;
  margin: 0 !important;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  text-align: center;
}
.sf2-success-page .obrigado > .row > [class*="col-"] { width: 100% !important; max-width: 100% !important; flex: none !important; float: none !important; padding: 0 !important; }
/* título */
.sf2-success-page .obrigado .form-field-default { display: block; }
.sf2-success-page .obrigado .form-field-default > [class*="col-"] { width: 100% !important; max-width: 100% !important; padding: 0 !important; display: block !important; }
.sf2-success-page .obrigado .form-field-default label { font-size: 16px; font-weight: 800; color: var(--ink); text-align: center; display: block; margin: 0 0 14px; }
/* input chave */
.sf2-success-page #chave_pix_campo {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; margin-bottom: 10px;
}
.sf2-success-page #chave_pix_campo:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
/* QR code */
.sf2-success-page [style*="height: 200px"], .sf2-success-page [style*="height:200px"] { height: auto !important; margin: 8px 0 16px !important; }
.sf2-success-page #qrcode { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin: 0 auto; }
.sf2-success-page #qrcode img { width: 190px; height: 190px; }
/* passos numerados (linha = circulo .bg-primary + texto) */
.sf2-success-page .obrigado .col-xs-12:has(> .bg-primary) {
  display: flex !important; align-items: center; gap: 10px; padding: 8px 0 !important;
  width: 100% !important; max-width: 100% !important; float: none !important; font-size: 14px; color: var(--ink-2); text-align: left;
}
.sf2-success-page .obrigado .bg-primary {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 26px !important; height: 26px !important; min-width: 26px; max-width: 26px !important; padding: 0 !important;
  border-radius: 999px !important; background: var(--brand) !important; color: #fff !important; font-weight: 800; font-size: 13px; float: none !important;
}
.sf2-success-page .obrigado .col-xs-12:has(> .bg-primary) > [class*="col-"]:not(.bg-primary) { width: auto !important; max-width: 100% !important; padding: 0 !important; float: none !important; }
.sf2-success-page .obrigado .col-xs-12 strong { color: var(--ink); }
