/* ════════════════════════════════════════════════════════════════
   BrasilConnect Store — componentes com prefixo st-
   Usa so os tokens do premium.css (carregar premium.css antes).
   Mobile primeiro: 2 colunas abaixo de 720px, gutter de 16px.
   Usado por todas as paginas da Store (vitrine, produto, loja,
   carrinho, pedidos, cadastro e painel do vendedor).
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Estados. O vermelho e o mesmo ja usado no site (negocio/index.html). */
  --st-ok: var(--green-deep);
  --st-ok-soft: var(--green-soft);
  --st-warn: var(--accent-deep);
  --st-warn-soft: var(--gold-soft);
  --st-err: #9F2D2D;
  --st-err-soft: rgba(159, 45, 45, 0.08);
  --st-gutter: 16px;
  --st-radius-card: var(--r-lg);
}

/* ── Base da pagina ─────────────────────────────────────────────── */
.st-page { overflow-x: hidden; }
.st-page [hidden] { display: none !important; }
.st-page img { max-width: 100%; }
.st-page :focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
.st-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.st-muted { color: var(--ink-muted); }
.st-small { font-size: 13px; }
.st-center { text-align: center; }
.st-row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.st-nowrap { white-space: nowrap; }
.st-break { overflow-wrap: anywhere; }

/* ── Layout ─────────────────────────────────────────────────────── */
.st-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--st-gutter);
}
.st-wrap-narrow { max-width: 820px; }
.st-main { padding-top: 20px; padding-bottom: 32px; min-height: 60vh; }
/* premium.css da 56px a todo <section>. Na Store o <section> nasce sem
   respiro; :where() deixa a regra com o mesmo peso de "section", entao
   qualquer classe (.st-section, .st-panel, .st-po-*) ganha dela. */
:where(.st-page) section { padding: 0; }
.st-section { padding: 28px 0; }
.st-section + .st-section { border-top: 1px solid var(--line); }
.st-section > h2,
.st-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.st-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; margin-bottom: 16px;
}
.st-head h2 { margin: 0; font-size: 20px; }
@media (min-width: 720px) {
  :root { --st-gutter: 24px; }
  .st-main { padding-top: 28px; }
  .st-section { padding: 40px 0; }
  .st-section > h2, .st-section-title, .st-head h2 { font-size: 24px; }
}
@media (min-width: 1024px) {
  :root { --st-gutter: 40px; }
}

/* ── Nav: carrinho e conta (sempre visiveis no celular) ──────────── */
.st-nav-cart {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none !important;
}
.st-nav-cart:hover { background: var(--paper-soft); color: var(--green-deep); }
.st-nav-count {
  position: absolute; top: 1px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--green-deep); color: var(--paper);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.st-nav-account { position: relative; display: inline-flex; align-items: center; flex: none; min-width: 38px; min-height: 38px; }
.st-nav-account-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 10px;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.st-nav-account-btn:hover { border-color: var(--green-deep); color: var(--green-deep); }
.st-nav-account-btn svg { flex: none; }
.st-account-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; max-width: calc(100vw - 32px);
  padding: 6px;
  background: var(--paper-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 120;
}
.st-account-menu .st-account-email {
  padding: 8px 10px 10px;
  font-size: 12px; color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-account-menu a,
.st-account-menu button {
  display: block; width: 100%;
  padding: 10px;
  font: inherit; font-size: 14px; text-align: left;
  color: var(--ink);
  background: none; border: 0; border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
}
.st-account-menu a:hover,
.st-account-menu button:hover,
.st-account-menu a:focus-visible,
.st-account-menu button:focus-visible { background: var(--paper-soft); color: var(--green-deep); }
@media (max-width: 560px) {
  .st-nav-account-btn { width: 38px; padding: 0; justify-content: center; }
  .st-nav-account-btn .st-nav-account-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 880px) {
  .st-page .bc-nav-r { gap: 10px; }
}
@media (max-width: 400px) {
  .st-page .bc-nav .bc-logo { font-size: 16px; }
  .st-page .bc-nav-r { gap: 8px; }
  .st-nav-cart, .st-nav-account-btn { width: 34px; height: 34px; }
}
/* Celular bem estreito (320px): com outro link ativo, "Vender" sai do topo
   (continua no rodape) para nada ficar cortado sem rolagem */
@media (max-width: 359px) {
  .st-page .bc-nav-r .bc-nl.active:not(:last-child) ~ .bc-nl:last-child { display: none; }
}

/* ── Faixa de aviso (Store fechada, previa) ─────────────────────── */
.st-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  background: var(--gold-soft);
  border: 1px solid rgba(184, 148, 59, 0.35);
  border-radius: var(--r-md);
  font-size: 14px; color: var(--ink-soft);
}
.st-banner strong { color: var(--accent-deep); }
.st-banner a { color: var(--green-deep); font-weight: 600; }

