/* Estilos para o modal de busca de produtos */
.busca-filtros {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.produtos-resultados {
    max-height: 60vh;
    overflow-y: auto;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.produto-item {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.produto-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.produto-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.produto-item:hover::before {
    opacity: 1;
}

.produto-item.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
    transform: translateY(-3px);
}

.produto-item.selected::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    opacity: 1;
}

.produto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.produto-nome {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 10px;
}

.produto-detalhes {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.detalhe-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.detalhe-item .label {
    color: #6c757d;
    font-weight: 500;
}

.detalhe-item .value {
    color: #495057;
    font-weight: 600;
}

.produto-precos {
    margin-bottom: 10px;
}

.preco-venda {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e8f5e8;
    padding: 8px 12px;
    border-radius: 6px;
}

.preco-venda .label {
    color: #155724;
    font-weight: 500;
    font-size: 0.9rem;
}

.preco-venda .value {
    color: #155724;
    font-weight: 700;
    font-size: 1.1rem;
}

.produto-actions {
    text-align: center;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-actions {
    display: flex;
    gap: 10px;
}

.footer-actions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Scrollbar customizada */
.produtos-resultados::-webkit-scrollbar {
    width: 6px;
}

.produtos-resultados::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.produtos-resultados::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.produtos-resultados::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsividade */
@media (max-width: 768px) {
    .busca-filtros {
        padding: 12px;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .produto-item {
        padding: 15px;
        border-radius: 8px;
    }
    
    .produto-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .produto-nome {
        font-size: 1rem;
    }
    
    .detalhe-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .preco-venda {
        padding: 6px 10px;
    }
    
    .preco-venda .value {
        font-size: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    .footer-actions .btn {
        flex: 1;
        max-width: 150px;
    }
} 