/* ============================================================
   poc-standalone.css — PoC design system (sem JS libs, sem CDN)
   Fonte: tokens do compras-frontend (Outfit, --figma-*), com o
   verde oficial da marca (#74883e) como cor predominante — a
   PoC mantém o motivo "agro". Icones sao SVG inline (lucide-style)
   via <x-demo.icon>, nunca FontAwesome.

   Conteudo:
     1. Tokens + reset/base
     2. Utilidades de layout (container, flex, grid, espacamento)
     3. Tipografia (.text-*)
     4. Componentes (btn, field, card, tag, alert, table, paginacao, stepper)
     5. Header + navegacao (responsivo)
     6. Auth shell (login/cadastro split banner)
     7. Storefront (product cards, showcase, chips)
     8. Painel do lojista (tiles, subnav, tabela)
     9. Ajustes mobile
   ============================================================ */

/* ============================================================
   1. Tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Principais */
  --figma-principal-orange: #ef8232;
  --figma-principal-orange-hover: #f5b484;
  --figma-principal-orange-active: #f29c5b;
  --figma-principal-orange-container: #fbe0cc;
  --figma-principal-orange-on-container: #bf6828;

  --figma-principal-light-blue: #52a6f3;
  --figma-principal-light-blue-hover: #97caf7;
  --figma-principal-light-blue-active: #7496c4;
  --figma-principal-light-blue-container: #d3e8fc;
  --figma-principal-light-blue-on-container: #4284c2;

  --figma-principal-dark-blue: #3f7fd2;
  --figma-principal-dark-blue-hover: #8cb2e4;
  --figma-principal-dark-blue-active: #657fb1;
  --figma-principal-dark-blue-container: #cfdff3;
  --figma-principal-dark-blue-on-container: #3266a8;

  /* Verde oficial CDMJ */
  --figma-principal-green: #74883e;
  --figma-principal-green-hover: #abb78b;
  --figma-principal-green-active: #8f8458;
  --figma-principal-green-container: #dce1ce;
  --figma-principal-green-on-container: #5d6d31;

  --figma-principal-yellow: #edaf3c;
  --figma-principal-yellow-hover: #f4cf8a;
  --figma-principal-yellow-active: #f09c57;
  --figma-principal-yellow-container: #faebce;
  --figma-principal-yellow-on-container: #bd8c30;

  /* Status */
  --figma-status-error: #ff5151;
  --figma-status-error-container: #ffb9b9;
  --figma-status-error-on-container: #cc4141;
  --figma-status-alert: #ffca1c;
  --figma-status-alert-container: #ffe7a4;
  --figma-status-alert-on-container: #cca116;
  --figma-status-success: #01b574;
  --figma-status-success-container: #ffe1c7;
  --figma-status-success-on-container: #01915d;
  --figma-status-highlight: #ff008c;
  --figma-status-info: #0075ff;

  /* Texto */
  --figma-text-on-background: #4f5a68;
  --figma-text-on-bg-sub: #8e949d;

  /* Neutras */
  --figma-neutral-outline: #c0c0c0;
  --figma-neutral-inactive: #9d9d9d;
  --figma-neutral-inactive-var: #787878;
  --figma-neutral-background: #f4f4f4;
  --figma-neutral-surface: #ffffff;

  /* Overlays */
  --figma-overlay-orange: rgba(239, 130, 50, 0.3);
  --figma-overlay-blue: rgba(82, 166, 243, 0.3);
  --figma-overlay-green: rgba(116, 136, 62, 0.3);
  --figma-overlay-error: rgba(255, 81, 81, 0.6);

  /* Gradientes */
  --figma-gradient-orange: linear-gradient(135deg, #ef8232, #f5b484);
  --figma-gradient-blue: linear-gradient(135deg, #52a6f3, #97caf7);
  --figma-gradient-green: linear-gradient(135deg, #74883e, #abb78b);
  --figma-gradient-yellow: linear-gradient(135deg, #edaf3c, #f4cf8a);
  --figma-gradient-negative: linear-gradient(135deg, #ff5151, #ff9f9f);
  --figma-gradient-positive: linear-gradient(135deg, #01b574, #6fcea4);
  --figma-gradient-neutral: linear-gradient(135deg, #c0c0c0, #f4f4f4);

  /* Pesos */
  --figma-font-weight-light: 300;
  --figma-font-weight-regular: 400;
  --figma-font-weight-medium: 500;
  --figma-font-weight-semibold: 600;
  --figma-font-weight-bold: 700;
  --figma-font-weight-extrabold: 800;

  /* Base theme + extras da PoC */
  --background: var(--figma-neutral-background);
  --foreground: #242424;
  --border: var(--figma-neutral-outline);
  --ring: var(--figma-principal-green);
  --radius: 0.625rem;

  --font-sans: "Outfit", system-ui, sans-serif;

  --green-dark: #5d6d31;
  --green-soft: #f1f4e9;
  --footer-bg: #3f4c24;
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--figma-neutral-background);
  color: var(--figma-text-on-background);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: main grows to fill the viewport so the green footer sits at the bottom on short
     pages instead of floating mid-screen with body background showing beneath it. */
  display: flex;
  flex-direction: column;
}
/* width:100% so the auto side-margins of .u-container don't shrink-to-fit the flex item (which
   collapsed the catalog grid to 2 columns). */
body > main { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }
h1, h2, h3, h4, p, blockquote, button, small, ul, ol, table thead, table tbody { font-family: var(--font-sans); }
h1 { font-size: 48px; font-weight: 800; line-height: 1.05; margin: 0 0 12px; }
h2 { font-size: 30px; font-weight: 600; line-height: 1.1; margin: 0 0 10px; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.15; margin: 0 0 8px; }
h4 { font-size: 20px; font-weight: 600; line-height: 1.2; margin: 0 0 6px; }
p { font-size: 16px; font-weight: 400; line-height: 1.5; margin: 0 0 12px; }
button { font-size: 14px; font-weight: 600; line-height: 16px; }
a { color: var(--figma-principal-green); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   2. Utilidades de layout
   ============================================================ */
.u-container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1 1 0%; }
.block { display: block; }
.hidden { display: none; }

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--figma-text-on-bg-sub); }
.faint { color: var(--figma-neutral-outline); }

/* Icones (SVG inline) */
.icon { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -0.15em; }
.icon--sm { width: 13px; height: 13px; }
.icon--lg { width: 19px; height: 19px; }
.icon--xl { width: 22px; height: 22px; }
.btn .icon { width: 16px; height: 16px; }
a .icon { width: 15px; height: 15px; }

/* ============================================================
   3. Tipografia
   ============================================================ */
.text-h1 { font-size: 48px; font-weight: 800; line-height: 1.05; }
.text-h2 { font-size: 30px; font-weight: 600; line-height: 1.1; }
.text-h3 { font-size: 24px; font-weight: 600; line-height: 1.15; }
.text-h4 { font-size: 20px; font-weight: 600; line-height: 1.2; }
.text-p { font-size: 16px; font-weight: 400; line-height: 1.5; }
.text-lead { font-size: 20px; font-weight: 400; line-height: 1.4; }
.text-large { font-size: 18px; font-weight: 600; line-height: 1.3; }
.text-small { font-size: 14px; font-weight: 500; line-height: 1.4; }
.text-subtle { font-size: 14px; font-weight: 400; line-height: 1.5; }
.text-caption { font-size: 12px; font-weight: 500; line-height: 1.3; }
.text-sub-1 { font-size: 12px; font-weight: 400; line-height: 1.4; }
.text-sub-2 { font-size: 10px; font-weight: 400; line-height: 1.3; }
.text-button-1 { font-size: 14px; font-weight: 600; line-height: 16px; }
.text-button-2 { font-size: 14px; font-weight: 600; line-height: 1; }
.text-button-small { font-size: 12px; font-weight: 600; line-height: 1; }

/* Cabecalho de pagina */
.page-head { margin-bottom: 24px; }
.page-head__title { margin: 0 0 4px; }
.page-head__sub { color: var(--figma-text-on-bg-sub); margin: 0; }

/* ============================================================
   4. Componentes base
   ============================================================ */
/* ---- Botao ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-brand { background: var(--figma-principal-green); color: #fff; }
.btn-brand:hover { background: var(--figma-principal-orange); }
.btn-brand:active { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15); }

.btn-primary { background: var(--figma-principal-orange); color: #fff; }
.btn-primary:hover { background: var(--figma-principal-orange-active); }
.btn-primary:active { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15); }

.btn-secondary { background: var(--figma-principal-light-blue); color: #fff; }
.btn-secondary:hover { background: var(--figma-principal-light-blue-active); }
.btn-secondary:active { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15); }

.btn-neutral { background: var(--figma-neutral-inactive); color: #fff; }
.btn-neutral:hover { background: var(--figma-neutral-inactive-var); }

.btn-error { background: var(--figma-status-error); color: #fff; }
.btn-error:hover { opacity: 0.9; }

.btn-success { background: var(--figma-status-success); color: #fff; }
.btn-success:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--figma-principal-green);
  color: var(--figma-principal-green);
  padding: 0 14px;
}
.btn-outline:hover { background: var(--figma-principal-green); color: #fff; }

.btn-outline--secondary { border-color: var(--figma-principal-light-blue); color: var(--figma-principal-light-blue); }
.btn-outline--secondary:hover { background: var(--figma-principal-light-blue); color: #fff; }

.btn-outline--neutral { border-color: var(--figma-neutral-outline); color: var(--figma-text-on-background); }
.btn-outline--neutral:hover { background: var(--figma-neutral-background); }

.btn-ghost { background: transparent; color: var(--figma-text-on-background); }
.btn-ghost:hover { background: var(--figma-neutral-background); }
.btn-ghost--brand { color: var(--figma-principal-green); }
.btn-ghost--brand:hover { background: var(--figma-overlay-green); }
.btn-ghost--orange { color: var(--figma-principal-orange); }
.btn-ghost--orange:hover { background: var(--figma-overlay-orange); }

/* ---- Campos ---- */
.field {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--figma-neutral-outline);
  border-radius: 8px;
  background: var(--figma-neutral-surface);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--figma-text-on-background);
  transition: border-color 200ms, box-shadow 200ms;
}
textarea.field { height: auto; padding: 10px 12px; resize: vertical; }
select.field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f5a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}
.field::placeholder { color: var(--figma-neutral-outline); }
.field:focus { outline: none; border-color: var(--figma-principal-green); box-shadow: 0 0 0 3px var(--figma-overlay-green); }
.field--sm { height: 32px; font-size: 12px; }
.field--error { border-color: var(--figma-status-error); }
.field--error:focus { box-shadow: 0 0 0 3px var(--figma-overlay-error); }

