/* ============================================
   CARDÁPIO DIGITAL - iFood Store Style (2026)
   Reference: iFood restaurant/store page
   ============================================ */
:root {
  /* Pizzaria — verde / branco / vermelho (bandeira italiana) */
  --verde: #15924B;
  --verde-dark: #0F7A3D;
  --ifood-red: #D62B2B;        /* vermelho de acento (PROMO, promoção, faixa) */
  --ifood-red-dark: #B71F1F;
  --ifood-green: #15924B;      /* "Grátis" / aberto */
  --ifood-orange: #E08A1E;

  /* Marca aplicada: VERDE primária, VERMELHO acento */
  --primary: var(--verde);
  --primary-dark: var(--verde-dark);
  --accent: var(--ifood-red);
  --success: var(--ifood-green);
  --warning: var(--ifood-orange);

  /* Grays */
  --bg: #F5F6F3;            /* fundo claro com leve toque quente */
  --bg-secondary: #FFFFFF;
  --card: #FFFFFF;
  --separator: rgba(0, 0, 0, 0.08);
  --separator-opaque: #E0E0E0;

  /* Text (iFood usa cinzas quentes) */
  --text: #3E3E3E;
  --text-strong: #1F1F1F;
  --text-secondary: #717171;
  --text-tertiary: #A8A8A8;
  --text-on-color: #FFFFFF;

  /* Fills */
  --fill-1: #F4F4F4;
  --fill-2: #ECECEC;
  --fill-3: #E0E0E0;

  /* Radii */
  --radius-card: 8px;
  --radius-modal: 16px;
  --radius-sheet: 18px;
  --radius-button: 8px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.2);

  --ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 110px;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* ============ TOPO (STORE HEADER - iFood) ============ */
.topo {
  background: var(--card);
  color: var(--text);
  padding: 0 0 14px;
  position: relative;
}
/* Ícone discreto de acesso (login do painel) no canto superior direito */
.topo-conta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-strong);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: transform .1s var(--ease), background .2s;
}
.topo-conta:active { transform: scale(.9); background: #fff; }
.topo-conta svg { width: 20px; height: 20px; }

/* Botão voltar (canto superior esquerdo) — usado no acompanhar do pedido */
.topo-voltar {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-strong);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: transform .1s var(--ease);
}
.topo-voltar:active { transform: scale(.9); }

/* faixa tricolor (verde/branco/vermelho) — identidade pizzaria */
.topo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    var(--verde) 0 33.33%,
    #ffffff 33.33% 66.66%,
    var(--ifood-red) 66.66% 100%);
  z-index: 2;
}
.topo:has(.topo-capa)::before { display: none; }

/* Banner / capa da loja */
.topo-capa {
  width: 100%;
  height: clamp(130px, 34vw, 260px);
  overflow: hidden;
  background: var(--fill-1);
  position: relative;
}
.topo-capa::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.12) 100%);
}
.topo-capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topo-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
/* puxa a logo para FICAR SOBRE a capa (banner por trás da logo) */
.topo-inner.com-capa { margin-top: calc(-1 * clamp(64px, 15vw, 92px)); }
.topo-inner.com-capa .topo-info { margin-top: 4px; }
.topo-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.topo-logo img {
  width: clamp(80px, 20vw, 104px);
  height: clamp(80px, 20vw, 104px);
  border-radius: 50%;
  background: white;
  object-fit: cover;
  border: 4px solid var(--card);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.topo-info { text-align: center; }
.topo-info h1 {
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: var(--text-strong);
}
.topo-info p {
  font-size: clamp(12px, 3.4vw, 14px);
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 500;
}
.topo-status { display: flex; justify-content: center; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--fill-1);
  color: var(--success);
  letter-spacing: -0.1px;
}
.status-badge.fechado { color: var(--ifood-red); }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
}
.status-badge.fechado .status-dot { background: var(--ifood-red); }

