:root {
  --black: #0a0a0a;
  --ink: #111214;
  --card: #17181b;
  --line: #2a2c31;
  --text: #f4f5f6;
  --muted: #a3a7ae;
  --green: #39e75f;
  --green-dark: #1fb845;
  --danger: #ff5a5f;
  --warn: #ffc247;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Cabeçalho */
/* Topo branco: a logo tem fundo branco e "MULTI" em preto. */
.site-header {
  border-bottom: 1px solid #e4e6ea;
  background: #fff;
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.logo-img { max-height: 60px; max-width: 60vw; width: auto; object-fit: contain; }
.site-header .logo-text { color: var(--black); }
.wa-icon { width: 18px; height: 18px; flex: none; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .5px; text-transform: uppercase; color: var(--text); }
.logo-text::after { content: "⚡"; color: var(--green); margin-left: 4px; }

.hero { padding: 28px 0 8px; }
.hero h1 { font-family: var(--display); font-size: clamp(30px, 7vw, 46px); line-height: 1.05; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .3px; }
.hero h1 .accent { color: var(--green); }
.hero p { margin: 0; color: var(--muted); max-width: 640px; }

.banner { background: var(--warn); color: #1a1300; padding: 10px 16px; font-weight: 600; text-align: center; font-size: 14px; }

/* Grade de produtos */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 20px 0 40px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { font-size: 19px; margin: 0; line-height: 1.25; }
.price { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--green); }
.old-price { font-family: var(--font); font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.price.none { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--muted); }
.desc { color: #d3d6da; font-size: 15px; white-space: pre-line; margin: 0; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; color: var(--green); padding: 0; cursor: pointer; font-size: 14px; align-self: flex-start; }
.card-actions { margin-top: auto; padding-top: 8px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; text-align: center; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .4px; }
.tag.demo { background: var(--warn); color: #1a1300; }
.tag.hidden-tag { background: #3a3d44; color: var(--text); }
.tag.pub { background: rgba(57,231,95,.15); color: var(--green); }

/* Galeria */
.gallery { position: relative; background: #0f1012; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
/* contain: foto em pé aparece inteira (sem cortar rodas), com faixas escuras nas laterais */
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gallery-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); gap: 6px; font-size: 14px; }
.gallery-empty svg { width: 56px; height: 56px; opacity: .5; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gal-btn.prev { left: 8px; } .gal-btn.next { right: 8px; }
.gal-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); padding: 2px 10px; border-radius: 99px; font-size: 13px; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gal-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.gal-dots span.on { background: var(--green); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: #22242a; color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #444851; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--green); border-color: var(--green); color: #04140a; }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Informações da loja */
.store-info { border-top: 1px solid var(--line); padding: 28px 0 40px; display: grid; gap: 16px; }
@media (min-width: 760px) { .store-info { grid-template-columns: 1.2fr 1fr; } }
.store-info h3 { margin: 0 0 8px; font-size: 18px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.info-list li { display: flex; gap: 10px; }
.info-list .k { color: var(--muted); min-width: 92px; }
footer.site-footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 13px; }

.state { padding: 60px 0; text-align: center; color: var(--muted); }

/* Formulários (painel) */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .err { font-size: 13px; color: var(--danger); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], textarea {
  width: 100%; background: #0f1012; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 12px; min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
input.invalid, textarea.invalid { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(120%); background: #222; color: #fff; padding: 12px 18px; border-radius: 10px; max-width: calc(100% - 32px); z-index: 100; transition: transform .25s; border-left: 4px solid var(--green); box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
