/* ============================================================================
   screens.css — estilos por tela
   ========================================================================== */

/* ===================== LOGIN ===================== */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 22px 48px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* área de marca */
.login-brand { margin-bottom: 32px; }
.login-brand .pap-logo {
  height: 56px; width: auto;
  margin: 0 auto 22px; display: block;
  opacity: 0.92;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 0.88;
  font-size: clamp(56px, 15vw, 72px);
  margin: 0;
  background: linear-gradient(175deg, #fffdf7 10%, #c9c2b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .l2 { display: block; }
.wordmark-sub {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.wordmark-sub .rule { height: 1px; width: 40px; background: var(--line); }
.tagline {
  margin: 20px auto 0;
  max-width: 320px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* separador entre brand e form */
.login-divider {
  margin: 28px 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }

/* campos */
.field { position: relative; }
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
  padding-left: 2px;
}
.field input {
  width: 100%;
  background: rgba(255,253,248,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:hover { background: rgba(255,253,248,0.06); }
.field input:focus { outline: none; border-color: var(--gold); background: var(--bg-2); }
.field.invalid input { border-color: var(--t-tinto); }
.field-err { color: var(--t-rose); font-size: 12px; margin-top: 6px; padding-left: 2px; }

/* autocomplete CNPJ */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  z-index: 30;
  background: #181410;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-height: 230px;
  overflow-y: auto;
  box-shadow: 0 28px 56px rgba(0,0,0,0.65);
}
.ac-item {
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: var(--card-hi); }
.ac-item .ac-name { font-size: 14px; color: var(--ink); }
.ac-item .ac-cnpj { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ac-empty { padding: 14px 16px; color: var(--muted); font-size: 13px; }
.login-form .btn-primary { margin-top: 6px; width: 100%; padding-top: 17px; padding-bottom: 17px; }
.login-foot {
  margin-top: 24px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ===================== PAGE HEAD (mesas / vinhos) ===================== */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 28px;
  flex-wrap: wrap;
}
.page-head .titles h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 9vw, 64px);
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  line-height: 1;
}
.page-head .titles p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 300;
}

/* botão filtro */
.filter-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  flex: none;
}
.filter-btn:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter-btn.on { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }
.filter-btn .count {
  background: var(--gold); color: #12100d;
  border-radius: 999px; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 600; padding: 0 4px;
}

/* ===================== MESAS GRID ===================== */
.mesas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.8vw, 14px);
}

.mesa-card {
  position: relative;
  background: #ede8df;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  overflow: hidden;
  min-height: clamp(86px, 13vw, 116px);
  transition: border-color .25s, background .25s, transform .22s, box-shadow .22s;
}
.mesa-card:hover {
  border-color: rgba(0,0,0,0.20);
  background: #f5f1e9;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.mesa-card .mesa-num {
  font-family: var(--serif);
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 500;
  line-height: 1;
  color: #1a1612;
  letter-spacing: -0.02em;
  min-width: clamp(60px, 14vw, 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  flex: none;
}

.mesa-card .mesa-divider {
  width: 1.5px;
  background: rgba(0,0,0,0.13);
  align-self: stretch;
  flex: none;
}

.mesa-card .mesa-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}
.mesa-card .mesa-logo-wrap img {
  max-height: clamp(90px, 10.5vw, 78px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: none;
  mix-blend-mode: normal;
  transition: opacity .22s;
}
.mesa-card:hover .mesa-logo-wrap img { opacity: 1; }

.mesa-card .mesa-name { display: none; }

.mesa-card .mesa-progress {
  position: absolute; bottom: 6px; right: 10px;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(26,22,18,0.38);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state .serif { font-size: 28px; color: var(--ink-soft); display: block; margin-bottom: 10px; }

/* ===================== VINHOS DA MESA ===================== */
.wines-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 4px 0 28px; flex-wrap: wrap;
}
.wines-head .supplier {
  display: flex; align-items: baseline; gap: 14px;
}
.wines-head .mesa-badge {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 60px);
  font-weight: 400; line-height: 1;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.wines-head .pipe {
  font-family: var(--serif);
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 400; line-height: 1;
  color: var(--muted-2);
}
.wines-head .sup-name {
  font-family: var(--serif);
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

/* subtítulo de progresso */
.wines-progress {
  margin: -16px 0 22px;
  font-size: 12.5px;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
}

.wines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2.5vw, 22px);
}
@media (min-width: 760px) { .wines-grid { grid-template-columns: repeat(3, 1fr); } }