.field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--figma-text-on-background); }
.field-helper { margin-top: 6px; font-size: 12px; color: var(--figma-text-on-bg-sub); line-height: 1.4; }
.field-helper--error { color: var(--figma-status-error); }
.field-required { color: var(--figma-status-error); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Stepper de formulário (nova proposta) ---- */
.steps-nav { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.steps-nav__item {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--figma-text-on-bg-sub);
  background: var(--figma-neutral-background);
}
.steps-nav__item.is-active { background: var(--figma-principal-orange); color: #fff; }
.steps-nav__item.is-done { background: var(--figma-principal-green); color: #fff; }
.step-panel { display: flex; flex-direction: column; gap: 12px; }
.step-panel[hidden] { display: none; }
.form-actions { display: flex; gap: 10px; }
.form-actions .btn { flex: 1; justify-content: center; }

/* ---- Radio rows (onde pagar / entrega) ---- */
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--figma-neutral-outline);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 8px;
}
.radio-row:has(input:checked) { border-color: var(--figma-principal-green); background: var(--figma-overlay-green); }
.radio-row input { margin-top: 2px; accent-color: var(--figma-principal-green); }
.radio-row strong { display: block; font-size: 14px; color: var(--figma-text-on-background); }
.radio-row small { display: block; font-size: 12px; color: var(--figma-text-on-bg-sub); }

/* ---- Award (per-item cherry-pick) master/detail ---- */
.award-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.award-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.award-item-tab {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--figma-neutral-outline);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 150ms, background 150ms;
}
.award-item-tab:hover { border-color: var(--figma-principal-green); }
.award-item-tab.is-active { border-color: var(--figma-principal-green); background: var(--figma-overlay-green); }
.award-item-tab__name { font-size: 14px; font-weight: 600; color: var(--figma-text-on-background); line-height: 1.3; }
.award-item-tab__meta { font-size: 12px; color: var(--figma-text-on-bg-sub); }
.award-item-tab__state { font-size: 12px; color: var(--figma-text-on-bg-sub); margin-top: 2px; }
.award-item-tab.is-resolved .award-item-tab__state { color: var(--figma-principal-green-on-container); font-weight: 600; }
.award-panels { min-width: 0; }
.award-panel { border: 1px solid var(--figma-neutral-outline); border-radius: 12px; padding: 16px; }
.award-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.award-panel__title { font-size: 15px; font-weight: 600; color: var(--figma-text-on-background); }
@media (max-width: 768px) {
  .award-layout { grid-template-columns: 1fr; }
  .award-items { display: none; }
  .award-panel[hidden] { display: block !important; }
  .award-panel + .award-panel { margin-top: 12px; }
}