/* Info bar - chips claros (entrega, frete, mínimo, whats) */
.info-bar {
  max-width: 760px;
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.info-bar::-webkit-scrollbar { display: none; }
.info-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--fill-1);
  border-radius: var(--radius-card);
  color: var(--text);
  text-decoration: none;
  transition: background .2s var(--ease);
}
.info-item:active { background: var(--fill-2); transform: scale(0.97); }
.info-icon {
  font-size: 20px;
  line-height: 1;
}
.info-item small {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}
.info-item strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text-strong);
}
/* Botão WhatsApp (CTA verde da marca) */
.info-whats {
  background: #25D366;
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
  padding-right: 16px;
}
.info-whats:active { background: #1EBE5A; }
.info-whats small { color: rgba(255,255,255,.85); }
.info-whats strong { color: #fff; }
.whats-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============ BUSCA ============ */
.search-container {
  background: var(--card);          /* mesmo fundo do header (.topo) => topo uniforme */
  padding: 14px 16px 6px;
}
.search-container > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.search-box {
  position: relative;
  background: var(--fill-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  transition: background .2s;
}
.search-box:focus-within { background: var(--fill-2); }
.search-icon {
  font-size: 16px;
  color: var(--text-secondary);
  margin-right: 6px;
  opacity: 0.5;
}
#busca {
  flex: 1;
  border: 0;
  padding: 9px 4px;
  font-size: 16px;
  background: transparent;
  outline: none;
  color: var(--text);
  letter-spacing: -0.2px;
}
#busca::placeholder { color: var(--text-secondary); }
#busca-clear {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--text-secondary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.5;
}

/* ============ CATEGORIAS PILLS ============ */
.categorias-nav {
  background: var(--bg-secondary);
  padding: 6px 0 8px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--separator);
  transition: background .2s, box-shadow .2s;
}
.categorias-nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.categorias-track {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 6px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* fade suave nas bordas indicando que dá pra rolar lateralmente */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.categorias-track::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--card);
  color: var(--text-secondary);
  border: 1.5px solid var(--separator);
  border-radius: var(--radius-pill);
  transition: all .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
@media (hover: hover) {
  .cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
  }
}
.cat-pill:active { transform: scale(0.94); }
.cat-pill.active {
  background: var(--primary);
  background-image: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(21, 146, 75, 0.30);
}
.cat-pill.active .cat-pill-label { font-weight: 700; }
.cat-pill-icon { font-size: 16px; line-height: 1; }
.cat-pill-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ============ CONTAGEM ============ */
.contagem-bar {
  max-width: 1180px;
  margin: 14px auto 6px;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.1px;
}
.contagem-bar strong { color: var(--text); }

/* ============ PRODUTOS ============ */
.produtos-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 16px 100px;
}
.cat-section {
  margin-bottom: 28px;
  scroll-margin-top: 80px;
}
.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 0 4px;
}
.cat-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-emoji { font-size: 22px; }
.cat-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* iFood style: lista de produtos (linha, imagem à direita) */
.produtos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 760px) { .produtos-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1100px) { .produtos-grid { grid-template-columns: 1fr 1fr 1fr; } }

.prod-card {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  transition: box-shadow .15s var(--ease), transform .1s var(--ease);
  position: relative;
  cursor: pointer;
}
.prod-card:hover { box-shadow: var(--shadow); }
.prod-card:active { transform: scale(0.99); }

