@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400&family=DM+Sans:opsz,wght@9..40,400..700&display=swap');

/* ---------------------------------------------------------------------------
 * Portal do Cliente Santa Gaia — design tokens e componentes
 * Fonte: portal-frontend/design_handoff_portal_cliente/DESIGN_SYSTEM.md
 * ------------------------------------------------------------------------- */

:root {
  /* Marca */
  --sg-green-900: #0C201A;
  --sg-green-800: #10281F;
  --sg-green-700: #163A2C;
  --sg-green-600: #1D4636;
  --sg-green-500: #2F6B52;
  --sg-gold-500: #F5B62B;
  --sg-gold-400: #F5C24B;
  --sg-gold-300: #FFD75E;
  --sg-gold-ink: #3D2C00;
  --sg-gold-ink-soft: #8A6512;

  --sg-gold-gradient: linear-gradient(96deg, #F5B62B, #FFD75E);
  --sg-header-gradient: radial-gradient(120% 90% at 85% 0%, #1D4636 0%, #0C201A 70%);
  --sg-header-gradient-login: radial-gradient(120% 70% at 80% 0%, #1D4636 0%, #0C201A 65%);
  --sg-avatar-gradient: linear-gradient(140deg, #F5B62B, #FFD75E);

  /* Neutros */
  --sg-canvas: #E9E5DA;
  --sg-cream-100: #F6F3EA;
  --sg-cream-200: #F1EFE6;
  --sg-cream-300: #EFE9D6;
  --sg-cream-50: #FDFCF8;
  --sg-white: #FFFFFF;

  /* Texto */
  --sg-text: #10281F;
  --sg-text-body: #3E4C44;
  --sg-text-muted: #5D6B62;
  --sg-text-soft: #6B7A71;
  --sg-text-faint: #8A8471;

  /* Bordas */
  --sg-border-divider: rgba(16, 40, 31, .08);
  --sg-border-card: rgba(16, 40, 31, .10);
  --sg-border-input: rgba(16, 40, 31, .16);
  --sg-border-upload: rgba(16, 40, 31, .28);
  --sg-border-onDark: rgba(255, 255, 255, .14);

  /* Sombras */
  --sg-shadow-list: 0 8px 20px -18px rgba(16, 40, 31, .7);
  --sg-shadow-elevated: 0 1px 2px rgba(16, 40, 31, .05), 0 12px 28px -22px rgba(16, 40, 31, .35);
  --sg-shadow-cta: 0 14px 28px -16px rgba(180, 130, 10, .8);
  --sg-shadow-sheet: 0 -20px 40px -24px rgba(0, 0, 0, .55);

  /* Tons de status (seção 2.5) */
  --tone-neutro-bg: #EDEAE0;   --tone-neutro-fg: #5A5A4E;
  --tone-info-bg: #E4EBF0;     --tone-info-fg: #2A5064;
  --tone-atencao-bg: #FBF0D6;  --tone-atencao-fg: #8A6512;
  --tone-sucesso-bg: #E3EFE6;  --tone-sucesso-fg: #1F5B3F;
  --tone-erro-bg: #F8E3E0;     --tone-erro-fg: #8C2F24;
  --tone-devolucao-bg: #EFE7F2; --tone-devolucao-fg: #5A3A6B;

  --sg-skeleton: #EDEAE0;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--sg-canvas);
  color: var(--sg-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sg-green-500); text-decoration: none; }
a:hover { color: var(--sg-gold-ink-soft); }

h1, h2, h3 { margin: 0; font-family: 'Lora', serif; font-weight: 600; color: var(--sg-text); }

p { margin: 0; text-wrap: pretty; }

button { font-family: inherit; }

.hidden { display: none !important; }

/* ---------------------------------------------------------------------------
 * Shell da tela: header (gradiente ou chapado) + folha creme rolável
 * ------------------------------------------------------------------------- */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--sg-green-900);
}

.app-header {
  flex: none;
  background: var(--sg-header-gradient);
  padding: 16px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-header--flat {
  background: var(--sg-green-900);
  padding: 16px 20px 18px;
  gap: 14px;
}

.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-header-logo { height: 42px; width: auto; display: block; }

.back-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--sg-border-onDark);
  background: transparent;
  color: #FFF;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-btn:hover { background: rgba(255,255,255,.06); }

.flat-header-title {
  font: 600 15px/1 'DM Sans';
  color: #FFF;
  text-align: center;
}

.hero-title {
  font: 600 26px/1.25 'Lora', serif;
  color: #FFF;
  max-width: 15ch;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(245, 182, 43, .14);
}
.user-pill span { font: 600 12px/1 'DM Sans'; color: var(--sg-gold-400); }

.avatar {
  flex: none;
  border-radius: 50%;
  background: var(--sg-avatar-gradient);
  color: var(--sg-gold-ink);
  font-family: 'DM Sans';
  font-weight: 700;
  text-align: center;
}
.avatar-26 { width: 26px; height: 26px; font-size: 11px; line-height: 26px; }
.avatar-34 { width: 34px; height: 34px; font-size: 12px; line-height: 34px; }
.avatar-56 { width: 56px; height: 56px; font-size: 18px; line-height: 56px; }

.status-pill {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245, 182, 43, .16);
  color: var(--sg-gold-400);
  font: 600 11px/1 'DM Sans';
}

.compact-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--sg-border-onDark);
  background: transparent;
  color: rgba(255, 255, 255, .8);
  font: 600 12px/1 'DM Sans';
  cursor: pointer;
}
.compact-btn:hover { background: rgba(255, 255, 255, .06); }

