/* ============================================================
   VITOLA v2 — redesign anti-slop
   Rotulo de charuto / catalogo impresso, nao "luxo IA"
   Libre Caslon Display + Hanken Grotesk. Sem mono, sem
   maiuscula-espacada, sem dourado-gradiente, sem simbolos unicode.
   ============================================================ */

:root {
  --ink:        #17120D;
  --ink-2:      #1B150E;
  --panel:      #201910;
  --panel-2:    #271F14;
  --panel-3:    #2F2517;
  --line:       #3B2E1F;
  --line-soft:  #2C2216;

  --cream:      #ECE2D0;
  --cream-soft: #C3B49C;
  --muted:      #8B7A62;
  --muted-deep: #6A5C48;

  --oxblood:    #8E3129;
  --oxblood-hi: #AC4436;
  --ember:      #B4632F;
  --brass:      #A6884D;   /* usado como tinta plana, raramente */

  --ready:      #94A163;
  --warn:       #BF8A3C;
  --risk:       #BE4E3E;

  --display: "Libre Caslon Text", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --app-w: 440px;
  --tab-h: 72px;
  --r: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  font-family: var(--body);
  background: #0C0906;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% -5%, rgba(142,49,41,.12), transparent 60%),
    radial-gradient(55% 40% at 90% 105%, rgba(180,99,47,.08), transparent 60%),
    #0C0906;
}
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- SHELL ---------- */
.app {
  position: relative; z-index: 1;
  width: min(var(--app-w), 100vw);
  height: 100dvh; max-height: 100dvh;
  margin: 0 auto;
  background: var(--ink);
  overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 480px) {
  .app {
    height: min(920px, 96dvh); margin: max(0px, calc((100dvh - 920px)/2)) auto;
    border-radius: 14px;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.85), 0 0 0 1px var(--line-soft);
  }
}

.screen { display: none; flex-direction: column; height: 100%; min-height: 0; }
.screen.is-active { display: flex; animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 24px calc(var(--tab-h) + 28px); -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { width: 0; }
.scroll--flush { padding: 0 0 calc(var(--tab-h) + 28px); }

/* ---------- LABEL util (substitui o mono maiusculo) ---------- */
.label, .kv, .micro, .greet__eyebrow, .editorial__eyebrow, .pairing__for,
.dm-l, .meter__l, .stock-item__meta, .chip__k, .ccard__kv, .curator-sign,
.tab span, .add-hint__s, .count, .pulse-stat__l, .alt__l, .tonight__badge,
.pairing__strat {
  font-family: var(--body);
  letter-spacing: .01em;
  text-transform: none;
}

/* ---------- TOPBAR ---------- */
.topbar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 16px; padding-top: max(22px, env(safe-area-inset-top)); }
.topbar--page { border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; }
.brandmark { display: flex; align-items: center; gap: 9px; }
.brandmark__img { height: 40px; width: auto; display: block; }
.brandmark__logo {
  font-family: var(--display); font-weight: 400; font-size: 14px; color: var(--cream);
  height: 32px; padding: 0 8px; display: grid; place-items: center; letter-spacing: .04em;
  border: 1px solid var(--brass); border-radius: 3px; line-height: 1;
}
.brandmark__word { font-family: var(--display); font-size: 22px; letter-spacing: .01em; }
.page-title { font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: .01em; }

.avatar { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; background: transparent; border: 1px solid var(--line); color: var(--cream-soft); font-family: var(--display); font-size: 13px; }
.icon-btn { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--cream-soft); cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--brass); color: var(--cream); }

