/* ==========================================================================
   TRIBBU FIT FOOD — Design System
   ========================================================================== */

:root {
  /* Marca */
  --brand: #d9202a;
  --brand-dark: #a8151c;
  --brand-light: #f2454e;
  --brand-soft: #fdeced;
  --acai: #4a1b3d;
  --acai-2: #7b2d5e;

  /* Neutros */
  --ink: #17171a;
  --ink-2: #55555c;
  --ink-3: #8e8e97;
  --line: #ececf0;
  --bg: #f4f4f6;
  --surface: #ffffff;

  /* Semânticos */
  --green: #12a150;
  --green-soft: #e6f6ec;
  --amber: #f5a524;
  --amber-soft: #fff5e2;

  /* Forma */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(23, 23, 26, .06), 0 1px 3px rgba(23, 23, 26, .04);
  --sh: 0 2px 8px rgba(23, 23, 26, .06), 0 8px 24px rgba(23, 23, 26, .05);
  --sh-lg: 0 8px 32px rgba(23, 23, 26, .14);

  --maxw: 640px;
  --tabbar-h: 62px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--brand); color: #fff; }

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   Tipografia
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  margin: 28px 0 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.section-head .hint { font-size: 12px; color: var(--ink-3); font-weight: 500; }

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 58px;
}

.topbar.brandbar { background: var(--brand); border-color: transparent; color: #fff; }

.topbar__back {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--bg);
  color: var(--ink);
  flex-shrink: 0;
  font-size: 15px;
}

.brandbar .topbar__back { background: rgba(255, 255, 255, .16); color: #fff; }

.topbar__title { font-weight: 700; font-size: 16px; letter-spacing: -.01em; flex: 1; }
.topbar__sub { font-size: 12px; font-weight: 500; opacity: .7; }

/* ==========================================================================
   Cabeçalho da loja
   ========================================================================== */

.hero { position: relative; }

.hero__img {
  height: 190px;
  background: var(--acai) center/cover no-repeat;
  position: relative;
}

.hero__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 23, 26, .55) 0%, rgba(23, 23, 26, .1) 45%, rgba(23, 23, 26, .75) 100%);
}

.hero__top {
  position: absolute; z-index: 2;
  top: 14px; left: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.pill-open {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(18, 161, 80, .95);
  color: #fff;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}

.pill-open i { font-size: 7px; animation: pulse 1.8s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.hero__action {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px;
}

.storecard {
  position: relative;
  margin: -58px 16px 0;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 16px;
  z-index: 3;
}

.storecard__head { display: flex; gap: 13px; align-items: center; }

.storecard__logo {
  width: 62px; height: 62px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
  flex-shrink: 0;
}

.storecard__name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  display: flex; align-items: center; gap: 6px;
}

.storecard__tag { font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-top: 3px; }

.verified { color: #1d9bf0; font-size: 15px; }

.storecard__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metaitem {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  padding: 6px 11px;
  border-radius: var(--r-pill);
}

.metaitem i { font-size: 11px; color: var(--ink-3); }
.metaitem.is-gold i { color: var(--amber); }
.metaitem.is-green { background: var(--green-soft); color: #0d7a3c; }
.metaitem.is-green i { color: var(--green); }

/* ==========================================================================
   Faixa promocional
   ========================================================================== */

.promostrip {
  margin: 16px;
  border-radius: var(--r);
  background: linear-gradient(115deg, var(--brand) 0%, var(--brand-dark) 55%, var(--acai) 100%);
  color: #fff;
  padding: 15px 17px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; gap: 14px;
}

.promostrip::before {
  content: "";
  position: absolute; top: -60%; left: -60%;
  width: 60%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: rotate(22deg);
  animation: sweep 3.6s ease-in-out infinite;
}

@keyframes sweep { 0% { left: -60% } 60%, 100% { left: 130% } }

.promostrip__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .18);
  display: grid; place-items: center;
  font-size: 19px;
}

.promostrip__title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  text-transform: uppercase; line-height: 1.1;
}

.promostrip__text { font-size: 12.5px; opacity: .92; margin-top: 2px; }

/* ==========================================================================
   Busca + Categorias
   ========================================================================== */

.searchbox { padding: 0 16px; margin-bottom: 4px; position: relative; }

.searchbox input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 12px 42px 12px 42px;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.searchbox input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.searchbox .s-ico {
  position: absolute; left: 31px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 14px; pointer-events: none;
}

.searchbox .s-clear {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 15px; padding: 4px;
}

.catbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  padding: 12px 0 10px;
  margin-top: 14px;
  transition: box-shadow .2s;
}

