/* =====================================================================
   CABRON PHARMA — Base + componentes. Consome tokens.css. Mobile-first.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-16);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--fs-38); }
h2 { font-size: var(--fs-30); }
h3 { font-size: var(--fs-24); }

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd, samp { font-family: var(--font-mono); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* --- Header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--neutral-950) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 64px;
}
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; display: block; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800; font-size: var(--fs-24);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.brand .accent { color: var(--primary-500); }

.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--text-muted); font-size: var(--fs-14); font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Botão hambúrguer (só no mobile) */
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--neutral-950); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 80vh; }
  .nav a { padding: 0.9rem 1rem; border-top: 1px solid var(--border); font-size: var(--fs-16); }
  .nav a:first-child { border-top: none; }
}

/* --- Botões (doc 09 §8) -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.7rem 1.25rem;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-16);
  cursor: pointer; transition: background .15s, box-shadow .15s, border-color .15s;
}
.btn-primary { background: var(--primary-500); color: var(--neutral-950); }
.btn-primary:hover { background: var(--primary-400); box-shadow: var(--shadow-glow); text-decoration: none; }
.btn-secondary { background: transparent; border-color: var(--primary-500); color: var(--primary-400); }
.btn-secondary:hover { background: var(--primary-950); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }

/* --- Cartões -------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* --- Hero ----------------------------------------------------------- */
.hero {
  background: var(--gradient-depth);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero h1 {
  font-size: clamp(1.9rem, 8vw, var(--fs-48));
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.hero .lead { font-size: var(--fs-20); color: var(--text-muted); max-width: 46ch; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: var(--fs-12); font-weight: 600;
  background: var(--success-bg); color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 40%, transparent);
}

/* --- Formulários ---------------------------------------------------- */
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-size: var(--fs-14); color: var(--text-muted); }
.input {
  width: 100%; padding: 0.7rem 0.85rem;
  background: var(--neutral-925); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: var(--fs-16);
}
.input::placeholder { color: var(--neutral-500); }
.input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 2px var(--primary-300); }

.alert { padding: 0.85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: var(--fs-14); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }

/* --- Footer --------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--neutral-925);
  border-top: 1px solid var(--border);
  color: var(--neutral-300);
  padding: 2rem 0;
  font-size: var(--fs-14);
}
.site-footer h4 { color: var(--neutral-50); font-family: var(--font-ui); font-size: var(--fs-14); text-transform: uppercase; letter-spacing: 0.08em; }

.main { flex: 1; }
.section { padding: clamp(2rem, 5vw, 4rem) 0; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.danger { color: var(--danger); }

/* --- Abas da área WhatsApp (F4) ------------------------------------- */
.wa-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.wa-tabs a {
  padding: 0.6rem 1.1rem; margin-bottom: -1px;
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-14);
  border-bottom: 2px solid transparent;
}
.wa-tabs a:hover { color: var(--text); text-decoration: none; }
.wa-tabs a.is-active { color: var(--primary-400); border-bottom-color: var(--primary-500); }

/* --- Inbox WhatsApp (thread de conversa, F4) ------------------------ */
.wa-thread { display: flex; flex-direction: column; gap: 0.5rem; max-height: 60vh; overflow-y: auto; padding: 0.25rem; }
.wa-msg { max-width: 78%; display: flex; flex-direction: column; }
.wa-msg.in { align-self: flex-start; align-items: flex-start; }
.wa-msg.out { align-self: flex-end; align-items: flex-end; }
.wa-bubble {
  padding: 0.55rem 0.8rem; border-radius: var(--radius);
  background: var(--neutral-800); color: var(--text);
  font-size: var(--fs-14); line-height: 1.4; word-break: break-word;
}
.wa-msg.out .wa-bubble { background: var(--primary-950); border: 1px solid color-mix(in srgb, var(--primary-500) 35%, transparent); }
.wa-meta { font-size: var(--fs-12); color: var(--text-muted); margin-top: 0.15rem; }

/* --- Admin shell --------------------------------------------------- */
.admin-shell { display: flex; min-height: 100vh; width: 100%; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--neutral-925);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
}
.admin-sidebar .brand { display: block; margin-bottom: 1.5rem; font-size: var(--fs-20); }
.admin-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-nav a {
  color: var(--text-muted); padding: 0.6rem 0.75rem; border-radius: var(--radius);
  border-left: 3px solid transparent; font-size: var(--fs-14);
}
.admin-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.admin-nav a.is-active { background: var(--surface); color: var(--text); border-left-color: var(--primary-500); }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-alt);
}
.admin-user { display: flex; align-items: center; gap: 0.85rem; font-size: var(--fs-14); }
.admin-user .btn { padding: 0.4rem 0.9rem; font-size: var(--fs-14); }
.admin-content { padding: 1.5rem; flex: 1; }

/* Cabeçalho de seção do admin */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-head h1 { margin: 0; }