/* ---------- INICIO ---------- */
.greet { padding: 16px 0 24px; }
.greet__eyebrow { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.greet__title { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1.02; letter-spacing: -.005em; }
.greet__note { margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 30em; }

.tonight { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.tonight__media { position: relative; aspect-ratio: 4/3.4; overflow: hidden; background: #0e0b08; }
.tonight__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.tonight__badge {
  position: absolute; top: 15px; left: 15px; color: var(--cream);
  font-size: 11.5px; font-weight: 500; background: rgba(23,18,13,.7);
  backdrop-filter: blur(4px); padding: 6px 11px; border-radius: 3px;
  border: 1px solid rgba(166,136,77,.35);
}
.tonight__body { padding: 22px 22px 24px; }
.kv { font-size: 12px; font-weight: 600; color: var(--ember); letter-spacing: .02em; }
.tonight__name { font-family: var(--display); font-size: 29px; font-weight: 400; line-height: 1.06; margin: 8px 0 16px; }

.curator-voice { font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--cream-soft); }
.curator-sign { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.curator-sign__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--oxblood-hi); }
.curator-sign--lg { font-size: 12.5px; color: var(--ember); font-weight: 600; }

.btn-primary {
  margin-top: 22px; width: 100%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--cream);
  padding: 15px; border: none; border-radius: 5px; background: var(--oxblood);
  transition: background .18s;
}
.btn-primary:hover { background: var(--oxblood-hi); }
.btn-primary svg { width: 15px; height: 15px; transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.pair-strip { margin-top: 14px; display: flex; align-items: center; gap: 15px; cursor: pointer; padding: 13px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--panel); transition: border-color .2s; }
.pair-strip:hover { border-color: var(--brass); }
.pair-strip__img { width: 72px; height: 72px; border-radius: 5px; overflow: hidden; flex: none; border: 1px solid var(--line); }
.pair-strip__img img { width: 100%; height: 100%; object-fit: cover; }
.pair-strip__txt { flex: 1; }
.micro { font-size: 11.5px; color: var(--muted); }
.micro--brass { color: var(--ember); margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; }
.micro--brass svg { width: 12px; height: 12px; }
.pair-strip__drink { font-family: var(--display); font-size: 20px; margin: 3px 0; }

/* ---------- section rule ---------- */
.section-label { display: flex; align-items: baseline; gap: 14px; margin: 32px 0 18px; }
.section-label > span:first-child { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--cream-soft); }
.section-label__line { flex: 1; height: 1px; background: var(--line); align-self: center; }
.count { font-size: 12px; color: var(--muted); }