/* ── Botoes (complementam .btn do premium.css) ─────────────────── */
.st-page .btn { justify-content: center; font-size: 14px; min-height: 44px; }
.st-page .btn[disabled],
.st-page .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.st-page .btn-primary[disabled]:hover { background: var(--green-deep); border-color: var(--green-deep); }
.st-btn-sm { padding: 8px 14px !important; min-height: 36px !important; font-size: 13px !important; }
.st-btn-block { display: flex; width: 100%; }
.st-btn-danger { background: transparent; color: var(--st-err); border: 1px solid rgba(159, 45, 45, 0.35); }
.st-btn-danger:hover { background: var(--st-err-soft); color: var(--st-err); border-color: var(--st-err); }
.st-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.st-btn-row > .btn { flex: 1 1 auto; }
@media (min-width: 720px) { .st-btn-row > .btn { flex: 0 0 auto; } }
.st-linkbtn {
  padding: 0; margin: 0;
  font: inherit; font-size: 14px;
  color: var(--ink-soft);
  background: none; border: 0;
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px;
  cursor: pointer;
}
.st-linkbtn:hover { color: var(--green-deep); }

/* ── Formularios ────────────────────────────────────────────────── */
.st-form { display: grid; gap: 16px; }
.st-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) {
  .st-form-grid { grid-template-columns: 1fr 1fr; }
  .st-form-grid > .st-full { grid-column: 1 / -1; }
}
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-field > label,
.st-label {
  font-size: 13px; font-weight: 600; color: var(--ink);
  letter-spacing: 0;
}
.st-hint { font-size: 12px; color: var(--ink-muted); margin: 0; line-height: 1.5; }
.st-input,
.st-select,
.st-textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 16px; /* 16px evita zoom no iPhone */
  color: var(--ink);
  background: var(--paper-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.st-select {
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.st-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.st-input::placeholder, .st-textarea::placeholder { color: var(--ink-muted); }
.st-input:focus, .st-select:focus, .st-textarea:focus {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.st-input[aria-invalid="true"], .st-select[aria-invalid="true"], .st-textarea[aria-invalid="true"] { border-color: var(--st-err); }
.st-input:disabled, .st-select:disabled, .st-textarea:disabled { background: var(--paper-soft); color: var(--ink-muted); }
.st-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  cursor: pointer;
}
.st-check input[type="checkbox"],
.st-check input[type="radio"] {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: var(--green-deep);
}
.st-msg { margin: 0; font-size: 14px; min-height: 1.4em; }
.st-msg.is-ok { color: var(--st-ok); font-weight: 600; }
.st-msg.is-err { color: var(--st-err); }
.st-alert {
  padding: 10px 14px; border-radius: var(--r-md);
  font-size: 14px; line-height: 1.5;
}
.st-alert-err { background: var(--st-err-soft); color: var(--st-err); }
.st-alert-ok { background: var(--st-ok-soft); color: var(--st-ok); }
.st-alert-warn { background: var(--st-warn-soft); color: var(--st-warn); }

/* ── Busca ──────────────────────────────────────────────────────── */
.st-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px;
  background: var(--paper-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.st-search .st-input,
.st-search .st-select { border-color: transparent; background-color: var(--paper); }
.st-search .st-input:focus,
.st-search .st-select:focus { border-color: var(--green-deep); }
.st-search .btn { min-height: 46px; border-radius: var(--r-md); }
.st-search-ship { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-search-ship label { flex: none; font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.st-search-ship .st-select { flex: 1 1 auto; min-width: 0; }
@media (min-width: 720px) {
  .st-search { grid-template-columns: minmax(0, 1fr) 240px auto; align-items: center; }
}

/* ── Chips de categoria ─────────────────────────────────────────── */
.st-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.st-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 7px 14px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.st-chip:hover { border-color: var(--green-deep); color: var(--ink); }
.st-chip[aria-pressed="true"],
.st-chip.is-active,
.st-chip[aria-current="true"] { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.st-chip .st-chip-count { font-size: 12px; opacity: 0.7; font-variant-numeric: tabular-nums; }

/* ── Toolbar de resultados ──────────────────────────────────────── */
.st-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px;
  margin: 20px 0 16px;
}
.st-toolbar .st-count { font-size: 14px; color: var(--ink-soft); margin: 0; }
.st-toolbar .st-count strong { font-variant-numeric: tabular-nums; }
.st-sort { display: flex; align-items: center; gap: 8px; }
.st-sort label { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.st-sort .st-select { min-height: 40px; width: auto; padding-top: 7px; padding-bottom: 7px; font-size: 15px; }

/* ── Grade e card de produto ────────────────────────────────────── */
.st-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 720px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1000px) { .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .st-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* .st-grid-4: no maximo 4 colunas (ex.: relacionados) */
@media (min-width: 1240px) { .st-grid.st-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.st-card {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none !important;
  border-radius: var(--st-radius-card);
}
.st-card:hover { color: var(--ink); }
.st-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--st-radius-card);
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.st-card-media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .st-card:hover .st-card-media img { transform: scale(1.03); }
}
.st-card-noimg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--paper-deep), var(--gold-soft));
}
.st-card.is-soldout .st-card-media img { opacity: 0.55; }
.st-card-flag { position: absolute; top: 8px; left: 8px; }
.st-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 2px; }
.st-card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.st-card:hover .st-card-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.st-card-seller { font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 720px) { .st-card-title { font-size: 15px; } }

/* ── Preco ──────────────────────────────────────────────────────── */
.st-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.st-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.st-price-old {
  font-size: 13px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.st-price-lg .st-price { font-size: 30px; }
.st-price-lg .st-price-old { font-size: 16px; }

/* ── Estrelas ───────────────────────────────────────────────────── */
.st-stars { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); line-height: 1; }
.st-stars-track {
  position: relative; display: inline-block;
  color: var(--line-strong);
  letter-spacing: 1px; font-size: 13px;
  white-space: nowrap;
}
.st-stars-fill {
  position: absolute; top: 0; left: 0;
  overflow: hidden; white-space: nowrap;
  color: var(--accent);
}
.st-stars-num { font-variant-numeric: tabular-nums; color: var(--ink-muted); }

/* ── Selos ──────────────────────────────────────────────────────── */
.st-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  line-height: 1.4;
  border-radius: 999px;
  background: var(--paper-soft); color: var(--ink-soft);
  white-space: nowrap;
}
.st-badge-ok { background: var(--st-ok-soft); color: var(--st-ok); }
.st-badge-warn { background: var(--st-warn-soft); color: var(--st-warn); }
.st-badge-err { background: var(--st-err-soft); color: var(--st-err); }
.st-badge-muted { background: var(--paper-elevated); color: var(--ink-soft); border: 1px solid var(--line-strong); }