/* Tabelas do admin (doc 09) */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.admin-table th, .admin-table td { padding: 0.75rem 1rem; text-align: left; }
.admin-table thead th { background: var(--surface); color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.admin-table tbody tr { border-bottom: 1px solid var(--border); }
.admin-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.admin-table tbody tr:hover { background: var(--surface); }
.row-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.row-actions .btn { padding: 0.35rem 0.7rem; font-size: var(--fs-12); }

/* Formulários do admin */
.admin-form { max-width: 640px; }
.admin-form__actions { margin-top: 1rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-14); color: var(--text-muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary-500); }
.admin-form h3 { margin-top: 1.5rem; font-size: var(--fs-18); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* Variantes */
.variant-card { max-width: 820px; margin-bottom: 1rem; }
.variant-card--new { border-color: var(--primary-800); }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 0.75rem; }
.variant-grid .field { margin-bottom: 0.6rem; }
.variant-grid label { font-size: var(--fs-12); }
.variant-actions { margin-top: 0.5rem; }
.variant-delete { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }

/* Galeria de imagens do admin */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.image-item { padding: 0.5rem; position: relative; }
.image-item img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--bg-alt); border-radius: var(--radius); }
.image-cover { position: absolute; top: 0.75rem; left: 0.75rem; }
.image-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.image-actions .btn { padding: 0.3rem 0.6rem; font-size: var(--fs-12); flex: 1; }

/* Relatórios */
.report-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.report-filter .input { width: auto; }

/* Financeiro */
.fin-summary { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fin-amount { font-size: var(--fs-24); font-weight: 700; margin: 0.25rem 0 0; }
.fin-amount--in { color: var(--primary-400); }
.fin-amount--out { color: var(--danger); }

/* Estoque */
.row-low td { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.stock-badges { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.5rem; }
.stock-badges strong { color: var(--primary-400); }

/* Pedidos */
.order-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.add-item { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.add-item select { flex: 1; min-width: 180px; }
.add-item__qty { width: 80px; }
.order-total-line { display: flex; justify-content: space-between; margin: 0.4rem 0; color: var(--text-muted); }
.order-total-line--big { font-size: var(--fs-20); color: var(--text); border-top: 1px solid var(--border); padding-top: 0.6rem; margin-top: 0.6rem; }
.order-total-line--big strong { color: var(--primary-400); }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; font-size: var(--fs-14); }
.timeline li { border-left: 2px solid var(--primary-700); padding-left: 0.75rem; }

/* Thumb de banner na tabela/form */
.banner-thumb { height: 40px; width: auto; max-width: 120px; border-radius: 4px; object-fit: cover; background: var(--bg-alt); }
.banner-thumb--lg { height: 90px; max-width: 260px; }

/* Tags de status */
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; }
.tag--active { background: var(--success-bg); color: var(--success); }
.tag--draft { background: var(--neutral-800); color: var(--neutral-200); }
.tag--archived { background: var(--neutral-800); color: var(--neutral-400); }

@media (max-width: 720px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
}

/* --- Catálogo: toolbar, chips, busca ------------------------------- */
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; margin-top: 1rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: var(--fs-14);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.chip:hover { color: var(--text); text-decoration: none; border-color: var(--primary-700); }
.chip.is-active { background: var(--primary-950); border-color: var(--primary-500); color: var(--primary-300); }
.search { display: flex; gap: 0.5rem; }
.search .input { min-width: 200px; }

@media (max-width: 640px) {
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .search .input { flex: 1; min-width: 0; }
}

/* --- Grade e cartão de produto (doc 09) ---------------------------- */
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--text); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-card:hover { border-color: var(--primary-700); box-shadow: var(--shadow-glow); text-decoration: none; transform: translateY(-2px); }
.product-card__img { aspect-ratio: 1 / 1; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.product-card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.product-card__brand { font-size: var(--fs-12); color: var(--neutral-500); text-transform: uppercase; letter-spacing: 0.06em; }
.product-card__name { font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-16); margin: 0; }
.product-card__price { margin-top: 0.35rem; display: flex; flex-direction: column; }
.price-old { color: var(--neutral-500); text-decoration: line-through; font-size: var(--fs-12); }
.price-now { color: var(--primary-400); font-weight: 700; }

/* --- Paginação ----------------------------------------------------- */
.pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.page {
  min-width: 38px; text-align: center; padding: 0.4rem 0.6rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted); background: var(--surface);
}
.page:hover { color: var(--text); text-decoration: none; }
.page.is-active { background: var(--primary-500); color: var(--neutral-950); border-color: var(--primary-500); }

