/* Antes × depois: 4 cartas que viram (frente = print real com zoom no problema; verso = como fica) */
.flipsec { padding: 110px 0 90px; background: var(--y); overflow: hidden; }
.flip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.flip-head .lead { max-width: 46ch; }

/* seletor Antes | Depois */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--ink); border-radius: 99px; padding: 5px; }
.seg button { position: relative; z-index: 1; font-family: var(--round); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 12px 26px; border-radius: 99px; transition: color .3s; }
.seg button.on { color: var(--ink); }
.seg i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 99px; background: #fff; transition: transform .45s var(--ease), background .3s; }
.seg.depois i { transform: translateX(100%); background: var(--y); }

/* grade / carrossel */
.flips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.flip { perspective: 1400px; height: 540px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flip .inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,1.3,.4,1); }
.flip.on .inner { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 50px rgba(142,0,0,.22); }
.flip .front { background: #fff; }
.flip .back { background: var(--ink); color: #fff; transform: rotateY(180deg); }
.flip .vis { position: relative; aspect-ratio: 4 / 3; overflow: hidden; flex: none; }
.flip .front .vis { background: #f4f4f4; }
.flip .back .vis { background: var(--paper); color: var(--ink); display: grid; place-items: center; padding: 14px; }
.flip .txt { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.flip .txt .tag { align-self: flex-start; }
.flip .txt h4 { font-size: 21px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1.1; }
.flip .txt p { font-size: 14.5px; line-height: 1.4; color: var(--mute); }
.flip .back .txt p { color: rgba(255,255,255,.72); }
.flip .txt .m { margin-top: auto; font-family: var(--round); font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.flip .front .txt .m { color: var(--r2); }
.flip .back .txt .m { color: var(--y); }
.flip .n { position: absolute; top: 12px; left: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--y); font-family: var(--round); font-weight: 800; display: grid; place-items: center; font-size: 16px; }
.flip .hint { position: absolute; top: 12px; right: 12px; z-index: 3; font-family: var(--round); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(26,12,5,.75); color: #fff; padding: 6px 10px; border-radius: 99px; }

/* recorte do print com zoom no problema */
.crop img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform-origin: 0 0; }
.crop .mk { position: absolute; border: 4px solid var(--r); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(26,12,5,.22); animation: mkpulse 1.8s ease-in-out infinite; }
@keyframes mkpulse { 50% { border-color: #ff6a5a; } }

/* versos */
.bk-card { width: 100%; max-width: 280px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 26px rgba(26,12,5,.14); display: grid; grid-template-columns: 96px 1fr; }
.bk-card .ph { background: center/cover; min-height: 110px; }
.bk-card .b { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.bk-card b { font-size: 14px; line-height: 1.15; }
.bk-card .p { font-family: var(--round); font-weight: 800; font-size: 20px; }
.bk-card .c { font-family: var(--round); font-weight: 700; font-size: 11.5px; color: #137a3c; }
.bk-list { width: 100%; max-width: 290px; display: grid; gap: 7px; }
.bk-list .r { display: grid; grid-template-columns: 1fr auto 22px; gap: 8px; align-items: center; background: #fff; border-radius: 12px; padding: 9px 11px; font-size: 13.5px; box-shadow: 0 4px 12px rgba(26,12,5,.08); }
.bk-list .r span { font-family: var(--round); font-weight: 800; font-size: 13px; }
.bk-list .r i { width: 20px; height: 20px; border-radius: 50%; background: var(--r); position: relative; }
.bk-list .r i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-style: normal; font-weight: 900; }
.bk-list .tot { display: flex; justify-content: space-between; align-items: center; background: var(--r); color: #fff; border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 14px; }
.bk-list .tot s { opacity: .7; font-weight: 600; margin-right: 6px; }
.bk-cats { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; max-width: 300px; }
.bk-cats span { background: #fff; border-radius: 99px; padding: 8px 12px; font-weight: 800; font-size: 13.5px; box-shadow: 0 4px 12px rgba(26,12,5,.08); }
.bk-cats span:nth-child(-n+3) { background: var(--ink); color: var(--y); }
.bk-doce { display: grid; justify-items: center; gap: 10px; }
.bk-doce .art { width: 118px; height: 118px; border-radius: 50%; box-shadow: 0 10px 26px rgba(26,12,5,.2); }
.bk-doce .chip { background: #fff; border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 13.5px; display: flex; gap: 10px; align-items: center; box-shadow: 0 4px 12px rgba(26,12,5,.08); }
.bk-doce .chip b { font-family: var(--round); }

.flip-dots { display: none; justify-content: center; gap: 8px; margin-top: 18px; }
.flip-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(26,12,5,.25); transition: width .3s, background .3s; }
.flip-dots i.on { width: 26px; background: var(--ink); }

@media (max-width: 1100px) { .flips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .flipsec { padding: 80px 0 60px; }
  .flip-head { align-items: flex-start; }
  .seg { width: 100%; }
  .seg button { padding: 12px 10px; }
  .flips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 28px -16px 0; padding: 6px 16px 26px; scrollbar-width: none; }
  .flips::-webkit-scrollbar { display: none; }
  .flip { flex: 0 0 86%; scroll-snap-align: center; height: 530px; }
  .flip-dots { display: flex; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .flip .inner { transition: none; } }

/* frente: réplica legível do iFood (textos e preços reais) */
.flip .front .vis { background: #fff; display: flex; flex-direction: column; padding: 52px 12px 10px; border-bottom: 1px solid #eee; }
.rep { display: flex; flex-direction: column; gap: 5px; font-family: "Fira Sans", sans-serif; color: #3e3e3e; font-size: 13px; overflow: hidden; }
.rep .rh { font-weight: 700; font-size: 13px; color: #3e3e3e; text-transform: none; margin-bottom: 2px; }
.rep .rg { font-size: 11px; font-weight: 700; color: #717171; background: #f5f5f5; border-radius: 6px; padding: 4px 8px; }
.rep .rr { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 2px; border-bottom: 1px solid #f1f1f1; line-height: 1.2; }
.rep .rr span { min-width: 0; }
.rep .rr b { font-weight: 600; font-size: 13px; }
.rep .rr small { display: block; font-size: 11px; color: #999; }
.rep .rr em { font-style: normal; font-weight: 600; color: #50a773; white-space: nowrap; font-size: 12.5px; }
.rep em.bad { color: #d10000; border: 2.5px solid #ff0000; border-radius: 99px; padding: 1px 7px; animation: mkpulse 1.8s ease-in-out infinite; }
.rep .bad-t { color: #d10000; font-weight: 800; }
.rep .rr.ghost { border: 2px dashed #ffb3ad; border-radius: 8px; padding: 4px 8px; margin-top: 3px; color: #d10000; }
.rep .rr.ghost em { color: #d10000; font-weight: 700; }
.rep .rr.ph { padding: 7px 2px; }
.rep .nophoto { flex: none; width: 74px; height: 50px; border-radius: 8px; border: 2.5px dashed #ff0000; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 10.5px; color: #d10000; text-transform: uppercase; letter-spacing: .04em; background: #fff5f5; }
.rep .tabs-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.rep .tabs-strip span { font-size: 10.5px; padding: 3px 7px; border-radius: 99px; background: #fff0f0; color: #d10000; font-weight: 600; border: 1px solid #ffc9c4; }
.rep .txt-only small { font-size: 12px; color: #777; margin-top: 3px; line-height: 1.35; }
.rep mark { background: #ffe1de; color: #b00000; font-weight: 600; outline: 2px solid #ff0000; border-radius: 3px; }
.flip .proof { position: absolute; right: 10px; bottom: 8px; z-index: 3; font-family: var(--round); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--y); padding: 6px 10px; border-radius: 99px; }
.flip .front .vis { position: relative; }
.flip .vis { aspect-ratio: auto; height: 280px; }
.flip .front .vis { padding-bottom: 38px; }