/* pulse */
.pulse { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 20px; }
.pulse__row { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.pulse-stat { display: flex; flex-direction: column; gap: 7px; padding-right: 12px; }
.pulse-stat:not(:last-child) { border-right: 1px solid var(--line-soft); }
.pulse-stat__n { font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.pulse-stat__n small { font-size: 16px; color: var(--muted); }
.pulse-stat__n--warn { color: var(--warn); }
.pulse-stat__l { font-size: 11px; color: var(--muted); line-height: 1.35; }
.dotline { height: 2px; margin-top: 2px; width: 54%; }
.dotline--ready { background: var(--ready); }
.dotline--ok { background: var(--ember); }
.dotline--warn { background: var(--warn); }
.pulse__note { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.5; color: var(--cream-soft); }

/* ---------- HUMIDOR ---------- */
.add-hint { display: flex; align-items: center; gap: 15px; cursor: pointer; margin-top: 20px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.add-hint:hover { border-color: var(--brass); }
.add-hint__ico { width: 42px; height: 42px; flex: none; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ember); }
.add-hint__t { font-family: var(--display); font-size: 19px; }
.add-hint__s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.add-hint__arrow { color: var(--muted); display: flex; }
.add-hint__arrow svg { width: 16px; height: 16px; }

.search { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: border-color .2s; }
.search:focus-within { border-color: var(--brass); }
.search__icon { width: 18px; height: 18px; flex: none; color: var(--muted); }
.search__input { flex: 1; border: none; background: transparent; color: var(--cream); font-family: var(--body); font-size: 15px; padding: 13px 0; outline: none; }
.search__input::placeholder { color: var(--muted-deep); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.preco-old { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 5px; font-size: .86em; }
.preco-off { color: var(--ember); }
/* portão de idade 18+ */
.agegate { position: fixed; inset: 0; z-index: 100001; background: #100c08; display: grid; place-items: center; padding: 26px; }
.agegate__box, .agegate__deny { max-width: 400px; text-align: center; }
.agegate__logo { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--brass); border-radius: 4px; font-family: var(--display); color: var(--cream); font-size: 17px; margin-bottom: 22px; }
.agegate__logo-img { height: 68px; width: auto; margin-bottom: 26px; }
.agegate__title { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.12; color: var(--cream); margin-bottom: 12px; }
.agegate__sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 24px; }
.agegate__btns { display: flex; flex-direction: column; gap: 10px; }
.agegate__no { background: none; border: 1px solid var(--line); color: var(--soft); padding: 12px; border-radius: 8px; font-family: var(--body); font-size: 15px; cursor: pointer; }
.agegate__fine { color: var(--muted-deep); font-size: 12px; margin-top: 20px; line-height: 1.5; }
.agegate__fine a { color: var(--brass); }
/* consentimento no cadastro */
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; margin: 2px 0 4px; cursor: pointer; }
.consent input { margin-top: 2px; flex: none; accent-color: var(--oxblood); }
.consent a { color: var(--brass); }
.ck-legal { color: var(--muted-deep); border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: 4px; }
/* nota legal no rodapé do início */
.legal { margin-top: 30px; padding: 20px 0 8px; border-top: 1px solid var(--line-soft); text-align: center; }
.legal__warn { color: var(--muted-deep); font-size: 11.5px; line-height: 1.5; margin-bottom: 10px; }
.legal__link { color: var(--muted); font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.legal__cnpj { color: var(--muted-deep); font-size: 11px; margin-top: 12px; letter-spacing: .02em; }
/* lista de sugestoes de endereco (autocomplete proprio, controlado por nos) */
.addr-sug { list-style: none; margin: -6px 0 11px; padding: 4px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px; max-height: min(42dvh, 320px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.addr-sug[hidden] { display: none; }
.addr-sug li { padding: 12px; color: var(--cream); font-size: 14px; line-height: 1.3; cursor: pointer; border-radius: 6px; }
.addr-sug li:active { background: var(--panel-2); }
.addr-sug__m { display: block; color: var(--cream); }
.addr-sug__s { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.seg { display: flex; gap: 0; margin: 24px 0 8px; border-bottom: 1px solid var(--line); }
.seg__btn { flex: none; padding: 10px 2px; margin-right: 22px; border: none; background: transparent; color: var(--muted); font-family: var(--body); font-weight: 500; font-size: 14px; cursor: pointer; position: relative; }
.seg__btn.is-on { color: var(--cream); }
.seg__btn.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--oxblood-hi); }

.stock { list-style: none; display: flex; flex-direction: column; margin-top: 8px; }
.stock-item { display: flex; align-items: center; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: opacity .15s; }
.stock-item:hover { opacity: .78; }
.stock-item__thumb { width: 54px; height: 54px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #0e0b08; }
.stock-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.stock-item__main { flex: 1; min-width: 0; }
.stock-item__name { font-family: var(--display); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-item__meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stock-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.qty { font-family: var(--display); font-size: 15px; color: var(--cream-soft); font-variant-numeric: tabular-nums; }
.status { font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status--ready { color: var(--ready); } .status--ready::before { background: var(--ready); }
.status--rest { color: var(--ember); } .status--rest::before { background: var(--ember); }
.status--risk { color: var(--risk); } .status--risk::before { background: var(--risk); }

/* ---------- CURADORIA ---------- */
.editorial { position: relative; margin-top: 18px; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/3.5; }
.editorial__img { width: 100%; height: 100%; object-fit: cover; }
.editorial__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: linear-gradient(0deg, rgba(12,9,6,.94) 6%, rgba(12,9,6,.25) 55%, transparent); }
.editorial__eyebrow { font-size: 12px; color: var(--ember); font-weight: 600; margin-bottom: 12px; }
.editorial__title { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.03; }
.editorial__lede { font-size: 14.5px; line-height: 1.55; color: var(--cream-soft); margin-top: 13px; max-width: 32ch; }

.cards { display: flex; flex-direction: column; }
.ccard { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: opacity .15s; }
.ccard:hover { opacity: .8; }
.ccard__num { font-family: var(--display); font-size: 15px; color: var(--muted); flex: none; width: 22px; padding-top: 4px; font-variant-numeric: tabular-nums; }
.ccard__thumb { width: 64px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #0e0b08; align-self: stretch; }
.ccard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ccard__body { flex: 1; min-width: 0; }
.ccard__kv { font-size: 11px; color: var(--ember); font-weight: 600; }
.ccard__name { font-family: var(--display); font-size: 20px; margin: 5px 0 8px; line-height: 1.08; }
.ccard__verdict { font-family: var(--display); font-style: italic; font-size: 14.5px; line-height: 1.45; color: var(--cream-soft); }
.ccard__foot { display: flex; align-items: baseline; gap: 12px; margin-top: 11px; }
.ccard__price { font-family: var(--display); font-size: 15px; color: var(--cream); font-variant-numeric: tabular-nums; }
.ccard__star { font-size: 11.5px; color: var(--muted); }

/* ---------- HARMONIZAR ---------- */
.harm-intro { font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--cream-soft); margin: 22px 0; }
.picker { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; scroll-snap-type: x mandatory; }
.picker::-webkit-scrollbar { height: 0; }
.chip { flex: none; display: flex; flex-direction: column; scroll-snap-align: start; width: 116px; cursor: pointer; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel); transition: border-color .2s; }
.chip.is-sel { border-color: var(--oxblood-hi); }
.chip.is-sel .chip__name { color: var(--cream); }
.chip__img { flex: none; aspect-ratio: 1; background: #0e0b08; border-bottom: 1px solid var(--line-soft); }
.chip__img img { width: 100%; height: 100%; object-fit: cover; }
.chip__name { font-family: var(--display); font-size: 14px; padding: 9px 11px 3px; line-height: 1.15; color: var(--cream-soft); }
.chip__k { font-size: 10.5px; color: var(--muted); padding: 0 11px 14px; }

.pairing { margin-top: 26px; }
.pairing__card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); animation: fade .4s ease; }
.pairing__hero { position: relative; aspect-ratio: 16/10; }
.pairing__hero img { width: 100%; height: 100%; object-fit: cover; }
.pairing__hero-grad { position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 3%, transparent 55%); }
.pairing__strat { position: absolute; top: 15px; left: 15px; font-size: 11px; font-weight: 600; color: var(--cream); background: var(--oxblood); padding: 5px 11px; border-radius: 3px; }
.pairing__inner { padding: 6px 22px 24px; margin-top: -34px; position: relative; }
.pairing__for { font-size: 12px; color: var(--muted); }
.pairing__drink { font-family: var(--display); font-size: 27px; line-height: 1.08; margin: 6px 0 14px; }
.pairing__why { font-size: 15px; line-height: 1.6; color: var(--cream-soft); }
.pairing__why b { color: var(--cream); font-weight: 400; font-style: italic; }
.alt { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.alt__l { font-size: 11.5px; color: var(--muted); width: 100%; }
.alt__pill { font-size: 13px; color: var(--cream-soft); padding: 6px 0; margin-right: 4px; border-bottom: 1px solid var(--line); }

.guard { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--oxblood); background: var(--panel); border-radius: 0 5px 5px 0; }
.guard__t { font-family: var(--display); font-style: italic; font-size: 14px; color: var(--ember); margin-bottom: 5px; }
.guard p { font-size: 13.5px; line-height: 1.5; color: var(--cream-soft); }

/* ---------- DETALHE ---------- */
.screen--detail .scroll { padding-top: 0; }
.detail-hero { position: relative; aspect-ratio: 3/3.3; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.detail-hero__grad { position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 4%, rgba(23,18,13,.05) 45%, rgba(23,18,13,.35)); }
.back-btn { position: absolute; top: max(18px, env(safe-area-inset-top)); left: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(236,226,208,.25); background: rgba(23,18,13,.55); backdrop-filter: blur(6px); color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.back-btn svg { width: 17px; height: 17px; }
.detail-hero__cap { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.detail-hero__name { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.02; margin-top: 8px; }

.detail-body { padding: 26px 24px 0; }
.verdict { border: 1px solid var(--line); border-left: 2px solid var(--ember); border-radius: 0 5px 5px 0; padding: 18px 20px; }
.verdict__text { font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--cream); margin-top: 11px; }

.profile { display: flex; flex-direction: column; gap: 14px; }
.meter { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; }
.meter__l { font-size: 12px; color: var(--muted); }
.meter__track { height: 4px; background: var(--panel-3); overflow: hidden; }
.meter__track i { display: block; height: 100%; width: var(--v); background: var(--oxblood); }
.meter__v { font-family: var(--display); font-size: 14px; color: var(--cream-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 18px; }
.tag { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--cream-soft); }
.tag:not(:last-child)::after { content: ""; }

.detail-pair { display: flex; gap: 16px; }
.detail-pair img { width: 88px; height: 88px; border-radius: 4px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.detail-pair__drink { font-family: var(--display); font-size: 21px; margin: 4px 0 6px; }
.detail-pair__why { font-size: 13.5px; line-height: 1.5; color: var(--cream-soft); }

.detail-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0 8px; border-top: 1px solid var(--line-soft); }
.detail-meta > div { padding: 16px 0; display: flex; flex-direction: column; gap: 5px; border-bottom: 1px solid var(--line-soft); }
.detail-meta > div:nth-child(odd) { border-right: 1px solid var(--line-soft); padding-right: 16px; }
.detail-meta > div:nth-child(even) { padding-left: 16px; }
.dm-l { font-size: 11.5px; color: var(--muted); }
.dm-v { font-family: var(--display); font-size: 17px; }
.dm-v--ready { color: var(--ready); }

/* ---------- TABBAR ---------- */
.tabbar { flex: none; height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr); background: var(--ink); border-top: 1px solid var(--line-soft); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: none; border: none; cursor: pointer; color: var(--muted-deep); transition: color .2s; padding-top: 12px; }
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 11px; }
.tab.is-active { color: var(--cream); }
.tab.is-active svg { color: var(--ember); }

/* ============================================================
   v3 — LOJA: catalogo, detalhe-compra, carrinho
   ============================================================ */

/* cart button + badges */
.cart-btn { position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--cream-soft); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.cart-btn:hover { border-color: var(--brass); color: var(--cream); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__count, .tab__badge {
  position: absolute; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--oxblood); color: var(--cream);
  font-family: var(--body); font-size: 10px; font-weight: 700;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.cart-btn__count { top: -5px; right: -5px; }
.tab--cart { position: relative; }
.tab__badge { top: 7px; left: 50%; margin-left: 8px; }

.seemore { margin-left: auto; background: none; border: none; color: var(--ember); font-family: var(--body); font-size: 12.5px; cursor: pointer; }

/* home reel */
.reel { display: flex; gap: 13px; overflow-x: auto; margin: 0 -24px; padding: 0 24px 10px; scroll-snap-type: x mandatory; }
.reel::-webkit-scrollbar { height: 0; }
.reelcard { flex: none; width: 132px; scroll-snap-align: start; background: none; border: none; padding: 0; cursor: pointer; text-align: left; }
.reelcard__img { aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 9px; background: #0e0b08; }
.reelcard__img img { width: 100%; height: 100%; object-fit: cover; }
.reelcard__name { font-family: var(--display); font-size: 14.5px; line-height: 1.15; color: var(--cream); }
.reelcard__price { font-family: var(--display); font-size: 13.5px; color: var(--ember); margin-top: 3px; }

/* catálogo */
.catalog { list-style: none; display: flex; flex-direction: column; margin-top: 6px; }
.cat-item { display: flex; gap: 16px; padding: 20px 2px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.cat-item:hover .cat-item__name { color: var(--cream); }
.cat-item__thumb { width: 74px; height: 74px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #0e0b08; }
.cat-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-item__main { flex: 1; min-width: 0; }
.cat-item__name { font-family: var(--display); font-size: 19px; line-height: 1.1; }
.cat-item__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cat-item__verdict { font-family: var(--display); font-style: italic; font-size: 13.5px; line-height: 1.4; color: var(--cream-soft); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-item__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex: none; gap: 12px; }
.cat-item__price { font-family: var(--display); font-size: 16px; color: var(--cream); font-variant-numeric: tabular-nums; }
.cat-item__add { font-size: 12px; color: var(--ember); border: 1px solid var(--line); padding: 6px 12px; border-radius: 4px; white-space: nowrap; transition: border-color .2s, background .2s; }
.cat-item__add:hover { border-color: var(--ember); background: rgba(142,49,41,.1); }

/* botões extra */
.btn-primary--wide { margin-top: 26px; width: 100%; }
.btn-ghost { margin-top: 10px; width: 100%; padding: 15px; background: transparent; color: var(--cream); border: 1px solid var(--line); border-radius: 10px; font-family: var(--body); font-size: 15px; font-weight: 500; cursor: pointer; }
.btn-ghost:hover { border-color: var(--brass); }
.btn-primary[disabled], .btn-ghost[disabled] { opacity: .55; cursor: default; }
/* tela do PIX */
.pix-qr { display: block; width: 220px; height: 220px; margin: 18px auto 12px; border-radius: 10px; background: #fff; padding: 8px; }
.pix-total { text-align: center; font-family: var(--display); font-size: 20px; color: var(--brass); margin-bottom: 16px; }
.pix-code { width: 100%; height: 74px; resize: none; margin-top: 12px; padding: 11px 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--soft); font-size: 12px; font-family: var(--body); word-break: break-all; }
.pix-wait { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.pix-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ready); animation: pixpulse 1.2s ease-in-out infinite; }
@keyframes pixpulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.pix-ok { width: 62px; height: 62px; margin: 6px auto 14px; border-radius: 50%; background: rgba(148,161,99,.18); color: var(--ready); display: grid; place-items: center; font-size: 32px; }
.btn-primary--buy { margin-top: 0; width: auto; padding: 13px 22px; font-size: 14px; }

/* barra de compra no detalhe */
.buybar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.buybar__price { font-family: var(--display); font-size: 27px; color: var(--cream); font-variant-numeric: tabular-nums; }

/* carrinho */
.cart-list { list-style: none; display: flex; flex-direction: column; margin-top: 8px; }
.cart-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart-item__thumb { width: 64px; height: 64px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__main { flex: 1; min-width: 0; }
.cart-item__name { font-family: var(--display); font-size: 18px; line-height: 1.1; }
.cart-item__price { font-family: var(--display); font-size: 15px; color: var(--ember); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; flex: none; }
.stepper button { width: 34px; height: 34px; background: transparent; border: none; color: var(--cream); font-size: 17px; cursor: pointer; transition: background .15s; }
.stepper button:hover { background: var(--panel-2); }
.stepper span { min-width: 30px; text-align: center; font-family: var(--display); font-size: 15px; font-variant-numeric: tabular-nums; }
.cart-foot { margin-top: 24px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total > span:first-child { font-size: 14px; color: var(--muted); }
.cart-total__v { font-family: var(--display); font-size: 27px; color: var(--cream); font-variant-numeric: tabular-nums; }
.cart-note { font-size: 12.5px; color: var(--muted); margin-top: 9px; line-height: 1.5; }
#checkout { display: flex; align-items: center; justify-content: center; gap: 9px; }
#checkout svg { flex: none; }
.cart-empty { text-align: center; padding: 64px 12px; }
.cart-empty__t { font-family: var(--display); font-size: 23px; }
.cart-empty__s { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* toast */
.flash { position: absolute; bottom: calc(var(--tab-h) + 18px); left: 50%; transform: translateX(-50%) translateY(10px); background: var(--cream); color: var(--ink); padding: 11px 18px; border-radius: 6px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; z-index: 50; box-shadow: 0 12px 32px -10px rgba(0,0,0,.7); }
.flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   v4 — API: harmonizacao 4 camadas, modais, estado vazio
   ============================================================ */
.harm-layer { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.harm-layer:first-child { border-top: 0; }
.harm-layer--col { display: block; }
.harm-thumb { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.harm-layer__body { flex: 1; min-width: 0; }
.gastro-strip { display: flex; gap: 12px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.gastro-strip::-webkit-scrollbar { height: 0; }
.gastro-item { flex: none; width: 86px; text-align: center; }
.gastro-item img, .gastro-ph { width: 86px; height: 86px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); display: block; }
.gastro-ph { background: var(--panel-2); }
.gastro-item span { display: block; font-size: 11px; color: var(--cream-soft); margin-top: 6px; line-height: 1.25; }
.harm-layer__k { font-family: var(--body); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ember); font-weight: 600; margin-bottom: 5px; }
.harm-layer__drink { font-family: var(--display); font-size: 19px; line-height: 1.15; margin-bottom: 4px; }
.harm-layer__why { font-size: 14px; line-height: 1.55; color: var(--cream-soft); }
.harm-layer__alt { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-family: var(--display); font-style: italic; font-size: 15px; }
.empty-hero { text-align: center; padding: 50px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.empty-hero__t { font-family: var(--display); font-size: 22px; }
.empty-hero__s { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

.seemore { margin-left: auto; background: none; border: none; color: var(--ember); font-family: var(--body); font-size: 12.5px; cursor: pointer; }

/* modais */
.modal { position: absolute; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(10,7,4,.6); backdrop-filter: blur(3px); animation: fade .25s ease; }
.modal__sheet { width: 100%; max-height: 92%; overflow-y: auto; background: var(--panel); border-top-left-radius: 18px; border-top-right-radius: 18px; border-top: 1px solid var(--line); padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); position: relative; animation: sheetUp .3s cubic-bezier(.2,.7,.2,1); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal__x { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.modal__title { font-family: var(--display); font-size: 24px; font-weight: 400; padding-right: 30px; }
.modal__sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; line-height: 1.5; }
.fld { width: 100%; padding: 13px 15px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--cream); font-family: var(--body); font-size: 15px; margin-bottom: 11px; }
.fld:focus { outline: none; border-color: var(--brass); }
.fld::placeholder { color: var(--muted-deep); }
/* campo obrigatorio nao preenchido ao tentar pagar */
.fld--erro { border-color: var(--risk); background: rgba(190,78,62,.08); }
.ck-erro { color: var(--risk); font-size: 13px; margin: -4px 0 10px; }
.fld-row { display: flex; gap: 11px; }
.fld-row .fld { flex: 1; }

/* checkout */
.ck-list { border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px 14px; margin-bottom: 16px; }
.ck-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--cream-soft); }
.ck-item:last-child { border-bottom: 0; }
.ck-total { font-family: var(--display); font-size: 17px; color: var(--cream); }
.ck-label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ck-opt { text-transform: none; letter-spacing: 0; color: var(--muted-deep); font-style: italic; }
.cad-hint { font-size: 11.5px; color: var(--muted); margin: -5px 0 11px; line-height: 1.4; }
.est-badge { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.est-badge.est-low { color: var(--ember); }
.est-badge.est-low::before { content: "\1F525  "; }
.buybar .est-badge { margin-top: 4px; }
select.fld { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238B7A62' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
select.fld option { background: var(--panel-2); color: var(--cream); }
.ck-frete { color: var(--muted); }
.ck-frete small { color: var(--muted-deep); font-size: 11.5px; }
.ck-grand span:last-child { color: var(--brass); }
.ck-fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* bloco "A caixa" no detalhe */
.box-teaser { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.box-teaser img { width: 100%; display: block; aspect-ratio: 4/3.4; object-fit: cover; }
.box-teaser__cap { padding: 14px 16px; font-family: var(--display); font-style: italic; font-size: 14.5px; color: var(--cream-soft); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
