/*
 * Página /lojas nova (12/10/2026), em prévia com ?lojas=nova até o dono aprovar; a chave
 * lojas_nova = 1 liga para todos. Prefixo hm-lj-, só com os tokens --hm-* da .hm
 * (/css/home-vendas.css). O Tailwind do site é purgado: classe nova não existe lá.
 * Ao mudar, suba o ?v= (LojasController::VERSAO; a Cloudflare guarda por muito tempo).
 * Celular primeiro: grade de 1 coluna, toque mínimo de 44 px, nada fixo na tela.
 */
.hm-lj-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hm-lj [hidden] { display: none !important; }

/* 1. Cabeçalho de compra */
.hm-sec.hm-lj-cab { margin-top: 18px; }
.hm-lj-sub { max-width: 720px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-lj-prova { margin: 8px 0 0; display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; line-height: 1.4; color: var(--hm-suave); }
.hm-lj-prova i { color: var(--hm-ouro); font-size: 11.5px; }
.hm-lj-prova b { color: var(--hm-tinta); font-weight: 700; }
.hm-lj-busca { margin-top: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hm .hm-lj-busca input[type="search"] { flex: 1 1 auto; min-width: 0; width: 100%; height: 48px; padding: 0 18px; font-size: 16px; color: var(--hm-tinta);
    background: #fff; border: 1.5px solid rgba(28, 25, 23, .16); border-radius: 999px; box-shadow: none; -webkit-appearance: none; appearance: none; }
.hm .hm-lj-busca input[type="search"]::placeholder { color: #a8a29e; }
.hm .hm-lj-busca input[type="search"]:focus-visible { outline: 3px solid var(--hm-noite); outline-offset: 2px; box-shadow: 0 0 0 5px var(--hm-ouro); }
.hm .hm-lj-busca-btn { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; color: #fff; }

/* 2. Atalhos: fileiras que rolam de lado, presas no próprio contêiner */
.hm-sec.hm-lj-filtros { margin-top: 14px; min-width: 0; }
.hm-lj-rolo { list-style: none; margin: 0 -16px; padding: 2px 16px; display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0; overflow-x: auto;
    scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.hm-lj-rolo::-webkit-scrollbar { display: none; }
.hm-lj-rolo > * { flex: 0 0 auto; scroll-snap-align: start; }
.hm-lj-linha2 { margin-top: 8px; align-items: center; }
.hm-lj-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; margin: 2px 0; padding: 0 14px; border-radius: 999px;
    background: #fff; border: 1px solid rgba(28, 25, 23, .14); color: var(--hm-tinta); font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease; }
.hm-lj-chip::after { content: ''; position: absolute; left: 0; right: 0; top: -3px; bottom: -3px; }
.hm-lj-chip:hover { border-color: rgba(31, 94, 0, .45); }
.hm-lj-chip-n { font-size: 11.5px; font-weight: 700; color: var(--hm-suave); }
.hm .hm-lj-chip[aria-current="true"] { background: #1f5e00; border-color: #1f5e00; color: #fff; }
.hm-lj-chip[aria-current="true"] .hm-lj-chip-n { color: rgba(255, 255, 255, .85); }
.hm-lj-ic-pix { color: #32BCAD; }
.hm-lj-ic-frete { color: var(--hm-verde); }
.hm-lj-uf { display: flex; align-items: center; gap: 8px; margin: 0; }
.hm .hm-lj-uf select { height: 44px; min-width: 132px; max-width: 220px; padding: 0 34px 0 14px; font-size: 16px; font-weight: 600; color: var(--hm-tinta);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2378716c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid rgba(28, 25, 23, .14); border-radius: 999px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.hm .hm-lj-uf select.hm-lj-uf-ativo { border-color: #1f5e00; box-shadow: inset 0 0 0 1px #1f5e00; }
.hm .hm-lj-uf select:focus-visible { outline: 3px solid var(--hm-noite); outline-offset: 2px; box-shadow: 0 0 0 5px var(--hm-ouro); }

/* 3. Linha de resultado */
.hm-sec.hm-lj-res { margin-top: 14px; }
.hm-lj-res-frase { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: var(--hm-tinta); }
/* Termo comprido sem espaço (até 80 letras) quebra em vez de sair do cartão. */
.hm-lj-res-frase > span, .hm-lj-atalho span, .hm-lj-vazio-acoes .hm-btn { min-width: 0; overflow-wrap: anywhere; }
.hm .hm-lj-limpar { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: var(--hm-verde); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hm-lj-res-nota { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--hm-suave); max-width: 80ch; }
.hm-lj-atalho { margin-top: 10px; width: 100%; min-height: 44px; padding: 8px 16px; font-size: 13.5px; text-align: left; }
.hm-lj-atalho span { min-width: 0; }

/* 4. Grade: 1, 2, 3, 4 e 6 colunas (24 fecha as fileiras em todas) */
.hm-lj-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hm-lj-item { display: flex; min-width: 0; }
.hm-lj-item:nth-child(n+5) { content-visibility: auto; contain-intrinsic-size: auto 420px; }

.hm-lj-card { container: lj-card / inline-size; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; background: #fff;
    border: 1px solid var(--hm-linha); border-radius: 20px; box-shadow: 0 1px 2px rgba(28, 25, 23, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .hm-lj-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(28, 25, 23, .4); border-color: rgba(31, 94, 0, .28); }
}

/* A. Cabeça: logo, nome e lugar, Seguir */
.hm-lj-topo { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.hm-lj-logo { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: var(--hm-bege);
    border: 2px solid #fff; box-shadow: 0 0 0 1px var(--hm-linha); }
.hm-lj-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-lj-inicial { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 21px; line-height: 1; color: var(--hm-verde); }
.hm-lj-id { min-width: 0; }
.hm-lj-nome { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.2; letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hm-lj-nome a:hover { color: var(--hm-verde); }
.hm-lj-local { margin: 3px 0 0; display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; line-height: 1.35; color: #78716c; }
.hm-lj-local i { flex: 0 0 auto; color: var(--hm-verde); font-size: 11.5px; }
.hm-lj-local span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Loja verificada (WhatsApp confirmado por código): embaixo do lugar, junto do nome, como na página da loja. */
.hm-lj-verif { margin: 2px 0 0; font-size: 12px; line-height: 1.35; font-weight: 600; color: var(--hm-noite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-lj-verif i { color: var(--hm-verde); font-size: 11.5px; }
.hm-lj-seg { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(28, 25, 23, .14);
    background: #fff; color: var(--hm-tinta); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.hm-lj-seg:hover { color: var(--hm-verde); border-color: rgba(31, 94, 0, .45); }
.hm-lj-seg .seg-off { display: inline-flex; align-items: center; gap: 6px; }
.hm-lj-seg .seg-off i { color: var(--hm-verde); }
.hm-lj-seg .seg-on { align-items: center; gap: 6px; }
.hm-lj-seg-txt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* B. Confiança, C. trecho, D. peças */
.hm-lj-conf { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--hm-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-lj-conf .fa-star { color: var(--hm-ouro); font-size: 11.5px; margin-right: 2px; }
.hm-lj-conf b { color: var(--hm-tinta); font-weight: 700; }
.hm-lj-ic-nova { color: var(--hm-verde); }
.hm-lj-conf--vazia, .hm-lj-trecho--vazio { display: none; }
.hm-lj-trecho { margin: 0; font-size: 13.5px; line-height: 1.45; color: #44403c; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-lj-rot { margin: 0 0 -4px; font-size: 12px; font-weight: 600; color: #57534e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hm-lj-pecas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-lj-pecas > li { min-width: 0; display: flex; }
.hm-lj-peca { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-lj-peca-img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f5f5f4; }
.hm-lj-peca-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hm-lj-peca:hover .hm-lj-peca-img img { transform: scale(1.05); }
.hm-lj-off { position: absolute; left: 5px; top: 5px; padding: 2px 6px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; }
.hm-lj-preco { font-size: 13px; font-weight: 800; color: var(--hm-verde); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-lj-pix { display: block; height: 15px; font-size: 11.5px; line-height: 15px; font-weight: 700; color: #15803d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-lj-pix i { color: #32BCAD; }
.hm-lj-vaga--1 { grid-column: span 1; }
.hm-lj-vaga--2 { grid-column: span 2; }
.hm-lj-vaga--3 { grid-column: span 3; }
.hm-lj-vaga { flex: 1 1 auto; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px;
    border-radius: 12px; background: var(--hm-bege); color: var(--hm-verde); font-size: 12.5px; font-weight: 700; text-align: center; }
.hm-lj-vaga:hover { text-decoration: underline; }

/* E. Mais peças, F. selos, férias */
.hm .hm-lj-mais { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 -8px; font-size: 13px; font-weight: 700; color: var(--hm-verde); }
.hm-lj-mais span { overflow-wrap: anywhere; }
.hm-lj-mais:hover span { text-decoration: underline; }
.hm-lj-selos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hm-lj-selo { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 26px; padding: 0 10px; border-radius: 999px; background: #f5f5f4; color: #44403c;
    font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.hm-lj-selo span { overflow: hidden; text-overflow: ellipsis; }
.hm-lj-selo--pix { background: #ecfdf3; color: #15803d; }
.hm-lj-selo--pix i { color: #32BCAD; }
.hm-lj-selo--frete, .hm-lj-selo--retirada { background: #eef6e6; color: var(--hm-noite); }
.hm-lj-selo--frete i, .hm-lj-selo--retirada i, .hm-lj-selo--site i { color: var(--hm-verde); }
.hm-lj-selo--whats i { color: #25D366; }
.hm-lj-ferias { margin: 0; display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fef3c7; color: #713f12;
    font-size: 12.5px; line-height: 1.4; font-weight: 600; }
.hm-lj-ferias i { margin-top: 2px; }

/* G. Botões: o pé do cartão alinhado na fileira */
.hm-lj-acoes { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hm-lj-acoes--um { grid-template-columns: minmax(0, 1fr); }
.hm-lj-acoes .hm-btn { min-height: 44px; min-width: 0; padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
.hm .hm-lj-acoes .hm-btn--verde { color: #fff; }
.hm-lj-whats i { color: #25D366; }
/* Férias: "Mandar mensagem" não cabia com o ícone no cartão estreito (640, 1280 e 1800 px).
   Sai o ícone e, no limite, o texto quebra em 2 linhas dentro do botão. */
.hm-lj-card--ferias .hm-lj-acoes .hm-btn i { display: none; }
.hm-lj-card--ferias .hm-lj-acoes .hm-btn { white-space: normal; line-height: 1.2; text-align: center; }

/* Depois da grade: legenda, Mostrar mais, fim e paginação */
.hm-lj-legenda { margin: 14px 0 0; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--hm-suave); max-width: 80ch; }
.hm-lj-legenda i { margin-top: 2px; color: #a8a29e; }
.hm-lj-mais-wrap { margin-top: 18px; }
.hm-lj-btn-mais { width: 100%; min-height: 48px; }
.hm-lj-erro { margin: 10px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: #b91c1c; }
.hm-lj-fim { margin: 16px 0 0; text-align: center; font-size: 13.5px; color: var(--hm-suave); }
.hm-lj-pag { margin-top: 20px; }
.hm-lj-pag li > a, .hm-lj-pag li > span { min-width: 44px; height: 44px; width: auto; }

/* 5. Nenhuma loja encontrada */
.hm-lj-vazio { padding: 28px 18px; text-align: center; background: #fff; border: 1px solid var(--hm-linha); border-radius: 20px; }
.hm-lj-vazio > i { font-size: 34px; color: #a8a29e; }
.hm-lj-vazio-tit { margin: 10px 0 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.hm-lj-vazio p { margin: 8px auto 0; max-width: 52ch; font-size: 14px; line-height: 1.5; color: #57534e; }
.hm-lj-vazio-acoes { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.hm-lj-vazio-acoes .hm-btn { min-height: 44px; width: 100%; }
.hm .hm-lj-vazio-acoes .hm-btn--verde { color: #fff; }
.hm-lj-recomecar { margin-top: 14px; }

/* 6. Como comprar */
.hm-sec.hm-lj-como { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hm-lj-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hm-lj-passo { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; background: #fff;
    border: 1px solid var(--hm-linha); border-radius: 20px; }
.hm-lj-passo-ic { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: #eef6e6; color: var(--hm-verde); font-size: 14px; }
.hm-lj-passo h3 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 700; }
.hm-lj-passo p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: #44403c; }
.hm-lj-faq-tit { margin: 24px 0 10px; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.25; }
.hm-lj-faq { display: grid; gap: 8px; }
.hm-lj-faq details { background: #fff; border: 1px solid var(--hm-linha); border-radius: 20px; }
.hm-lj-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px;
    font-size: 15px; line-height: 1.35; font-weight: 600; cursor: pointer; border-radius: 20px; }
.hm-lj-faq summary::-webkit-details-marker { display: none; }
.hm-lj-faq summary i { flex: 0 0 auto; color: var(--hm-suave); font-size: 12px; transition: transform .2s ease; }
.hm-lj-faq details[open] summary i { transform: rotate(180deg); }
.hm-lj-faq summary:focus-visible { outline: 3px solid var(--hm-noite); outline-offset: 2px; box-shadow: 0 0 0 5px var(--hm-ouro); }
.hm-lj-faq details p { margin: 0; padding: 0 16px 14px; font-size: 14px; line-height: 1.55; color: #44403c; }
.hm .hm-lj-link { color: var(--hm-verde); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
    .hm-lj-busca { max-width: 560px; }
    .hm-lj-atalho { width: auto; }
    .hm-lj-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .hm-lj-seg { width: auto; height: 36px; padding: 0 12px; font-size: 13px; position: relative; }
    .hm-lj-seg::after { content: ''; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
    .hm-lj-seg-txt { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: nowrap; }
    .hm-lj-conf { min-height: 18px; }
    .hm-lj-conf--vazia, .hm-lj-trecho--vazio { display: block; }
    .hm-lj-trecho { min-height: 1.45em; }
    .hm-lj-vazio-acoes { flex-direction: row; justify-content: center; }
    .hm-lj-vazio-acoes .hm-btn { width: auto; }
    .hm-lj-btn-mais { width: auto; min-width: 280px; display: flex; margin: 0 auto; }
}
@media (min-width: 1024px) {
    .hm-lj-rolo { margin: 0 -56px; padding: 2px 56px; scroll-padding-inline: 56px; }
    .hm-lj-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .hm-lj-passos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .hm-sec.hm-lj-cab { margin-top: 30px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    /* Cartão estreito: os ícones dos botões saem para o texto caber */
    .hm-lj-acoes .hm-btn i { display: none; }
}
@media (min-width: 1280px) {
    .hm-lj-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hm-lj-nome { font-size: 19px; }
}
@media (min-width: 1800px) {
    .hm-lj-grade { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* Cartão estreito (de 1280 a 1439 px, a partir de 1800 e perto de 640): o Seguir volta a ser só o
   ícone, de 44 px, para o nome e o "Loja verificada" não serem cortados. Navegador sem container
   query fica com a pílula. */
@container lj-card (max-width: 300px) {
    .hm-lj-seg { width: 44px; height: 44px; padding: 0; font-size: 16px; }
    .hm-lj-seg::after { content: none; }
    .hm-lj-seg-txt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-lj-card, .hm-lj-peca-img img, .hm-lj-chip, .hm-lj-seg, .hm-lj-faq summary i { transition: none; }
    .hm-lj-peca:hover .hm-lj-peca-img img { transform: none; }
}