/* ---- Total estimado ---- */
.total-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--figma-overlay-green);
  color: var(--figma-principal-green-on-container);
  font-size: 14px;
  font-weight: 600;
}
.total-summary strong { font-size: 20px; font-weight: 800; }

/* ---- Card ---- */
.card {
  background: var(--figma-neutral-surface);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}
.card--hover { transition: border-color 200ms, box-shadow 200ms, transform 200ms; }
.card--hover:hover { border-color: var(--figma-principal-green); box-shadow: 0 1px 3px rgb(0 0 0 / 0.1); }
.card-title { font-size: 16px; font-weight: 600; color: var(--figma-text-on-background); }
.card-subtitle { font-size: 12px; color: var(--figma-text-on-bg-sub); line-height: 1.4; }

/* ---- Tag ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 150ms;
}
.tag .icon { width: 12px; height: 12px; }
.tag--brand { background: var(--figma-principal-green); color: #fff; }
.tag--brand:hover { background: var(--figma-principal-green-active); }
.tag--primary { background: var(--figma-principal-orange); color: #fff; }
.tag--secondary { background: var(--figma-principal-light-blue); color: #fff; }
.tag--success { background: rgb(1 181 116 / 0.12); color: #01915d; }
.tag--error { background: rgb(255 81 81 / 0.12); color: #cc4141; }
.tag--warning { background: rgb(255 202 28 / 0.15); color: #cca116; }
.tag--neutral { background: var(--figma-neutral-background); color: var(--figma-text-on-background); }
.tag--muted { background: var(--figma-neutral-background); color: var(--figma-text-on-bg-sub); }
.tag--outline { background: transparent; border: 1px solid var(--figma-neutral-outline); color: var(--figma-text-on-background); }
.tag--outline:hover { border-color: var(--figma-principal-green); color: var(--figma-principal-green); }
.tag--outline.tag--active { background: var(--figma-principal-green); border-color: var(--figma-principal-green); color: #fff; }

/* ---- Alertas ---- */
.alert { border-radius: 10px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; display: flex; gap: 9px; align-items: flex-start; }
.alert .icon { width: 13px; height: 13px; margin-top: 1px; flex: none; }
.alert--success { background: rgb(1 181 116 / 0.1); border: 1px solid rgb(1 181 116 / 0.35); color: #01915d; }
.alert--error { background: rgb(255 81 81 / 0.1); border: 1px solid rgb(255 81 81 / 0.35); color: #cc4141; }
.alert--warning { background: rgb(255 202 28 / 0.15); border: 1px solid rgb(255 202 28 / 0.4); color: #a38114; }
.alert--info { background: rgb(82 166 243 / 0.12); border: 1px solid rgb(82 166 243 / 0.35); color: #3a77b5; }
.alert ul { margin: 0; padding-left: 16px; }

/* ---- Tabela ---- */
.table-wrap { overflow-x: auto; background: var(--figma-neutral-surface); border: 1px solid #e5e7eb; border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--figma-neutral-background); }
.table thead th { font-size: 13px; font-weight: 600; color: var(--figma-text-on-bg-sub); text-transform: uppercase; letter-spacing: 0.04em; background: #fafaf9; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--figma-principal-green-container); }
.table tbody td { font-size: 14px; }

/* ---- Paginacao ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--figma-text-on-background);
  background: var(--figma-neutral-surface);
  border: 1px solid var(--figma-neutral-outline);
  text-decoration: none;
  transition: all 150ms;
}
.pagination .page-link:hover { border-color: var(--figma-principal-green); color: var(--figma-principal-green); }
.pagination .page-item.active .page-link { background: var(--figma-principal-green); border-color: var(--figma-principal-green); color: #fff; }
.pagination .page-item.disabled .page-link { opacity: 0.45; cursor: not-allowed; }
.pagination .page-item.disabled .page-link:hover { border-color: var(--figma-neutral-outline); color: var(--figma-text-on-background); }

/* ---- Stepper ---- */
.stepper { display: inline-flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.2); }
.stepper__step { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; font-size: 20px; font-weight: 600; }
.stepper__step--completed { background: var(--figma-principal-green); color: #fff; }
.stepper__step--active { background: var(--figma-principal-orange); color: #fff; }
.stepper__step--pending { background: var(--figma-neutral-background); color: var(--figma-text-on-bg-sub); }
.stepper__chevron { width: 24px; height: 24px; color: var(--figma-text-on-bg-sub); }

/* ---- Empty state ---- */
.empty { background: var(--figma-neutral-surface); border: 1px dashed var(--figma-neutral-outline); border-radius: 10px; padding: 48px 24px; text-align: center; color: var(--figma-text-on-bg-sub); }
.empty__icon { color: var(--figma-principal-green); opacity: 0.5; margin-bottom: 8px; }
.empty p { margin-bottom: 0; }

/* ---- Loading spinner (leve) ---- */
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   5. Header + navegacao
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }

.topbar { background: var(--figma-principal-green); }
.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; white-space: nowrap; flex-shrink: 0; }
.site-brand__logo { display: inline-flex; }
.site-brand__name { display: block; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; font-size: 15px; }
.site-brand__tag { display: block; font-size: 11px; color: rgba(255,255,255,.85); line-height: 1.1; }

.searchbar { flex: 1; display: flex; max-width: 520px; margin-left: auto; position: relative; }
.searchbar__input {
  flex: 1;
  height: 40px;
  padding: 0 44px 0 16px;
  border: 0;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--figma-text-on-background);
}
.searchbar__input:focus { outline: none; box-shadow: 0 0 0 3px var(--figma-overlay-green); }
.searchbar__btn {
  position: absolute;
  top: 0; right: 0;
  width: 44px; height: 40px;
  border: 0;
  border-radius: 0 20px 20px 0;
  background: transparent;
  color: var(--figma-principal-green);
  cursor: pointer;
}
.searchbar__btn:hover { color: var(--figma-principal-green-active); }
.searchbar__suggestions {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  overflow: hidden;
}
.searchbar__suggestions:not([hidden]) { display: block; }
.searchbar__suggestion {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.searchbar__suggestion:last-child { border-bottom: 0; }
.searchbar__suggestion:hover { background: var(--figma-principal-green-container); }
.searchbar__suggestion__name { display: block; font-size: 14px; font-weight: 600; color: var(--figma-text-on-background); }
.searchbar__suggestion__meta { display: block; font-size: 12px; color: var(--figma-text-on-bg-sub); }
.searchbar__suggestion--empty { padding: 12px 16px; font-size: 13px; color: var(--figma-text-on-bg-sub); }

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-modal:not([hidden]) { display: flex; }
.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.login-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}
.login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--figma-principal-green-container);
  color: var(--figma-principal-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.login-modal__close:hover { background: var(--figma-principal-green); color: #fff; }
/* Wide variant for the item picker — room for the storefront card grid on desktop. */
.login-modal__card--wide { max-width: 860px; }
.picker-results { max-height: 60vh; overflow-y: auto; padding: 2px; }
.picker-results .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.product-specs { margin: 0; padding: 0; }
.product-specs__row { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid #f0f0f0; }
.product-specs__row dt { flex: 0 0 110px; color: var(--figma-text-on-bg-sub); font-size: 13px; }
.product-specs__row dd { margin: 0; font-size: 13px; font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  background: transparent;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms;
}
.header-action-btn:hover { background: rgba(255,255,255,.15); }
.header-action-btn--solid { background: #fff; border-color: #fff; color: var(--figma-principal-green); }
.header-action-btn--solid:hover { background: var(--figma-principal-green-container); }

.header-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.header-bell:hover { background: rgba(255,255,255,.15); }
.badge--count {
  position: absolute;
  top: -5px; right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--figma-status-highlight);
  border: 1px solid #ff66ba;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,.08);
  max-width: 150px;
}
.header-pill__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,.15); }

.subnav { background: var(--figma-principal-green-on-container); }
.subnav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 42px;
  font-size: 13px;
  position: relative;
}
.subnav__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; flex: 1; }
.subnav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 9px 0;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms, opacity 150ms;
}
.subnav__link:hover { opacity: 0.9; border-bottom-color: rgba(255,255,255,.5); }
.subnav__link--active { font-weight: 700; border-bottom-color: #fff; }

/* Dropdown (categorias, sino) */
.dropdown { position: relative; }
.dropdown__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 600;
  padding: 9px 0;
  user-select: none;
}
.dropdown__summary::-webkit-details-marker { display: none; }
.dropdown[open] .dropdown__summary__chevron { transform: rotate(180deg); }
.dropdown__summary__chevron { transition: transform 150ms; }
.dropdown__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: var(--figma-neutral-surface);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15);
  min-width: 240px;
  padding: 6px;
  z-index: 60;
  color: var(--figma-text-on-background);
}
.dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
}
.dropdown__item:hover { background: var(--figma-overlay-green); color: var(--figma-principal-green-on-container); }

