/* ========================================
   HOME LIVE SEARCH - Pesquisa em Tempo Real
   Substitui o conteúdo da home por listagem
   Usa os estilos padrão de produtos do main-v02.css
   ======================================== */

#home-live-search-results {
    display: none;
    width: 100%;
    min-height: 400px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Barra de informação de busca */
.live-search-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    color: #000;
    margin-bottom: 20px;
    border-radius: 8px;
}

.live-search-count {
    font-size: 16px;
    font-weight: 500;
}

.live-search-count i {
    margin-right: 8px;
}

/* Container da listagem - usa classes padrão */
.listaitems {
    padding: 0 10px;
}

.listaitems .row {
    margin: 0 -5px;
}

/* Estado vazio */
.live-search-empty {
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.live-search-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.live-search-empty p {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn-ver-similares {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-ver-similares:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Estado de loading */
.live-search-loading {
    padding: 80px 20px;
    text-align: center;
    color: #667eea;
}

.live-search-loading i {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.live-search-loading p {
    font-size: 16px;
    font-weight: 500;
}

/* Estado de erro */
.live-search-error {
    padding: 80px 20px;
    text-align: center;
    color: #dc3545;
}

.live-search-error i {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.live-search-error p {
    font-size: 16px;
    font-weight: 500;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .live-search-info-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .live-search-count {
        font-size: 14px;
    }

    .listaitems {
        padding: 0 5px;
    }

    #home-live-search-results .col-6 {
        padding-right: 2px !important;
        padding-left: 2px !important;
    }
}
