/* Smith Vendas Design System (2026-11-16) — arquivo 1 de 2: tokens, base e componentes.
   Paleta fixa "tempestade", tirada do banner: noite azul (fundo), azul elétrico (campos), azul-gelo (ação). Ver DESIGN.md.
   Os tokens --yellow* guardam o nome antigo; hoje são a cor de ação (azul-gelo). */

:root {
  /* cor */
  --night: #050a14;
  --night-2: #070d19;
  --surface: #0e1a30;
  --raised: #112955;
  --line: #133879;
  --blue: #1c6fff;
  --blue-deep: #11459e;
  --sky: #77a9ff;
  --yellow: #4fc3ff;
  --yellow-hi: #95dbff;
  --on-yellow: #0a1024;
  /* acento usado como TEXTO sobre o fundo da página. Em tema claro o painel troca por uma cor legível (/theme.css). */
  --accent-ink-base: var(--yellow);
  --accent-ink: var(--accent-ink-base);
  /* fundo das faixas que ficam escuras em qualquer tema, e a palavra gigante do rodapé */
  --band: var(--night);
  --ghost: var(--surface);
  --text: #ffffff;
  --text-2: #bcc8ea;
  --text-3: #8d9bc6;
  --ok: #3ee08f;
  --bad: #ff6077;
  --warn: #ffb224;
  /* raridade: só identifica nível de pacote e de conta */
  --r-uncommon: #6cc62a;
  --r-rare: #2ea4ff;
  --r-epic: #b667ff;
  --r-legendary: #ff9a2e;
  /* tipo */
  --display: "Big Shoulders Display", "Archivo", "Arial Narrow", sans-serif;
  --ui: "Geist", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* forma */
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --cut: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  --cut-s: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  /* espaço */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --sec: clamp(64px, 9vw, 128px);
  --header: 68px;
  /* movimento */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t1: 140ms;
  --t2: 240ms;
  --t3: 520ms;
  --float: 0 24px 60px rgba(2, 5, 20, .55);
  --glow: 0 0 0 1px color-mix(in srgb, var(--yellow) 55%, transparent), 0 18px 54px color-mix(in srgb, var(--blue) 30%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: radial-gradient(1100px 620px at 86% -8%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 62%), radial-gradient(900px 560px at -6% 38%, color-mix(in srgb, var(--blue-deep) 22%, transparent), transparent 64%), var(--night);
  font: 400 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.lock { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
s { text-decoration-thickness: 1.5px; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--on-yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; font-weight: 700; border-radius: var(--r-s); transition: top var(--t1); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.center { text-align: center; }

/* tipografia de display: condensada, pesada, caixa alta */
.fx, .h-sec, .display {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: .95;
}

/* ---------- botões ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--on-yellow);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; background: var(--bg); color: var(--fg);
  font: 900 19px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  clip-path: var(--cut); transition: transform var(--t1) var(--ease), background-color var(--t1), filter var(--t1);
  -webkit-tap-highlight-color: transparent;
}
.btn i { font-size: 18px; font-weight: 400; }
.btn::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .55); transform: translateX(-120%) skewX(-18deg); pointer-events: none; }
.btn:hover { --bg: var(--yellow-hi); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%) skewX(-18deg); transition: transform 520ms var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible { clip-path: none; border-radius: 4px; outline: 3px solid var(--sky); box-shadow: 0 0 0 6px var(--night); }
.btn:disabled, .btn[disabled] { --bg: var(--raised); --fg: var(--text-3); cursor: not-allowed; transform: none; }
.btn:disabled::after { display: none; }
.btn--xl { min-height: 58px; padding: 0 32px; font-size: 23px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 16px; clip-path: var(--cut-s); }
.btn--block { width: 100%; }
.btn--ghost, .btn--glass { --bg: var(--raised); --fg: var(--text); }
.btn--ghost:hover, .btn--glass:hover { --bg: #24336d; }
.btn--blue { --bg: var(--blue); --fg: #fff; }
.btn--blue:hover { --bg: var(--sky); }
.btn.is-adding { pointer-events: none; }
.btn.is-adding i { animation: spin .7s linear infinite; }
.btn.is-added { --bg: var(--ok); --fg: var(--on-yellow); }
.btn[aria-busy=true] i { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.spin { display: inline-block; animation: spin .8s linear infinite; }

.iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: var(--r-m); color: var(--text); font-weight: 600; font-size: 14px; transition: background-color var(--t1), transform var(--t1) var(--ease);
}
.iconbtn i { font-size: 20px; }
.iconbtn:hover { background: var(--raised); }
.iconbtn:active { transform: scale(.94); }
.iconbtn--hot { background: var(--yellow); color: var(--on-yellow); clip-path: var(--cut-s); border-radius: 0; padding: 0 16px; }
.iconbtn--hot:hover { background: var(--yellow-hi); }
.iconbtn--hot:focus-visible { clip-path: none; border-radius: 4px; }
.iconbtn--hot .badge { position: static; margin-right: -4px; }
.badge {
  position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--on-yellow); color: var(--yellow); font: 700 11px/18px var(--ui); text-align: center; font-variant-numeric: tabular-nums;
}
.pop { animation: pop 420ms var(--spring); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.bump { animation: bump 460ms var(--spring); }
@keyframes bump { 30% { transform: translateY(-5px) rotate(-6deg); } 60% { transform: translateY(1px) rotate(3deg); } }

/* ---------- formulários ---------- */
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--night); color: var(--text);
  border: 2px solid var(--line); border-radius: var(--r-m); transition: border-color var(--t1), background-color var(--t1);
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #3d50a0; }
.input:focus { outline: none; border-color: var(--yellow); }
.input[aria-invalid=true] { border-color: var(--bad); }
select.input { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
select.input option { background: var(--surface); }
textarea.input { min-height: 110px; resize: vertical; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .form label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--text-2); }
.ferr { font-size: 14px; color: var(--bad); font-weight: 600; }
.ferr:empty { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input, .switch input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--line); border-radius: 6px; background: var(--night); display: grid; place-content: center; cursor: pointer; transition: background-color var(--t1), border-color var(--t1); }
.check input::after, .switch input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--on-yellow); border-bottom: 3px solid var(--on-yellow); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--t1) var(--spring); }
.check input:checked, .switch input:checked { background: var(--yellow); border-color: var(--yellow); }
.check input:checked::after, .switch input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.switch { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: rgba(255, 178, 36, .12); color: #ffd58a; border-radius: var(--r-m); font-size: 15px; margin-bottom: 16px; }
.notice--ok { background: rgba(62, 224, 143, .11); color: #a8f3cd; margin: 16px 0 0; }
.notice i { font-size: 19px; line-height: 1.25; }

/* ---------- peças pequenas ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; background: var(--raised); border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip i { font-size: 15px; }
.chip--pix { background: rgba(62, 224, 143, .14); color: var(--ok); }
.chip button { display: grid; place-content: center; width: 22px; height: 22px; margin-right: -6px; border-radius: 50%; }
.chip button:hover { background: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips__clear { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.avail { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ok); }
.avail::before, .acard__dot { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail.is-out, .qv__avail.is-out { color: var(--text-3); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.price b { font: 900 30px/1 var(--display); letter-spacing: .01em; }
.price s { color: var(--text-3); font-size: 15px; }
.price small { flex-basis: 100%; color: var(--text-2); font-size: 13px; }
.qty { display: inline-flex; align-items: center; background: var(--night); border: 2px solid var(--line); border-radius: var(--r-m); height: 58px; }
.qty button { width: 46px; height: 100%; font-size: 22px; font-weight: 600; transition: color var(--t1); }
.qty button:hover:not(:disabled) { color: var(--accent-ink); }
.qty button:disabled { color: var(--text-3); cursor: not-allowed; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty--sm { height: 36px; margin-top: 8px; }
.qty--sm button { width: 34px; font-size: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); margin-bottom: 14px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
.stars { display: inline-flex; gap: 2px; color: var(--accent-ink); line-height: 1; }
.star { color: var(--line); }
.star.on { color: var(--accent-ink); }
.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; color: var(--text-2); background: var(--surface); border-radius: var(--r-l); }
.empty i { font-size: 34px; color: var(--sky); }
.empty h3 { margin: 10px 0 6px; color: var(--text); font-size: 20px; }
.empty .btn { margin-top: 18px; }
.glass { background: var(--surface); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 28px); }
.sk { display: block; height: 14px; border-radius: 7px; background: var(--raised); margin: 12px 16px; animation: sk 1.2s ease-in-out infinite alternate; }
.sk--t { height: 22px; width: 60%; }
.sk--s { width: 36%; }
@keyframes sk { to { opacity: .45; } }
.media { position: relative; display: block; background: var(--raised); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: contain; transition: opacity var(--t2); }
.media.is-loading img { opacity: 0; }
.media.is-loading::after { content: ""; position: absolute; inset: 0; background: var(--raised); animation: sk 1s ease-in-out infinite alternate; }
.media.is-broken::after { content: "Foto indisponível"; position: absolute; inset: 0; display: grid; place-content: center; color: var(--text-3); font-size: 14px; background: var(--raised); }
.media.is-broken img { opacity: 0; }

/* entrada das seções: sobe e aparece uma vez; sem JS o conteúdo fica visível */
.js-rise .rise { opacity: 0; transform: translateY(26px); }
.js-rise .rise.in { opacity: 1; transform: none; transition: opacity var(--t3) var(--ease) var(--d, 0ms), transform var(--t3) var(--ease) var(--d, 0ms); }
main.view-in { animation: view var(--t2) var(--ease); }
@keyframes view { from { opacity: 0; transform: translateY(8px); } }

/* ---------- topo ---------- */
.utility { --accent-ink: var(--yellow); background: var(--blue-deep); color: #fff; font-size: 13px; font-weight: 600; }
.utility ul { display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); min-height: 34px; align-items: center; white-space: nowrap; overflow: hidden; }
.utility li { display: inline-flex; align-items: center; gap: 7px; }
.utility i { font-size: 15px; color: var(--yellow); }
.announce { margin: 0; padding: 9px var(--gutter); background: var(--yellow); color: var(--on-yellow); text-align: center; font-weight: 700; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.announce__promo b { font-variant-numeric: tabular-nums; }
.announce__promo > b:first-child { padding: 1px 8px; margin-right: 4px; background: var(--on-yellow); color: var(--yellow); border-radius: 4px; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.topbar { position: sticky; top: 0; z-index: 60; background: var(--night); transition: background-color var(--t2), box-shadow var(--t2); }
.topbar.is-scrolled { background: color-mix(in srgb, var(--night) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
/* progresso de leitura: um fio elétrico sob o topo (motion.js escreve --sp) */
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--yellow) 70%, #fff); transform: scaleX(var(--sp, 0)); transform-origin: left; pointer-events: none; }
.topbar__in { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; height: var(--header); display: flex; align-items: center; gap: clamp(12px, 2.4vw, 36px); transition: height var(--t2) var(--ease); }
.topbar.is-scrolled .topbar__in { height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 900 28px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
/* marca: coroa do banner + nome em prata, segunda palavra em azul-gelo */
.brand__mark { width: 32px; height: 28px; background: linear-gradient(180deg, var(--yellow-hi), var(--blue)); clip-path: polygon(0 22%, 25% 56%, 50% 4%, 75% 56%, 100% 22%, 88% 96%, 12% 96%); position: relative; flex: none; transition: transform var(--t2) var(--spring); }
.brand [data-brand] { background: linear-gradient(180deg, var(--text) 18%, color-mix(in srgb, var(--text) 70%, var(--blue)) 82%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-brand] em { font-style: normal; }
.brand [data-brand] em { -webkit-text-fill-color: var(--accent-ink); color: var(--accent-ink); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.topbar__nav { position: relative; display: flex; gap: 2px; margin-right: auto; }
.topbar__nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; font: 900 19px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); transition: color var(--t1); }
.topbar__nav a:hover { color: #fff; }
.topbar__nav a[aria-current=page] { color: var(--on-yellow); }
.nav-pill { position: absolute; left: 0; top: 0; height: 40px; background: var(--yellow); clip-path: var(--cut-s); opacity: 0; transition: transform 340ms var(--ease), width 340ms var(--ease), opacity var(--t1); }
.nav-pill.no-anim { transition: none; }
.topbar__act { display: flex; align-items: center; gap: 6px; }
.searchbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 14px; min-width: clamp(44px, 20vw, 260px); background: var(--surface); border-radius: var(--r-m); color: var(--text-2); font-size: 15px; transition: background-color var(--t1), color var(--t1); }
.searchbtn:hover { background: var(--raised); color: #fff; }
.searchbtn i { font-size: 19px; }
.searchbtn__t { flex: 1; text-align: left; }
kbd { font: 600 12px/1 var(--ui); padding: 5px 7px; border-radius: 5px; background: var(--night); color: var(--text-2); }

/* busca: painel de comando */
.cmd { position: fixed; inset: 0; z-index: 120; display: grid; justify-items: center; align-content: start; padding: clamp(12px, 9vh, 96px) 16px 16px; background: rgba(4, 7, 20, .78); opacity: 0; transition: opacity var(--t1); }
.cmd.show { opacity: 1; }
.cmd__panel { width: min(100%, 640px); max-height: min(78vh, 640px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--float); overflow: hidden; transform: translateY(-14px) scale(.98); transition: transform var(--t2) var(--ease); }
.cmd.show .cmd__panel { transform: none; }
.cmd__bar { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 18px; background: var(--raised); }
.cmd__bar i { font-size: 21px; color: var(--accent-ink); }
.cmd__bar input { flex: 1; min-width: 0; height: 52px; background: none; border: 0; outline: none; font-size: 18px; }
.cmd__bar input::placeholder { color: var(--text-3); }
.cmd__esc { padding: 6px 9px; border-radius: 6px; background: var(--night); font-size: 12px; font-weight: 600; color: var(--text-2); }
.suggest { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.suggest__h { padding: 10px 10px 6px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-m); }
.suggest__item:hover, .suggest__item[aria-selected=true], .suggest__all[aria-selected=true], .suggest__all:hover { background: var(--raised); }
.suggest__item[aria-selected=true] .suggest__t b { color: var(--accent-ink); }
.suggest__th { flex: none; width: 56px; height: 44px; display: grid; place-content: center; background: var(--night); border-radius: var(--r-s); overflow: hidden; color: var(--sky); font-size: 20px; }
.suggest__th img { width: 100%; height: 100%; object-fit: contain; }
.suggest__t { flex: 1; min-width: 0; display: grid; }
.suggest__t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__t small, .suggest__p small { color: var(--text-2); font-size: 13px; }
.suggest__p { text-align: right; display: grid; font-variant-numeric: tabular-nums; }
.suggest__p .ok { color: var(--ok); }
.suggest__all { display: block; margin-top: 4px; padding: 12px 10px; border-radius: var(--r-m); font-weight: 700; color: var(--accent-ink); }
.suggest__empty { display: grid; justify-items: center; gap: 4px; padding: 36px 16px; text-align: center; color: var(--text-2); }
.suggest__empty i { font-size: 30px; color: var(--sky); }
.suggest__empty b { color: #fff; }

/* ---------- gavetas, modais, avisos ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(4, 7, 20, .72); opacity: 0; transition: opacity var(--t2); }
.scrim.show { opacity: 1; }
.drawer { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(100%, 440px); display: flex; flex-direction: column; background: var(--night-2); box-shadow: var(--float); transform: translateX(104%); transition: transform 260ms var(--ease); }
.drawer.show { transform: none; }
.drawer--qv { width: min(100%, 560px); }
.drawer--modal { inset: 50% auto auto 50%; width: min(100% - 24px, 720px); max-height: min(100% - 24px, 760px); border-radius: var(--r-l); transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform 240ms var(--ease), opacity 200ms; }
.drawer--modal.show { transform: translate(-50%, -50%); opacity: 1; }
.drawer--wide { width: min(100% - 24px, 980px); }
.drawer__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 22px; background: var(--surface); }
.drawer__head h2, .modal__kind { font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 28px; }
.toast { position: fixed; z-index: 140; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 14px; max-width: min(92vw, 480px); padding: 13px 18px; background: #fff; color: var(--on-yellow); border-radius: var(--r-m); font-weight: 600; font-size: 15px; box-shadow: var(--float); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform var(--t2) var(--spring), opacity var(--t1); }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast :focus-visible, .announce :focus-visible, .btn:focus-visible { outline-color: var(--sky); }
.toast__act { flex: none; padding: 7px 12px; background: var(--on-yellow); color: var(--yellow); border-radius: var(--r-s); font-weight: 700; font-size: 14px; }
.fab { position: fixed; z-index: 55; right: 20px; bottom: 22px; width: 54px; height: 54px; display: grid; place-content: center; border-radius: 50%; background: #25d366; color: #06250f; font-size: 28px; box-shadow: var(--float); transition: transform var(--t1) var(--spring); }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.zoom { position: fixed; inset: 0; z-index: 160; display: grid; place-content: center; padding: 16px; background: rgba(2, 4, 14, .94); }
.zoom img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: var(--r-m); }
.zoom__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--on-yellow); font-size: 24px; }

/* carrinho */
.clines { display: grid; gap: 14px; }
.cline { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: start; }
.cline__th { width: 76px; aspect-ratio: 4 / 3; display: grid; place-content: center; background: var(--surface); border-radius: var(--r-m); overflow: hidden; }
.cline__th img { width: 100%; height: 100%; object-fit: contain; }
.cline__info { display: grid; gap: 2px; min-width: 0; }
.cline__t { font-weight: 600; line-height: 1.3; }
a.cline__t:hover { color: var(--accent-ink); }
.cline__meta, .cline__lim { color: var(--text-2); font-size: 14px; }
.cline__lim { color: var(--warn); }
.cline__end { display: grid; justify-items: end; gap: 6px; font-variant-numeric: tabular-nums; }
.cline__rm { font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.cline__rm:hover { color: var(--bad); }
.cart__foot { display: grid; gap: 14px; margin-top: 22px; padding-top: 22px; box-shadow: 0 -2px 0 var(--surface); }
.coupon { display: flex; gap: 8px; }
.coupon .input { text-transform: uppercase; }
.totals { display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); }
.totals .big { color: #fff; font: 900 30px/1.1 var(--display); text-transform: uppercase; padding-top: 8px; }
.totals .big span:last-child { color: var(--accent-ink); }
.cart__note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--text-2); }
.cart__note i { color: var(--ok); font-size: 17px; }
.cart__empty { display: grid; justify-items: center; gap: 12px; padding: 48px 12px; text-align: center; color: var(--text-2); }
.cart__empty > i { font-size: 44px; color: var(--sky); }
.cart__empty h2, .cart__empty h3 { font: 900 30px/1 var(--display); text-transform: uppercase; color: #fff; }
.cart__empty--page { padding: clamp(40px, 7vw, 88px) 24px; background: var(--surface); border-radius: var(--r-l); grid-column: 1 / -1; }
.cart__emptyact { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.cart__art { width: 150px; }

/* bandeja de comparação */
.cmptray { position: fixed; z-index: 58; left: 50%; bottom: 18px; width: min(100% - 24px, 860px); transform: translateX(-50%); background: var(--raised); border-radius: var(--r-l); box-shadow: var(--float); animation: tray var(--t2) var(--spring); }
@keyframes tray { from { transform: translate(-50%, 30px); opacity: 0; } }
.cmptray__in { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.cmptray__t { flex: none; font-size: 14px; }
.cmptray__list { flex: 1; display: flex; gap: 8px; min-width: 0; overflow: hidden; }
.cmptray__list li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 4px 4px 4px; background: var(--night); border-radius: var(--r-m); font-size: 14px; }
.cmptray__th { flex: none; width: 34px; height: 34px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.cmptray__th img { width: 100%; height: 100%; object-fit: contain; }
.cmptray__n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmptray__list button { flex: none; width: 28px; height: 28px; display: grid; place-content: center; border-radius: 50%; }
.cmptray__list button:hover { background: var(--line); }
.cmptray__act { flex: none; display: flex; gap: 8px; }

/* ---------- rodapé ---------- */
.footer { margin-top: var(--sec); background: var(--night-2); overflow: hidden; }
.footer__in { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: clamp(48px, 6vw, 80px) 0 40px; }
.footer__about p { margin: 16px 0; color: var(--text-2); max-width: 38ch; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer h2 { font: 900 20px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; color: var(--sky); }
.footer nav a { color: var(--text-2); width: fit-content; transition: color var(--t1), transform var(--t1) var(--ease); }
.footer nav a:hover { color: #fff; transform: translateX(4px); }
.footer__word { display: block; font: 900 clamp(46px, 13.6vw, 214px)/.78 var(--display); text-transform: uppercase; letter-spacing: -.01em; text-align: center; color: var(--ghost); user-select: none; white-space: nowrap; margin: 12px 0 0; }
.footer__legal { background: var(--night); padding: 22px var(--gutter) 26px; color: var(--text-3); font-size: 13px; text-align: center; display: grid; gap: 6px; }

/* navegação inferior (telefone) */
.bnav { display: none; }

@media (max-width: 900px) {
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .searchbtn { min-width: 44px; padding: 0 12px; background: none; }
  .searchbtn__t, .searchbtn kbd { display: none; }
  .topbar__orders span { display: none; }
}
@media (max-width: 700px) {
  :root { --header: 58px; }
  .utility li:nth-child(n+3) { display: none; }
  .topbar__nav, .topbar__cart { display: none; }
  .topbar__act { margin-left: auto; }
  .brand { font-size: 25px; }
  .bnav { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--night-2); box-shadow: 0 -1px 0 var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a, .bnav button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
  .bnav i { font-size: 22px; line-height: 1; transition: transform var(--t1) var(--spring); }
  .bnav [aria-current=page] { color: var(--accent-ink); }
  .bnav [aria-current=page] i { transform: translateY(-2px) scale(1.12); }
  .bnav__n { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--yellow); color: var(--on-yellow); font: 700 11px/18px var(--ui); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .fab { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; width: 48px; height: 48px; font-size: 24px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cmptray { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .cmptray__list { display: none; }
  .cmptray__in { justify-content: space-between; }
  .drawer { width: 100%; }
  .drawer--modal { width: calc(100% - 16px); }
  .two { grid-template-columns: 1fr; gap: 0; }
  .footer__in { gap: 28px; }
  .cmd { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js-rise .rise { opacity: 1; transform: none; }
  .btn::after { display: none; }
}