.prod-img {
  position: relative;
  width: 108px;
  min-width: 108px;
  height: 108px;
  border-radius: 8px;
  background: var(--fill-1);
  align-self: center;
}
.prod-img img,
.prod-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.prod-tag {
  position: absolute;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.tag-destaque {
  top: 6px; left: 6px;
  background: rgba(255,255,255,.95);
  font-size: 12px;
  padding: 2px 5px;
}
.tag-promo {
  top: 6px; left: 6px;
  background: var(--ifood-red);
  color: white;
}
.tag-galeria {
  bottom: 6px; left: 6px;
  background: rgba(0,0,0,.55);
  color: white;
  font-weight: 600;
  font-size: 10px;
  padding: 2px 7px;
}
.capa-video-tag {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,.55);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.prod-body {
  padding: 2px 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.prod-nome {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-desc {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  line-height: 1.35;
}
.prod-preco {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.preco-velho {
  text-decoration: line-through;
  color: var(--text-tertiary);
  font-size: 12px;
}
.preco-atual {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-strong);
}
.preco-atual small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}
/* preço promocional fica vermelho (iFood) */
.prod-card:has(.preco-velho) .preco-atual { color: var(--ifood-red); }

/* Botão Add - círculo "+" com degradê, sombra na cor da marca e brilho interno */
.btn-add {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg,
      color-mix(in srgb, var(--primary) 86%, #fff),
      var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card);
  box-shadow:
      0 4px 12px color-mix(in srgb, var(--primary) 45%, transparent),
      0 1px 2px rgba(0,0,0,.25),
      inset 0 1px 0 rgba(255,255,255,.38);
  transition: transform .14s var(--ease), box-shadow .18s var(--ease), filter .15s;
}
.btn-add:hover {
  transform: translateY(-2px) scale(1.07);
  box-shadow:
      0 8px 20px color-mix(in srgb, var(--primary) 55%, transparent),
      0 2px 4px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.45);
  filter: brightness(1.06);
}
.btn-add:active { transform: scale(0.9); filter: brightness(.95); }
.btn-add-plus { font-weight: 700; font-size: 21px; line-height: 1; margin-top: -1px; text-shadow: 0 1px 1px rgba(0,0,0,.18); }

/* Empty busca */
.empty-busca {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 14px;
  opacity: 0.4;
}
.empty-busca h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* ============ BOTÃO CARRINHO FLUTUANTE (iOS Pill) ============ */
.btn-carrinho-flutuante {
  position: fixed;
  bottom: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));   /* não cobre o "home indicator" do iPhone */
  left: 16px;
  right: 16px;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 36px rgba(21,146,75,.4);
  z-index: 90;
  transition: all .2s var(--ease);
  animation: slideUp .35s var(--ease);
}
.btn-carrinho-flutuante:active { transform: scale(0.97); }
@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.carrinho-icon {
  position: relative;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.carrinho-icon span {
  background: white;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  min-width: 22px;
  text-align: center;
}
.carrinho-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.carrinho-info small {
  font-size: 11px;
  opacity: .85;
  font-weight: 500;
}
.carrinho-info strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.carrinho-arrow {
  font-size: 18px;
  font-weight: 500;
}

/* ============ MODAL PRODUTO (iOS Sheet) ============ */
.modal {
  position: fixed;
  inset: 0;
  height: 100dvh;        /* altura visível real do mobile (Safari/Chrome) */
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 700px) { .modal { align-items: center; } }

.modal-card {
  background: var(--bg);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  max-height: 92dvh;   /* dvh considera a barra do navegador no mobile */
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: slideUp .35s var(--ease);
}
@media (min-width: 700px) { .modal-card { border-radius: var(--radius-sheet); max-height: 88vh; max-height: 88dvh; } }

/* iOS sheet grabber */
.modal-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 5px;
  background: rgba(60,60,67,.3);
  border-radius: var(--radius-pill);
  z-index: 10;
}

.modal-close {
  position: absolute;
  top: clamp(10px, 2.6vw, 16px);
  right: clamp(10px, 2.6vw, 16px);
  width: clamp(36px, 9.5vw, 44px);
  height: clamp(36px, 9.5vw, 44px);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: clamp(20px, 5.4vw, 26px);
  font-weight: 500;
  color: #fff;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 3px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.65), 0 2px 10px rgba(0,0,0,.4);
}
.modal-close:active { background: rgba(0,0,0,.72); transform: scale(0.92); }

/* degradê no topo da imagem do modal p/ contraste do botão fechar */
.modal-img-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0));
  z-index: 2;
  pointer-events: none;
}

.modal-img-wrap {
  width: 100%;
  height: 32vh;
  height: 32dvh;           /* altura explícita evita conflito aspect-ratio×flex que travava o encolhimento do corpo */
  max-height: 240px;
  min-height: 150px;
  background: var(--fill-1);
  overflow: hidden;
  flex: 0 0 auto;
  position: relative;
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 18px 20px 20px;
  flex: 1 1 auto;
  min-height: 0;        /* deixa o corpo encolher e rolar; mantém o rodapé visível */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}