.catbar.is-stuck { box-shadow: 0 6px 18px -12px rgba(23, 23, 26, .35); }

.catbar__scroll {
  display: flex; gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.catbar__scroll::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all .16s;
}

.chip:active { transform: scale(.96); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px -4px rgba(217, 32, 42, .6); }

/* ==========================================================================
   Cards de produto
   ========================================================================== */

.group { padding: 0 16px; scroll-margin-top: 74px; }
.group + .group { margin-top: 26px; }

.group__head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }

.group__head h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
}

.group__head .count {
  font-size: 11px; font-weight: 700;
  background: var(--bg); color: var(--ink-3);
  padding: 3px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

.group__desc { font-size: 12.5px; color: var(--ink-3); margin: -6px 0 12px; }

.prod {
  display: flex; gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px;
  margin-bottom: 11px;
  position: relative;
  overflow: hidden;
  transition: transform .16s, box-shadow .16s;
  cursor: pointer;
}

.prod:active { transform: scale(.985); }
.prod:hover { box-shadow: var(--sh); }
.prod.is-hot { border-color: rgba(217, 32, 42, .3); }

.prod.is-hot::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--acai));
}

.prod__media { position: relative; flex-shrink: 0; }

.prod__img {
  width: 104px; height: 104px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: #fafafa;
}

.prod__off {
  position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .02em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  box-shadow: 0 3px 8px rgba(217, 32, 42, .38);
  white-space: nowrap;
}

.prod__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.prod__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }

.tag {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
}

