/* DW3D Loja online (2.21) — cores da Gestão (design/TEMA.md) */
:root {
  color-scheme: light;
  --brand: #0788c2; --brand-dark: #006b9c; --brand-light: #09a9e8; --brand-soft: #e5f6fc;
  --graphite: #101215; --graphite-2: #1b1e23; --graphite-3: #2a2e35;
  --ink: #202124; --muted: #667085; --line: #e6e8ec; --paper: #f5f6f8; --white: #fff;
  --wpp: #128c4a; --wpp-dark: #0d6e3a; --bad: #9b2c1f; --bad-bg: #fff0ed;
  --radius: 18px; --shadow: 0 6px 24px #1c263014;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 750; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); }
.btn.claro { background: var(--brand-soft); color: var(--brand-dark); }
.btn.claro:hover { background: #d3eefa; }
.btn.grande { width: 100%; min-height: 52px; font-size: 1.02rem; margin-top: 14px; }
.btn.wpp { background: var(--wpp); }
.btn.wpp:hover { background: var(--wpp-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }

.topo { position: sticky; top: 0; z-index: 10; background: #ffffffee; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--graphite); text-decoration: none; font-weight: 850; font-size: 1.15rem; letter-spacing: -.01em; }
.marca img { width: 44px; height: 44px; border-radius: 50%; }
.topo-acoes { display: flex; gap: 8px; }

.hero { margin: 22px 0 8px; padding: 30px 26px; border-radius: 26px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, #0788c255, transparent 45%), linear-gradient(135deg, var(--graphite) 0%, var(--graphite-3) 100%); }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid #0788c22e; }
.hero .eyebrow { margin: 0 0 8px; color: var(--brand-light); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; }
.hero p { margin: 10px 0 0; max-width: 560px; color: #d7dde5; position: relative; z-index: 1; }
.hero .hero-pe { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: #ffffff1a; color: #fff; font-size: .85rem; font-weight: 650; }

.vitrine h2 { margin: 26px 0 12px; font-size: 1.5rem; letter-spacing: -.01em; }
.busca input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; color: var(--graphite-3); cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 30px; }
@media (min-width: 720px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden;
  text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px #1c26301f; }
.card .foto { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; background: var(--brand-soft); }
.card .sem-foto { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), #fff); color: var(--brand-dark); font-weight: 800; font-size: 2rem; }
.card .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card .cats { color: var(--muted); font-size: .75rem; }
.card .nome { font-weight: 750; line-height: 1.25; }
.card .preco { margin-top: auto; padding-top: 8px; color: var(--brand-dark); font-weight: 850; font-size: 1.05rem; }
.card .preco small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.vazio { text-align: center; color: var(--muted); padding: 30px 0; }

.rodape { padding: 26px 0 36px; color: var(--muted); font-size: .85rem; text-align: center; }

.dlg { width: min(560px, 100vw - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 24px 70px #0006; overflow: auto; }
.dlg::backdrop { background: #10121599; }
.dlg-in { padding: 18px 20px 22px; }
.dlg-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dlg-topo h2 { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.2; }
.fechar { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--paper); font-size: 1.1rem; cursor: pointer; }
.galeria img#p-foto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--brand-soft); }
.miniaturas { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.miniaturas button { flex: none; width: 62px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.miniaturas button[aria-current="true"] { border-color: var(--brand); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.p-desc { color: var(--graphite-3); white-space: pre-line; }
.rotulo { display: block; margin: 14px 0 6px; font-weight: 750; font-size: .9rem; }
.rotulo small { color: var(--muted); font-weight: 600; }
.vars { display: flex; flex-wrap: wrap; gap: 8px; }
.vars button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 700; cursor: pointer; }
.vars button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qtd button { width: 44px; height: 44px; border: 0; background: var(--paper); font-size: 1.2rem; cursor: pointer; }
.qtd input { width: 56px; height: 44px; border: 0; text-align: center; font-weight: 750; }
textarea, #s-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
#s-form input { height: 46px; }
.nota { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }

.s-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.s-item img, .s-item .mini-vazia { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); }
.s-item .nome { font-weight: 700; line-height: 1.25; }
.s-item small { display: block; color: var(--muted); }
.s-item .acoes { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.s-item .acoes button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.s-item .acoes .remover { width: auto; padding: 0 8px; color: var(--bad); border-color: transparent; background: none; font-size: .8rem; font-weight: 700; }
.s-item .valor { font-weight: 800; white-space: nowrap; }
.s-vazia { color: var(--muted); padding: 16px 0; }
.s-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-size: 1.1rem; }
.s-total strong { font-size: 1.35rem; color: var(--brand-dark); }
.erro { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 650; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok-titulo { font-size: 1.15rem; }

.fechada { display: grid; place-items: center; min-height: 100dvh; background: linear-gradient(135deg, var(--graphite), var(--graphite-3)); color: #fff; }
.fechada-box { text-align: center; padding: 24px; }
.fechada-box img { margin: 0 auto 10px; border-radius: 50%; }
.fechada-box p { color: #d7dde5; }

@media (max-width: 420px) {
  .topo-acoes .btn.claro { display: none; }
  .hero { padding: 24px 20px; border-radius: 22px; }
  .card .info { padding: 10px 11px 12px; }
}