/* Dropdown do sino (link head-actions) */
.header-bell-wrap { position: relative; }
.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-width: 90vw;
  background: var(--figma-neutral-surface);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15);
  z-index: 60;
  color: var(--figma-text-on-background);
  padding: 6px;
}
.notif-panel__list { max-height: 320px; overflow-y: auto; }
.notif-panel__item { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.notif-panel__item:hover { background: var(--figma-neutral-background); }
.notif-panel__empty { padding: 16px; text-align: center; color: var(--figma-text-on-bg-sub); }
.notif-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--figma-principal-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* Rodape */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.75); }
.site-footer__inner { max-width: 1080px; margin: 0 auto; padding: 24px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

/* ============================================================
   6. Auth shell (login/cadastro)
   ============================================================ */
.auth-shell { display: flex; flex-direction: column; min-height: 100vh; }
.auth-shell__body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-shell__stage { max-width: 700px; width: 100%; }
.auth-card { display: flex; background: var(--figma-neutral-surface); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 35px -10px rgb(0 0 0 / 0.18); }
.auth-banner { position: relative; flex: 1 1 45%; min-height: 520px; overflow: hidden; }
.auth-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(191,104,40,.6) 0%, rgba(146,72,22,.9) 100%);
}
.auth-banner__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; height: 100%; color: #fff; }
.auth-banner__notice { border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.5; }

