/* Madeirense Loja */
.mlj { --mlj-acento: #D97757; --mlj-azul: #003952; --mlj-linha: rgba(127,127,127,.25); --mlj-fundo: rgba(127,127,127,.07); max-width: 1100px; margin: 0 auto; }
.mlj a { text-decoration: none; }
.mlj-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.mlj-chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--mlj-linha); border-radius: 999px; font-size: 14px; color: inherit; }
.mlj-chip.ativo { background: var(--mlj-azul); border-color: var(--mlj-azul); color: #fff; }
.mlj-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.mlj-cartao { display: flex; flex-direction: column; border: 1px solid var(--mlj-linha); border-radius: 12px; overflow: hidden; color: inherit; transition: box-shadow .15s; }
.mlj-cartao:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.mlj-capa { position: relative; aspect-ratio: 3 / 4; background: var(--mlj-fundo); }
.mlj-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlj-img-vazia { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 48px; opacity: .5; }
.mlj-ets { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.mlj-caixa .mlj-ets { position: static; margin-bottom: 8px; }
.mlj-et { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.92); color: #222; }
.mlj-et-priv { background: #666; color: #fff; }
.mlj-et-dest { background: var(--mlj-azul); color: #fff; }
.mlj-et-promo { background: var(--mlj-acento); color: #fff; }
.mlj-et-esg { background: #b32d2e; color: #fff; }
.mlj-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mlj-info h3 { font-size: 16px; line-height: 1.3; margin: 0; }
.mlj-info p { font-size: 14px; opacity: .8; margin: 0; }
.mlj-preco { font-weight: 700; font-size: 17px; margin-top: auto; }
.mlj-preco del { font-weight: 400; opacity: .6; font-size: .85em; margin-right: 6px; }
.mlj-caixa { border: 1px solid var(--mlj-linha); border-radius: 12px; padding: 18px; margin: 0 0 24px; max-width: 520px; }
.mlj-caixa-preco { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.mlj-caixa-preco small { display: block; font-size: 12px; font-weight: 400; opacity: .7; }
.mlj-entrega { font-size: 15px; margin: 0 0 10px; }
.mlj-ultimas { color: var(--mlj-acento); font-weight: 600; margin: 0 0 10px; }
.mlj-ja { color: #1a7f37; font-weight: 600; margin: 0 0 10px; }
.mlj-btn { display: inline-block; background: var(--mlj-acento); color: #fff !important; border: 0; border-radius: 8px; padding: 12px 22px; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; }
.mlj-btn:hover { filter: brightness(.95); }
.mlj-btn[disabled] { background: #999; cursor: not-allowed; }
.mlj-btn-2 { background: transparent; color: var(--mlj-azul) !important; border: 1px solid var(--mlj-linha); padding: 8px 14px; font-size: 14px; }
.mlj-nota { font-size: 13px; opacity: .75; margin: 10px 0 0; }
.mlj-ficha-t { margin-top: 28px; }
.mlj-ficha { border-collapse: collapse; width: 100%; max-width: 620px; }
.mlj-ficha th, .mlj-ficha td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--mlj-linha); font-size: 15px; vertical-align: top; }
.mlj-ficha th { width: 38%; font-weight: 600; }
.mlj-voltar { margin: 20px 0; font-size: 14px; }
.mlj-vazio { padding: 30px; text-align: center; border: 1px dashed var(--mlj-linha); border-radius: 12px; }
.mlj-rodape { margin-top: 24px; font-size: 14px; text-align: center; opacity: .8; }
/* Finalizar compra */
.mlj-comprar { max-width: 560px; }
.mlj-form label { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.mlj-form input[type=text], .mlj-form input[type=tel], .mlj-form input[type=number], .mlj-form select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--mlj-linha); border-radius: 8px; font-size: 16px; font-weight: 400; background: transparent; color: inherit; box-sizing: border-box; }
.mlj-form .mlj-qtd { max-width: 100px; }
.mlj-opcoes-entrega { border: 0; padding: 0; margin: 0 0 14px; }
.mlj-opcoes-entrega legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.mlj-opcoes-entrega label { font-weight: 400; font-size: 15px; padding: 10px 12px; border: 1px solid var(--mlj-linha); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.mlj-opcoes-entrega small { display: block; opacity: .7; margin: 2px 0 0 22px; }
.mlj-2col { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.mlj-resumo { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--mlj-fundo); border-radius: 10px; margin-bottom: 18px; }
.mlj-resumo img { width: 64px; height: auto; border-radius: 6px; }
.mlj-total { font-size: 18px; margin: 18px 0 12px; }
.mlj-erro { background: rgba(179,45,46,.1); border-left: 4px solid #b32d2e; padding: 10px 14px; border-radius: 6px; }
.mlj-cupao-linha { display: flex; gap: 8px; margin-top: 4px; }
.mlj-form .mlj-cupao-linha input { margin-top: 0; text-transform: uppercase; }
.mlj-cupao-msg { font-size: 14px; margin: -6px 0 10px; min-height: 1em; }
.mlj-ok { color: #1a7f37; }
.mlj-mau { color: #b32d2e; }
/* Carrinho */
.mlj-aviso { padding: 10px 14px; border-radius: 8px; background: rgba(26,127,55,.1); border-left: 4px solid #1a7f37; margin: 0 0 16px; }
.mlj-aviso-erro { background: rgba(179,45,46,.1); border-left-color: #b32d2e; }
.mlj-aviso a { font-weight: 600; }
.mlj-titulo { font-size: 20px; margin: 0 0 10px; }
.mlj-linhas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mlj-linha); }
.mlj-linha { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--mlj-linha); margin: 0; }
.mlj-linha-img { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--mlj-fundo); font-size: 24px; }
.mlj-linha-info { flex: 1; min-width: 0; }
.mlj-linha-info > a { font-weight: 600; color: inherit; }
.mlj-linha-info small { display: block; font-size: 13px; opacity: .7; margin: 2px 0 6px; }
.mlj-linha-acoes { display: flex; gap: 12px; align-items: center; }
.mlj-linha-acoes select { padding: 4px 8px; border: 1px solid var(--mlj-linha); border-radius: 6px; background: transparent; color: inherit; }
.mlj-remover { font-size: 13px; color: #b32d2e !important; }
.mlj-linha-preco { white-space: nowrap; }
.mlj-continuar { font-size: 14px; margin: 10px 0 22px; }
.mlj-totais { margin: 18px 0 14px; padding: 12px 14px; background: var(--mlj-fundo); border-radius: 10px; }
.mlj-totais > div { display: flex; justify-content: space-between; margin: 4px 0; }
.mlj-totais dt { font-weight: 400; margin: 0; }
.mlj-totais dd { margin: 0; }
.mlj-totais div[hidden] { display: none; }
.mlj-t-total-l { font-size: 18px; font-weight: 700; border-top: 1px solid var(--mlj-linha); padding-top: 8px; margin-top: 8px !important; }
.mlj-btn-pagar { width: 100%; }
.mlj-botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.mlj-botoes .mlj-btn-2 { padding: 12px 18px; font-size: 16px; }
.mlj-qtd-l { display: block; font-size: 14px; margin: 0 0 10px; }
.mlj-qtd-l input { width: 80px; margin-left: 6px; padding: 6px 8px; border: 1px solid var(--mlj-linha); border-radius: 6px; background: transparent; color: inherit; }
.mlj-no-carrinho { font-size: 14px; margin: 10px 0 0; }
.mlj-compra-linhas { list-style: none; margin: 8px 0 0; padding: 0; }
.mlj-compra-linhas li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; margin: 0; font-size: 15px; }
.mlj-btn-mini { padding: 5px 12px !important; font-size: 13px !important; }
/* As minhas compras */
.mlj-compras { max-width: 760px; }
.mlj-compra { border: 1px solid var(--mlj-linha); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.mlj-compra-topo { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mlj-compra-info { font-size: 13px; opacity: .75; margin: 4px 0 10px; }
.mlj-compra-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.mlj-compra-acoes .mlj-btn { padding: 8px 16px; font-size: 14px; }
.mlj-estado { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--mlj-fundo); white-space: nowrap; }
.mlj-estado-por_pagar { background: rgba(217,119,87,.15); color: #a4482b; }
.mlj-estado-a_preparar, .mlj-estado-pronto { background: rgba(0,57,82,.12); color: var(--mlj-azul); }
.mlj-estado-enviado, .mlj-estado-concluida, .mlj-estado-entregue { background: rgba(26,127,55,.12); color: #1a7f37; }
@media (max-width: 480px) {
	.mlj-grelha { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.mlj-info { padding: 10px; }
	.mlj-info h3 { font-size: 14px; }
	.mlj-2col { grid-template-columns: 1fr; gap: 0; }
	.mlj-btn { width: 100%; box-sizing: border-box; }
	.mlj-compra-acoes .mlj-btn { width: auto; }
}