.wine-card {
  position: relative;  /* contexto para o badge .evald */
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  transition: transform .22s;
}
.wine-card:hover { transform: translateY(-6px); }

/* garrafa flutua acima da plataforma */
.wine-card .bottle-wrap {
  width: 100%;
  height: clamp(185px, 27vw, 260px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 20px;
  margin-bottom: -22px;
  position: relative; z-index: 1;
  background: transparent;
  border: none;
  flex: none;
}
.wine-card .bottle-wrap img {
  height: 100%; width: auto; max-width: 62%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.72));
  transition: transform .28s ease;
}
.wine-card:hover .bottle-wrap img { transform: translateY(-8px) scale(1.03); }

/* plataforma off-white — contém tipo e nome */
.wine-card .wine-info {
  width: 100%;
  background: #d5d0c8;
  border-radius: 14px;
  padding: 30px 16px 18px;
  display: flex; flex-direction: column; gap: 5px;
  text-align: left;
  position: relative; z-index: 0;
}

.wine-card .wine-type {
  font-size: clamp(13px, 2vw, 15px);
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; margin-bottom: 3px;
}
.wine-card .wine-type .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.wine-card .wine-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 2.6vw, 21px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #1a1612;
  padding: 0; min-height: unset;
  display: block;
  text-wrap: balance;
}
.wine-card .wine-country {
  font-size: 10px; color: rgba(26,22,18,0.45); margin-top: 2px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* badge avaliado — flutua sobre a área da garrafa (top-right do card) */
.wine-card .evald {
  position: absolute; top: 10px; right: 10px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(10,9,8,0.72);
  border: 1px solid oklch(0.66 0.07 84 / 0.55);
  color: var(--gold);
  border-radius: 999px;
  padding: 3px 8px 3px 6px;
  font-size: 9.5px; letter-spacing: 0.10em; text-transform: uppercase;
}
.wine-card .evald .stars-mini { color: var(--gold); letter-spacing: 0; font-size: 10.5px; }

/* ===================== AVALIAÇÃO ===================== */
.eval {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 0;
}
@media (min-width: 900px) {
  .eval {
    grid-template-columns: 0.90fr 1.10fr;
    gap: clamp(28px, 5vw, 68px);
    align-items: start;
  }
}

.eval-bottle {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 0 16px;
}
@media (min-width: 900px) { .eval-bottle { position: sticky; top: 90px; } }

.eval-bottle img {
  height: clamp(260px, 44vh, 500px);
  width: auto; object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,0.72));
}
.eval-bottle .halo {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%,
    oklch(0.80 0.085 84 / 0.08), transparent 70%);
  z-index: -1;
}

.eval-content { max-width: 540px; }

/* cabeçalho: nome → fornecedor → tipo|país */
.eval-head { text-align: center; margin-bottom: 24px; }
.eval-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 10px;
  text-wrap: balance;
}
.eval-sup {
  font-family: var(--serif);
  font-size: clamp(17px, 2.8vw, 24px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.eval-meta {
  display: inline-flex; align-items: center; gap: 12px;
}
.eval-meta .type-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
}
.eval-meta .type-pill .swatch { width: 9px; height: 9px; border-radius: 50%; }
.eval-meta .pipe { color: var(--muted-2); font-size: 13px; }
.eval-meta .country { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

/* preço — linha com pontilhado */
.price-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 15px 0 16px;
  margin-bottom: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.price-row .lbl { font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-soft); flex: none; }
.price-row .dotfill { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--muted-2); transform: translateY(-3px); }
.price-row .val {
  font-family: var(--serif);
  font-size: clamp(22px, 3.8vw, 28px); font-weight: 600;
  color: var(--gold); flex: none; white-space: nowrap;
}
/* ficha técnica */
.ficha { margin: 18px 0 26px; display: flex; flex-direction: column; gap: 9px; }
.ficha .frow { margin: 0; font-size: 14.5px; line-height: 1.55; font-weight: 300; }
.ficha .frow .k { color: var(--ink); font-weight: 500; }
.ficha .frow .v { color: var(--ink-soft); }