.auth-panel { flex: 1 1 55%; padding: 40px 40px 32px; display: flex; flex-direction: column; }
.auth-panel__head { text-align: center; margin-bottom: 24px; }
.auth-panel__logo { display: inline-flex; margin-bottom: 12px; }
.auth-panel__title { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: var(--figma-text-on-background); }
.auth-panel__sub { font-size: 14px; color: var(--figma-text-on-bg-sub); margin: 0; }

/* Lista de perfis (login da PoC) */
.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--figma-neutral-outline);
  border-radius: 10px;
  background: var(--figma-neutral-surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms, box-shadow 150ms;
  color: var(--figma-text-on-background);
  text-decoration: none;
}
.pick-card:hover { border-color: var(--figma-principal-green); box-shadow: 0 2px 8px rgb(0 0 0 / 0.08); }
.pick-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  flex: none;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--figma-gradient-green);
}
.pick-card__avatar--buyer { background: var(--figma-gradient-green); }
.pick-card__avatar--seller { background: var(--figma-gradient-blue); }
.pick-card__body { flex: 1; min-width: 0; }
.pick-card__name { display: block; font-size: 15px; font-weight: 600; }
.pick-card__email { display: block; font-size: 12px; color: var(--figma-text-on-bg-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   7. Storefront
   ============================================================ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--figma-principal-green); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips-label { display: inline-flex; align-items: center; margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--figma-text-on-background); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--figma-neutral-surface);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.product-card:hover { border-color: var(--figma-principal-green); box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.14); transform: translateY(-2px); }
/* Static card (item picker): no link affordance — the action lives in its own button. */
/* Item-picker: highlight the existing row when a duplicate add is blocked. */
.item-row--flash { animation: itemRowFlash 1200ms ease-out; }
@keyframes itemRowFlash {
  0% { box-shadow: 0 0 0 0 var(--figma-principal-green); }
  25% { box-shadow: 0 0 0 3px var(--figma-overlay-green); border-color: var(--figma-principal-green); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.product-card--static { cursor: default; }
.product-card--static:hover { border-color: #e5e7eb; box-shadow: none; transform: none; }
.product-card--static:hover .product-card__actions .btn { transform: none; }
.product-card__thumb {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--figma-gradient-green);
  color: #fff;
  opacity: .95;
}
.product-card__thumb--muted { background: var(--figma-neutral-background); color: var(--figma-principal-green); border-bottom: 1px solid var(--figma-neutral-outline); }
.product-card__thumb--photo { height: 150px; background: #fff; padding: 8px; border-bottom: 1px solid var(--figma-neutral-background); opacity: 1; }
.product-card__thumb--photo img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card__name { font-size: 15px; font-weight: 600; color: var(--figma-text-on-background); line-height: 1.3; }
.product-card__meta { font-size: 12px; color: var(--figma-text-on-bg-sub); }
.product-card__price { font-size: 18px; font-weight: 700; color: var(--figma-principal-green-on-container); margin-top: 2px; }
/* margin-top:auto pins the CTA to the card bottom so buttons align across cards of unequal name/price height */
.product-card__actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.product-card__actions .btn { width: 100%; }

/* ============================================================
   8. Painel do lojista
   ============================================================ */
.store-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.store-tile { display: flex; align-items: flex-start; gap: 14px; padding: 18px; text-decoration: none; color: inherit; }
.store-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  flex: none;
  background: var(--figma-principal-green-container);
  color: var(--figma-principal-green-on-container);
}
.store-tile__title { font-size: 16px; font-weight: 600; }
.store-tile__body { flex: 1; }
.store-tile__sub { font-size: 12px; color: var(--figma-text-on-bg-sub); margin-top: 3px; line-height: 1.4; }
.store-tile__chevron { color: var(--figma-text-on-bg-sub); margin-left: auto; align-self: center; }

/* Badge de fonte do catálogo */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border: 1px solid #e5e7eb;
  background: var(--figma-neutral-surface);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--figma-text-on-background);
}
.source-badge svg { width: 18px; height: 18px; flex: none; }

