/* Folha: sobe de baixo no celular, diálogo central no computador. Curvas do Material, sem mola. */
.sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94dvh; background: var(--card); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .35s var(--ease-in); overflow: hidden; }
.sheet.open { pointer-events: auto; }
.sheet.open .scrim { opacity: 1; }
.sheet.open .sheet-panel { transform: none; transition: transform .45s var(--ease); }
.sheet.product .sheet-panel, .sheet.checkout .sheet-panel, .sheet.track .sheet-panel { height: 94dvh; }
.grab { position: absolute; z-index: 3; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--border); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; position: relative; }
.sheet-body > .pad, .pbody { flex: 1; padding: 20px 16px 20px; }
.pad.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pad h2, .pbody h2 { font-size: 20px; letter-spacing: -.01em; line-height: 1.2; padding-right: 40px; }
.pad.center h2 { padding: 0; }
.x { position: absolute; z-index: 4; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.x.back { right: auto; left: 14px; }
.x.back + .pad h2 { padding: 0 0 0 52px; min-height: 40px; display: flex; align-items: center; margin-top: -8px; }
.sub { font-size: 15px; margin: 16px 0 8px; }
.pfoot { position: sticky; z-index: 5; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 16px calc(12px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--border); }
.pfoot .warn { width: 100%; display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--bad); }

/* produto */
.pimg { aspect-ratio: 2 / 1; background: var(--muted); flex-shrink: 0; overflow: hidden; }
.pbody > .muted { margin-top: 6px; }
.price.big { font-size: 20px; margin-top: 8px; }
.grp { margin: 14px -16px 0; padding: 0 16px; border-top: 6px solid var(--muted); scroll-margin: 20px; }
.grp > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 6px; background: var(--card); }
.grp h4 { font-size: 16px; }
.grp header small { color: var(--muted-fg); font-size: 13px; }
.gstat { display: flex; align-items: center; gap: 8px; }
.cnt { font-size: 13px; font-weight: 600; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; display: inline-flex; align-items: center; }
.badge.req { background: var(--fg); color: var(--bg); }
.badge.ok { background: var(--ok-c); color: var(--ok); padding: 3px 5px; }
.grp.bad > header h4, .grp.bad .err { color: var(--bad); }
.grp.bad .badge.req { background: var(--bad); color: #fff; }
.err { display: flex; align-items: center; gap: 6px; color: var(--bad); font-size: 13px; font-weight: 500; margin-top: 6px; }
.okmsg { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; margin-top: 6px; }
.opts { display: flex; flex-direction: column; }
.opt { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt.sold { cursor: default; opacity: .55; }
.opt.dim { opacity: .45; }
.oph { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--muted); flex-shrink: 0; }
.otx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.otx b { font-weight: 500; }
.otx small { color: var(--muted-fg); font-size: 13px; }
.op { font-size: 14px; font-weight: 600; color: var(--copy); margin-top: 2px; }
.radio, .check { width: 24px; height: 24px; flex-shrink: 0; border: 2px solid var(--muted-fg); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: border-color .15s var(--ease), background .15s var(--ease); }
.check { border-radius: 7px; }
.check svg { opacity: 0; }
.radio.on { border: 7px solid var(--brand); }
.check.on { background: var(--brand); border-color: var(--brand); }
.check.on svg { opacity: 1; }
.step { display: flex; align-items: center; border-radius: 999px; flex-shrink: 0; }
.step.has { background: var(--muted); }
.step button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); }
.step:not(.has) button { border: 1.5px solid var(--border); }
.step button:disabled { color: var(--muted-fg); opacity: .5; cursor: not-allowed; }
.step b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.step.big button { width: 46px; height: 46px; }
.step.big b { min-width: 28px; font-size: 17px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; padding-bottom: 6px; }
.size { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 12px; border-radius: 14px; border: 1.5px solid var(--border); text-align: left; transition: border-color .15s var(--ease), background .15s var(--ease); }
.size small { color: var(--muted-fg); font-size: 12px; }
.size span { font-weight: 600; margin-top: 6px; font-size: 14px; }
.size.on { border-color: var(--brand); background: var(--brand-c); }
.size.on small { color: var(--brand-on-c); }
.pie { display: flex; align-items: center; gap: 16px; padding: 4px 0 10px; }
.pie svg { width: 84px; height: 84px; flex-shrink: 0; }
.sl { stroke: var(--card); stroke-width: 2; fill: var(--muted); }
.pie ul { list-style: none; font-size: 14px; display: grid; gap: 4px; }
.pie li { display: flex; align-items: center; gap: 8px; }
.pie li i { width: 10px; height: 10px; border-radius: 3px; }
.s0 { fill: #C2410C; background: #C2410C; } .s1 { fill: #E8A317; background: #E8A317; } .s2 { fill: #7C5A3C; background: #7C5A3C; } .s3 { fill: #B5654A; background: #B5654A; }
.pie svg circle.s0, .pie svg path { stroke: var(--card); }
.note textarea { width: 100%; resize: none; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; outline: 0; }
.note textarea:focus { border-color: var(--brand); }

/* sacola */
.freebar { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.freebar i { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; display: block; }
.freebar em { display: block; height: 100%; background: var(--brand); transition: width .4s var(--ease); }
.freebar.ok { flex-direction: row; align-items: center; background: var(--ok-c); color: var(--ok); font-weight: 600; }
.crows { margin-top: 8px; }
.crow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cph { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--muted); flex-shrink: 0; }
.ctx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ctx small { color: var(--muted-fg); font-size: 13px; }
.crow-f { display: flex; gap: 12px; align-items: baseline; margin-top: 4px; }
.crow-f .price { padding: 0; }
.totals { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--copy); }
.totals .tot { font-size: 17px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--border); }
.totals .tot dt { color: var(--fg); }
.free { color: var(--ok); font-weight: 600; }