/* ── Painel / caixa ─────────────────────────────────────────────── */
.st-panel {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  min-width: 0;
}
.st-panel + .st-panel { margin-top: 16px; }
.st-panel-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
@media (min-width: 720px) { .st-panel { padding: 24px; } }

/* ── Abas ───────────────────────────────────────────────────────── */
.st-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--paper-soft);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab {
  flex: 1 0 auto;
  min-height: 38px; padding: 7px 14px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  background: transparent; border: 0; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  text-decoration: none !important;
  text-align: center;
}
.st-tab:hover { color: var(--ink); }
.st-tab[aria-selected="true"],
.st-tab.is-active { background: var(--paper-elevated); color: var(--green-deep); box-shadow: var(--shadow-sm); }
.st-tab .st-tab-count {
  display: inline-block; margin-left: 4px; min-width: 18px; padding: 0 5px;
  font-size: 11px; line-height: 18px; border-radius: 999px;
  background: var(--green-deep); color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* ── Estado vazio / erro ────────────────────────────────────────── */
.st-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-muted);
}
.st-empty h2, .st-empty h3 { font-size: 20px; color: var(--ink); margin: 0 0 8px; }
.st-empty p { max-width: 46ch; margin: 0 auto 16px; }

/* ── Esqueleto de carregamento ──────────────────────────────────── */
.st-skeleton {
  display: block;
  background: linear-gradient(90deg, var(--paper-soft) 0%, var(--paper-deep) 50%, var(--paper-soft) 100%);
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  animation: st-shimmer 1.4s ease-in-out infinite;
  color: transparent !important;
}
.st-skeleton-card { aspect-ratio: 1 / 1; border-radius: var(--st-radius-card); }
.st-skeleton-line { height: 12px; margin-top: 10px; }
.st-skeleton-line.short { width: 50%; }
@keyframes st-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .st-skeleton { animation: none; } }

