/* =========================================================
   VITRINE DE PRODUTOS — /nome/loja
   As cores e fontes da empresa chegam como variáveis (--lj-*) no <head>.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.lj { margin: 0; background: #fff; color: #141414; font: 400 16px/1.55 var(--lj-corpo); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lj-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

svg { flex: 0 0 auto; }

/* Topo */
.lj-top { background: #fff; border-bottom: 3px solid var(--lj-dest); }
.lj-top-in { max-width: 1120px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lj-logo { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.lj-logo img { height: 22px; width: auto; max-width: 180px; object-fit: contain; }
.lj-logo strong { font: 700 20px/1 var(--lj-titulo); color: var(--lj-esc); }
.lj-top-wa {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
    background: #25D366; color: #fff; text-decoration: none; font: 600 14px/1 var(--lj-corpo); white-space: nowrap;
}
.lj-top-wa svg { width: 18px; height: 18px; fill: currentColor; }
.lj-top-wa:hover { background: #1EBE5A; }

/* Abertura */
.lj-hero { background: linear-gradient(180deg, var(--lj-fundo) 0%, #fff 100%); padding: 34px 0 22px; text-align: center; }
.lj-eyebrow {
    display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px;
    background: #fff; color: var(--lj-esc); border: 1px solid rgba(0, 0, 0, .08);
    font: 600 12px/1.2 var(--lj-corpo); letter-spacing: .08em; text-transform: uppercase;
}
.lj-title { margin: 0 0 10px; color: var(--lj-esc); font: 700 clamp(28px, 7vw, 40px)/1.15 var(--lj-titulo); letter-spacing: -.015em; text-wrap: balance; }
.lj-title--sm { font-size: clamp(22px, 5.5vw, 30px); }
.lj-lead { margin: 0 auto 6px; max-width: 34em; color: #555; font-size: 16px; text-wrap: pretty; }
.lj-lead strong { color: #141414; }
.lj-site {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border-radius: 999px;
    border: 2px solid var(--lj-pri); color: var(--lj-esc); text-decoration: none; font: 600 15px/1.2 var(--lj-corpo);
}
.lj-site svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lj-site:hover { background: var(--lj-fundo); }

/* Busca e categorias (ficam presas no topo ao rolar) */
.lj-tools { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #ECECEC; padding: 10px 0; }
.lj-search { position: relative; display: block; }
.lj-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: #8A8A8A; stroke-width: 2.2; stroke-linecap: round; }
.lj-search input {
    width: 100%; min-height: 46px; padding: 10px 14px 10px 44px; border: 1.5px solid #E2E2E2; border-radius: 999px;
    background: #fff; font: 400 16px/1.2 var(--lj-corpo); color: #141414;
}
.lj-search input:focus { outline: none; border-color: var(--lj-pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lj-pri) 22%, transparent); }
.lj-chips { display: flex; gap: 8px; margin: 10px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.lj-chips::-webkit-scrollbar { display: none; }
.lj-chip {
    flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #E2E2E2; background: #fff;
    color: #333; font: 500 14px/1.2 var(--lj-corpo); cursor: pointer; white-space: nowrap;
}
.lj-chip[aria-pressed="true"] { background: var(--lj-esc); border-color: var(--lj-esc); color: var(--lj-esc-txt); }
.lj-chip:focus-visible, .lj-btn:focus-visible, .lj-top-wa:focus-visible { outline: 3px solid var(--lj-dest); outline-offset: 2px; }

/* Grade de produtos */
.lj-list { padding-top: 18px; padding-bottom: 40px; }
.lj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lj-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #ECECEC; border-radius: 16px; overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.lj-card:hover { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.lj-card[hidden] { display: none; }
.lj-img { aspect-ratio: 1 / 1; background: #F6F6F4; display: grid; place-items: center; padding: 10px; }
.lj-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lj-body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 14px; }
.lj-cat { margin: 0 0 4px; color: var(--lj-pri); font: 600 11px/1.2 var(--lj-corpo); letter-spacing: .06em; text-transform: uppercase; }
.lj-name { margin: 0 0 6px; font: 600 15px/1.3 var(--lj-titulo); color: #141414; }
.lj-desc {
    margin: 0 0 12px; color: #666; font-size: 13px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lj-btn {
    margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 12px; border-radius: 999px; background: var(--lj-pri); color: var(--lj-pri-txt);
    font: 600 14px/1.2 var(--lj-corpo); text-decoration: none; text-align: center; transition: background .15s;
}
.lj-btn:hover { background: var(--lj-pri-hov); }
.lj-btn svg { width: 18px; height: 18px; fill: currentColor; }
.lj-btn--big { min-height: 56px; padding: 14px 28px; font-size: 17px; width: 100%; max-width: 360px; }
.lj-vazio { text-align: center; color: #555; padding: 30px 0; }
.lj-vazio a { color: var(--lj-esc); font-weight: 600; }

/* Chamada final */
.lj-cta { background: var(--lj-fundo); padding: 40px 0 46px; text-align: center; }
.lj-cta .lj-lead { margin-bottom: 20px; }

/* Rodapé */
.lj-foot { padding: 28px 16px 96px; text-align: center; font-size: 14px; color: #555; }
.lj-foot p { margin: 4px auto; max-width: 40em; }
.lj-foot a { color: var(--lj-esc); font-weight: 600; }
.lj-legal { margin-top: 14px !important; font-size: 12px; color: #8A8A8A; }
.sac-privacy { margin-top: 10px !important; font-size: 12px; }

/* Botão flutuante do WhatsApp */
.lj-float {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #25D366; color: #fff; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .4);
}
.lj-float svg { width: 30px; height: 30px; fill: currentColor; }
.lj-float:hover { background: #1EBE5A; }

@media (max-width: 380px) {
    .lj-top-wa span { display: none; }
}
@media (max-width: 479px) {
    /* No celular o card é estreito: botão sem ícone para "Pedir no WhatsApp" caber em uma linha */
    .lj-card .lj-btn { padding: 10px 8px; font-size: 13.5px; }
    .lj-card .lj-btn svg { display: none; }
}
@media (min-width: 720px) {
    .lj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .lj-body { padding: 14px 16px 16px; }
    .lj-name { font-size: 16px; }
    .lj-hero { padding: 48px 0 28px; }
    .lj-logo img { height: 26px; }
    .lj-tools .lj-wrap { display: flex; align-items: center; gap: 14px; }
    .lj-search { flex: 0 0 300px; }
    .lj-chips { margin: 0; padding: 0; }
}
@media (min-width: 1024px) {
    .lj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Ler mais (descrições longas) */
.lj-desc.is-aberta { -webkit-line-clamp: unset; display: block; }
.lj-mais { align-self: flex-start; margin: -6px 0 12px; padding: 0; border: 0; background: none; color: var(--lj-esc, #111); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