.modal-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.m-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.35;
}
.m-ingredientes {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* Blocos iOS estilo Settings - cards arredondados agrupados */
.bloco-opcao {
  margin-top: 18px;
  background: transparent;
  border-radius: var(--radius-card);
}
.bloco-opcao h4 {
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.3px;
  color: var(--text-strong);
  padding: 0 2px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bloco-opcao h4 small {
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.1px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.badge-obrig {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.opcoes-radio {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* ===== Cards de TAMANHO (P / M / G) — responsivos lado a lado ===== */
.opcoes-tamanho {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}
.tamanho-card {
  display: flex;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tamanho-card input { display: none; }
.tamanho-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  padding: 14px 8px;
  border: 2px solid var(--separator);
  border-radius: 14px;
  background: var(--card);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .12s var(--ease);
}
.tamanho-card:active .tamanho-card-inner { transform: scale(.97); }
.tamanho-sigla {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fill-1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  transition: all .18s var(--ease);
}
.tamanho-nome {
  font-weight: 600;
  font-size: clamp(14px, 3.6vw, 16px);
  letter-spacing: -0.2px;
  color: var(--text-strong);
}
.tamanho-preco {
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 600;
  color: var(--text-secondary);
}
.tamanho-card input:checked ~ .tamanho-card-inner {
  border-color: var(--primary);
  background: rgba(21, 146, 75, 0.07);
}
.tamanho-card input:checked ~ .tamanho-card-inner .tamanho-sigla {
  background: var(--primary);
  color: #fff;
}
.tamanho-card input:checked ~ .tamanho-card-inner .tamanho-preco {
  color: var(--primary-dark);
}
.opcao-item {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--separator);
  transition: background .15s;
}
.opcao-item:last-child { border-bottom: 0; }
.opcao-item:active { background: var(--fill-1); }

.opcao-item input { display: none; }
.opcao-label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: relative;
}
.opcao-label::after {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-tertiary);
  background: transparent;
  flex-shrink: 0;
  transition: all .2s var(--ease);
}
.opcao-item input:checked ~ .opcao-label::after {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 4px white;
}
.opcao-nome {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.opcao-preco {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

/* Textarea iOS */
#m-obs {
  width: 100%;
  border: 0;
  background: var(--card);
  padding: 13px 16px;
  font-size: 16px;
  resize: none;
  outline: none;
  border-radius: var(--radius-card);
  letter-spacing: -0.2px;
}
#m-obs::placeholder { color: var(--text-secondary); }

.modal-footer {
  padding: 12px 16px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));  /* respeita a faixa inferior do iPhone */
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  flex-shrink: 0;        /* rodapé nunca encolhe — fica fixo embaixo do card */
  border-top: 0.5px solid var(--separator);
  box-shadow: 0 -6px 14px rgba(0,0,0,.05);
}
.qtd-controle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.qtd-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.qtd-btn:active { background: var(--fill-1); }
#m-qtd {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.btn-confirmar {
  flex: 1;
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .1s var(--ease);
  height: 50px;
}
.btn-confirmar:active { transform: scale(0.97); background: var(--primary-dark); }
.btn-confirmar:disabled {
  background: var(--fill-2);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* ============ DRAWER CARRINHO (iOS Sheet) ============ */
.drawer {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;   /* altura visível real no mobile */
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 700px) {
  .drawer { align-items: flex-start; justify-content: flex-end; }
}
.drawer-card {
  background: var(--bg);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  max-height: 92dvh;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp .35s var(--ease);
  position: relative;
}
.drawer-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 5px;
  background: rgba(60,60,67,.3);
  border-radius: var(--radius-pill);
  z-index: 10;
}
@media (min-width: 700px) {
  .drawer-card { height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .drawer-card::before { display: none; }
}
.drawer-header {
  padding: 22px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid var(--separator);
}
.drawer-header h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.drawer-header .modal-close {
  position: static;
  background: var(--fill-1);
  color: var(--text);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.drawer-body {
  flex: 1 1 auto;
  min-height: 0;        /* mesmo fix do flexbox: corpo rola e o rodapé "Finalizar" fica sempre visível */
  overflow-y: auto;
  padding: 14px 16px;
  -webkit-overflow-scrolling: touch;
}
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  align-items: start;
}
.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--fill-1);
}
.cart-item-body { min-width: 0; }
.cart-item-nome { font-weight: 600; font-size: 15px; letter-spacing: -0.2px; line-height: 1.2; }
.cart-item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.cart-item-controls {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--fill-1);
  border-radius: var(--radius-pill);
  padding: 2px;
  width: fit-content;
}
.cart-item-controls button {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.cart-item-controls button:active { background: var(--fill-2); }
.cart-item-qtd {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}
.cart-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cart-item-preco {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.cart-item-remove {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.drawer-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.drawer-empty .empty-icon { font-size: 64px; opacity: .3; margin-bottom: 14px; }

.drawer-footer {
  padding: 14px 16px 22px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 0.5px solid var(--separator);
  background: var(--bg);
  flex-shrink: 0;
}
.drawer-totais {
  margin-bottom: 14px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius-card);
}
.totais-linha {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.totais-linha.total {
  font-size: 19px;
  font-weight: 700;
  border-top: 0.5px solid var(--separator);
  padding-top: 10px;
  margin-top: 6px;
}
.btn-checkout {
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(21,146,75,.35);
  padding: 15px;
  font-size: 17px;
  height: 54px;
}
.btn-checkout:active { background: var(--primary-dark); }

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  z-index: 300;
  animation: toastIn .3s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90%;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.rodape-site {
  text-align: center;
  padding: 16px 20px 84px;   /* compacto no topo; folga embaixo p/ o carrinho flutuante */
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.prod-card.hidden { display: none; }
.cat-section.hidden { display: none; }

/* ============ GALERIA / CARROSSEL DO MODAL ============ */
.modal-img-wrap {
  position: relative;
  overflow: hidden;
}
.galeria-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .35s var(--ease);
}
.galeria-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--fill-1);
}
.galeria-slide img,
.galeria-slide video,
.galeria-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.galeria-slide video,
.galeria-slide iframe {
  object-fit: contain;
  background: #000;
}
.embed-placeholder {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-weight: 600;
  font-size: 14px;
}
.play-overlay {
  background: rgba(255,255,255,.95);
  color: #000;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

.galeria-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  border: 0;
  line-height: 1;
  padding-bottom: 2px;
}
.galeria-nav.prev { left: 10px; }
.galeria-nav.next { right: 10px; }

.galeria-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 3;
}
.galeria-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: 0;
  padding: 0;
  transition: all .2s var(--ease);
}
.galeria-dot.active {
  background: white;
  width: 18px;
  border-radius: 999px;
}
.galeria-contador {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.4);
  color: white;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
}

