/* Brilhaço — componentes (classes bh-*). Carregar depois de tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.bh-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.bh-stack { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.bh-num { font-variant-numeric: tabular-nums; }

/* Botao */
.bh-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.bh-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-ring); }
.bh-btn--primario { background: var(--brilho); color: var(--on-brilho); }
.bh-btn--primario:hover { background: var(--brilho-strong); }
.bh-btn--secundario { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.bh-btn--secundario:hover { border-color: var(--brilho); }
.bh-btn--fantasma { background: transparent; color: var(--brilho); padding: 0 var(--space-3); }
.bh-btn--fantasma:hover { background: var(--brilho-soft); color: var(--brilho-strong); }
.bh-btn--bloco { width: 100%; }
.bh-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Selo */
.bh-selo { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.bh-selo--desconto { background: var(--ouro); color: var(--on-ouro); font-family: var(--font-display); font-size: 16px; letter-spacing: 0; text-transform: none; font-weight: 800; }
.bh-selo--menor { background: var(--queda-soft); color: var(--queda); }
.bh-selo--oficial { background: var(--brilho-soft); color: var(--brilho-strong); }
.bh-selo--neutro { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.bh-selo--alerta { background: var(--alerta-soft); color: var(--alerta); }

/* Preco */
.bh-preco { display: flex; flex-direction: column; gap: 2px; }
.bh-preco__de { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.bh-preco__linha { display: flex; align-items: baseline; gap: var(--space-2); }
.bh-preco__por { font-family: var(--font-display); font-size: 32px; line-height: 34px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bh-preco__pct { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ouro-ink); }
.bh-preco__cond { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.bh-preco__cond strong { color: var(--queda); font-weight: 600; }

/* Chip */
.bh-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer; }
.bh-chip:hover { border-color: var(--brilho); }
.bh-chip[aria-pressed="true"] { background: var(--brilho); border-color: var(--brilho); color: var(--on-brilho); }
.bh-chip:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-ring); }

/* CartaoOferta */
.bh-card { display: flex; flex-direction: column; gap: var(--space-3); width: 300px; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: box-shadow .2s, border-color .2s; }
.bh-card:hover, .bh-card--destaque { border-color: transparent; box-shadow: var(--shadow-glow); }
.bh-card__foto { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--surface-sunken); display: grid; place-items: center; overflow: hidden; }
.bh-card__foto img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-3); box-sizing: border-box; }
.bh-card__selo-topo { position: absolute; top: var(--space-2); left: var(--space-2); }
.bh-card__selos { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bh-card__marca { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.bh-card__nome { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.bh-card__loja { font-size: 13px; line-height: 18px; color: var(--ink-muted); display: flex; justify-content: space-between; gap: var(--space-2); }
.bh-placeholder { width: 56%; height: 70%; border-radius: var(--radius-md); background: var(--line); }

/* Aviso */
.bh-aviso { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.bh-aviso--alerta { background: var(--alerta-soft); color: var(--ink); }
.bh-aviso--alerta .bh-aviso__titulo { color: var(--alerta); }
.bh-aviso--info { background: var(--brilho-soft); color: var(--ink); }
.bh-aviso--info .bh-aviso__titulo { color: var(--brilho-strong); }
.bh-aviso__titulo { display: block; font-weight: 700; }

/* PostCanal */
.bh-post { max-width: 360px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); font-size: 15px; line-height: 22px; white-space: pre-line; color: var(--ink); }
.bh-post b { font-weight: 700; }
.bh-post .ouro { color: var(--ouro-ink); font-weight: 700; }
.bh-post .link { color: var(--brilho); }
.bh-post .muted { color: var(--ink-muted); }