/* blocos de avaliação */
.eval-block { margin-bottom: 28px; }
.eval-block .q {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.22;
  margin-bottom: 8px;
}
.eval-block .q .pencil {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; flex: none;
  transition: border-color .2s, color .2s, background .2s;
}
.eval-block .q .pencil:hover { border-color: var(--gold); color: var(--gold); }
.eval-block .sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* estrelas */
.stars { display: flex; gap: 8px; }
.stars button {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 36px; line-height: 1; color: var(--muted-2);
  transition: color .15s, transform .12s;
}
.stars.editable button:hover { transform: scale(1.14); color: var(--gold-dim); }
.stars button.on { color: var(--gold); }
.stars.locked button { cursor: default; }

/* sim / não */
.yn { display: flex; gap: 12px; }
.yn button {
  flex: 1; max-width: 160px;
  padding: 15px 0;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: var(--radius);
  font-family: var(--sans); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 13px;
  cursor: pointer;
  transition: all .18s;
}
.yn button:hover:not(.locked):not(.sel-yes):not(.sel-no) {
  border-color: var(--ink-soft); color: var(--ink);
}
.yn button.sel-yes { background: var(--ink); color: #12100d; border-color: var(--ink); }
.yn button.sel-no  { background: var(--t-tinto); color: #fff; border-color: var(--t-tinto); }
.yn button.locked  { cursor: default; }
.yn button.dim     { opacity: 0.32; }

.eval-err {
  color: var(--t-rose); font-size: 13px; margin: -8px 0 16px;
  display: flex; align-items: center; gap: 7px;
}
.eval-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.eval-actions .btn-primary { min-width: 180px; }
.eval-saved-note {
  color: var(--gold); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
}

/* ===================== FILTER SHEET ===================== */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6,5,4,0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: flex-start;
}
.sheet {
  margin-top: clamp(40px, 12vh, 110px);
  width: min(440px, calc(100% - 32px));
  background: #161210;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 40px 90px rgba(0,0,0,0.75);
  overflow: hidden;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.sheet-head h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0; }
.sheet-head .x {
  background: none; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; line-height: 1;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color .15s, background .15s;
}
.sheet-head .x:hover { color: var(--ink); background: var(--card); }
.sheet-body { padding: 8px 14px 6px; }
.type-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 13px 10px;
  background: none; border: none; border-radius: var(--radius);
  cursor: pointer; text-align: left;
  color: var(--ink-soft);
  transition: background .15s;
}
.type-opt:hover { background: var(--card); }
.type-opt .check {
  width: 21px; height: 21px; border-radius: 4px;
  border: 1.5px solid var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; font-size: 12px; color: #12100d;
  transition: background .15s, border-color .15s;
}
.type-opt.on .check { background: var(--gold); border-color: var(--gold); }
.type-opt .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.type-opt .label { font-size: 15.5px; flex: 1; }
.type-opt .qty { font-size: 12px; color: var(--muted); }
.sheet-foot {
  display: flex; gap: 10px; padding: 14px 18px 18px;
  border-top: 1px solid var(--line-soft);
}
.sheet-foot .btn { flex: 1; padding-top: 14px; padding-bottom: 14px; }
.sheet-foot .clear {
  background: none; border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--sans);
}
.sheet-foot .clear:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ===================== CONFIRM MODAL ===================== */
.confirm {
  width: min(400px, calc(100% - 32px));
  margin-top: clamp(80px, 20vh, 200px);
  background: #161210;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 28px 26px;
  text-align: center;
  box-shadow: 0 40px 90px rgba(0,0,0,0.75);
}
.confirm h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 10px; }
.confirm p { color: var(--ink-soft); font-size: 14.5px; font-weight: 300; margin: 0 0 26px; line-height: 1.6; }
.confirm .row { display: flex; gap: 10px; }
.confirm .row .btn { flex: 1; padding-top: 14px; padding-bottom: 14px; }