.app-sheet {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--sg-cream-100);
  border-radius: 26px 26px 0 0;
  margin-top: -4px;
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-sheet--flow { border-radius: 24px 24px 0 0; }

@media (min-width: 768px) {
  .app-header, .app-sheet, .wizard-footer { padding-left: max(18px, calc((100% - 720px) / 2 + 18px)); padding-right: max(18px, calc((100% - 720px) / 2 + 18px)); }
}

@media (min-width: 1024px) {
  .app-header, .app-sheet, .wizard-footer { padding-left: max(18px, calc((100% - 1080px) / 2 + 18px)); padding-right: max(18px, calc((100% - 1080px) / 2 + 18px)); }
}

/* ---------------------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------------------- */

.card {
  background: var(--sg-white);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-list {
  background: var(--sg-white);
  border-radius: 16px;
  box-shadow: var(--sg-shadow-list);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  font: 600 12px/1 'DM Sans';
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sg-text-faint);
}

.card-support-text {
  font: 400 13px/1.5 'DM Sans';
  color: var(--sg-text-soft);
}

/* ---------------------------------------------------------------------------
 * Botões
 * ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'DM Sans';
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; pointer-events: none; }

.btn-primary {
  height: 52px;
  padding: 0 20px;
  background: var(--sg-gold-gradient);
  color: var(--sg-gold-ink);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--sg-shadow-cta);
}
.btn-primary:hover { filter: brightness(1.04); }

.btn-primary-dark {
  height: 52px;
  padding: 0 20px;
  background: var(--sg-green-800);
  color: var(--sg-gold-400);
  font-weight: 700;
  font-size: 15px;
}
.btn-primary-dark:hover { background: var(--sg-green-700); }

.btn-secondary {
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--sg-border-input);
  background: var(--sg-white);
  color: var(--sg-text);
  font-weight: 600;
  font-size: 14px;
}
.btn-secondary:hover { background: var(--sg-cream-50); }

.btn-compact {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--sg-border-input);
  background: var(--sg-white);
  color: var(--sg-text);
  font-weight: 600;
  font-size: 12px;
}
.btn-compact:hover { background: var(--sg-cream-50); }

.btn-text {
  background: none;
  border: none;
  padding: 0;
  color: var(--sg-text);
  font: 700 13px/1 'DM Sans';
  text-decoration: underline;
  cursor: pointer;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--sg-green-500);
  font: 500 13px/1 'DM Sans';
  cursor: pointer;
}

.btn-block { width: 100%; }
.btn-flex { flex: 1; }

/* ---------------------------------------------------------------------------
 * Feedback de carregamento — spinner (ações) e skeleton (conteúdo de tela).
 * Nunca spinner de tela cheia (design system, seção "Loading").
 * ------------------------------------------------------------------------- */

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: .85;
  animation: sg-spin .6s linear infinite;
}

@keyframes sg-spin { to { transform: rotate(360deg); } }

.skeleton {
  background: var(--sg-skeleton);
  animation: sg-pulse 1.1s ease-in-out infinite;
}