/* ── Quantidade ─────────────────────────────────────────────────── */
.st-qty {
  display: inline-flex; align-items: stretch;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-elevated);
  overflow: hidden;
}
.st-qty button {
  width: 44px;
  font: inherit; font-size: 20px; line-height: 1;
  color: var(--ink);
  background: none; border: 0;
  cursor: pointer;
}
.st-qty button:hover:not([disabled]) { background: var(--paper-soft); color: var(--green-deep); }
.st-qty button[disabled] { color: var(--ink-muted); cursor: not-allowed; }
.st-qty input {
  width: 46px;
  padding: 0;
  font: inherit; font-size: 16px; font-weight: 600; text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: transparent; border: 0;
  -moz-appearance: textfield;
}
.st-qty input::-webkit-outer-spin-button,
.st-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-qty-sm { height: 36px; }
.st-qty-sm button { width: 34px; font-size: 17px; }
.st-qty-sm input { width: 36px; font-size: 15px; }

/* ── Linha do tempo ─────────────────────────────────────────────── */
.st-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.st-timeline > li {
  position: relative;
  padding: 0 0 18px 26px;
  font-size: 14px; color: var(--ink-soft);
}
.st-timeline > li::before {
  content: "";
  position: absolute; left: 4px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper-elevated);
  border: 2px solid var(--line-strong);
}
.st-timeline > li::after {
  content: "";
  position: absolute; left: 8px; top: 18px; bottom: 0;
  width: 2px; background: var(--line);
}
.st-timeline > li:last-child { padding-bottom: 0; }
.st-timeline > li:last-child::after { display: none; }
.st-timeline > li.is-done::before { background: var(--green-deep); border-color: var(--green-deep); }
.st-timeline > li.is-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.st-timeline > li.is-err::before { background: var(--st-err); border-color: var(--st-err); }
.st-timeline-title { display: block; font-weight: 600; color: var(--ink); }
.st-timeline-date { display: block; font-size: 12px; color: var(--ink-muted); }

/* ── Tabela simples ─────────────────────────────────────────────── */
.st-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-elevated); }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th {
  text-align: left; padding: 10px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.st-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.st-table tr:last-child td { border-bottom: 0; }
.st-table .st-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Lista de definicao (politicas, resumo) ─────────────────────── */
.st-dl { display: grid; grid-template-columns: 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.st-dl dt { font-weight: 600; color: var(--ink); margin-top: 8px; }
.st-dl dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .st-dl { grid-template-columns: minmax(140px, 200px) 1fr; }
  .st-dl dt { margin-top: 0; }
}
.st-totals { display: grid; gap: 6px; font-size: 14px; }
.st-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.st-totals > div > :last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-totals .st-total-final { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; font-size: 16px; color: var(--ink); }

/* ── Modal ──────────────────────────────────────────────────────── */
html.st-modal-open, html.st-modal-open body { overflow: hidden; }
.st-modal-backdrop {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(26, 31, 28, 0.55);
  overflow-y: auto;
}
.st-modal {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--paper-elevated);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 20px 20px;
}
.st-modal-wide { max-width: 640px; }
.st-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.st-modal-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.st-modal-close {
  flex: none;
  width: 36px; height: 36px; margin: -6px -6px 0 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  background: none; border: 0; border-radius: 999px;
  cursor: pointer;
}
.st-modal-close:hover { background: var(--paper-soft); color: var(--ink); }
.st-modal-lede { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.st-modal .st-tabs { margin-bottom: 16px; }
/* Login no celular: as duas abas dividem a largura e quebram linha se precisar (sem rolagem escondida) */
.st-modal .st-tab { flex: 1 1 0; min-width: 0; padding: 7px 8px; white-space: normal; line-height: 1.2; }
.st-modal-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); text-align: center; }
.st-code-input { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 22px !important; letter-spacing: 0.3em; text-align: center; }
@media (min-width: 720px) { .st-modal { padding: 26px 26px 24px; } }