/* ===================== TOAST ===================== */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  z-index: 80;
  background: #181410; border: 1px solid oklch(0.66 0.07 84 / 0.45);
  color: var(--ink); padding: 13px 22px; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.08em; white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.65);
}
.toast .tick { color: var(--gold); }

/* ==========================================================================
   MOBILE REDESIGN
   Breakpoints: 759px = layout changes · 899px = avaliação single-column
   ========================================================================== */

/* ---- App Header -------------------------------------------------- */
@media (max-width: 759px) {
  .app-header {
    padding: 14px clamp(22px, 5vw, 44px);
    justify-content: flex-end;
    gap: 0;
  }
  /* hide centering spacers and invisible placeholders */
  .app-header .header-spacer { display: none; }
  .app-header span.back    { display: none; }
  .app-header .header-logo { height: 32px; }
  /* with real back button: back-left, logo-right */
  .app-header:has(button.back) { justify-content: space-between; }
}

/* ---- Page Head – Mesas ------------------------------------------ */
@media (max-width: 759px) {
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0 0 20px;
  }
  .page-head .titles h1 {
    font-size: clamp(52px, 14vw, 70px);
    letter-spacing: 0.02em;
    line-height: 0.92;
    margin-bottom: 6px;
  }
  .page-head .titles p { font-size: 13px; }
}

/* ---- Wine Card Mobile – fundo unificado (garrafa + info) ------- */
@media (max-width: 759px) {
  /* card inteiro recebe o fundo da plataforma */
  .wine-card {
    background: #d5d0c8;
    border-radius: 14px;
    overflow: hidden;
  }
  .wine-card:hover { background: #ddd8d0; }

  /* garrafa dentro do card, sem float / margin negativo */
  .wine-card .bottle-wrap {
    height: clamp(155px, 44vw, 210px);
    padding: 16px 16px 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
  }
  .wine-card .bottle-wrap img {
    max-width: 72%;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
  }
  /* hover: sem lift excessivo — a garrafa fica dentro do card */
  .wine-card:hover .bottle-wrap img { transform: scale(1.04); }

  /* info: transparente, sem raio próprio */
  .wine-card .wine-info {
    background: transparent;
    border-radius: 0;
    padding: 10px 14px 16px;
    position: relative; /* badge posicionado sobre a plataforma, não sobre a garrafa */
  }

  /* tipo e nome: tamanhos ajustados ao card menor */
  .wine-card .wine-type { font-size: 12.5px; gap: 6px; }
  .wine-card .wine-name { font-size: clamp(14px, 3.8vw, 17px); }
  .wine-card .wine-country { font-size: 9.5px; }
}

/* ---- Filter button → inline link on mobile --------------------- */
@media (max-width: 759px) {
  .filter-btn,
  .filter-btn.on,
  .filter-btn:hover {
    background: none;
    border: none;
    border-radius: 0;
    padding: 2px 0;
  }
  .filter-btn {
    font-size: 13.5px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    gap: 8px;
    margin-top: 8px;
  }
  .filter-btn.on    { color: var(--gold); }
  .filter-btn:hover { color: var(--ink);  }
  .filter-btn .count { background: var(--gold); color: #12100d; }
}

/* ---- Wines Head – Vinhos --------------------------------------- */
@media (max-width: 759px) {
  .wines-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 20px;
  }
  .wines-head .supplier { align-items: baseline; gap: 10px; }
  .wines-head .mesa-badge {
    font-size: clamp(44px, 11vw, 58px);
    color: var(--ink);
    letter-spacing: 0.02em;
    line-height: 0.92;
  }
  .wines-head .pipe {
    font-size: clamp(36px, 9vw, 50px);
    color: var(--ink-soft);
    line-height: 0.92;
  }
  .wines-head .sup-name {
    font-size: clamp(30px, 8vw, 48px);
    letter-spacing: 0.02em;
    line-height: 0.92;
  }
}

/* ---- Avaliação Mobile ------------------------------------------ */
@media (max-width: 899px) {
  /* bottle full-width, stacked above content */
  .eval { gap: 0; }
  .eval-bottle {
    width: 100%;
    padding: 0 0 16px;
    min-height: 0;
    justify-content: center;
  }
  .eval-bottle img { height: clamp(220px, 46vw, 340px); }

  .eval-content { max-width: 100%; }
  .eval-title {
    font-weight: 700;
    font-size: clamp(28px, 8vw, 42px);
  }

  /* price: single-line box (no dotfill) */
  .price-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,253,248,0.05);
    padding: 12px 16px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .price-row .lbl    { flex: 1; font-size: 12px; width: auto; }
  .price-row .dotfill { display: none; }
  .price-row .val    { font-size: clamp(15px, 4vw, 21px); }

  /* questions: bold sans */
  .eval-block .q {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
  }

  /* stars: bigger */
  .stars { gap: 6px; }
  .stars button { font-size: 42px; }

  /* SIM / NÃO: colored pill, full-width pair */
  .yn { gap: 12px; }
  .yn button {
    flex: 1; max-width: none;
    padding: 18px 0;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.18em;
  }
  /* SIM – green */
  .yn button:first-child {
    background: #27652a;
    border-color: #27652a;
    color: #fff;
  }
  /* NÃO – dark neutral */
  .yn button:last-child {
    background: rgba(255,253,248,0.06);
    border-color: rgba(255,253,248,0.15);
    color: var(--ink-soft);
  }
  .yn button.sel-yes {
    background: #38a83c; border-color: #38a83c; color: #fff;
    box-shadow: 0 0 0 3px rgba(56,168,60,0.22);
  }
  .yn button.sel-no {
    background: #7b1414; border-color: #7b1414; color: #fff;
    box-shadow: 0 0 0 3px rgba(123,20,20,0.22);
  }
  .yn button:hover:not(.locked):not(.sel-yes):not(.sel-no) {
    border-color: var(--ink-soft); color: var(--ink);
  }
  .yn button.locked { cursor: default; }

  /* salvar: fixo no rodapé — sempre visível */
  .eval-actions {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 12px clamp(22px, 5vw, 44px) calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(10,9,8,1) 50%, rgba(10,9,8,0) 100%);
    z-index: 15;
  }
  .eval-actions .btn-primary {
    width: 100%; min-width: unset;
    padding-top: 18px; padding-bottom: 18px;
  }
  /* espaço para o botão não cobrir o último elemento */
  .eval-content { padding-bottom: 100px; }
}