@keyframes sg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ---------------------------------------------------------------------------
 * Formulário
 * ------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 7px; }

.field-label {
  font: 600 12px/1 'DM Sans';
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sg-text-soft);
}

input, select, textarea {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--sg-border-input);
  background: var(--sg-white);
  padding: 0 14px;
  font: 400 15px/1 'DM Sans';
  color: var(--sg-text);
}

.card input, .card select, .card textarea { background: var(--sg-cream-50); height: 46px; }

textarea {
  height: auto;
  min-height: 4.5em;
  padding: 12px 14px;
  line-height: 1.5;
  resize: none;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--sg-gold-500);
  outline-offset: 1px;
}

input.field-error, select.field-error, textarea.field-error {
  border-color: var(--tone-erro-fg);
}

.field-error-msg {
  font: 500 12px/1.4 'DM Sans';
  color: var(--tone-erro-fg);
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-list { display: flex; flex-direction: column; gap: 10px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font: 400 14px/1.4 'DM Sans';
  color: var(--sg-text-body);
}
.checkbox-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--sg-green-500); flex: none; }

.terms-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border-radius: 14px;
  background: var(--sg-white);
  border: 1px solid var(--sg-border-card);
  font: 400 13px/1.5 'DM Sans';
  color: var(--sg-text-body);
}
.terms-card input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--sg-green-500); flex: none; margin-top: 1px; }

/* ---------------------------------------------------------------------------
 * Mensagens
 * ------------------------------------------------------------------------- */

.msg {
  padding: 11px 13px;
  border-radius: 12px;
  font: 500 13px/1.4 'DM Sans';
}
.msg.error { background: var(--tone-erro-bg); color: var(--tone-erro-fg); }
.msg.success { background: var(--tone-sucesso-bg); color: var(--tone-sucesso-fg); }
.msg.warning { background: var(--tone-atencao-bg); color: var(--tone-atencao-fg); }

.hint { color: var(--sg-text-faint); font-size: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: var(--sg-green-800);
  color: #FFF;
  font: 500 13px/1.4 'DM Sans';
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--sg-shadow-elevated);
  z-index: 50;
  opacity: 0;
  transition: opacity 140ms ease-out;
  pointer-events: none;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.show { opacity: 1; }

/* ---------------------------------------------------------------------------
 * Chips de status e categoria
 * ------------------------------------------------------------------------- */

.chip-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font: 600 11px/1 'DM Sans';
  letter-spacing: .02em;
}
.chip-status.tone-neutro { background: var(--tone-neutro-bg); color: var(--tone-neutro-fg); }
.chip-status.tone-info { background: var(--tone-info-bg); color: var(--tone-info-fg); }
.chip-status.tone-atencao { background: var(--tone-atencao-bg); color: var(--tone-atencao-fg); }
.chip-status.tone-sucesso { background: var(--tone-sucesso-bg); color: var(--tone-sucesso-fg); }
.chip-status.tone-erro { background: var(--tone-erro-bg); color: var(--tone-erro-fg); }
.chip-status.tone-devolucao { background: var(--tone-devolucao-bg); color: var(--tone-devolucao-fg); }

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }

.chip-category {
  flex: none;
  padding: 9px 15px;
  border-radius: 999px;
  font: 500 13px/1 'DM Sans';
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .75);
  border: none;
  cursor: pointer;
}
.chip-category.active { background: var(--sg-gold-400); color: var(--sg-gold-ink); font-weight: 600; }

/* ---------------------------------------------------------------------------
 * Catálogo — card de produto e stepper
 * ------------------------------------------------------------------------- */

.product-card {
  background: var(--sg-white);
  border-radius: 16px;
  border-left: 3px solid var(--sg-gold-500);
  padding: 16px 16px 16px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sg-shadow-list);
}
.product-card.unavailable { border-left-color: rgba(16, 40, 31, .12); }

.product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.product-name { font: 600 17px/1.25 'Lora', serif; color: var(--sg-text); }
.product-desc { font: 400 13px/1.45 'DM Sans'; color: var(--sg-text-soft); }
.product-price { font: 700 16px/1 'DM Sans'; color: var(--sg-text); margin-top: 3px; }