/* ── Aviso flutuante (toast) ────────────────────────────────────── */
.st-toast-wrap {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 1100;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.st-toast {
  max-width: 440px; width: 100%;
  padding: 12px 16px;
  background: var(--ink); color: var(--paper);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.45;
  pointer-events: auto;
  animation: st-toast-in .2s ease-out;
}
.st-toast.is-ok { border-left-color: var(--flag-green); }
.st-toast.is-err { border-left-color: var(--st-err); }
@keyframes st-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-toast { animation: none; } }

/* ── Migalhas ───────────────────────────────────────────────────── */
.st-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--ink-muted); margin: 0 0 16px; min-width: 0; }
.st-crumbs a { color: var(--ink-muted); text-decoration: none; }
.st-crumbs a:hover { color: var(--green-deep); text-decoration: underline; }
.st-crumbs [aria-current] { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ── Vitrine (index) ────────────────────────────────────────────── */
.st-hero { padding: 20px 0 8px; }
.st-hero h1 { font-size: clamp(26px, 6.4vw, 44px); margin: 0 0 8px; max-width: 22ch; }
.st-hero .st-lede { font-size: 15px; color: var(--ink-soft); margin: 0 0 18px; max-width: 58ch; }
@media (min-width: 720px) {
  .st-hero { padding: 36px 0 12px; }
  .st-hero .st-lede { font-size: 17px; }
}
.st-more { display: flex; justify-content: center; margin-top: 28px; }

.st-sellers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 720px) { .st-sellers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .st-sellers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-seller-chip {
  display: flex; align-items: center; gap: 10px;
  height: 100%;
  padding: 10px;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none !important;
  min-width: 0;
}
.st-seller-chip:hover { border-color: var(--green-deep); color: var(--ink); }
.st-seller-chip-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-seller-chip-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-seller-chip-loc { font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.st-logo {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--paper-soft) center / cover no-repeat;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--green-deep);
  overflow: hidden;
}
.st-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-logo-lg { width: 88px; height: 88px; border-radius: 20px; font-size: 30px; border: 4px solid var(--paper); }
@media (min-width: 720px) { .st-logo-lg { width: 104px; height: 104px; border-radius: 22px; font-size: 34px; } }

.st-how {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin: 0; padding: 0; list-style: none;
  counter-reset: sthow;
}
@media (min-width: 720px) { .st-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .st-how { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-how > li {
  counter-increment: sthow;
  padding: 16px 18px;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px; color: var(--ink-soft); line-height: 1.55;
}
.st-how > li::before {
  content: counter(sthow, decimal-leading-zero);
  display: block; margin-bottom: 6px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  color: var(--accent);
}
.st-how > li strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

.st-closed { padding: 32px 0 16px; }
.st-closed h1 { font-size: clamp(28px, 7vw, 48px); max-width: 18ch; }
.st-waitlist { display: grid; gap: 8px; max-width: 520px; margin-top: 20px; }
.st-waitlist-row { display: flex; flex-wrap: wrap; gap: 8px; }
.st-waitlist-row .st-input { flex: 1 1 220px; min-width: 0; }
.st-waitlist-row .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .st-waitlist-row .btn { flex: 1 1 100%; } }

/* ── Pagina de produto ──────────────────────────────────────────── */
.st-product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) {
  .st-product { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .st-gallery { position: sticky; top: 88px; }
}
.st-gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.st-gallery-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.st-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-thumb {
  width: 60px; height: 60px; padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-soft);
  cursor: pointer;
}
.st-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-thumb[aria-pressed="true"] { border-color: var(--green-deep); }
@media (min-width: 720px) { .st-thumb { width: 72px; height: 72px; } }