/* ---- Filter Sheet – light card, no dark backdrop --------------- */
@media (max-width: 759px) {
  /* target only the filter overlay (not confirm modal) */
  .overlay:has(.sheet) {
    background: rgba(6,5,4,0.28);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 60px;
    padding-left: clamp(22px, 5vw, 44px);
  }
  .sheet {
    margin-top: 0;
    width: min(310px, calc(100% - 44px));
    background: #f0ebe3;
    border-color: rgba(0,0,0,0.12);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.20);
  }
  .sheet-head {
    border-bottom-color: rgba(0,0,0,0.09);
    padding: 18px 20px 14px;
  }
  .sheet-head h3 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 17px;
    color: #1a1612;
  }
  .sheet-head .x         { color: rgba(26,22,18,0.55); }
  .sheet-head .x:hover   { color: #1a1612; background: rgba(0,0,0,0.08); }
  .type-opt              { color: #1a1612; }
  .type-opt:hover        { background: rgba(0,0,0,0.05); }
  .type-opt .check       { border-color: rgba(0,0,0,0.22); color: #f0ebe3; }
  .type-opt.on .check    { background: #1a1612; border-color: #1a1612; }
  .type-opt .label       { color: #1a1612; }
  .type-opt .qty         { color: rgba(26,22,18,0.45); }
  .sheet-foot            { border-top-color: rgba(0,0,0,0.09); }
  .sheet-foot .clear     { border-color: rgba(0,0,0,0.18); color: #1a1612; }
  .sheet-foot .clear:hover { border-color: rgba(0,0,0,0.35); }
  .sheet-foot .btn-primary { background: #1a1612; color: #f0ebe3; }
}