/* Loja fechada */
.loja-fechada-banner {
  background: #FFF7E0;
  color: #8A6D00;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.1px;
}

/* ============ ACOMPANHAMENTO DO PEDIDO ============ */
.pg-acompanhar { padding-bottom: 40px; }
.acomp-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.acomp-card {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  padding: 18px 16px;
}
.acomp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.acomp-codigo {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.acomp-head h2 {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-strong);
  margin-top: 4px;
  line-height: 1.2;
}
.acomp-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.35;
}
.acomp-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--fill-2);
  border-top-color: var(--ifood-red);
  animation: acompSpin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes acompSpin { to { transform: rotate(360deg); } }

/* Linha do tempo */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: var(--fill-2);
  z-index: 0;
}
.tl-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}
.tl-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fill-1);
  border: 3px solid var(--fill-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  filter: grayscale(1);
  opacity: .55;
  transition: all .3s var(--ease);
}
.tl-label {
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
  max-width: 80px;
}
.tl-step.done .tl-dot {
  background: rgba(80,167,115,.15);
  border-color: var(--success);
  filter: none;
  opacity: 1;
}
.tl-step.atual .tl-dot {
  background: rgba(21,146,75,.12);
  border-color: var(--ifood-red);
  filter: none;
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(21,146,75,.10);
}
.tl-step.atual .tl-label { color: var(--ifood-red); font-weight: 700; }
.tl-step.done .tl-label { color: var(--success); }

.acomp-cancelado {
  margin-top: 4px;
  background: rgba(234,29,44,.08);
  color: var(--ifood-red);
  padding: 14px;
  border-radius: var(--radius-card);
  font-size: 14px;
  text-align: center;
}