/* --- Página de produto --------------------------------------------- */
.breadcrumb { display: flex; gap: 0.5rem; font-size: var(--fs-14); color: var(--text-muted); margin-bottom: 1rem; }
.product-detail { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.product-detail__media { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.product-detail__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.product-detail__price { margin: 1rem 0; }
.product-detail__price .price-now { font-size: var(--fs-30); }
.product-detail__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
@media (min-width: 800px) {
  .product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* --- Sacola -------------------------------------------------------- */
.nav-cart { position: relative; }
.bag-count {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px;
  font-size: var(--fs-12); font-weight: 700; text-align: center;
  background: var(--primary-500); color: var(--neutral-950); border-radius: 999px;
}
.bag-items { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.bag-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem; }
.bag-item__ctrl { display: flex; align-items: center; gap: 0.5rem; }
.bag-item__ctrl .btn { padding: 0.35rem 0.7rem; font-size: var(--fs-14); }
.bag-qty { min-width: 28px; text-align: center; font-weight: 600; }
.bag-summary { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.bag-total { font-size: var(--fs-20); margin-bottom: 1rem; }
.bag-total strong { color: var(--primary-400); }
.bag-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* --- Carrinho server-side (F2) ------------------------------------- */
.product-buy { max-width: 420px; }
.field-qty { max-width: 140px; }

.cart-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.25rem; }
.cart-items { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: start; padding: 1rem; }
.cart-item__img { border-radius: var(--radius); object-fit: cover; background: var(--surface-raised); }
.cart-item__info { display: flex; flex-direction: column; gap: 0.35rem; }
.cart-item__ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.cart-qty-form { display: flex; align-items: center; gap: 0.5rem; }
.cart-qty { width: 72px; text-align: center; }
.cart-item__line { margin-left: auto; font-weight: 700; color: var(--primary-400); }

.cart-summary { align-self: start; }
.cart-coupon, .cart-coupon-form { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.cart-coupon { justify-content: space-between; }
.cart-coupon-form .input { flex: 1; }
.cart-totals { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.cart-totals > div { display: flex; justify-content: space-between; align-items: baseline; }
.cart-totals dt { color: var(--text-muted); }
.cart-totals__total { border-top: 1px solid var(--border); padding-top: 0.6rem; font-size: var(--fs-20); font-weight: 700; }
.cart-totals__total dd { color: var(--primary-400); }

.btn-block { display: block; width: 100%; text-align: center; margin-top: 0.6rem; }
.btn-link { background: transparent; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
.btn-link:hover { color: var(--primary-300); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (min-width: 800px) {
  .cart-grid { grid-template-columns: 1fr 320px; }
  .cart-item { grid-template-columns: 72px 1fr auto; }
  .cart-item__ctrl { grid-column: 1 / -1; }
  .cart-summary { position: sticky; top: 1rem; }
}

/* --- Checkout (F2) -------------------------------------------------- */
.address-option { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem; cursor: pointer; }
.address-option input { margin-top: 0.25rem; width: auto; flex: none; }
.address-option:has(input:checked) { border-color: var(--primary-500); background: var(--primary-950); }
.checkout-items { display: flex; flex-direction: column; gap: 0.4rem; }
.checkout-item { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-14); }
.pix-qr { display: block; margin: 0.75rem 0; border-radius: var(--radius); background: #fff; padding: 6px; }
#pix-result textarea { margin: 0.5rem 0; word-break: break-all; }

/* --- Conta do cliente (F2) ----------------------------------------- */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.field-check label { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-size: var(--fs-14); }
.field-check input { width: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.account-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.address-card { margin-bottom: 0.75rem; }
.address-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.address-edit { margin-top: 0.75rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.address-edit summary { cursor: pointer; color: var(--link); }
.badge { display: inline-block; padding: 0.1rem 0.5rem; margin-left: 0.35rem; font-size: var(--fs-12); font-weight: 700; background: var(--primary-950); color: var(--primary-300); border-radius: 999px; }
.nav-logout { display: inline; margin: 0; }
.nav-logout__btn { color: var(--text-muted); }

/* --- Conteúdo CMS (Markdown renderizado) --------------------------- */
.cms { max-width: 70ch; }
.cms h2 { margin-top: 1.75rem; font-size: var(--fs-24); }
.cms h3 { margin-top: 1.25rem; font-size: var(--fs-20); }
.cms p, .cms li { color: var(--text-muted); }
.cms ul { padding-left: 1.25rem; }
.cms a { color: var(--link); }

/* --- FAQ ----------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--primary-400); font-weight: 700; }
.faq-item[open] summary::before { content: "− "; }
.faq-item[open] summary { color: var(--primary-400); }
.faq-item p { margin: 0.75rem 0 0; }

/* --- Honeypot anti-spam (fora da tela) ----------------------------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Utilitários (evitam style="" inline; CSP style-src 'self' estrita) --- */
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.w-full { width: 100%; }
.inline { display: inline; }
.narrow { max-width: 420px; }
.title-sm { font-size: var(--fs-30); }
.brand-word--sm { font-size: var(--fs-20); }
.hero-logo { display: block; width: 120px; height: 120px; border-radius: 14px; margin-bottom: 1.25rem; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.error-detail { text-align: left; margin-top: 2rem; }
.error-msg { color: var(--danger); }