.product-actions { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: var(--sg-cream-200);
  color: var(--sg-text);
  font: 500 16px/1 'DM Sans';
  cursor: pointer;
}
.stepper-btn:hover { background: #E6E2D3; }
.stepper-qty { min-width: 14px; text-align: center; font: 700 15px/1 'DM Sans'; }

.add-btn {
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--sg-green-800);
  color: var(--sg-gold-400);
  font: 600 13px/1 'DM Sans';
  cursor: pointer;
}
.add-btn:hover { background: var(--sg-green-700); }
.add-btn:disabled { opacity: .4; pointer-events: none; }

/* Sheet de carrinho — sempre no fluxo, nunca sobreposto */
.cart-sheet {
  flex: none;
  background: var(--sg-green-800);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--sg-shadow-sheet);
}
.cart-sheet-info { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; }
.cart-sheet-count { font: 500 12px/1 'DM Sans'; color: rgba(255, 255, 255, .55); }
.cart-sheet-total { font: 700 20px/1 'DM Sans'; color: #FFF; }
.cart-sheet .btn-primary { height: 46px; margin-bottom: 16px; }

/* ---------------------------------------------------------------------------
 * Carrinho — linha de item
 * ------------------------------------------------------------------------- */

.cart-item {
  background: var(--sg-white);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-item-name { font: 600 15px/1.3 'Lora', serif; color: var(--sg-text); }
.cart-item-line { font: 400 13px/1 'DM Sans'; color: var(--sg-text-soft); }

.empty-state {
  background: var(--sg-white);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state p { font: 400 14px/1.5 'DM Sans'; color: var(--sg-text-soft); }

.checkout-footer {
  flex: none;
  background: var(--sg-green-800);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkout-footer-row { display: flex; align-items: center; justify-content: space-between; }
.checkout-footer-count { font: 500 13px/1 'DM Sans'; color: rgba(255, 255, 255, .6); }
.checkout-footer-total { font: 700 22px/1 'DM Sans'; color: #FFF; }

/* ---------------------------------------------------------------------------
 * Pedidos — card de lista
 * ------------------------------------------------------------------------- */

.order-card {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  background: var(--sg-white);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sg-shadow-list);
  font-family: inherit;
}
.order-card:hover { background: var(--sg-cream-50); }
.order-card-row { display: flex; justify-content: space-between; gap: 10px; }
.order-card-row--bottom { align-items: flex-end; }
.order-card-code { font: 700 15px/1 'DM Sans'; color: var(--sg-text); }
.order-card-meta { display: flex; flex-direction: column; gap: 4px; }
.order-card-date { font: 400 13px/1 'DM Sans'; color: var(--sg-text-faint); }
.order-card-payment { font: 500 13px/1 'DM Sans'; color: var(--sg-text-soft); }
.order-card-total { font: 700 17px/1 'DM Sans'; color: var(--sg-text); }

/* ---------------------------------------------------------------------------
 * Detalhe do pedido — timeline e rastreio
 * ------------------------------------------------------------------------- */

.timeline { display: flex; flex-direction: column; }
.timeline-step { display: flex; gap: 14px; align-items: stretch; }
.timeline-marker { flex: none; width: 22px; display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; border: 2px solid; }
.timeline-line { flex: 1; width: 2px; }
.timeline-content { flex: 1; padding-bottom: 16px; display: flex; flex-direction: column; gap: 3px; }
.timeline-label { font: 600 14px/1.3 'DM Sans'; }
.timeline-when { font: 400 12px/1.4 'DM Sans'; color: var(--sg-text-faint); }
.timeline-exception-note { font: 400 12px/1.4 'DM Sans'; color: var(--tone-erro-fg); }

.tracking-block {
  background: var(--sg-cream-100);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tracking-code-label { font: 600 11px/1 'DM Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-text-faint); }
.tracking-code-value { font: 700 15px/1 'DM Sans'; color: var(--sg-text); letter-spacing: .02em; margin-top: 4px; }

.items-list { display: flex; flex-direction: column; gap: 12px; }
.item-row { display: flex; justify-content: space-between; gap: 12px; }
.item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item-name { font: 600 15px/1.3 'Lora', serif; color: var(--sg-text); }
.item-detail { font: 400 12px/1 'DM Sans'; color: var(--sg-text-faint); }
.item-total { flex: none; font: 700 15px/1 'DM Sans'; color: var(--sg-text); }

.order-total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--sg-border-divider);
}
.order-total-label { font: 500 13px/1 'DM Sans'; color: var(--sg-text-soft); }
.order-total-value { font: 700 19px/1 'DM Sans'; color: var(--sg-text); }

/* ---------------------------------------------------------------------------
 * Documentos — linha e upload
 * ------------------------------------------------------------------------- */

.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--sg-cream-100);
}
.doc-badge {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sg-white);
  color: var(--sg-gold-ink-soft);
  font: 700 11px/34px 'DM Sans';
  text-align: center;
}
.doc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.doc-name { font: 600 14px/1.2 'DM Sans'; color: var(--sg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-date { font: 400 12px/1 'DM Sans'; color: var(--sg-text-faint); }
.doc-view-link { flex: none; font: 600 12px/1 'DM Sans'; color: var(--sg-green-500); }

.upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  border-radius: 14px;
  border: 1px dashed var(--sg-border-upload);
  background: rgba(255, 255, 255, .6);
  padding: 0 14px;
  cursor: pointer;
}
.upload-area:hover { background: var(--sg-cream-50); }
.upload-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--sg-cream-300);
  color: var(--sg-gold-ink-soft);
  font: 700 15px/30px 'DM Sans';
  text-align: center;
}
.upload-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upload-title { font: 600 13px/1 'DM Sans'; color: var(--sg-text); }
.upload-hint { font: 400 11px/1 'DM Sans'; color: var(--sg-text-faint); }
.upload-area input[type=file] { display: none; }
.upload-select {
  height: 34px;
  margin-left: auto;
  flex: none;
  width: auto;
  font-size: 12px;
  padding: 0 8px;
}

