.shell { max-width: 62rem; margin: 0 auto; padding: 0 1rem 6rem; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 62rem; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a { padding: .45rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.who { font-size: .85rem; color: var(--muted); }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; }
.auth .card { width: min(26rem, 100%); }
.auth .brand { justify-content: center; margin-bottom: 1rem; font-size: 1.25rem; }
.auth .welcome { text-align: center; color: var(--muted); margin: -.4rem 0 1.2rem; }
.auth .links { display: flex; justify-content: space-between; margin-top: .8rem; font-size: .9rem; }
.auth .primary { width: 100%; justify-content: center; }
.err-msg { color: var(--bad); margin: 0 0 .8rem; font-size: .9rem; }

.page-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1.2rem 0 .8rem; }
.page-head h1 { margin: 0; }
.notice { background: var(--soft); border-radius: var(--radius); padding: .6rem .9rem; margin-bottom: .8rem; color: var(--muted); font-size: .9rem; }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .6rem; }
.chip { white-space: nowrap; border-radius: 99px; padding: .3rem .8rem; font-size: .88rem; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.prod { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .8rem; align-items: center; padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.prod:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.prod:last-child { border-bottom: 0; border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.plist { border: 1px solid var(--line); border-radius: var(--radius); }
.thumb { width: 3.4rem; height: 3.4rem; border-radius: 8px; background: var(--soft); object-fit: cover; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.pname { font-weight: 600; }
.pmeta { font-size: .82rem; color: var(--muted); display: flex; gap: .2rem .8rem; flex-wrap: wrap; margin-top: .15rem; }
.tier-hint { font-size: .8rem; color: var(--accent); margin-top: .2rem; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.price s { color: var(--muted); font-weight: 400; font-size: .85rem; display: block; }
.buy { display: grid; justify-items: end; gap: .3rem; min-width: 8.5rem; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { border: 0; border-radius: 0; padding: .35rem .7rem; background: var(--soft); font-size: 1.1rem; }
.qty input { width: 3.6rem; border: 0; border-radius: 0; text-align: center; padding: .35rem .2rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-agotado { color: var(--bad); font-weight: 600; } .stock-poco { color: var(--warn); font-weight: 600; } .stock-ok { color: var(--ok); }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 12; }
.cartbar-in { max-width: 62rem; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; }
.cartbar b { font-variant-numeric: tabular-nums; }

.sum { max-width: 24rem; margin-left: auto; display: grid; gap: .3rem; padding: 1rem 0; }
.sum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum .total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: .5rem; }
.sum .save { color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .88rem; color: var(--muted); }

@media (max-width: 34rem) {
  .prod { grid-template-columns: 2.8rem 1fr; }
  .thumb { width: 2.8rem; height: 2.8rem; }
  .buy { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; }
  .price { text-align: left; }
  .who { display: none; }
}

.blk { display: block; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: .7rem .9rem; }
.stat span { display: block; font-size: .85rem; }
.stat b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stat b.bad { color: var(--bad); }
