/* JP Não Achou — botão flutuante + modal */

#jp-na-botao {
    position: fixed;
    bottom: 84px; /* acima da bottom nav mobile, se existir */
    right: 16px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
#jp-na-botao:hover { transform: scale(1.04); }

@media (min-width: 768px) {
    #jp-na-botao { bottom: 24px; right: 24px; }
}

#jp-na-overlay {
    position: fixed;
    inset: 0;
    z-index: 99995;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
#jp-na-overlay[hidden] { display: none !important; }
@media (min-width: 768px) {
    #jp-na-overlay { align-items: center; }
}

#jp-na-modal {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: jp-na-slide .25s ease;
}
@media (min-width: 768px) {
    #jp-na-modal { border-radius: 16px; }
}
@keyframes jp-na-slide {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.jp-na-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.jp-na-header h3 { margin: 0; font-size: 1.05rem; color: #111827; }
#jp-na-fechar {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 4px;
}

.jp-na-corpo {
    padding: 16px 20px 20px;
    overflow-y: auto;
}

.jp-na-form { display: flex; gap: 8px; }
#jp-na-input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: .95rem;
    color: #111827;
    background: #f9fafb;
}
#jp-na-input:focus { outline: none; border-color: #16a34a; }
#jp-na-buscar {
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
#jp-na-buscar:disabled { opacity: .6; cursor: wait; }

#jp-na-resultado { margin-top: 14px; }

.jp-na-aviso { color: #b45309; font-size: .88rem; }
.jp-na-sugestao { color: #374151; font-size: .9rem; margin: 4px 0 10px; }

.jp-na-loading { text-align: center; padding: 18px 0; color: #6b7280; font-size: .88rem; }
.jp-na-spinner {
    width: 26px; height: 26px;
    margin: 0 auto 8px;
    border: 3px solid #e5e7eb;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: jp-na-spin .8s linear infinite;
}
@keyframes jp-na-spin { to { transform: rotate(360deg); } }

.jp-na-produtos { display: flex; flex-direction: column; gap: 8px; }
.jp-na-produto {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s;
}
.jp-na-produto:hover { border-color: #16a34a; }
.jp-na-produto img {
    width: 52px; height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9fafb;
    flex-shrink: 0;
}
.jp-na-produto-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jp-na-produto-nome {
    color: #111827;
    font-size: .9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.jp-na-produto-preco { color: #16a34a; font-size: .88rem; font-weight: 700; }
.jp-na-sem-estoque { color: #b45309; font-size: .78rem; }

.jp-na-nao-achou { text-align: center; padding: 8px 0; }
.jp-na-nao-achou p { color: #374151; font-size: .92rem; margin: 6px 0; }

.jp-na-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 22px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .15s;
}
.jp-na-btn-whatsapp:hover { transform: scale(1.03); color: #fff; }