.st-buy { min-width: 0; }
.st-product-title { font-size: clamp(22px, 5.4vw, 32px); font-weight: 700; line-height: 1.15; margin: 0 0 8px; overflow-wrap: anywhere; }
.st-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--ink-muted); margin: 0 0 14px; }
.st-byline a { color: var(--green-deep); font-weight: 600; }
.st-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.st-stock { font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.st-stock.is-ok { color: var(--st-ok); }
.st-stock.is-low { color: var(--st-warn); }
.st-stock.is-out { color: var(--st-err); }
.st-buy-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 8px; }
.st-buy-form .btn { flex: 1 1 200px; min-height: 48px; font-size: 15px; }
.st-buy-msg { font-size: 14px; margin: 0 0 8px; min-height: 1.2em; }
.st-buy-msg a { color: var(--green-deep); font-weight: 600; }
.st-transparency {
  margin: 16px 0 0;
  padding: 14px 16px;
  font-size: 14px; line-height: 1.55; color: var(--ink-soft);
  background: var(--green-soft);
  border-radius: var(--r-md);
}
.st-transparency strong { color: var(--green-deep); }
.st-transparency a { color: var(--green-deep); font-weight: 600; }
.st-ship { margin-top: 16px; }
.st-ship-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; margin-top: 10px; }
.st-ship-form .btn { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .st-ship-form { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .st-ship-form .btn { grid-column: auto; }
}
.st-options { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.st-option {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
}
.st-option-name { font-weight: 600; color: var(--ink); }
.st-option-sub { display: block; font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.st-option-price { font-weight: 700; color: var(--green-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-zones { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.st-zones li { padding-left: 14px; position: relative; overflow-wrap: anywhere; }
.st-zones li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.st-desc { font-size: 15px; line-height: 1.7; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; max-width: 72ch; margin: 0; }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }

.st-seller-card { display: grid; gap: 16px; }
.st-seller-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.st-seller-top h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.st-seller-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.st-policy-text { white-space: pre-line; }

.st-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-review { padding: 16px; background: var(--paper-elevated); border: 1px solid var(--line); border-radius: var(--r-md); }
.st-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ink-muted); }
.st-review-head strong { color: var(--ink); font-size: 14px; }
.st-review-body { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.st-review-product { margin: 6px 0 0; font-size: 12px; color: var(--ink-muted); }
.st-review-reply {
  margin: 10px 0 0; padding: 10px 12px;
  font-size: 13px; color: var(--ink-soft);
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  white-space: pre-line; overflow-wrap: anywhere;
}
.st-review-reply strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 2px; }

.st-report-row { margin: 24px 0 0; font-size: 13px; color: var(--ink-muted); }

/* ── Pagina da loja ─────────────────────────────────────────────── */
.st-shop-cover {
  height: 150px;
  border-radius: var(--r-lg);
  background: var(--green-deep) center / cover no-repeat;
}
.st-shop-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: -36px 0 0 14px; position: relative; }
.st-shop-title { min-width: 0; }
.st-shop-title h1 { font-size: clamp(26px, 6vw, 40px); margin: 0 0 4px; line-height: 1.1; overflow-wrap: anywhere; }
.st-shop-tagline { font-size: 15px; color: var(--ink-soft); margin: 0 0 6px; overflow-wrap: anywhere; }
.st-shop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--ink-muted); }
.st-shop-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
@media (min-width: 720px) {
  .st-shop-cover { height: 220px; border-radius: 20px; }
  .st-shop-head { flex-direction: row; align-items: flex-end; gap: 20px; margin: -44px 0 0 24px; }
  .st-shop-title { padding-bottom: 6px; }
}
@media (min-width: 1000px) {
  .st-shop-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
  .st-shop-layout .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
  .st-shop-layout .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Paginas de texto (regras) ──────────────────────────────────── */
.st-doc h1 { font-size: clamp(28px, 6vw, 44px); margin: 0 0 10px; }
.st-doc h2 { font-size: clamp(20px, 4.4vw, 28px); margin: 0 0 12px; scroll-margin-top: 88px; }
.st-doc h3 { font-size: 17px; margin: 20px 0 6px; }
.st-doc p, .st-doc li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.st-doc ul, .st-doc ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.st-doc li { margin-bottom: 6px; }
.st-doc li strong { color: var(--ink); }
.st-doc section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.st-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; padding: 0; list-style: none; }
.st-note { font-size: 13px; color: var(--ink-muted); }
.st-doc .st-panel-title { margin-top: 0; }
.st-doc .st-panel ul { margin-bottom: 0; }
.st-cols { display: grid; grid-template-columns: 1fr; gap: 12px; }
.st-cols > .st-panel + .st-panel { margin-top: 0; }
@media (min-width: 720px) { .st-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Rodape: tira a margem extra quando a pagina ja termina em secao ── */
.st-page footer.bc-footer { margin-top: 48px; }
@media (max-width: 720px) {
  .st-page footer.bc-footer { padding: 56px 0 32px; }
  .st-page footer.bc-footer .container { padding: 0 var(--st-gutter); }
}