.tag--hot { background: var(--brand-soft); color: var(--brand-dark); }
.tag--zero { background: var(--green-soft); color: #0d7a3c; }
.tag--new { background: #eef2ff; color: #4338ca; }
.tag--fit { background: var(--amber-soft); color: #a56508; }

.prod__title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }

.prod__desc {
  font-size: 12.5px; color: var(--ink-3);
  margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod__foot {
  margin-top: auto; padding-top: 9px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}

.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price__now { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price__now.is-promo { color: var(--brand); }
.price__was { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.price__from { font-size: 11px; color: var(--ink-3); font-weight: 600; }

.addbtn {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  box-shadow: 0 4px 12px -4px rgba(217, 32, 42, .7);
  transition: transform .14s, background .14s;
}

.addbtn:active { transform: scale(.9); }
.addbtn:hover { background: var(--brand-dark); }

/* Destaques em carrossel */
.rail {
  display: flex; gap: 12px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar { display: none; }

.railcard {
  flex: 0 0 172px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  transition: transform .16s;
}

.railcard:active { transform: scale(.97); }
.railcard img { width: 100%; height: 124px; object-fit: cover; background: #fafafa; }
.railcard__body { padding: 10px 11px 12px; }
.railcard__title { font-size: 13.5px; font-weight: 700; line-height: 1.25; min-height: 34px; }
.railcard__price { margin-top: 7px; display: flex; align-items: baseline; gap: 6px; }
.railcard__price b { font-size: 15px; font-weight: 800; color: var(--brand); }
.railcard__price b i { font-size: 10.5px; font-weight: 600; font-style: normal; color: var(--ink-3); }
.railcard__price s { font-size: 11.5px; color: var(--ink-3); }

.railcard__flag {
  position: absolute; top: 9px; left: 9px;
  background: var(--brand); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 6px;
  text-transform: uppercase;
}

.railcard__flag.is-soft { background: var(--acai); }

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 15px; font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .13s, background .13s, opacity .13s;
  width: 100%;
}

.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(217, 32, 42, .8); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn--outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--sm { padding: 10px 14px; font-size: 13.5px; width: auto; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Stepper de quantidade */
.stepper {
  display: inline-flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}

.stepper button {
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--brand);
  font-size: 13px;
  transition: background .13s;
}

.stepper button:hover { background: #fff; }
.stepper button[disabled] { color: var(--ink-3); opacity: .5; pointer-events: none; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; font-size: 14.5px; }

/* ==========================================================================
   Barra do carrinho + navegação
   ========================================================================== */

.cartbar {
  position: fixed;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%) translateY(140%);
  width: min(100%, var(--maxw));
  padding: 10px 12px;
  z-index: 70;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.cartbar.is-open { transform: translateX(-50%) translateY(0); pointer-events: auto; }

.cartbar__inner {
  background: var(--brand);
  color: #fff;
  border-radius: var(--r);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-lg);
}

.cartbar__count {
  background: rgba(255, 255, 255, .22);
  border-radius: var(--r-xs);
  min-width: 30px; height: 30px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  padding: 0 6px;
}

.cartbar__label { flex: 1; font-size: 12px; opacity: .88; font-weight: 600; }
.cartbar__label b { display: block; font-size: 16px; opacity: 1; font-weight: 800; letter-spacing: -.02em; }
.cartbar__cta { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 7px; }

.tabbar {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--maxw));
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 80;
}

.tabbar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  font-size: 10.5px; font-weight: 600;
  color: var(--ink-3);
  transition: color .14s;
}

.tabbar a i { font-size: 18px; }
.tabbar a.active { color: var(--brand); }
.tabbar .dot { position: relative; }

.tabbar .dot__badge {
  position: absolute; top: -5px; right: -9px;
  background: var(--brand); color: #fff;
  min-width: 17px; height: 17px;
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
}

/* ==========================================================================
   Formulários
   ========================================================================== */

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field label .opt { font-weight: 500; color: var(--ink-3); }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field input::placeholder, .field textarea::placeholder { color: #b8b8bf; }
.field.is-error input, .field.is-error select { border-color: var(--brand); background: #fff8f8; }

.field__err {
  display: none;
  font-size: 11.5px; font-weight: 600;
  color: var(--brand);
  margin-top: 5px;
}

.field.is-error .field__err { display: block; }

.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; min-width: 0; }
.field-row .w-30 { flex: 0 0 32%; }
.field-row .w-40 { flex: 0 0 42%; }

/* Opções selecionáveis */
.optlist { display: flex; flex-direction: column; gap: 9px; }

.opt-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.opt-card:hover { border-color: #d8d8de; }
.opt-card.is-on { border-color: var(--brand); background: var(--brand-soft); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }

.opt-card__ico {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: var(--r-xs);
  background: var(--bg);
  display: grid; place-items: center;
  font-size: 15px; color: var(--ink-2);
}

.opt-card.is-on .opt-card__ico { background: #fff; color: var(--brand); }
.opt-card__body { flex: 1; min-width: 0; display: block; }
.opt-card__title { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.opt-card__sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.opt-card__price { font-size: 13.5px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
.opt-card__price.free { color: var(--green); }

.radio-mark {
  width: 21px; height: 21px; flex-shrink: 0;
  border-radius: var(--r-pill);
  border: 2px solid #d3d3da;
  display: grid; place-items: center;
  transition: all .15s;
}

.opt-card.is-on .radio-mark { border-color: var(--brand); background: var(--brand); }
.radio-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.opt-card.is-on .radio-mark::after { transform: scale(1); }

.check-mark {
  width: 21px; height: 21px; flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid #d3d3da;
  display: grid; place-items: center;
  color: #fff; font-size: 10px;
  transition: all .15s;
}

.opt-card.is-on .check-mark { border-color: var(--brand); background: var(--brand); }
.opt-card.is-disabled { opacity: .42; pointer-events: none; }

/* ==========================================================================
   Blocos / listas
   ========================================================================== */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin: 0 16px 14px;
}

.panel--flush { padding: 0; overflow: hidden; }

.panel__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}

.panel__head h3 { font-size: 15.5px; font-weight: 700; flex: 1; }
.panel__head .step-n {
  width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}

.rowline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 7px 0;
}

.rowline span { color: var(--ink-2); }
.rowline b { font-weight: 700; }
.rowline.is-free b { color: var(--green); }
.rowline.is-discount b { color: var(--green); }

.rowline--total {
  border-top: 1px dashed var(--line);
  margin-top: 8px; padding-top: 13px;
  font-size: 16px;
}

.rowline--total span { color: var(--ink); font-weight: 700; }
.rowline--total b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }

.divider { height: 1px; background: var(--line); margin: 14px 0; }

.notice {
  display: flex; gap: 10px;
  background: var(--amber-soft);
  border: 1px solid rgba(245, 165, 36, .3);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 12.5px;
  color: #8a5306;
  line-height: 1.45;
}

.notice i { margin-top: 2px; }
.notice--green { background: var(--green-soft); border-color: rgba(18, 161, 80, .25); color: #0d7a3c; }
.notice--brand { background: var(--brand-soft); border-color: rgba(217, 32, 42, .2); color: var(--brand-dark); }

/* Item do carrinho */
.citem {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.citem:last-child { border-bottom: 0; }
.citem__img { width: 66px; height: 66px; border-radius: var(--r-xs); object-fit: cover; flex-shrink: 0; background: #fafafa; }
.citem__body { flex: 1; min-width: 0; }
.citem__title { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.citem__opts { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.citem__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.citem__price { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.citem__rm { font-size: 12px; color: var(--ink-3); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.citem__rm:hover { color: var(--brand); }

/* Estado vazio */
.empty { text-align: center; padding: 60px 32px; }
.empty i { font-size: 46px; color: #d8d8de; margin-bottom: 16px; display: block; }
.empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty p { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; line-height: 1.5; }

/* ==========================================================================
   Avaliações
   ========================================================================== */

.ratingbox { display: flex; gap: 18px; align-items: center; }
.ratingbox__score { text-align: center; flex-shrink: 0; }
.ratingbox__score b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1; }
.ratingbox__stars { color: var(--amber); font-size: 12px; margin-top: 5px; letter-spacing: 1px; }
.ratingbox__score small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.ratingbox__bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rbar { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink-3); }
.rbar__track { flex: 1; height: 5px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.rbar__fill { height: 100%; background: var(--amber); border-radius: var(--r-pill); }

.review { display: flex; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }
.review__av { width: 38px; height: 38px; border-radius: var(--r-pill); object-fit: cover; flex-shrink: 0; }
.review__name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.review__name small { font-size: 10.5px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 6px; border-radius: 5px; }
.review__stars { color: var(--amber); font-size: 10.5px; margin: 3px 0 5px; letter-spacing: 1px; }
.review__text { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.review__when { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

/* ==========================================================================
   Selos de confiança
   ========================================================================== */

.trustgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }

.trust {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 10px;
  text-align: center;
}

.trust i { font-size: 19px; color: var(--brand); display: block; margin-bottom: 7px; }
.trust b { font-size: 12px; font-weight: 700; display: block; line-height: 1.25; }
.trust small { font-size: 10.5px; color: var(--ink-3); display: block; margin-top: 3px; line-height: 1.3; text-wrap: balance; }

/* ==========================================================================
   Progresso do checkout
   ========================================================================== */

.steps { display: flex; align-items: center; gap: 6px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.steps__item { flex: 1; text-align: center; }
.steps__dot {
  width: 26px; height: 26px; margin: 0 auto 5px;
  border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink-3);
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  transition: all .2s;
}
.steps__item.is-done .steps__dot { background: var(--green); border-color: var(--green); color: #fff; }
.steps__item.is-now .steps__dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.steps__label { font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.steps__item.is-now .steps__label { color: var(--brand); }
.steps__item.is-done .steps__label { color: var(--ink-2); }

/* Rastreio do pedido */
.track { position: relative; padding-left: 30px; }
.track::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.track__item { position: relative; padding: 11px 0; }
.track__item::before {
  content: ""; position: absolute; left: -25px; top: 15px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
}
.track__item.is-on::before { background: var(--green); border-color: var(--green); }
.track__item.is-now::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.track__t { font-size: 14px; font-weight: 700; }
.track__item:not(.is-on):not(.is-now) .track__t { color: var(--ink-3); font-weight: 600; }
.track__d { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

/* ==========================================================================
   Sheet / Modal
   ========================================================================== */

.sheet-bg {
  position: fixed; inset: 0;
  background: rgba(23, 23, 26, .5);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .24s;
}

.sheet-bg.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: min(100%, var(--maxw));
  max-height: 86vh;
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  z-index: 210;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.sheet.is-open { transform: translateX(-50%) translateY(0); }
.sheet__grab { width: 38px; height: 4px; background: var(--line); border-radius: var(--r-pill); margin: 10px auto 4px; flex-shrink: 0; }
.sheet__head { padding: 8px 20px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sheet__head h3 { font-size: 17px; font-weight: 700; }
.sheet__head p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.sheet__body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.sheet__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); flex-shrink: 0; }

/* ==========================================================================
   Toast
   ========================================================================== */

.toasts {
  position: fixed; top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: min(92%, 420px);
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--ink); color: #fff;
  border-radius: var(--r-sm);
  padding: 12px 15px;
  font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--sh-lg);
  animation: toastIn .32s cubic-bezier(.22, 1, .36, 1);
}

.toast.is-ok { background: #0f7f42; }
.toast.is-err { background: var(--brand-dark); }
.toast i { font-size: 15px; }

@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96) } to { opacity: 1; transform: none } }

/* ==========================================================================
   Rodapé
   ========================================================================== */

.foot { padding: 26px 16px 24px; text-align: center; }
.foot img { width: 52px; margin: 0 auto 12px; opacity: .85; }
.foot p { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.foot .links { display: flex; justify-content: center; gap: 14px; margin: 12px 0 10px; }
.foot .links a { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

/* ==========================================================================
   Página de produto
   ========================================================================== */

.pdp__hero {
  background: var(--surface);
  padding: 8px 0 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.pdp__hero img { width: min(74%, 300px); margin: 0 auto; border-radius: var(--r); }

.pdp__info { background: var(--surface); padding: 0 16px 18px; border-bottom: 8px solid var(--bg); }
.pdp__title { font-family: var(--font-display); font-size: 29px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.pdp__desc { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }
.pdp__price { display: flex; align-items: baseline; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.pdp__price .price__from { font-size: 12.5px; }
.pdp__price b { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.pdp__price s { font-size: 15px; color: var(--ink-3); }

.pdp__price .save {
  font-size: 11px; font-weight: 800;
  background: var(--green-soft); color: #0d7a3c;
  padding: 4px 9px; border-radius: var(--r-pill);
}

.optgroup { background: var(--surface); border-bottom: 8px solid var(--bg); padding: 16px; }

.optgroup__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.optgroup__head h3 { font-size: 15.5px; font-weight: 700; }
.optgroup__head p { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.badge-req {
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px; border-radius: 5px;
  background: var(--ink); color: #fff;
  flex-shrink: 0; margin-left: auto;
}

.badge-req.is-opt { background: var(--bg); color: var(--ink-3); }
.badge-req.is-done { background: var(--green); }

.pdp__bar {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--maxw));
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
  z-index: 90;
  box-shadow: 0 -6px 24px -14px rgba(23, 23, 26, .35);
}

.pdp__bar .btn { flex: 1; }

/* Grade de complementos compacta */
.chipgrid { display: flex; flex-wrap: wrap; gap: 8px; }

.chipsel {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 8px 13px;
  font-size: 13px; font-weight: 600;
  transition: all .15s;
  cursor: pointer;
}

.chipsel input { position: absolute; opacity: 0; pointer-events: none; }
.chipsel.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.chipsel.is-disabled { opacity: .4; pointer-events: none; }
.chipsel i { font-size: 10px; opacity: 0; transition: opacity .15s; }
.chipsel.is-on i { opacity: 1; }
.chipsel .plus { font-size: 11px; font-weight: 700; color: var(--brand); }

/* ==========================================================================
   PIX
   ========================================================================== */

.pixbox { text-align: center; }
.pixbox__qr { width: 190px; height: 190px; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; background: #fff; }
.pixbox__code {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 11px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--ink-2);
  word-break: break-all;
  text-align: left;
  line-height: 1.5;
  max-height: 88px;
  overflow: hidden;
}

.timer {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   História de franqueado
   ========================================================================== */

.story { overflow: hidden; }
.story__cover { width: 100%; display: block; background: var(--bg); }
.story__body { padding: 16px; }

.story__kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand);
}

.story__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; line-height: 1.12;
  text-transform: uppercase; letter-spacing: .01em;
  margin: 5px 0 10px;
}

.story__lead { font-size: 14px; line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.story__more p { font-size: 13.5px; line-height: 1.62; color: var(--ink-2); margin-top: 12px; }
.story__more q { font-style: italic; color: var(--ink); }
.story__photo { width: 100%; border-radius: var(--r-sm); margin-top: 14px; display: block; }

/* ==========================================================================
   Utilidades
   ========================================================================== */

.mt-0 { margin-top: 0 } .mt-8 { margin-top: 8px } .mt-14 { margin-top: 14px } .mt-20 { margin-top: 20px }
.mb-0 { margin-bottom: 0 } .mb-8 { margin-bottom: 8px } .mb-16 { margin-bottom: 16px }
.px-16 { padding-left: 16px; padding-right: 16px }
.text-c { text-align: center }
.muted { color: var(--ink-3) }
.small { font-size: 12px }
.bold { font-weight: 700 }
.flex { display: flex } .between { justify-content: space-between } .center { align-items: center } .gap-8 { gap: 8px } .gap-12 { gap: 12px }

@media (min-width: 641px) {
  body { background: #e9e9ee; }
  .shell { box-shadow: 0 0 60px rgba(23, 23, 26, .09); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
