/**
 * Lourenço Móveis - Estilos da Biblioteca de Produtos
 * Adicione <link rel="stylesheet" href="produtos-api.css"> no index.html
 */

/* Filtro de localizações */
#filtro-locais {
    padding: 10px 0 20px;
}

#filtro-locais p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Badges de localização */
.badge-local {
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.badge-local:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 84, 10, 0.25);
}

.badge-local.btn-primary {
    box-shadow: 0 2px 8px rgba(166, 84, 10, 0.3);
}

/* Grid de produtos */
#grid-produtos .card-body .badge.bg-secondary {
    background-color: var(--text-light) !important;
    font-weight: 500;
}

#grid-produtos .card-body .card-text.fw-bold.text-primary {
    font-size: 1.15rem;
}

/* Animação de entrada dos cards */
#grid-produtos .col-lg-3 {
    animation: produtoFadeIn 0.5s ease forwards;
    opacity: 0;
}

#grid-produtos .col-lg-3:nth-child(1) { animation-delay: 0.05s; }
#grid-produtos .col-lg-3:nth-child(2) { animation-delay: 0.1s; }
#grid-produtos .col-lg-3:nth-child(3) { animation-delay: 0.15s; }
#grid-produtos .col-lg-3:nth-child(4) { animation-delay: 0.2s; }
#grid-produtos .col-lg-3:nth-child(5) { animation-delay: 0.25s; }
#grid-produtos .col-lg-3:nth-child(6) { animation-delay: 0.3s; }
#grid-produtos .col-lg-3:nth-child(7) { animation-delay: 0.35s; }
#grid-produtos .col-lg-3:nth-child(8) { animation-delay: 0.4s; }
#grid-produtos .col-lg-3:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes produtoFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
#grid-produtos:empty::before {
    content: 'Carregando produtos...';
    display: block;
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
    font-size: 1.1rem;
    width: 100%;
}

/* Mensagem de vazio */
#grid-produtos .text-muted {
    font-size: 1.1rem;
}