/* Sub-nav de abas do painel */
.subnav-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; padding: 4px; background: var(--figma-neutral-surface); border: 1px solid #e5e7eb; border-radius: 10px; }
.subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--figma-text-on-background);
  transition: background 150ms, color 150ms;
}
.subnav-tab:hover { background: var(--figma-neutral-background); color: var(--figma-principal-green); }
.subnav-tab--active { background: var(--figma-principal-green); color: #fff; }
.subnav-tab--active:hover { background: var(--figma-principal-green-active); color: #fff; }

/* ---- Linha de itens / propostas ---- */
.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--figma-neutral-background); }
.line-item:first-child { border-top: 0; }
.line-item__qty { color: var(--figma-text-on-bg-sub); }

.response-card .card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.total-line { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--figma-neutral-outline); font-size: 14px; font-weight: 600; }

/* Form card centralizado */
.form-card-wrap { max-width: 520px; margin: 0 auto; }
.form-card { display: flex; flex-direction: column; gap: 18px; }
.form-card .btn-lg { width: 100%; }

/* ============================================================
   9. Responsivo
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 16px; }
  p { font-size: 14px; }
  .text-h1 { font-size: 36px; }
  .text-h2 { font-size: 24px; }
  .text-h3 { font-size: 20px; }
  .text-h4 { font-size: 16px; }
  .text-lead { font-size: 16px; }
  .text-large { font-size: 16px; }
  .text-small { font-size: 12px; }
  .text-subtle { font-size: 12px; }
  .text-caption { font-size: 11px; }
  .text-button-1 { font-size: 12px; }

  .site-brand__tag { display: none; }
  .nav-toggle { display: inline-flex; }

  .topbar__inner { flex-wrap: wrap; gap: 10px; }
  .searchbar { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .header-actions { margin-left: auto; }

  /* Notification panel must stay readable on narrow screens regardless of where the bell landed
     in a wrapped header — anchor it to the viewport instead of the bell. */
  .notif-panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; max-width: none; }

  .subnav { max-height: 0; overflow: hidden; transition: max-height 250ms ease; }
  .subnav__inner { flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px; }
  .subnav--open { max-height: 460px; }
  .subnav__links { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .subnav__link { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
  .subnav__link--active { border-bottom-color: #fff; }
  .subnav .dropdown__summary { padding: 12px 0; }
  .dropdown__panel { position: static; box-shadow: none; margin-bottom: 12px; }

  .form-grid-2 { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .store-tiles { grid-template-columns: 1fr; }

  .auth-card { flex-direction: column; }
  .auth-banner { min-height: 160px; flex-basis: auto; }
  .auth-banner__content { padding: 20px; }
  .auth-banner__notice { display: none; }
  .auth-panel { padding: 24px 20px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   10. Criação de proposta (POC — layout esquerda/direita, 4 steps)
   ============================================================ */
.proposal-create { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.proposal-aside { position: sticky; top: 100px; }

/* --- Hero produto único --- */
.proposal-hero__head { margin-bottom: 14px; }
.proposal-hero__title { font-size: 18px; font-weight: 700; color: var(--figma-principal-orange); line-height: 1.25; }
.proposal-hero__avg { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--figma-text-on-bg-sub); margin-top: 6px; }
.proposal-hero__avg strong { color: var(--figma-principal-light-blue); }
.proposal-hero__avg .icon { color: var(--figma-principal-green); }
.proposal-hero__info { display: inline-flex; color: var(--figma-principal-light-blue); cursor: help; }
.proposal-hero__figure { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--figma-neutral-background); border-radius: 12px; padding: 16px; min-height: 220px; }
.proposal-hero__figure img { max-width: 100%; max-height: 260px; object-fit: contain; }

/* --- Cesta múltipla --- */
.proposal-basket__head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--figma-principal-orange); margin-bottom: 12px; }
.proposal-basket__add { margin-top: 8px; }
/* Many items scroll inside the list, not the whole page. Padding keeps card borders off the scrollbar. */
[data-items-mount-multi] { max-height: 48vh; overflow-y: auto; margin: 0 -2px; padding: 2px 6px 2px 2px; }

/* --- Coluna direita: form + título de etapa --- */
.proposal-form { align-self: start; }
.proposal-form__title { font-size: 18px; font-weight: 700; color: var(--figma-principal-orange); text-align: center; margin: 0 0 4px; }

/* --- Stepper circular (largura total) --- */
.stepper--full { display: flex; width: 100%; align-items: center; gap: 4px; margin: 0 0 6px; list-style: none; box-shadow: none; background: transparent; padding: 0; }
.stepper--full .stepper__chevron { flex: 1; width: auto; height: auto; display: flex; align-items: center; justify-content: center; }
.stepper__num, .stepper__check { display: inline-flex; align-items: center; justify-content: center; }
.stepper__step .stepper__check { display: none; }
.stepper__step--completed .stepper__num { display: none; }
.stepper__step--completed .stepper__check { display: inline-flex; }
.stepper__step--active { box-shadow: 0 0 0 4px var(--figma-overlay-orange); }

/* --- Linhas de item: modo único vs múltiplo --- */
.items--single { display: block; }
.items--single .item-row__meta { display: none; }
.items--single .item-fields { display: flex; flex-direction: column; gap: 18px; }
.items--single .stepper-field__label { display: block; text-align: center; margin-bottom: 8px; font-weight: 600; color: var(--figma-text-on-background); }
.items--single [data-multi-only] { display: none !important; }

.items--multi { display: flex; flex-direction: column; gap: 12px; }
.items--multi .item-row { border: 1px solid var(--figma-neutral-outline); border-radius: 12px; padding: 12px; }
.items--multi .item-row__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.items--multi .item-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* min-width:0 lets the 3 steppers shrink to their grid track instead of forcing the column
   (and the whole left card) wider than its share. Compact sizing so they fit on desktop. */
.items--multi .stepper-field { min-width: 0; }
.items--multi .stepper-input { min-width: 0; }
.items--multi .stepper-input__btn { width: 30px; }
.items--multi .stepper-input__prefix { padding-left: 6px; font-size: 12px; }
.items--multi .stepper-input__field { font-size: 13px; padding: 0 2px; }
@media (max-width: 768px) { .items--multi .item-fields { grid-template-columns: 1fr; } }
.items--multi .stepper-field__label { font-size: 12px; font-weight: 600; margin-bottom: 4px; display: block; }
.items--multi [data-single-only] { display: none !important; }

.item-row__thumb { width: 44px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; background: var(--figma-neutral-background); display: inline-flex; align-items: center; justify-content: center; color: var(--figma-principal-green); }
.item-row__thumb img { width: 100%; height: 100%; object-fit: contain; }
.item-row__meta-body { flex: 1; min-width: 0; }
.item-row__name { font-weight: 600; font-size: 14px; color: var(--figma-text-on-background); line-height: 1.3; }
.item-row__avg { font-size: 12px; color: var(--figma-text-on-bg-sub); }
.item-row__remove { border: 0; background: transparent; color: var(--figma-status-error); font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.item-row__remove:hover { text-decoration: underline; }

/* --- Stepper input [-] [R$] [n] [+] --- */
.stepper-input { display: flex; align-items: center; border: 1px solid var(--figma-neutral-outline); border-radius: 8px; background: #fff; overflow: hidden; }
.stepper-input:focus-within { border-color: var(--figma-principal-green); box-shadow: 0 0 0 3px var(--figma-overlay-green); }
.stepper-input__btn { width: 40px; height: 42px; border: 0; background: var(--figma-neutral-background); color: var(--figma-text-on-background); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stepper-input__btn:hover { background: var(--figma-principal-green-container); color: var(--figma-principal-green); }
.stepper-input__prefix { padding-left: 10px; color: var(--figma-text-on-bg-sub); font-size: 14px; flex: none; }
.stepper-input__field { flex: 1; min-width: 0; height: 42px; border: 0; text-align: center; font-size: 15px; font-weight: 600; font-family: var(--font-sans); color: var(--figma-text-on-background); background: transparent; }
.stepper-input__field:focus { outline: none; }
.stepper-input__field::-webkit-outer-spin-button, .stepper-input__field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-input__field { -moz-appearance: textfield; }
.stepper-input--readonly { background: var(--figma-neutral-background); }
.stepper-input--readonly .stepper-input__field { background: transparent; }

/* --- Toggles (pagamento / entrega) --- */
.toggle-grid { display: grid; gap: 8px; }
.toggle-grid--1 { grid-template-columns: 1fr; }
.toggle-grid--2 { grid-template-columns: 1fr 1fr; }
.toggle-grid--3 { grid-template-columns: repeat(3, 1fr); }
.toggle-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px 12px; border: 1px solid var(--figma-neutral-outline); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--figma-text-on-background); transition: border-color 150ms, background 150ms; }
.toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-card .icon { color: var(--figma-text-on-bg-sub); }
.toggle-card:hover { border-color: var(--figma-principal-light-blue); }
.toggle-card:has(input:checked) { border-color: var(--figma-principal-dark-blue); background: var(--figma-principal-dark-blue-container); color: var(--figma-principal-dark-blue-on-container); }
.toggle-card:has(input:checked) .icon { color: var(--figma-principal-dark-blue); }
.toggle-card--row { flex-direction: row; text-align: left; justify-content: flex-start; gap: 12px; padding: 10px 14px; }
.toggle-card--row .toggle-card__body { display: flex; flex-direction: column; }
.toggle-card--row small { font-weight: 400; font-size: 12px; color: var(--figma-text-on-bg-sub); margin-top: 2px; }
.toggle-card--row:has(input:checked) small { color: inherit; }

/* --- Campos de endereço --- */
.address-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.address-fields[hidden], [data-address-street][hidden] { display: none; }
[data-address-street] { display: flex; flex-direction: column; gap: 14px; }

/* --- Resumo (etapa 4) --- */
.summary-account { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--figma-neutral-outline); border-radius: 12px; margin-bottom: 16px; }
.summary-account__avatar { width: 42px; height: 42px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: var(--figma-gradient-green); }
.summary-account__name { font-weight: 600; margin-bottom: 4px; }
.summary-account__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--figma-text-on-bg-sub); }
.summary-account__meta span { display: inline-flex; align-items: center; gap: 5px; }
.summary-account__meta .icon { color: var(--figma-principal-green); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 8px; }
.summary-block { padding: 0 18px; }
.summary-block:first-child { padding-left: 0; }
.summary-block:last-child { padding-right: 0; }
.summary-block + .summary-block { border-left: 1px solid #cdd2d9; }
.summary-block__head { font-size: 13px; font-weight: 700; color: var(--figma-principal-orange); margin-bottom: 8px; }
.summary-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--figma-neutral-background); font-size: 13px; }
.summary-item:first-child { border-top: 0; }
.summary-item__meta { color: var(--figma-text-on-bg-sub); white-space: nowrap; }
.summary-conditions { margin: 0; }
.summary-conditions > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--figma-neutral-background); font-size: 13px; }
.summary-conditions > div:first-child { border-top: 0; }
.summary-conditions dt { color: var(--figma-text-on-bg-sub); margin: 0; }
.summary-conditions dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 768px) {
  .proposal-create { grid-template-columns: 1fr; }
  .proposal-aside { position: static; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-block { padding: 12px 0; }
  .summary-block:first-child { padding-top: 0; }
  .summary-block + .summary-block { border-left: 0; border-top: 1px solid #cdd2d9; }
}

/* --- Minhas propostas: cards padronizados (single + multi) --- */
.pcard-list { display: flex; flex-direction: column; gap: 16px; }
.pcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.pcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--figma-neutral-background); }
.pcard__title { font-size: 17px; font-weight: 700; color: var(--figma-principal-orange); line-height: 1.2; }
.pcard__date { font-size: 12px; color: var(--figma-text-on-bg-sub); margin-top: 3px; }
.pcard__head-tags { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pcard__badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--figma-principal-orange); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pcard__body { padding: 18px; }
.pcard__body:not(.pcard__body--multi) { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.pcard__body--multi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pcard__thumb { width: 44px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; background: var(--figma-neutral-background); display: inline-flex; align-items: center; justify-content: center; color: var(--figma-principal-green); }
.pcard__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pcard__thumb--lg { width: 96px; height: 96px; }
.pcard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; }
.pcard__grid > div, .pcard__conditions > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pcard__grid dt, .pcard__conditions dt { display: inline-flex; align-items: center; gap: 6px; color: var(--figma-text-on-bg-sub); font-size: 13px; margin: 0; }
.pcard__grid dt .icon, .pcard__conditions dt .icon { color: var(--figma-principal-green); }
.pcard__grid dd, .pcard__conditions dd { margin: 0; font-size: 13px; font-weight: 600; text-align: right; }
.pcard__items { min-width: 0; }
.pcard__conditions { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pcard__section-label { font-size: 12px; font-weight: 700; color: var(--figma-text-on-background); margin-bottom: 8px; }
.pcard__item { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--figma-neutral-background); }
.pcard__item:first-of-type { border-top: 0; }
.pcard__item-name { font-size: 14px; font-weight: 600; color: var(--figma-text-on-background); line-height: 1.3; }
.pcard__item-meta { font-size: 12px; color: var(--figma-text-on-bg-sub); }
.pcard__more { font-size: 12px; font-weight: 600; color: var(--figma-principal-orange); padding-top: 8px; }
.pcard__cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--figma-principal-orange); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; transition: background 150ms; }
.pcard__cta:hover { background: var(--figma-principal-orange-active); }
.pcard__cta-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); font-size: 12px; }