.acomp-h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  color: var(--text-strong);
}
.acomp-itens { display: flex; flex-direction: column; gap: 10px; }
.acomp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.acomp-item-qtd {
  font-weight: 700;
  color: var(--ifood-red);
  font-size: 14px;
  min-width: 28px;
}
.acomp-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acomp-item-info strong { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; }
.acomp-item-info small { font-size: 12px; color: var(--text-secondary); }
.acomp-item-preco { font-weight: 700; font-size: 14px; white-space: nowrap; }
.acomp-totais {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
}
.acomp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.acomp-whats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
}
.acomp-whats:active { background: #1EBE5A; transform: scale(.98); }
.acomp-novo {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 6px;
}
.acomp-erro { text-align: center; padding: 50px 20px; }
.acomp-erro h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.acomp-erro p { color: var(--text-secondary); }
.acomp-notif-aviso {
  background: var(--fill-1);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  font-size: 13px;
  text-align: center;
  color: var(--text-secondary);
}
.acomp-notif-aviso button {
  color: var(--ifood-red);
  font-weight: 700;
  text-decoration: underline;
  font-size: 13px;
}

/* ====== SELEÇÃO DE SABORES / ADICIONAIS ====== */
.sabores-busca { padding: 0 0 10px; }
.sabores-busca input {
  width: 100%;
  border: 0;
  background: var(--fill-1, #f0f0f3);
  padding: 11px 14px;
  font-size: 15px;
  border-radius: 10px;
  outline: none;
  letter-spacing: -0.2px;
}
.sabores-lista {
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  background: var(--card);
}
.sabor-item .opcao-nome {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  text-align: left;
}
.sabor-desc {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.sabor-tag-doce {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: #d6336c;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.opcao-label { align-items: flex-start; }
/* Checkbox quadrado (sabores 2 sabores e adicionais) */
.opcoes-check .opcao-label::after,
.sabor-item input[type="checkbox"] ~ .opcao-label::after {
  border-radius: 6px;
}
.opcoes-check .opcao-item input:checked ~ .opcao-label::after,
.sabor-item input[type="checkbox"]:checked ~ .opcao-label::after {
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
   AJUSTE FINO MOBILE (telas de celular)
   Objetivo: topo mais enxuto, menos rolagem até
   chegar nos produtos e cards proporcionais.
   ============================================ */

/* Celular (até 600px) — vale para praticamente todos os smartphones */
@media (max-width: 600px) {
  /* Banner um pouco mais baixo: os produtos aparecem mais cedo */
  .topo-capa { height: clamp(108px, 30vw, 170px); }

  /* Topo mais compacto */
  .topo { padding-bottom: 12px; }
  .topo-inner { padding-top: 16px; gap: 8px; }
  .topo-inner.com-capa { margin-top: calc(-1 * clamp(52px, 13vw, 74px)); }
  .topo-logo { gap: 6px; }
  .topo-logo img { width: clamp(72px, 18vw, 88px); height: clamp(72px, 18vw, 88px); }

  /* Info-bar: chips centralizados (quebram em linha quando não cabem) */
  .info-bar {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
    padding: 2px 16px;
  }
  .info-item { padding: 8px 12px; }

  /* Busca e contagem mais coladas no fluxo */
  .search-container { padding: 12px 16px 4px; }
  .contagem-bar { margin: 10px auto 4px; }

  /* Seções e títulos um pouco mais compactos */
  .cat-section { margin-bottom: 22px; }
  .cat-header { margin-bottom: 10px; }
  .cat-header h2, .cat-emoji { font-size: 19px; }
}

/* Celulares pequenos (até 380px): card e imagem proporcionais p/ o texto respirar */
@media (max-width: 380px) {
  .produtos-grid { gap: 10px; }
  .prod-card { gap: 10px; padding: 10px; }
  .prod-img { width: 90px; min-width: 90px; height: 90px; }
  .prod-nome { font-size: 14px; }
  .prod-desc { font-size: 12px; margin-bottom: 6px; }
  .preco-atual { font-size: 15px; }
  .btn-add { width: 30px; height: 30px; }
  .btn-add-plus { font-size: 18px; }

  .topo-info h1 { font-size: 19px; }
  .cat-pill { padding: 7px 12px; }
  .cat-pill-label { font-size: 13px; }
}
.opcoes-check { display: flex; flex-direction: column; background: var(--card); border-radius: 10px; }

/* Toast "Adicionado ao carrinho" — some sozinho; legível em tema claro e escuro */
.toast-add{
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(16px);
  background: var(--text-strong);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  box-shadow: 0 10px 30px rgba(0,0,0,.32);
  z-index: 130;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast-add.show{ opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-check{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Banner de promoção (abaixo do header) ---------- */
/* Fundo --card igual ao header e à busca => topo totalmente uniforme. */
.promo-banner{ background: var(--card); padding: 12px 16px 4px; }
.promo-banner a, .promo-banner > img{ display: block; max-width: 720px; margin: 0 auto; }
.promo-banner img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--separator);
  box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.12));
}

/* ---------- Checkout: entrega/retirada + pagamento no carrinho ---------- */
.co-bloco{ margin-bottom: 12px; }
.co-titulo{ font-size: 13px; font-weight: 700; color: var(--text-secondary); margin: 0 0 8px; }
.co-radios{ display: flex; flex-direction: column; gap: 8px; }
.co-opt{
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--separator-opaque);
  border-radius: var(--radius-button);
  background: var(--bg-secondary);
  font-size: 14px; cursor: pointer;
}
.co-opt input{ accent-color: var(--primary); width: 18px; height: 18px; margin: 0; }
.co-opt:has(input:checked){ border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.co-input{
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--separator-opaque);
  border-radius: var(--radius-button);
  font-size: 14px; background: var(--bg-secondary); color: var(--text);
}
.co-endereco-grid{ display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.co-endereco-grid #co-cep{ grid-column: 1 / -1; }
.co-endereco-grid #co-rua{ grid-column: 1; }
.co-endereco-grid .co-num{ grid-column: 2; }
.co-endereco-grid #co-bairro-sel,
.co-endereco-grid #co-bairro,
.co-endereco-grid #co-compl,
.co-endereco-grid #co-cidade,
.co-endereco-grid #co-cpf,
.co-endereco-grid #co-email{ grid-column: 1 / -1; }
/* Cidade ocupa a linha e a UF fica ao lado dela, no lugar estreito do número. */
.co-endereco-grid #co-cidade{ grid-column: 1; }
.co-endereco-grid #co-uf{ grid-column: 2; text-transform: uppercase; }
/* Aviso do bloco de dados da etiqueta: explica por que estamos pedindo CPF. */
.co-dest-nota{
  font-size: 12px; line-height: 1.5; margin-top: 8px;
  color: var(--text-secondary);
}
/* ---------- Opções de frete (transportadora e entrega da loja) ----------
   Uma linha por opção: nome + prazo à esquerda, preço à direita. No celular o
   nome quebra e o preço continua ancorado na direita (min-width:0 no texto). */
.co-frete-btn{
  width: 100%; margin-top: 8px; padding: 11px 12px;
  border: 1px dashed var(--separator-opaque);
  border-radius: var(--radius-button);
  background: var(--bg-secondary); color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.co-frete-btn:disabled{ opacity: .6; cursor: default; }
.co-frete-msg{
  font-size: 12.5px; line-height: 1.5; margin-bottom: 8px;
  background: var(--bg-secondary); color: var(--text-secondary);
  border-radius: 8px; padding: 9px 11px;
}
.co-frete-msg.erro{ color: #c0392b; }
.frete-opt{
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--separator-opaque);
  border-radius: var(--radius-button);
  background: var(--bg-secondary);
  font-size: 14px; cursor: pointer;
}
.frete-opt input{ accent-color: var(--primary); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.frete-opt:has(input:checked){ border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.frete-opt .fo-txt{ min-width: 0; flex: 1; }
.frete-opt .fo-nome{ font-weight: 600; display: block; }
.frete-opt .fo-prazo{ font-size: 12.5px; color: var(--text-secondary); }
.frete-opt .fo-preco{ margin-left: auto; font-weight: 700; white-space: nowrap; flex: 0 0 auto; }

.co-pix{ margin-top: 8px; font-size: 13px; color: var(--text-secondary); background: var(--bg-secondary); border-radius: 8px; padding: 8px 10px; }
.co-copiar{ border: none; background: var(--primary); color: #fff; border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer; margin-left: 6px; }

/* ============================================================
   PNG "flutuante" — produto de fundo transparente SALTA do card,
   imitando a imagem de referência: sem caixa cinza, produto inteiro
   (sem recorte) e com sombra de flutuação.
   Ativado por body.png-float; aplica-se só a imagens .png (.is-png).
   ============================================================ */
/* Card do PNG vira "pôster": produto GRANDE em cima, flutuando pra fora do
   card, e nome/preço pequenos e centralizados embaixo (igual à referência). */
.png-float .prod-card:has(.prod-img.is-png){
  position: relative;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  gap: 0;
  margin-top: 76px;                    /* reserva o espaço p/ o produto que sobe pra fora */
}
.png-float .prod-img.is-png{
  position: static;                    /* '+' e tags passam a se referir ao card */
  order: -1;                           /* produto em cima, texto embaixo */
  width: 82%;
  max-width: 240px;
  min-width: 0;
  height: 200px;
  margin-top: -76px;                   /* estoura acima do card => flutua */
  margin-bottom: 8px;
  background: transparent;
  overflow: visible;
  align-self: center;
}
.png-float .prod-img.is-png img{
  width: 100%;
  height: 100%;
  object-fit: contain;                 /* produto inteiro, sem cortar */
  border-radius: 0;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)) drop-shadow(0 4px 6px rgba(0,0,0,.35));
  transition: transform .22s var(--ease), filter .22s var(--ease);
}
.png-float .prod-card:has(.is-png):hover .prod-img.is-png img{
  transform: scale(1.05) rotate(-2deg);
}
.png-float .prod-card:has(.is-png){ padding-bottom: 78px; }   /* espaço p/ o '+' centralizado embaixo */
.png-float .prod-card:has(.is-png) .prod-body{ align-items: center; width: 100%; }
.png-float .prod-card:has(.is-png) .prod-nome{ font-size: 17px; margin-bottom: 6px; }
.png-float .prod-card:has(.is-png) .prod-preco{ align-items: center; margin-top: 4px; }
/* preço MAIOR */
.png-float .prod-card:has(.is-png) .preco-atual{ font-size: 24px; letter-spacing: -0.5px; }
.png-float .prod-card:has(.is-png) .preco-velho{ font-size: 14px; }
/* '+' grande e CENTRALIZADO na base do card */
.png-float .prod-card:has(.is-png) .btn-add{
  top: auto; bottom: 16px;
  left: 50%; right: auto;
  transform: translateX(-50%);
  width: 52px; height: 52px;
}
.png-float .prod-card:has(.is-png) .btn-add:hover{ transform: translateX(-50%) translateY(-2px) scale(1.06); }
.png-float .prod-card:has(.is-png) .btn-add:active{ transform: translateX(-50%) scale(0.9); }
.png-float .prod-card:has(.is-png) .btn-add .btn-add-plus{ font-size: 30px; margin-top: -2px; }
.png-float .prod-card:has(.is-png) .prod-tag{ top: 8px; left: 8px; }
/* selo "📷 N" no topo direito p/ não brigar com o produto flutuante */
.png-float .prod-card:has(.is-png) .tag-galeria{ top: 8px; right: 8px; left: auto; bottom: auto; }

/* ---------- Carrossel de fotos no modal do produto ---------- */
.carousel{ position: absolute; inset: 0; overflow: hidden; }
.carousel-track{
  display: flex;
  height: 100%;
  transition: transform .3s var(--ease);
  will-change: transform;
}
.carousel-slide{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  color: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow.prev{ left: 8px; }
.carousel-arrow.next{ right: 8px; }
.carousel-arrow:active{ transform: translateY(-50%) scale(.9); }
.carousel-dots{
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.carousel-dots .cdot{
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: width .2s var(--ease), background .2s;
}
.carousel-dots .cdot.on{ width: 18px; border-radius: 4px; background: #fff; }

/* Modal: PNG também flutua (sem recorte, com sombra) sobre fundo suave */
.png-float .modal-img-wrap.is-png {
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--text) 7%, transparent), transparent 72%);
}
.png-float .modal-img-wrap.is-png img {
  object-fit: contain;
  padding: 16px;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.45));
}