/* ---------------------------------------------------------------------------
 * Perfil — linhas de dados
 * ------------------------------------------------------------------------- */

.data-rows { display: flex; flex-direction: column; gap: 12px; }
.data-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.data-row-label { flex: none; font: 500 13px/1.3 'DM Sans'; color: var(--sg-text-faint); }
.data-row-value { font: 600 14px/1.3 'DM Sans'; color: var(--sg-text); text-align: right; }

/* ---------------------------------------------------------------------------
 * Bottom nav
 * ------------------------------------------------------------------------- */

.bottom-nav {
  flex: none;
  height: 84px;
  background: var(--sg-green-800);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 8px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255, 255, 255, .07);
  position: sticky;
  bottom: 0;
}
.nav-item {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .5);
}
.nav-item svg { width: 20px; height: 20px; stroke: currentColor; }
.nav-item span { font: 600 11px/1 'DM Sans'; }
.nav-item.active { color: var(--sg-gold-400); }

/* ---------------------------------------------------------------------------
 * Login
 * ------------------------------------------------------------------------- */

.login-screen {
  min-height: 100dvh;
  background: var(--sg-header-gradient-login);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 32px 26px;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.login-logo { height: 104px; }
.login-subtitle { font: 400 15px/1.5 'DM Sans'; color: rgba(255, 255, 255, .6); max-width: 26ch; text-align: center; }

.login-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--sg-cream-100);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
 * Wizard de cadastro
 * ------------------------------------------------------------------------- */

.wizard-progress { display: flex; flex-direction: column; gap: 9px; }
.wizard-progress-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.wizard-progress-fill { height: 6px; border-radius: 999px; background: var(--sg-gold-gradient); transition: width 180ms ease-out; }
.wizard-progress-row { display: flex; align-items: baseline; justify-content: space-between; }
.wizard-step-title { font: 600 17px/1.2 'Lora', serif; color: #FFF; }
.wizard-step-hint { font: 400 12px/1 'DM Sans'; color: rgba(255, 255, 255, .5); }

.wizard-step { display: flex; flex-direction: column; gap: 14px; }

.wizard-footer {
  flex: none;
  background: var(--sg-white);
  border-top: 1px solid var(--sg-border-divider);
  padding: 14px 18px 20px;
  display: flex;
  gap: 10px;
}
.wizard-footer .btn-secondary { flex: none; }
.wizard-footer .btn-primary-dark { flex: 1; }

/* ---------------------------------------------------------------------------
 * Responsividade — telas raiz mais largas
 * ------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .product-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
}

@media (max-width: 480px) {
  .field-row-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
}
