/* Tema MuDivine: "Mercado ativo" da home nova (inc/mudivine.mercado.php, js/mercado.js). Cores do home.css. */

#dvnh-mercado{padding-top:28px}
.dvnh-mkt{padding:20px 22px 22px}
.dvnh-mkt-cab{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:18px;border-bottom:1px solid #2a2226}
.dvnh-mkt-cab h2{font-size:17px;letter-spacing:.1em;text-transform:uppercase}
.dvnh-mkt-setas{display:flex;gap:10px}
.dvnh-mkt-setas button{width:44px;height:30px;display:grid;place-items:center;background:#0006;border:1px solid var(--dvnh-filete);border-radius:4px;color:var(--dvnh-creme);font-size:18px;line-height:1;cursor:pointer;transition:border-color .2s,color .2s}
.dvnh-mkt-setas button:hover:not(:disabled){border-color:var(--dvnh-ouro);color:var(--dvnh-ouro-claro)}
.dvnh-mkt-setas button:disabled{opacity:.35;cursor:default}

/* trilho: 4 cartões no computador, rola de lado (setas ou dedo) */
.dvnh-mkt-trilho{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 3 * 18px) / 4);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-x:contain}
.dvnh-mkt-trilho::-webkit-scrollbar{display:none}

.dvnh-mkt-card{scroll-snap-align:start;display:grid;grid-template-rows:auto 150px auto;min-width:0;border:1px solid #2c2427;border-radius:10px;overflow:hidden;background:#100d0f;text-decoration:none!important;color:var(--dvnh-creme)!important;transition:border-color .2s,transform .2s}
.dvnh-mkt-card:hover{border-color:var(--dvnh-filete-claro);transform:translateY(-2px)}
.dvnh-mkt-nome{display:block;padding:12px 14px;font:700 14px/1.3 var(--dvnh-texto);color:var(--dvnh-ouro-claro);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(180deg,#1b1618,#141113);border-bottom:1px solid #2a2226}
.dvnh-mkt-rar-exc{color:#7ee07a}
.dvnh-mkt-rar-ancient{color:#4fd8c4}
.dvnh-mkt-rar-socket{color:#c08cff}
.dvnh-mkt-kit{display:inline-block;margin-right:6px;padding:1px 6px;border:1px solid var(--dvnh-filete);border-radius:3px;font-size:11px;color:var(--dvnh-cinza);vertical-align:1px}
.dvnh-mkt-arte{display:grid;place-items:center;background:repeating-linear-gradient(135deg,#0c0a0b 0 22px,#141113 22px 24px);overflow:hidden}
.dvnh-mkt-arte img{max-width:70%;max-height:110px;object-fit:contain;filter:drop-shadow(0 6px 10px #000c);transition:transform .25s}
.dvnh-mkt-card:hover .dvnh-mkt-arte img{transform:scale(1.06)}
.dvnh-mkt-espada{font-size:54px;color:var(--dvnh-ouro)}
.dvnh-mkt-pe{display:grid;gap:8px;padding:12px 14px 14px;border-top:1px solid #2a2226}
.dvnh-mkt-vendedor{font-size:13.5px;color:var(--dvnh-cinza);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dvnh-mkt-vendedor b{color:var(--dvnh-ouro)}
.dvnh-mkt-linha{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dvnh-mkt-linha time{font-size:12px;color:var(--dvnh-apagado);white-space:nowrap}
.dvnh-mkt-preco{font:700 15px/1 var(--dvnh-titulo);color:var(--dvnh-ouro-claro);white-space:nowrap;font-variant-numeric:tabular-nums}

.dvnh-mkt-todos{display:block;margin-top:14px;padding:16px;text-align:center;border:1px solid #2c2427;border-radius:10px;background:#100d0f;font:700 13px/1 var(--dvnh-titulo);letter-spacing:.14em;text-transform:uppercase;color:var(--dvnh-creme)!important;text-decoration:none!important;transition:border-color .2s,color .2s}
.dvnh-mkt-todos:hover{border-color:var(--dvnh-ouro);color:var(--dvnh-ouro-claro)!important}

@media (max-width:1000px){.dvnh-mkt-trilho{grid-auto-columns:calc((100% - 18px) / 2)}}
@media (max-width:560px){
	.dvnh-mkt{padding:16px 14px 16px}
	.dvnh-mkt-trilho{grid-auto-columns:82%;gap:12px}
	.dvnh-mkt-setas button{width:38px}
}
@media (prefers-reduced-motion:reduce){.dvnh-mkt-trilho{scroll-behavior:auto}.dvnh-mkt-card,.dvnh-mkt-arte img{transition:none}}