@media (max-width: 768px) {
  .pcard__body:not(.pcard__body--multi), .pcard__body--multi { grid-template-columns: 1fr; gap: 16px; }
  .pcard__grid { grid-template-columns: 1fr; }
}

/* --- Detalhe da proposta: card superior de condições + itens com imagem --- */
.detail-conditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--figma-neutral-background); }
.detail-conditions__col { min-width: 0; padding: 0 20px; }
.detail-conditions__col:first-child { padding-left: 0; }
.detail-conditions__col:last-child { padding-right: 0; }
.detail-conditions__col + .detail-conditions__col { border-left: 1px solid #cdd2d9; }
.detail-conditions__title { font-size: 12px; font-weight: 700; color: var(--figma-principal-orange); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.detail-conditions__col > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; }
.detail-conditions__col dt { color: var(--figma-text-on-bg-sub); margin: 0; }
.detail-conditions__col dd { margin: 0; font-weight: 600; text-align: right; }
.line-item--withimg { align-items: center; gap: 12px; }
.line-item__thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; overflow: hidden; background: var(--figma-neutral-background); display: inline-flex; align-items: center; justify-content: center; color: var(--figma-principal-green); }
.line-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.line-item__body { flex: 1; min-width: 0; }

@media (max-width: 768px) {
  .detail-conditions { grid-template-columns: 1fr; }
  .detail-conditions__col { padding: 12px 0; }
  .detail-conditions__col:first-child { padding-top: 0; }
  .detail-conditions__col + .detail-conditions__col { border-left: 0; border-top: 1px solid #cdd2d9; }
}

/* --- Live toast (POC): coalesced automated-response notifications ---
   One toast at a time. A burst of N responses collapses into a single
   "N novas respostas" card instead of spawning N toasts. */
.toast-stack {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid var(--figma-neutral-outline);
  border-left: 4px solid var(--figma-principal-green);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.18);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  animation: toast-in .28s cubic-bezier(.2,.8,.2,1);
}
.toast--leaving { animation: toast-out .22s ease forwards; }
.toast__icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--figma-principal-green-container);
  color: var(--figma-principal-green-on-container);
  display: inline-flex; align-items: center; justify-content: center;
}
.toast__body { flex: 1 1 auto; min-width: 0; }
.toast__title { font-weight: 600; font-size: 14px; color: var(--figma-text-on-background); }
.toast__text {
  font-size: 13px; color: var(--figma-text-on-bg-sub); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toast__cta { font-size: 12px; font-weight: 600; color: var(--figma-principal-green); margin-top: 6px; display: inline-block; }
.toast__close {
  flex: 0 0 auto;
  border: none; background: transparent; cursor: pointer;
  color: var(--figma-text-on-bg-sub); padding: 2px; line-height: 0; font-size: 18px;
}
.toast__close:hover { color: var(--figma-text-on-background); }
.toast--pop { animation: toast-pop .32s ease; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(.98); }
}
@keyframes toast-pop {
  0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); }
}
/* Bell shake tied to the same event, so the toast and the persistent history read as one signal. */
@keyframes bell-shake {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); }
}
.header-bell--ring { animation: bell-shake .6s ease; }

@media (max-width: 720px) {
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { width: auto; max-width: none; }
}