/* checkout */
.fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--copy); }
.fld input { height: var(--control-h); border: 1.5px solid var(--border); border-radius: 12px; padding: 0 12px; font-size: 16px; color: var(--fg); background: var(--card); outline: 0; transition: border-color .15s var(--ease); }
.fld input:focus { border-color: var(--brand); }
.fld.bad input { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.addr { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--muted); margin-bottom: 12px; }
.addr div { flex: 1; display: flex; flex-direction: column; }
.addr small { color: var(--muted-fg); font-size: 13px; }
.slots { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px; }
.slots button { flex: 0 0 auto; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border); font-weight: 500; font-size: 14px; }
.slots button.on { border-color: var(--brand); background: var(--brand-c); color: var(--brand-on-c); }
.slots.bad button { border-color: var(--bad); }
.pays { display: grid; gap: 8px; margin-bottom: 12px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r); border: 1.5px solid var(--border); text-align: left; }
.pay span:not(.radio) { flex: 1; display: flex; flex-direction: column; }
.pay small { color: var(--muted-fg); font-size: 13px; }
.pay.on { border-color: var(--brand); }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: var(--control-h); border: 1.5px solid var(--border); border-radius: 12px; padding: 0 12px; outline: 0; text-transform: uppercase; }
.coupon.bad input { border-color: var(--bad); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted-fg); font-size: 14px; margin-top: 8px; }
.loading i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.loading.inv { color: #fff; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pix e acompanhamento */
.small { font-size: 13px; max-width: 320px; }
.status-big { font-size: 30px !important; margin-top: 4px; }
.eta { margin-top: 4px; color: var(--copy); }
.bar4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 8px; }
.bar4 i { height: 6px; border-radius: 3px; background: var(--muted); }
.bar4 i.on { background: var(--brand); }
.bar4 i.now { animation: pulse 1.4s var(--ease) infinite; }
.timeline { list-style: none; margin: 12px 0 18px; }
.timeline li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; color: var(--muted-fg); }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li > i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; flex-shrink: 0; background: var(--card); }
.timeline li.done > i { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline li.now > i { border: 7px solid var(--brand); }
.timeline li.done, .timeline li.now { color: var(--fg); }
.timeline div { display: flex; flex-direction: column; }
.timeline small { color: var(--muted-fg); font-size: 13px; }
.rate { padding: 14px; border-radius: var(--r); background: var(--muted); margin-bottom: 4px; }
.stars { display: flex; gap: 4px; margin-top: 8px; }
.stars button svg { width: 32px; height: 32px; color: var(--muted-fg); }
.stars button.on svg { fill: #E8A317; stroke: #E8A317; }
.mini { display: grid; gap: 8px; font-size: 14px; }
.mini div { display: flex; flex-direction: column; }
.mini small { color: var(--muted-fg); font-size: 13px; }
.mini .tot { flex-direction: row; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 8px; font-size: 15px; }

@media (min-width: 760px) {
  .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 88vh; border-radius: 28px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s var(--ease-in), opacity .2s var(--ease-in); }
  .sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; transition: transform .35s var(--ease), opacity .25s var(--ease); }
  .sheet.product .sheet-panel, .sheet.checkout .sheet-panel, .sheet.track .sheet-panel { height: 88vh; }
  .sheet.small .sheet-panel { width: 440px; }
  .grab { display: none; }
  .pimg { aspect-ratio: 2 / 1; }
}
.notice.ok { background: var(--ok-c); color: var(--ok); margin: 0 0 14px; }
.qr-img { width: 220px; height: 220px; margin: 20px auto 6px; border-radius: 16px; border: 1px solid var(--border); background: #fff; padding: 10px; }
.card-el { margin-top: 16px; min-height: 180px; }
